How to find given file is a symbolic (soft) link or hard link
How do you determine using stat() whether a file is a symbolic link?
Did Dolores Umbridge Have Any Association with Voldemort (or Death Eaters) before His Return? I noticed that Dolores Umbridge was born during the first Wizarding War, so it's very likely she wasn't a Death Eater then (but she is pretty evil -- who knows?).  After that Voldemort was not around in a way that could affect many people, and most wouldn't know he was planning to rise again.  During that time, and up through Voldemort's return (in Goblet of Fire), did Umbridge have any connection with the Death Eaters or with Voldemort?  Was she doing what she did on her own, or was it because of an association with Voldemort or his allies? What does this $\asymp$ symbol mean? (subject: analytic number theory) I'm reading a  by Andrew Granville on analytic number theory.  On page 22 of the paper, there appears a strange looking symbol, undefined.  I've circled it in red in the screenshot below.    Since it's not defined in the paper, I'm assuming it must be standard notation.   From the context, I'm assuming it means something like "as compared to", or "with reference to", but that's just a guess.  Can anyone identify the symbol, even better explain what it means and/or provide a reference?  Is there a name to speak the symbol?  Thanks in advance. How to prove that the set of rational numbers are countable? Can any one tell me how to prove that the set of rational numbers are countable? Prove give me a prove?  Thanks. Get driving directions using Google Maps API v2 Excluding grep from process list where instance variables get initialized Basic photo editing on OS X I need to edit a photo on my Mac. I wish to take two photos and paste them together to create one that's larger, containing both. I couldn't figure out how to do this with iPhoto.   For Windows you have Paint.NET.    For Linux you have Kolourpaint.   What would be the equivalent on OS X?  Please note that it must be of quality both in code and in UI. I wouldn't want to install buggyware on my Mac. In classical statistics, there is a definition that a statistic $T$ of a set of data $y_1, \ldots, y_n$ is defined to be complete for a parameter $\theta$ it is impossible to form an unbiased estimator of $0$ from it nontrivially. That is, the only way to have $E h(T (y )) = 0$ for all $\theta$ is to have $h$ be $0$ almost surely.   Is there a intuition behind this? Is seems like a rather mechanical way of defining this, I am aware this has been asked before, but was wondering if there was a very easy to understand intuition that would make introductory students have an easier time digesting the material. How do I call one constructor from another in Java? I want to view the fonts that are installed on my system. Specifically, I want the client-side (fontconfig) fonts, not the old-style X11 bitmap fonts on the server (for which xfontsel does an adequate job). I guess what I'm looking for would be called a font viewer or font gallery. I want to see a bit of sample text for each font, ideally configurable sample text.  Being able to filter by font name, available character sets and other characteristics would be a plus.  A search of packages in Debian wheezy found gnome-font-viewer and kfontview, but they can only display a single font. I'd rather avoid depending on software that isn't widely available, including on the current Debian stable and Ubuntu LTS. Moving app to production mode in Symfony 2 What to do when someone other than the author changes a question to fix a substantive problem with the code See . Someone other than the OP changed the code to address a substantial problem with the it that was addressed as part of my answer. The problem was admittedly peripheral to the core question, but it was a primary differentiator between my answer and another answer submitted at the same time.  Any suggestions on what to do in this situation? Leave it be? Edit it back? Something else?  Update: I just found , from the "Related Links" section on the right, which is pretty relevant. I have to keep remembering to check there rather than just searching for answers. Keep processes running after SSH session disconnects Calculus function create Create an example of a function $f: \mathbb{R} \to \mathbb{R}$ such that $f(f(f(\mathbb{R}))) = f(f(\mathbb{R})) \neq f(\mathbb{R})$. I came across this problem when I was at a book store inside of a book made to prepare Berkeley graduates to pass a mandatory exam. I wanted to buy the book, but, alas, I didn't have the money (forty bucks is a lot of money when you don't have a job). So I took my phone out and started taking as many pictures as I could. Unfortunately, I didn't take any pictures of the solutions!  Enough backstory. Time for math. The problem is as follows:  Prove that $\cos^p( \theta) \le \cos(p \theta)$ if $0\le\theta\le\frac\pi2$ and $0\le p\le 1$.  I tried using the series expansion for cosine, but that seemed to be a dead end. Then I tried using Euler's theorem, but I got stuck. Then I got distracted and started to think about other cosine identities. For example, $$\cos\left(\frac\theta2\right)=\pm\sqrt{\frac{1+\cos(\theta)}{2}}.$$ Then what is $\cos(\frac\theta3)$ equal to? I tried to figure it out then I realized that I needed to find the root of a cubic polynomial. Then I realized that I'm better at staying focused than finding the roots of cubic polynomials.  Anyways, a proof would be nice here. I really appreciate any hints or answers. I apologize for my digressions! Is a general GRE score of X sufficient for entry to postgraduate degree Y? Question: I got general GRE scores of VR (verbal reasoning), QR (quantitative reasoning), and AW (analytical writing).  Is this a good score to apply for entry to postgraduate degree in field X?  How will this score look to the selection committee?    Note: This is an intentionally generic GRE question (with unspecified scores and field of study) which is intended as a template for a large number of questions asked on this forum regarding evaluating the scores on the general GRE test (e.g., , , , , , , , and ).  This question seeks answers that are applicable for an applicant for graduate-level programs in any field, based on any scores in the GRE general test.  The goal of this question is to provide a general reference to avoid the need for specific questions with particular scores/field of study. How to separate iMessages with shared Apple ID? My son and wife both have iPod Touches and I have an iPhone. We all used the same Apple ID and turned on iMessage. Both my son and wife were getting texts from my friends and my work on their iPods, I think because my cell phone number was linked to the Apple ID.  If I just turn off iMessage on my iPhone, will that solve the issue? Draw a bivariate normal distribution in TikZ For a small class I want to draw a bivariate normal distribution and show where the means from the two variables meet in the space. Has anyone done this in TikZ? Prove: If $\gcd(a,b,c)=1$ then there exists $z$ such that $\gcd(az+b,c) = 1$ Saleforce Too many future calls: 11