Nested Conditional Operators in C
scanf not taking in data
I have two tensors that i must calculate double dot product. matrix A is rank 2  and matrix B is rank 4. I want to multiply them with Matlab and I know in Matlab it becomes: A : B = trace (A*B) but it has one error and it says: Inner matrix dimensions must agree So how can I solve this problem? anybody help me? Thanks I'm transitioning a Drupal 6 site to Drupal 8.1 so following the official instructions, I set up a new install in its own directory. Since this is only one site, I followed the instructions to put my database credentials in sites/default/default.settings.php after the declaration of the $databases array.  Running drush --status returns the following.  Drush version          :  8.1-dev                                           Drush temp directory   :  /tmp                                              Drush configuration    :                                                    Drush alias files      :                                                    Drupal root            :  /media/psf/Home/apps/newp                         Drupal Settings File   :  MISSING   Since this Drupal is 8.1-dev that must mean I need to upgrade it. Since this is a global install using Composer, I run composer global update.     Your requirements could not be resolved to an installable set of   packages drush/drush dev-master requires codegyre/robo ~1.0.0-beta1   Checking the drush-ops page on github doesn't show any anomalies like this nor my Google search.   What am I overlooking? How to Convert 0 to 10V analog signal to 0 to 2.5V for ADC input? I have an analog signal which ranges between 0V and 10V.  I want to linearly scale it down to 0 to 2.5V for my ADC.     I'm concerned that using a resistive voltage divider will affect signal quality.  Is this true?  If it's not true, what value resistor should I use for voltage divider? Terminal returns not found for most commands Mac OSX I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. I think the installs are correct, but when I type sudo port install wine I see a not found error in my terminal. I tried other basic commands like say and clear and all of them return the same not found error. My research shows that my PATH might be incorrectly set, but it lacks steps I can implement. Specifically, I ran this command: echo $PATH and it returned:  /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin  I'm a complete newbie to mac and have no idea where .bash_profile or any of those files are. My skills let me install Xcode and the Command Line tools for Xcode and I sense I need to level up on path management. At this point I need help managing my dot files and changing my path to fix these specific errors on Mountain Lion. What are my next steps? There is this addon that was built called Window Generator 2. It can be . However, when I go to the download link it shows up in a new tab as a bunch of code.  How can I download and use this addon in Blender? Do reroll and dice-adding abilities work on critical hits and critical failures? How do I catch a PHP fatal (`E_ERROR`) error? I can use set_error_handler() to catch most PHP errors, but it doesn't work for fatal (E_ERROR) errors, such as calling a function that doesn't exist. Is there another way to catch these errors?  I am trying to call mail() for all errors and am running PHP 5.2.3. $2 \times 2 $ Orthogonal Group I am trying to prove that $O(2)$ has two connected components. This is what I have done: Suppose $A \in O(2)$. Then $A^tA=I$, where $A^t$ is the transpose of $A$ and $I$ is the identity. Taking the determinant of both sides of this equation, we get $\det(A^t)\det(A) = (det(A))^2$   which implies $\det(A) = \pm 1$.  And since $\det$ is continuous (which means that the inverse image of an open set is open), we have $O(2)$ is the disjoint union of $O^+(2)$ and $O^-(2)$. Is this right? Would this be sufficient or would this only prove that there are at least two components? runtime error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Why are POSIX Find Parameters Different from Other Program styles? Why is a parameter in the POSIX find command added with a single hyphen for multi-character parameter names, while most other programs use single hyphen to indicate multiple single-character flags, and double-hyphens to indicate single parameter names with multiple characters?  This seems inconsistent, and I'm curious as to  A. why it's really not inconsistent, or  B. the history of that decision. Is there a saying or idiom for "trying to get the truth from someone by lying"? context   Mary-Ann got home late from school.  Asked where she had been, she said she had spent the afternoon at the library.  Her father thinks she is lying and says: "I know you haven’t been there because I was there myself".  He is lying because he thinks she will tell the truth if she realizes she has been caught. boyfriend – “your sister told me everything” (sister did nothing) -  girlfriend – “Oh, did she? I’m gonna kill her.    The rationale for doing this is to catch someone by surprise so he will admit having lied.  Soemtimes, however, the person isn’t lying and the real liar will have to reap the consequences of his reproachable action, having to admit he was just/it was just ...........(saying or idiom)..... Deleting files older than 30 days based on filename as date If I have a folder of files with their filenames as the date they were created:  2019_04_30.txt 2019_04_15.txt 2019_04_10.txt 2019_02_20.txt 2019_01_05.txt   How would I compare the files names against todays current date  $ date "+%Y_%m_%d" &gt;&gt;&gt; 2019_04_30   If the file names date is greater than 30 days then delete it. I would expect to end up with  2019_04_30.txt 2019_04_15.txt 2019_04_10.txt   I don't have to follow this naming convention, I could use a more suitable date format. How to handle users who don't select answers for their questions? What is a word to describe inefficient communication? Example 1 - When reviewing résumés I don't want someone to use 1.5 pages to describe one job.   Example 2 - When a person uses excessive description to answer a simple question. Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site) Where can I find the status of the released versions of Ubuntu? Is this a valid partial fraction decomposition? Write $\dfrac{4x+1}{x^2 - x - 2}$ using partial fractions. $$ \frac{4x+1}{x^2 - x - 2} = \frac{4x+1}{(x+1)(x+2)} = \frac{A}{x+1} + \frac{B}{x-2} = \frac{A(x-2)+B(x+1)}{(x+1)(x-2)}$$ $$4x+1 = A(x-2)+B(x+1)$$ $$x=2 \Rightarrow 4 \cdot2 + 1 = A(0) + B(3) \Rightarrow B = 3$$ $$x = -1 \Rightarrow 4(-1) +1 = A(-3)+ B(0) \Rightarrow A = 1$$ Thus, $$\frac{4x+1}{x^2-x-2} = \frac{1}{x+1} + \frac{3}{x-2}\textrm{.}$$  The substitution of $x$ ($x = 2, -1$) is a common method to find out the coefficient of the partial fractions. However, the equation on the third line is obtained by multiplying $(x+1)(x-2)$, which is assumed to be nonzero. Here we have a contradiction. Furthermore, the original function is not defined at $x=-1,2$. How can we substitute these value for $x$? So is this method valid and rigorous? How to modify it so that it is rigorous? Gambler's ruin and coin toss New users who have less than 125 reputation are subject to a , network-wide.  Today, however,  was able to post two questions within 8 minutes of each other, bypassing this rate limit: , and  today. (Both links are 10k-only.)  How was this user able to bypass the network-wide question asking rate limit? (I'd imagine one easy hack would be to exploit a race condition, but if that were the case, the two questions would be posted at exactly the same time, not 8 minutes later.)  Is it because the rate limit only considers the IP address, and not the account, so if the same account makes the post from a different IP address, it's allowed?  This is not a duplicate of , as back when that was asked, the rate limit worked quite differently, and wasn't even enabled on some sites; today, according to the very first link, it is now enabled network-wide. How to remove all white spaces just between brackets [] using Unix tools?