While passing pointer to a function in C, on the receiving end, two conventions are seen:  void foo(int *pointer)   and   void foo(int* pointer)   What's the difference between them?
Why do most C programmers name variables like this:  int *myVariable;   rather than like this:  int* myVariable;   Both are valid. It seems to me that the asterisk is a part of the type, not a part of the variable name. Can anyone explain this logic?
How can blackbody radition be explained by quantization? I don't understand why quantization makes a peak on the blackbody radiation curve (so there is no ) and the relationship between that peak and quantization concept.  When the blackbody is heated, it starts to glow. All atoms start to vibrate. Total heating energy must be divided and equally shared by all atoms of blackbody. Right?  But what happens next?  Do some atoms get much more energy to radiate at higher frequency and waste the energy? What happens at the atomic level, so quantization can explain it? What does classical physics claim, so it can not explain the radiation curve? How can i make a little line under the name of the part. My trial is   \part*{PART I} \addcontentsline{toc}{part}{{\huge \textbf{PART I}} \\ \hrule}  but this falis, and here is a screenshot including the part. Thanks in advance. How do constant aperture zoom lenses work? How to find answer to the sum of series $\sum_{n=1}^{\infty}\frac{n}{2^n} $ I have put his on wolfram and obtained answer as follows:  $\sum_{n=1}^{\infty}\frac{n}{2^n} = 2$  And the series is convergent too because $\lim_{n\to\infty} \frac {n}{2^n} = 0$  However I am wondering if there is a convenient way to solve this; I don't think you can represent it by a geometric progression either. So how do we have to do it on paper? How can you handle an IN sub-query with LINQ to SQL? How to reference generic classes and methods in xml documentation Progress bar with dynamic text & text color update I am using the  for GNOME Shell, similar to the old Maximus extension for GNOME 2 / Unity. When I maximise a window, the title and menu bars are hidden.  But I don't want the minimise, maximise or close buttons to appear in the Activity Bar. , so I have been able to remove the minimise and maximise buttons by disabling them in Tweak Tool.  How do I similarly disable/remove the close (X) button?  (I guess this is the opposite of ) House address is not listed on Google Maps When I search for my address on Google Maps it cannot be found which means I can't order takeaway etc.  Is there a way of adding my address to Google Maps or even add a street address?  I want the address to be publicly available so others can search it. I have a function with the same name, but with different signature in a base and derived classes. When I am trying to use the base class's function in another class that inherits from the derived, I receive an error. See the following code:  class A {     public:     void foo(string s){}; };  class B : public A {     public:     int foo(int i){}; };  class C : public B {     public:     void bar()     {         string s;         foo(s);     } };   I receive the following error from the gcc compiler:  In member function `void C::bar()': no matching function for call to `C::foo(std::string&amp;)' candidates are: int B::foo(int)   If I remove int foo(int i){}; from class B, or if I rename it from foo1, everything works fine.   What's the problem with this? 1-1 correspondence between [0,1] and [0,1) Is there a limit of $\cos(n!)$? I encountered a problem today to prove that $(X_n)$ with $X_n = \cos(n!)$ does not have a limit (when $n$ approaches infinity). I have no idea how to do it formally. Could someone help? The simpler the proof (by that I mean less complex theorems are used) the better. Thanks Access gnome-shell messaging tray using keyboard Is there a keyboard shortcut to access the gnome-shell messaging tray? E.g. For responding to incoming IM, etc. Prove: If $\gcd(a,b,c)=1$ then there exists $z$ such that $\gcd(az+b,c) = 1$ My friend and I have been wracking our heads with this one for the past 3 hours... We have 2 point masses, $m$ and $M$ in a perfect world separated by radius r.  Starting from rest, they both begin to accelerate towards each other. So we have the gravitational force between them as:  $$F_g ~=~ G\frac{Mm}{r^2}$$  How do we find out at what time they will collide?  What we're having trouble with is this function being a function of $r$, but I have suspected it as actually a function of $t$ due to the units of $G$ being $N(m/kg)^2$.  I've tried taking a number of integrals, which haven't really yielded anything useful.  Any guidance?  No, this is not an actual homework problem, we're just 2 math/physics/computer people who are very bored at work :) Raising a decimal to a power of decimal? The .net framework provides in the Math class a method for powering double. But by precision requirement I need to raise a decimal to a decimal power [ Pow(decimal a, decimal b) ]. Does the framework have such a function? Does anyone know of a library with this kind of function? How to send email from MySQL 5.1 How do I copyright my website? My website has been in development for a long time and cost a lot of money.  How do I go about securing an enforceable copyright on my website design and what is the proper way to post a copyright notice on the site so others know the work is copyrighted? The square roots of different primes are linearly independent over the field of rationals I need to find a way of proving that the square roots of a finite set    of different primes are linearly independent over the field of    rationals.    I've tried to solve the problem using elementary algebra  and also using the theory of field extensions, without success. To  prove linear independence of two primes is easy but then my problems  arise. I would be very thankful for an answer to this question. Failure to download extra data files - ttf-mscorefonts-installer This is an old problem that deserves a bugfix, but it's getting beyond a joke now and I can't seem to work around it.  I keep getting the dreaded failed To download extra data files error in relation to ttf-mscorefonts-installer:    Repeatedly asking it to try again doesn't help, additionally, repeatedly trying-  sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/* sudo apt-get --purge --reinstall install ttf-mscorefonts-installer   Isn't working either.  I just get at least one 404 error from one of the sourceforge links that stops it working-  Reading package lists... Done Building dependency tree        Reading state information... Done 0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 20 not to upgrade. Need to get 0 B/29.5 kB of archives. After this operation, 0 B of additional disk space will be used. Preconfiguring packages ... (Reading database ... 352049 files and directories currently installed.) Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ... mscorefonts-eula license has already been accepted Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) over (3.4+nmu1ubuntu2) ... Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ... Processing triggers for update-notifier-common (3.168.2) ... ttf-mscorefonts-installer: processing... ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB] Fetched 198 kB in 0s (339 kB/s)                                                 W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe [554 kB] Fetched 554 kB in 0s (575 kB/s)                                                 W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arial32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe Get:1 http://downloads.sourceforge.net/corefonts/arialb32.exe [168 kB] Fetched 168 kB in 0s (306 kB/s)                                                 W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arialb32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/comic32.exe Err:1 http://downloads.sourceforge.net/corefonts/comic32.exe   404  Not Found W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/comic32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) E: Failed to fetch https://netix.dl.sourceforge.net/project/corefonts/the fonts/final/comic32.exe  404  Not Found  E: Download Failed Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...   The specific point at which it fails to download changed - it seems to be a sourceforge reliability problem, but this has now been going on weeks and results in annoying popups as above all the time.  How do we get this fixed and/or how can I work around it for now.