using strings in a Boolean statement in c
How do I properly compare strings in C?
Does a man contain all the genes needed to make a woman? This question is brought on by a Sci Fi novel I am thinking about writing. The plot device involves a colonist in charge of building a population on a new planet who loses his supply of embryos and so forth in the landing. With the artificial "wombs" intact, he populates the planet with clones of himself.  If he wanted to introduce enough variation (without making up new genes, only rearranging) in the population to allow them to be able to reproduce naturally without inbreeding problems, would he be able to? In particular, could he make a woman?  Alternately, could a woman (without a Y chromosome) do the the inverse?  At the risk of introducing bias into the answers, the plot as it stands assumes he is a male and he CAN'T do any of the above and he is restricted to clones. How should we understand the teletransportation thought experiment? Children’s books, one in space setting, the other in a jungle When I was little I remember getting these two books from the library.  Both books were paperback and flimsy.  The pages were wide.  Each book had full page illustrations with puzzles and mazes in them, but it was like you were immersed in this setting completely.  They were also like choose-your-own adventure books, but only in the way that you go through the book in a different order based on your results in the puzzles/games.    For example, there is a bridge to cross, or you can take this path.  If you choose to cross the bridge you go to page x.  On page x you have to pretend to cross the bridge but some planks are broken.  You can't skip more than a certain number of planks, but you also cannot "step" on a broken plank.  One book was in a jungle setting with rope bridges, alligators, quick sand, etc. The other was in space, with all kinds of aliens and weird stuff.  I have faint memories of these books but I REALLY want to track them down because I remember loving them. Attributive nouns vs. of-genitive I would be very grateful for some advice on how to decide whether to use an attributive noun or the "of genitive" (periphrastic genitive).  It seems to me that an attributive noun is generally preferable, except when it leads to ambiguity, often due to the combination of several modifiers with mixed dependent relationships.  Additionally, the of-genitive, when used stand-alone, seems to impart a more formal tone, a higher register.  Simple examples (preferred first, less-preferred second):  The department secretary vs. the secretary of the department.  But:  The excellent secretary of the department vs. the excellent department secretary.  Any additional guidelines would be most welcome. I'm in trouble with this homework.  Find the sum of the series $ 1 + \frac12 + \frac13 + \frac14 + \frac16 + \frac18 + \frac19 + \frac1{12} +\cdots$, where the terms are the inverse of the positive integers whose only prime factors are 2 and 3.  Hint: write the series as a product of two geometric series.  Ok, I found some patterns in these numbers, but I can't find the two series. How to manually mount a partition? There are many questions on automatically mounting or problems encountered during mounting that I've read here. But none on how to manually mount a partition. I have found a few mods for minecraft I like a lot. I know you cant use them all at the same time. I know that some go together well, so how do I find out what goes with what?  Is there a way to load some for now, and unload them later so that I can change them out? I got a patch device but I don't think it works that well.  I tried to play with this stuff on my own but I got things so messed up that I had to delete everything and start over. So what am I doing wrong?  KH Does the series $\sum_{n=1}^{\infty}|x|^\sqrt n$ converge pointwise? If it then what would be the sum? Does the series $\sum_{n=1}^{\infty}|x|^\sqrt n$ converge pointwise? Normality test with large data set I think I am dealing with this issue   I have large data set(10k data points) that slightly diverges from normal, and I get p-value of 0. I am interested in having perhaps a more crude test that tells me if data is extremely divergent from normal, versus looking somewhat normally distributed. I am currently trying Kolmogorov-Smirnoff, and in both cases I just get p-value of 0. Any alternatives?  I also looked at this:   So, taking all this into consideration, is there any kind of test I can perform that distinguishes between data that's roughly normal, and not normally distributed at all?  I am using scipy. Conservation law of energy and Big Bang? Did the law of conservation of energy apply to the earliest moments of the Big Bang? If so, what theoretical physics supports this?   I hear that Einstein's theory of relativity disputes the law of conservation of energy- so does that mean the law is false, or only some aspect of it? If a ring element is right-invertible, but not left-invertible, then it has infinitely many right-inverses. Let $A$ be a ring and $a\in A$ an element that has a right-inverse but does not have a left-inverse. Show that $a$ has infinitely many right-inverses. What would be an English equivalent for the Mexican Spanish word tocayo? In Mexican Spanish (not sure if other Spanish speaking countries use the word too) we call "tocayo" to those people that share the same name as us (but not necessarily the same last name i.e., Juan Gonzalez and Juan Carlos Castillo are tocayos).  I was wondering if an equivalent for this word exists at all in English or maybe even an expression? In unix/linux, any number of consecutive forwardslashes in a path is generally equivalent to a single forwardslash. eg.  $ cd /home/shum $ pwd /home/shum $ cd /home//shum $ pwd /home/shum $ cd /home///shum $ pwd /home/shum   Yet for some reason two forwardslashes at the beginning of an absolute path is treated specially. eg.  $ cd ////home $ pwd /home $ cd /// $ pwd / $ cd // $ pwd // $ cd home//shum $ pwd //home/shum   Any other number of consecutive forwardslashes anywhere else in a patch gets truncated, but two at the beginning will remain, even if you then navigate around the filesystem relative to it.  Why is this? Is there any difference between /... and //... ? Logo is slightly misaligned For any triangle with sides $a$, $b$, $c$, prove the inequality $$a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\ge 0 .$$   This is IMO 1983 problem 6.  I tried substituting $a=x+y$, $b=y+z$, $c=z+x$ but well it doesn't help in any sense except wasting 3 pages that lead to nothing (please don't mind the joke). Using $a=2R\sin A$, $b=2R\sin B$, $c=2R\sin C$ also didn't lead to anything for me. Could you give me a hint for finding the proper substitution? Let $X$ be a topological space. The diagonal of $X \times X$ is the subset $$D = \{(x,x)\in X\times X\mid x \in X\}.$$   Show that $X$ is Hausdorff if and only if $D$ is closed in $X \times X$.   First, I tried to show that $X \times X \setminus D$ is open using the fact that $X \times X$ is Hausdorff (because $X$ is Hausdorff), but I couldn't find an open set that contains a point outside $D$ and is disjoint to it... Is it possible to run two windows sessions from the same computer at the same time? A friend asked me if it is possible to have two screen/keyboards/mouse connected to one computer, and allowing two users to use the computer as if they where using two different computers (one sessions for each input/output)  Is it possible? Why are we still using CPUs instead of GPUs? It seems to me that these days lots of calculations are done on the GPU. Obviously graphics are done there, but using CUDA and the like, AI, hashing algorithms (think bitcoins) and others are also done on the GPU. Why can't we just get rid of the CPU and use the GPU on its own? What makes the GPU so much faster than the CPU? How to make an ImageView with rounded corners? Cannot empty trash I am trying to empty my trash, and it keeps giving me an error message that says,      .Trash can't be opened right now because it's being used by another task...     I have tried restarting my computer, running Finder > Secure Empty Trash everything yields the same result and error message from above.