How to find the size of an int[]?
How do I find the length of an array?
This morning, I had eggs for breakfast, and I was looking at the pieces of broken shells and thought "What is the surface area of this egg?" The problem is that I have no real idea about how to find the surface area.    I have learned formulas for circles, and I know the equation for an ellipse; however, I don't know how to apply that.   The only idea I can think of is to put an egg on a sheet of paper and trace it, and then measure the outline drawn, and then try to find an equation for that ellipse and rotate that about the $x$-axis.  Now, my problem is how I can find the equation of the ellipse from the graph, and will my tracing method really be the edge of the egg?  Also, can I use the ? Will I have to use some techniques to solve the integral that are not covered in the ?  There has to be a better method for finding the surface area. Please, help me understand how to find the surface area of an egg; i.e., how to use my mathematical knowledge for something other than passing exams. Program to create EMF that conserves transparency What open source tools allow for the creation of EMFs that conserve transparency in ArcMap?  I tried VeryPDF and Any DWG to Image Converter, neither on actually gave me a vector file that provided transparency.  Adobe Illustrator is a bit pricey when all I want to do is convert CAD blocks to vector symbols to use as ArcMap markers.  Anyone know of a good software for this purpose? One of the pertinent questions about many body systems that causes me much wonder is why the solar system is so stable for billions of years. I came across the idea of "resonance" and albeit an useful concept, it hardly explains the long stability of the solar system. Normally an N body problem with inverse square mutual interaction is an example of a chaotic system. Is there any real progress about this stability issue? Why can current only flow in loops? In the following image:   Why can't current flow across the following wire? It's a simple question, but I've kind off always wondered.  Thanks! Subquery in SQL Server Compact Edition How to determine the current widget's parent container (sidebar widget id) Showing that $\lnot Q \lor (\lnot Q \land R) = \lnot Q$ without a truth table I've done a truth table after reducing it to this and it seems to be equal to $\neg Q$:  $$\lnot Q \lor (\lnot Q \land R) = \lnot Q$$  But when I try to show it without a truth table (with just transformations), I end up in a loop between that and:  $$\lnot Q \land (\lnot Q \lor R)$$  Is there a way to show this is true without using a truth table? What am I missing?!  Thanks in advance! What happens if you call erase() on a map element while iterating from begin to end? In the following code I loop through a map and test if an element needs to be erased.  Is it safe to erase the element and keep iterating or do I need to collect the keys in another container and do a second loop to call the erase()?  map&lt;string, SerialdMsg::SerialFunction_t&gt;::iterator pm_it; for (pm_it = port_map.begin(); pm_it != port_map.end(); pm_it++) {     if (pm_it-&gt;second == delete_this_id) {         port_map.erase(pm_it-&gt;first);     } }   UPDATE: Of course, I then  which I didn't think would be related but answers my question. How do I get Power Armor training in Fallout New Vegas? I've found some power armor, but I can't use it yet without training. I assumed that the Brotherhood of Steel would train me, if they like me enough.  I've completed the Brotherhood of Steel quest series for the overseer (the original one, I did not overthrow him), but I did not get any Power Armor training. What do I have to do to be able to wear Power Armor? What commands are there for horizontal spacing? I know that \: in LaTeX produces a space when rendered.  Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find. Gaming the system for Populist badges Why is $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X > k)$ true? I'm working through a problem regarding expected values in Markov chains, and at some point it says:     Recall from probability that if $X$ is a positive integer valued random variable, then $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X &gt; k)$.   I know that by definition $\mathbb{E}[X] = \sum_a a\mathbb{P}(X = a)$, but I can't see how the above equality follows from this, nor am I sure if this is how to approach the problem. In Minecraft, is there any way to make tools indestructible (without using mods)? I want to make some tools indestructible (for an adventure map). Is it possible to do this using enchantments (or a command of some kind?) Do not allow giving minus one for new user questions I always see Stack Overflow users giving -1 to new users' questions. This is not how you welcome a new user to the community. A new user does not know the rules yet.    I suggest that if one wants to give -1 to a new user, you prevent that and ask the downvoter to write a comment instead. new user = 2 first questions    I see the credit rating on my question is now at -9?  My question, is she not well formed or formatted? If you don't agree with the content of a question do you down-rate it? If an Ubuntu user asks a question that might not be reasonable, will you also down-rate it?  No. You post an answer that will present your thinking and correct him? I think that is part of the problem. When you first go to a community like Facebook, and you don't know the faces, you don't feel like any of those people are your relations. Newbies exist here as well, especially in a professional community.    First, welcome the new user in more appropriate way. And most importantly, force them to see/read how to post a good question. When installing an application, the application lists permissions that it needs to perform its  functions.    I am creating this list of the the system defined permissions and a description of what they mean. It is a community wiki so if new permissions are added in the future they can be added to this list. Getting hybrid graphics to work nvidia-prime GT650M I recently made the switch to Ubuntu. Everything on my laptop works fine except my hybrid graphics card. It is Intel graphics combined with Nvidia GeForce GT650M. I tried Bumblebee, but primusrun doesn't work (segmentation fault, core dumped) and optirun works with glxspheres64, but steam games look worse with optirun than with Intel graphics (e.g. Surgeon Simulator 2013 runs fine with Intel and hangs a lot with optirun)   I tried Nvidia Prime, but it gives me a black screen on startup after install, so I can't do anything and have to power off my PC with the power button. I also tried nvidia-prime 0.5 on Ubuntu 14.04, and then I get 'low-graphics mode' and I can't get to Unity. Under what circumstances will a passive HDMI-to-VGA adapter work? I have bought a no-brand, passive HDMI Male to VGA Female adapter, to link up a PC with a more dated monitor. It did not work.  After doing some reading, I have learned that buying such an adapter is often discouraged because in many cases it will not convert the signal from Digital to Analog, or the Motherboard/CPU on a specific computer might not be compatible with that particular adapter.   So my question is: seeing how there are so many of these passive adapters on the market, are there circumstances under which they actually do suffice to connect an HDMI output to a VGA input? Or are they generally just a rip-off?  Example of the kind of adapter I bought: Have we managed to make a perfect vacuum? Have we managed to make a device without any atom inside it on earth? I was reading about vacuum , and I found in the examples part  that even on the best man made vacuum devices, there are still millions of "molecules per $cm^3$". So my other question here is, what are these molecules and what is the mass of them? How to store pipe ( | ) in a variable? The idea would be to use it as... a pipe in a command. For instance: say there's some kind of long path which has to be retyped again and again, followed by a pipe and a second program, i.e.  "directory1/directory2/direcotry3/file.dat | less -I "   I'd like that part to be stored in a variable, so it could be used like this:  r="directory1/directory2/direcotry3 \| less -I -p " $ cat path1/path2/$r &lt;searchterm&gt;   Instead, I get  cat: invalid option -- I Try `cat --help' for more information.   ... meaning the pipe clearly didn't work. Expected value of a non-negative random variable