Equality check seems to always be true I have this function in my .zshrc:  activated=false  function test_toggle() {   if [ $activated=false ]; then     echo "WAS FALSE"     activated=true   else     echo "WAS TRUE"     activated=false   fi }   I'd like the function to toggle the state of var activated between false and true. But if I open a terminal and run the function I only get this:  $ test_toggle WAS FALSE $ test_toggle WAS FALSE $ test_toggle WAS FALSE   How can I make the function use and change the variable: activated from parent scope correctly?
Brackets in if condition: why am I getting syntax errors without whitespace? I am using the below script to move two days back when script runs at starting two days of the year and also check first and second days of every month and move two days back. if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;01&quot;]; then         date=&quot;$last_month/$yes_day/$last_year&quot;         fulldate=&quot;$last_month/$yes_day/$last_year&quot; else         if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;02&quot;]; then                 date=&quot;$last_month/$yes_day/$last_year&quot;                 fulldate=&quot;$last_month/$yes_day/$last_year&quot;         else                 if [ $day = &quot;01&quot; ]; then                         date=&quot;$last_month/$yes_day/$year&quot;                         fulldate=&quot;$year$last_month$yes_day&quot;                 else                         if [ $day = &quot;02&quot; ]; then                                 date=&quot;$last_month/$yes_day/$year&quot;                                 fulldate=&quot;$year$last_month$yes_day&quot;                         else                                 date=&quot;$month/$yes_day/$year&quot;                                 fulldate=&quot;$year$month$yes_day&quot;                         fi                 fi         fi fi  But my bad am getting the below error message Etime_script.sh: line 19: [06=01]: command not found Etime_script.sh: line 24: [06=01]: command not found
Bake Simple Deform animation into mesh for Unity3D export? I'm trying to use a .blend file with a keyframe animation on the angle of a Simple Deform modifier in Unity3D. Unity3D however does not know how to handle modifiers and hence cannot play the animation.  How can I bake/save the animation to the .blend file so that Unity3D can play it? Seeking point cloud (LiDAR) data? Is there any freely available pointcloud data?   I'm especially interested in dense clouds of small areas(5m to 100m radius) but anything else would be fine too.   I've found that these pages have very nice and easy to access point cloud data. I've read through the elementary proof of why there exists a solution $x$ to $x^2\equiv -1\pmod p$ iff $p\equiv 1 \pmod 4$ for $p$ an odd prime. Is there a group theory generalization for this fact as well? I've got an HP Pavilion Touchsmart notebook that came with Windows 8. I've upgraded to 8.1, and now I want to dual-boot an Ubuntu distribution with Windows 10. When dual-booting with Windows 8.1, the Windows Boot Manager always took priority, even after installing GRUB. What do I need to do to get GRUB to be the default bootloader instead of Windows Boot Manager? I was browsing PhD position offers in Europe on different websites and I was quite surprised to find that several offers contained sentences such as     University of X value equality and diversity. We strongly encourage women and BAME applicants for this position.    where BAME stands for Black, Asian and Minority Ethnicities; or     The research group aims to increase the number of women in scientific positions. Female candidates are therefore encouraged to apply.   Is it considered normal in the academic environment to discriminate between  candidates according to their race and/or gender for "egalitarian" reasons?   How is the choice of a candidate based on their gender and/or race considered "egalitarian"? If $x_n \to 0$, show that $\sqrt{x_n} \to 0$ Let $x_n \geq 0$ for all $n \in N$. If $(x_n) \to 0$, show that $(\sqrt{x_n}) \to 0$  Unless I am missing something, this seems simple to me. Since $x_n$ converges for an arbitrary $\epsilon^2&gt;0$, we have $|x_n| &lt;\epsilon^2 $ for $n\geq N$. Taking square roots here we have $\sqrt{x_n}&lt;\epsilon$ for all $n\geq N$ which is what we needed to show. Is that all? If so, then why $x_n \geq 0$ is important? Click Answer your own question Check community wiki A dialog box     Are you sure you want to make this post Community Wiki?   will appear, Click OK or Cancel; The same dialog will appear again.   Google Chrome 44.0.2403.107 / Windows8.1 / site rev 2015.7.25.3609 Grub does not show a Windows 8 option after dual boot How do I boot from ISO file stored on hard disk? Best way to save a ordered List to the Database while keeping the ordering I was wondering if anyone has a good solution to a problem I've encountered numerous times during the last years.  I have a shopping cart and my customer explicitly requests that it's order is significant. So I need to persist the order to the DB.  The obvious way would be to simply insert some OrderField where I would assign the number 0 to N and sort it that way.  But doing so would make reordering harder and I somehow feel that this solution is kinda fragile and will come back at me some day.  (I use C# 3,5 with NHibernate and SQL Server 2005)  Thank you Counting files in leaves of directory tree I've been reading around and trying to figure out how to do this, but for some reason I can't seem to override parent functions in my child theme.  I'm using TwentyTen as a parent - can anyone tell me why this function in my child theme isn't overriding the parent function please?  // Override read more link function osu_twentyten_continue_reading_link() {  return ' &lt;a href="'. get_permalink() . '"&gt;' . __( 'Read on &lt;span class="meta-nav"&gt;&amp;rarr;&lt;/span&gt;', 'twentyten-child' ) . '&lt;/a&gt;'; } function osu_twentyten_auto_excerpt_more( $more ) {  return ' &amp;hellip;' . osu_twentyten_continue_reading_link(); } remove_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); add_filter( 'excerpt_more', 'osu_twentyten_auto_excerpt_more' );   I thought you had to remove the filter/action etc. before re-adding it right?  Thanks,  osu Continuous and bounded variation does not imply absolutely continuous I'd like to get an advanced frame in Firefall. I've been told that I can use "Pilot Tokens" to unlock other frames without having to pay money.  How soon would I be able to unlock an advanced frame? Do I have to level a base frame all the way to level 40? More than once? Why don't I have the right to create a text file in my root directory? Yesterday, Asaf Karagila's  sparked an extensive discussion on ways of proving that all countable ordinals are embeddable in $\Bbb Q$, and whether particular solutions to this use the Axiom of Choice.  Since the arguments used to prove this can be shady on their use of Choice when formulated tersely, fully fleshed out answers are appreciated.  To be concrete, this question asks for proofs of the following fact:     All countable ordinals $\alpha &lt; \omega_1$ are order-embeddable in the rationals $\Bbb Q$.   Especially answers avoiding the Axiom of Choice are appreciated.    Of relevance and related interest is  (but it's not a duplicate, since that question asks for explicit embeddings). Why can't I copy a 7 GB file to an external USB HD with 120 GB free? Why won't this ocelot do anything but breed? Steady-State Current I am in the process of completing some homework and have come across a question that says: "What is the steady-state current?" It is asking in reference to a circuit that includes two capacitors in parrallel and a DC source of 24V and an AC source given by $\epsilon = 20 \cos(120 \pi t)\ \text{V}$, where $t$ is in seconds. I assume that it is asking when the current is constant. Because naturally the current is not constant due to the AC source, would I just consider the DC source for this? Bad match with a gaming group, how to leave? I have sometimes joined groups whose play style didn't work for me. At some point it became clear that as much as I wanted to enjoy the game I couldn't. And I was probably undermining the fun at the table for others too.  What is the best way to leave the group? Quietly or with a few explanations? Announce it in person or by email/phone/forum? Is it OK to recruit players from the group for another game?