Is there a way, I can use of strlen() to find the length of the arrays, instead of specifying in the loop. First Code: Working With x &lt; 4 Which is the size of the array of temps[4].  #include &lt;stdio.h&gt; #include &lt;string.h&gt;  int main(){     float temps[4] = {72.5, 73.4, 74.7, 75.2};     int x;     printf("Local Temperatures\n");     for(x = 1; x &lt; 4; x++){         printf("Station %d: %.1f\n",x,temps[x]);     } }   My Second Code, Not Working, But Looking At What, I Am Trying To achieve with strlen() to find the size of the array.:  #include &lt;stdio.h&gt; #include &lt;string.h&gt;  int main(){     float temps[4] = {72.5, 73.4, 74.7, 75.2};     int x;     float size;     size = temps;     printf("Local Temperatures\n");     for(x = 1; x &lt; strlen(size); x++){         printf("Station %d: %.1f\n",x,size[x]);     } }
How do I determine the size of my array in C?   That is, the number of elements the array can hold?
How do I instantiate a string array object into a Spring.Net container? I am using XeLaTeX and memoir to write a longer text with several parts, chapters and sections. When printing the \tableofcontents I get a spacing problem with 2-figure numbers almost overlapping the relevant section name, as per enclosed picture.  I am aware that the memoir manual has a section dedicated to this theme, but the most part of it is doubledutch to me. Is there any easy way to avoid this problem? I have a Python  object. What is the best way to subtract one day? Creating "Inner Buffer" using ArcGIS for Desktop? I am currently searching for how to create an "Inner Buffer" in ArcGIS for Desktop?  I have a lot of polygons (houses) in one feature class, and one big polygon (in another feature class).   I want so select all houses contained in that one big polygon within a distance to the outer border (e.g. 1000 meters).  Select Layer By Location could be one possibility to solve this but I can't figure out how. Can decimal numbers be considered "even" or "odd"? Python — How can I find the square matrix of a lower triangular numpy matrix? (with a symmetrical upper triangle) Can you add a separate discussion site? Sometimes you just want to let out some steam, and troll about some technology or software. You are not looking for any answers, but for users with similar experiences and interesting stories. So why not create a separate discussion site (trolling.stackoverflow.com?), where you could ask questions like "why do you hate technology X" or "What are the stupidest bugs you encountered in X"? Fubini's theorem for series with dependent indices As a part of a proposition about power series that I am trying to prove I have to show that  $$ \sum_{m=0}^{\infty} \left(\sum_{n=m}^{\infty} \frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n\right)(x-b)^m = \sum_{n=0}^{\infty}c_n(x-a)^n$$  Proof: What I have done so far is to show that  $$\sum_{m=0}^{n} \frac{n!}{m!(n-m)!}(b-a)^{n-m}(x-b)^m = (x-a)^n $$  So the next idea is to use Fubini's rearrangement theorem for infinite series (I have also shown that the series are absolutely convergent). However, the theorem does not accomodate for dependent indices. Intuitively (using triangular summation), I think that the proper way to interchange series would be \begin{equation*} %\begin{array}{ll} \sum_{m=0}^{\infty} \sum_{n=m}^{\infty} \frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n(x-b)^m = \sum_{n=0}^{\infty} \sum_{m=0}^{n}\frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n(x-b)^m %\end{array} \end{equation*} and thus  $$=\sum_{n=0}^{\infty} c_n(x-a)^n$$ However, I do not know how to perform this step rigorously in case of infinite summation. International TLD's vs. duplicate content I currently work at a pretty big website that has visitors from around the globe. My job is to help out on the SEO, and one thing we've been discussing lately is the use of international TLD's. The ones we use range between:   (partly) translated websites like .es and .de that serve most of the content in the country's language non-translated (english) websites for non-english languages (due to a lack of translations) like .ro and .cz english websites for english speaking countries with localized TLD's (.co.nz, .co.uk)   On one hand I really have the feeling this is causing a lot of duplicate content, especially for the last two categories of TLD's.   On the other hand though it seems a lot like country-specific TLD's tend to score a lot better in that country's Google. Would it be advisable to keep on using these domains, or should we canonicalize them all to the .com version? I am currently working through the problems in , with the goal of hopefully understanding how magnets work. At the moment I am a little stuck on one of the early problems in the first chapter. And I would like a Hint about how to proceed. The problem is to solve the time derivative of the expectation value of momentum of a particle. ie: $$ \frac{d\left&lt;p\right&gt;}{dt}. $$ My working so far Just prior to that question the text gives an expression for momentum, $$\int\limits_{-\infty}^{+\infty}{\Psi^*\left[-i\hbar \frac{\partial}{\partial x}\right]\Psi}dx, $$ (Where $\Psi$ is a function satisfying Schrödinger's equation, $i$ is the square root of negative 1, and $\hbar$ is Planck's constant divided by $2\pi$.) So my initial approach was to try and differentiate this with respect to $t$. $$ \frac{d}{dt}\int\limits_{-\infty}^{+\infty}{\Psi^*\left[-i\hbar \frac{\partial}{\partial x}\right]\Psi}dx. $$ However I didn't know how to do that, so I asked around in the maths chatroom, and got a lot of help. Specifically  from @RobJohn: $$ \begin{align} \int vv'\,\mathrm{d}x &amp;=vv-\int vv'\,\mathrm{d}x\\ &amp;=\frac12vv+C \end{align} $$ So I suppose it would follow that, $$ \begin{align} \int\limits_{-\infty}^{+\infty}{         \left(             \Psi^*                 \left[                     \frac{\partial}{\partial x}                 \right]             \Psi         \right)         }\,\mathrm{d}x &amp;=  \left[\Psi^* \cdot \Psi\right]_{-\infty}^{+\infty} - \int\limits_{-\infty}^{+\infty} {\Psi\frac{\partial \Psi^*}{\partial x} }\,\mathrm{d}x\\ &amp;= \frac{1}{2}|\Psi|^2 \Big|_{-\infty}^{+\infty}, \end{align} $$ And then, $$ \begin{align} &amp;\frac{d}{dt}\int\limits_{-\infty}^{+\infty}{\Psi^*\left[-i\hbar \frac{\partial}{\partial x}\right]\Psi}dx \\&amp;=-i\hbar \frac{d}{dt}\left( \frac{1}{2}|\Psi|^2 \Big|_{-\infty}^{+\infty} \right). \end{align} $$ But this feels wrong. I'm not sure exactly why. (Maybe it's just because it is the limits of my maths)  For reference, regarding what I understand, my maths is pretty low-level, I took a course in undergrad calculus over 10 years ago and only just passed that at the time, and my physics knowledge is not much further than that of an enthusiastic lay person. Calculate the limit including binomial coefficients $\lim\limits_{n\to\infty}{\sum\limits_{k=n}^{5n}{k-1 \choose n-1}(\frac{1}{5})^{n}(\frac{4}{5})^{k-n}}$  It's clear that we can simplify the limit a little bit, after which we get:  $\lim\limits_{n\to\infty}{(\frac{1}{4})^{n}\sum\limits_{k=n}^{5n}{k-1 \choose n-1}(\frac{4}{5})^{k}}$  I could further simplify the expression, but I feel like there's a more elegant solution.   Give me a hint, please I have two questions for you guys. I really appreciate your help.  1.- Is there a way to rename an Availability Group?  2.- Is there a way to get the T-SQL statements in order to re create a Availability Group in case that I need to drop it and create it again?  If there's information that you want me to share, please let me know and I will provide it. Handle .bib in subfiles I have a problem very similar to the question being asked in  . My .bib is references in main.tex. When compiling main, everything works like a charm. Working on the subfiles, I have two issues though (which are most likely related):   I can't access the bib with auto-completion When compiling the subfile, it doesn't insert the citations.   I tried including  \bibliographystyle{plainnat} \bibliography{mybib}   in the subfiles, which also worked smoothly. Obviously, the bibs are included in every chapter of the document when compiling main.tex, then. I tried setting a global boolean in main.tex:  \newboolean{printBibInSubfiles} \setboolean{printBibInSubfiles}{false}    and in the subfiles:  \ifthenelse{\boolean{printBibInSubfiles}}    {}    {\bibliographystyle{plainnat}     \bibliography{../betterbib.bib}}    For some reason, then setting the boolean to false, the "bibliography"-header was printed in the subfiles as well as for the main file, but there was no output of citations under any of the "bibliography"-headers. Furthermore, compiling only the subfiles didn't work correctly.  My document structure is the following:  main.tex:  \begin[document] ... \subfile{sub/dataprocessing} ... \bibliographystyle{plainnat} \bibliography{mybib} \end{document}   the subfiles:  \documentclass[../main.tex]{subfiles} \begin{document} ... \cite{Random2014} ... \end{document}   After all this explanation: the only thing I want is to access the .bib from the subfiles without having to manually uncommenting something when compiling the main file. Any takers?  PS: Obviously, I also tried the solution provided in "" but couldn't get it to work. I don't know whether that would solve my problem anyway, since I don't have the \printbibliography-issue of the thread opener. Some days I'm working with extremely large Excel files.  They have too many sheets that can't be shown in one sheet tab. (see image)      So, I'm wondering whether or not we can show Excel sheet on more than 1 row. Many tries with Google don't help much.    Many tries but I still can't make Excel show the sheet bar the way I want (≥ 2 rows), so I'm working with some VBA Scripts kopischke suggested.    FYI, right click on |&lt; &lt;&lt; &gt;&gt; &gt;| button on the bottom-right corner show you a list of up to 15 sheets.  For more, click on View more in the list appeared. How to import a .sid Raster File in QGIS 2.6.0 On Linux Mint 17 I need some help importing MrSID Raster files in QGIS. I am running 2.6.0 on Linux Mint 17. After an internet search I have found a couple of resources that are perhaps outdated. The most promising is found here :    However when I attempted to follow the instructions my terminal and I could not find the file "libgdal-mrsid-src" on either the stable or unstable Ubuntu GIS repos. Has anyone had success or could lead me in the right direction? Does $\int_{0}^{\infty}\frac{dx}{1+(x\sin5x)^2}$ converge? I would like your help with deciding whether the following integral converges or not:  $$\int_{0}^{\infty}\frac{dx}{1+(x\sin5x)^2}.$$  I tried to compare it to other functions and to change the variables, but it didn't work for me.  Thanks a lot! I have multiple polygons, all located offshore around the UK. I am trying to calculate the areas of these polygons in square kilometres, without splitting them by UTM zone.  Is it possible to do this accurately? I have been using World Mercator, but there are big distortions at this scale. If the polygons were limited to the east coast, say, I would use UTM31N. However, as they are all over the UK waters, I am unsure what to use.  Is there a coordinate system that covers this area? British National Grid does not extend far enough out to sea to be of use. Is it purely a 'gotta-have-them-all' mindset, or do they actually serve some purpose?  I notice that you are able to sell them on a community market. For a test I listed one, and someone bought it for 50p. Not exactly a huge amount, but I don't understand why someone would spend real money on them.  Am I missing something?   Are they redeemable for games or money off vouchers or something 'tangible' that I'm missing? Wrong posts number on Review section Lately it's happening to me this:  After completing one or more "First Posts" reviews, I go back to the Review Section main page:   And the post counter shows that there are still posts to review. I click the link to review them, but there is nothing.  Refreshing the page doesn't solve the issue: it shows the wrong number again. Splitting words into specific fragments