I want to know where the system will search for dynamic libraries. Let's take nxclient as an example. ldd /usr/NX/bin/nxclient gives me some output, for example   libpng12.so.0 =&gt; /usr/NX/lib/libpng12.so.0 (0x00007fcb4a16f000)   Now why did the system select /usr/NX/lib/libpng12.so.0 and not for example /usr/lib64/libpng12.so.0? Both exist. Where is this configured? /etc/ld.so.conf* does not contain /usr/NX and my $LD_LIBRARY_PATH is empty.
I understand how to define include shared objects at linking/compile time. However, I still wonder how do executables look for the shared object (*.so libraries) at execution time.  For instance, my app a.out calls functions defined in the lib.so library. After compiling, I move lib.so to a new directory in my $HOME.  How can I tell a.out to go look for it there?
So I was searching for one of my own websites on Google: http://www.botlibre.com  and to my surprise found some clones of my website, like:  http://83waystowasteyourtime.adidas.com  and:  http:// mediaiq.astral.comm  My question are:   Why are they creating clones of my website?  Some kind of SEO scheme or what? What gain could they be getting? How do they have a URL at adidas.com and astral.comm?  I assume it's not Adidas steeling my content. How do I shutdown these sites and stop people from stealing my content? (on Tomcat) Yes, I know the topic has been discussed before. I know that Meta already has threads that complain about how flagging doesn't work. I wanted to give a practical example.  Today, a  came in to the  chat and asked the :  Hey guys, as soon as I embed javascript, all my html elements are gone. Even if the script is empty!? ...Can anyone help out? The example is really minimalistic &lt;script type='text/javascript' src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js&quot;/&gt; &lt;script type='text/javascript' src=&quot;script.js&quot;/&gt; These lines make everything vanish. script.js is empty! I use google chrome and the file is on localhost  Some context:  The JS room encourages people to come and ask questions that are too small/badly put for main. The room encourages people to just ask questions rather than ask to ask. In fact we even have a bot that prompts users to just ask if they have a question whenever they join. The above user has a good Q to A ratio having 1K rep in the main site and over 80 answers. The user has no negative context in the chat. No previous offenses or anything like that.  That message got 7 flags  Had a mod (ThiefMaster) not been present and invalidated those flags in time that user would have probably been suspended from the chat. This is bad, it sends the wrong message and it is very rude. Now, some other rooms don't allow people to just come and ask questions right away so maybe users from other rooms validated the flag. Maybe users thought he was being rude? I don't know. I do know that we don't want this sort of negative atmosphere in the JS room (and I'm sure other useful rooms such as PHP don't want it either), we have enough on our hands trying to maintain a community while helping people joining and handing with vamps/trolls. Possible solutions:  Drop spam/offensive flags altogether. Make spam/offensive flags room specific for big enough (tm) rooms. Give room owners just the ability to invalidate spam/offensive flags. How do get my sitelinks to appear on Google search results? Identifying a short story about time travel and paradoxes How To Store Files In An EXE Alright, so I'm working on programming my own installer in C#, and what I'd like to do is something along the lines of put the files in the .exe, so I can do  File.Copy(file, filedir);  Or, if this isn't possible, is there another way of doing what I am attempting to do? I get these weird characters when I try to print out a vector element! How to view CD key for a Steam game? I have purchased a game on Steam and can not find out the details of the file or purchase. How does one find their CD Key from a game purchased in Steam? I have just bought a new computer and I have everything migrated over except for my Steam games.  I looked in Program Files/Steam/ and I found a folder full of the games I have downloaded, but I do not know if it is safe to just copy these folders from one computer to another (seeing as a lot of other applications will not work if you do this), or is there another recommended way?  I don't really feel like re-downloading all my games. I don't have the time nor bandwidth to download 20GB over a 1.5mbps connection.  Is it possible to contact Valve and get a disk with the games on it? A inequality proposed at Zhautykov Olympiad 2008 An inequality proposed at Zhautykov Olympiad 2008.     Let be $a,b,c &gt;0$ with $abc=1$. Prove that:    $$\sum_{\mathrm{cyc}}{\frac{1}{(a+b)b}} \geq \frac{3}{2}.$$   Set $a=\frac{x}{y}$, $b=\frac{y}{z}$, $c=\frac{z}{x}$.   Our inequality becomes: $$\sum_{\mathrm{cyc}}{\frac{z^2}{zx+y^2}} \geq \frac{3}{2}.$$  Now we use that: $z^2+x^2 \geq 2zx.$ $$\sum_{\mathrm{cyc}}{\frac{z^2}{zx+y^2}} \geq \sum_{\mathrm{cyc}}{\frac{2z^2}{z^2+x^2+2y^2}} \geq \frac{3}{2}.$$  Now applying Cauchy-Schwarz we obtain the desired result.  What I wrote can be found on this link: . But now, I don't know how to apply Cauchy-Schwarz.   Thanks:) Which gears combinations shouldn't be used? Is there any general rule or recommendation to avoid usage of certain gears combinations (for 2xN and 3xN gears systems)? Do they differ for mtb and road bikes?  I know that it's recommended not to use biggest front chainring with big chainrings on cassette (and opposite) because parts will wear faster and I will loose a bit of pedaling efficiency, but I'm not sure, if I should avoid 2 or 3, or even more biggest (smallest in opposite case) chainrings on cassette. Can the present perfect continuous construct be used in passive voice? Can the passive voice be used for sentences in the present perfect continuous?  I understand the present perfect and its passive voice (have/has built, has been built). However, the passive voice of present perfect continuous is unclear:   Active: They have been building this house for years. Passive: ???   I have seen suggestions of “This house has been being built for years,” but it sounds awkward and I don't recall anywhere else where two be verbs follow one another. Is this the right form to use? Can't append  element Any idea why the piece of code below does not add the script element to the DOM?  var code = "&lt;script&gt;&lt;/script&gt;"; $("#someElement").append(code); Why do we need sigma-algebras to define probability spaces? We have a random experiment with different outcomes forming the sample space $\Omega,$ on which we look with interest at certain patterns, called events $\mathscr{F}.$ Sigma-algebras (or sigma-fields) are made up of events to which a probability measure $\mathbb{P}$ can be assigned. Certain properties are fulfilled, including the inclusion of the null set $\varnothing$ and the entire sample space, and an algebra that describes unions and intersections with Venn diagrams.  Probability is defined as a function between the $\sigma$-algebra and the interval $[0,1]$.  Altogether, the triple $(\Omega, \mathscr{F}, \mathbb{P})$ forms a probability space.  Could someone explain in plain English why the probability edifice would collapse if we didn't have a $\sigma$-algebra? They are just wedged in the middle with that impossibly calligraphic "F". I trust they are necessary; I see that an event is different from an outcome, but what would go awry without a $\sigma$-algebras?     The question is: In what type of probability problems the definition of a probability space including a $\sigma$-algebra becomes a necessity?       provides a plain English accessible explanation. The idea is a spinning pointer rotating counterclockwise on a circle of unit perimeter:       We begin by constructing a spinner, which consists of a circle of unit   circumference and a pointer as shown in [the] Figure. We pick a point   on the circle and label it $0$, and then label every other point on the   circle with the distance, say $x$, from $0$ to that point, measured   counterclockwise. The  experiment  consists  of spinning the pointer and    recording the label of the point at the tip of the pointer. We let the random   variable $X$ denote the value of this outcome.  The sample space is   clearly the interval $[0,1)$.  We would like to construct a   probability model in which each outcome is equally likely to occur. If   we proceed as we did [...] for experiments with a finite number of   possible outcomes,  then we must assign the probability $0$ to each   outcome,  since otherwise,  the  sum  of  the  probabilities,  over    all  of  the  possible  outcomes,  would not equal 1.  (In fact,   summing an uncountable number of real numbers is a tricky business;    in  particular,  in  order  for  such  a  sum  to  have  any  meaning,   at  most countably many of the summands can be different than $0$.)    However, if all of the assigned probabilities are $0$, then the sum is   $0$, not $1$, as it should be.   So if we assigned to each point any probability, and given that there is an (uncountably) infinity number of points, their sum would add up to $&gt; 1$. How to push a copy of an object into array in PHP Disabling sound output devices (e.g. Internal Speakers) in OS X Since my Cinema Display is both connected through mDP and USB, I can (stupidly enough) both choose “LED Cinema Display” or “Display Audio”.  Also, I never use the internal speakers since they sound extremely tinny.    How do I remove/delete/disable unwanted audio devices? It must be possible somehow! Relationship between Partial Harmonic Sum and Logarithm. Import curly brackets from MathDesign (Utopia) I am using Fourier maths fonts with Utopia text (\usepackage{fourier}) for a book project, but I'm not satisfied with the curly brackets \{ and \}. They are too slim, and barely distinguishable from other brackets in font size 10. Utopia with MathDesign (\usepackage[utopia]{mathdesign}) seems to have better-looking curly brackets.  Is there a way of importing just the curly brackets from MathDesign to my document, sticking to Fourier otherwise. And are the curly brackets defined by the maths fonts even if they are used outside math mode, since with MathDesign you get better-looking brackets in normal text, too.    Following egreg's answer I added the suggested lines, but the sizes of the bigger brackets are incorrect. When I load type $\{\bigl\{\Bigl\{\biggl\{\Biggl\{$, this is what I get:    After a bit of research, I've found that the cause seems to be the amsmath package. I'm relying on amsmath quite heavily, so it would be nice to find a fix. Unfortunately, I have almost no experience in working with fonts in LaTeX myself.  Below is a working example:  \documentclass{article}  \usepackage{amsmath} \usepackage{fourier}  \DeclareSymbolFont{mdsymbols}     {OMS}{mdput}{m}{n} \DeclareSymbolFont{mdlargesymbols}{OMX}{mdput}{m}{n} \DeclareMathDelimiter{\lbrace}    {\mathopen}{mdsymbols}{"66}{mdlargesymbols}{"08} \DeclareMathDelimiter{\rbrace}    {\mathclose}{mdsymbols}{"67}{mdlargesymbols}{"09} \renewcommand{\textbraceleft}{%   {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"66}} \renewcommand{\textbraceright}{%   {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"67}}  \begin{document} $\{\bigl\{\Bigl\{\biggl\{\Biggl\{$ \end{document} How to hide terminal output when executing a command? Why are place names in some old books a capital letter followed by dashes, and what is this phenomenon called? This is something very odd I have noticed in some older books, most recently in "Crime and Punishment" by Dostoyevsky.  Place names, when not specifically essential or well-known, are made up of one letter followed by a line of underscores (i.e. "X_____").  I think I recall reading something similar in another older work, possibly by Jane Austin?  Apologies if this is a duplicate; I've searched quite extensively and can't seem to figure it out.  I don't know a name for this, so can't search easily for it. Save entire process for continuation after reboot I developed an algorithm for a fairly hard problem in mathematics which is likely to need several months to finish. As I have limited resources only, I started this on my Ubuntu 12.04 (x86) laptop. Now I want to install some updates and actually restart the laptop (the "please reboot" message is just annoying).  Is there a way to save an entire process including its allocated memory for continuation beyond a reboot?  Here is some information about the process you might need. Please feel free to ask for further information if needed.   I called the process in a terminal with the command "./binary &gt; ./somefile &amp;" or "time ./binary > ./somefile &amp;", I cannot really remember. It's printing some debug information to std::cerr (not very often). It's currently using roughly 600.0 kiB and even though this will increase, it's unlikely to increase rapidly. the process runs with normal priority the kernel is 3.2.0-26-generic-pae, the cpu is an AMD, the operating system is Ubuntu 12.04 x86. it runs since 9 days and 14 hours (so too long to cancel it ;-) )