Trick monitor into receiving signal
How to make a VGA monitor display a white screen at all time?
Why are there so many places to put a binary in Linux? There are at least these five:   /bin/ /sbin/ /usr/bin/ /usr/local/bin/ /usr/local/sbin/   And on my office box, I do not have write permissions to some of these.  What type of binary goes into which of these bins? Cannot delete directory with Directory.Delete(path, true) I'm using .NET 3.5, trying to recursively delete a directory using:  Directory.Delete(myPath, true);   My understanding is that this should throw if files are in use or there is a permissions problem, but otherwise it should delete the directory and all of its contents.  However, I occasionally get this:  System.IO.IOException: The directory is not empty.     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)     at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)     at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)     ...   I'm not surprised that the method sometimes throws, but I'm surprised to get this particular message when recursive is true.  (I know the directory is not empty.)  Is there a reason I'd see this instead of AccessViolationException? How can I know what speed card to get for my camera? Cameras rarely specify exactly what speed cards you should be using in them - I just checked the manual for my DSLR, and all it says is to use an SDHD card, and a "high speed" card should be used for recording video.  On the other hand, there are a number of different rating systems for memory card speed (33x! 150x! Class 2! Class 10!) and price seems to increase with speed.  Is there any way to test the maximum write speed the camera is capable of?  Are the read/write speeds documented anywhere? Determine $\text{Aut}(S)$ where $S = \mathbb{Q}[x]/(x^2)$ Here's the problem: if $S = \mathbb{Q}[x]/(x^2)$, compute the group  of automorphisms $\mbox{Aut}(S)$.   First off, I have the solution and I know it's isomorphic to the multiplicative group $\mathbb{Q}\backslash\{0\}$, so I'm trying to understand it. It uses what is called the substitution principle and the fact that the restriction of any endomorphism $\phi: \mathbb{Q}[x]\to \mathbb{Q}[x]$ to $\mathbb{Q}$ is the identity. It says that these two facts implies that the endomorphisms of $\mathbb{Q}[x]$ are in 1-1 correspondence with $h \in \mathbb{Q}[x]$, where the endomorphism corresponding to $h$ is $\phi_h : \mathbb{Q}[x] \to \mathbb{Q}[x]$ given by $\phi_h(f) = f(h)$ for $f \in \mathbb{Q}[x]$. I guess I just don't understand how it applied the substitution principle? It's probably obvious, but for some reason I am not getting it.  An explanation would be greatly appreciated! Or if you have a different solution, that'd be cool too. Thanks!! So, I'm using a script I've made to convert videos to the webm format. A certain program calls the script, sending %f which is the full, absolute file name of the video, like this:  converter.sh %f   where %f has two possible extensions, .avi or .mpg.  # /bin/bash ffmpeg -i $1 `dirname $1``basename $1 avi`webm &amp;&amp; rm $1   It currently works perfectly when $1 contains a .avi file, because basename removes the .avi extension. When $1 ends with .mpg instead, the result is .mpgwebm.  How can I modify that script to be able to receive those two possible different formats?    Resuming: If $1 is /somedir/video.avi, the script should do:  ffmpeg -i /somedir/video.avi /somedir/video.webm   And if $1 is /somedir/video.mpg, the script should do:  ffmpeg -i /somedir/video.mpg /somedir/video.webm   I know this might be fool for some people, but I'm kind of new with the bash. I have this value    How to read that in English? translating from my native language, I would say     Ten base of nine.   but is that really correct? Quantum entanglement as practical method of superluminal communication Why does a bigger sensor lead to a shallower depth of field? For a command, if using - as an argument in place of a file name will mean STDIN or STDOUT.   But in this example, it creates a file with the name -:  echo hello &gt; -   How can I make - in this example mean STDOUT? Conversely, how can I make - mean a file named - in examples such as:  cat - I don't know how to prove this example. Let $y(t):\mathbb{R}^+\to \mathbb{R}$ be a nonincreasing function. Assume that there is a constant $A&gt;0$ such that \begin{equation} \int_{s}^{+\infty}y(t)dt \leq Ay(s), \quad 0\leq s&lt;+\infty \end{equation} Then $y(t)\leq y(0)e^{1-\frac{t}{A}}$, for all $t&gt;0$. I have enabled platform encryption at my DE and selected Case Subject, Description and Comments to be encrypted.  I have a created a sample case with these values:    And when I query from Developer Console it returns as follows:       How do I know, subject and description are encrypted at Rest? Is there any indicator which can confirm that this data is encrypted?   By the way, in case of File/attachment there is isEncrypted attribute is available which denotes the same as follows. Unable to upgrade pip How can I find all files that do NOT contain a text string? What concise command can I use to find all files that do NOT contain a text string?  I tried this (using -v to invert grep's parameters) with no luck:  find . -exec grep -v -l shared.php {} \;   Someone said this would work:  find . ! -exec grep -l shared.php {} \;   But it does not seem to work for me.   has this example:  find ./logs -size +1c  &gt; t._tmp while read filename do      grep -q "Process Complete" $filename      if [ $? -ne 0 ] ; then              echo $filename      fi done &lt; t._tmp rm -f t_tmp   But that's cumbersome and not at all concise.  ps: I know that grep -L * will do this, but how can I use the find command in combination with grep to excluded files is what I really want to know.  pss: Also I'm not sure how to have grep include subdirectories with the grep -L * syntax, but I still want to know how to use it with find :) Traditionally  at the end of a filename after uploading it via the image uploader. That doesn't seem to work any more. I've tested it on Q&amp;A as well as chat.        (Yes, I know big M doesn't work)  Could we have this fixed please? My Young's slits experiment doesn’t work. I mean I tried to see wave effect of light but I didn’t see any thing expect particles! I’ve sent you a pic of my laser and a short video of the experiment. Is there any problem you think? In Harry Potter and the Philosopher's Stone, Hermione is in the toilets when Harry and Ron lock in the troll. She lies and says that she went looking for the troll. Why? She could have just said that she was in there because she needed the toilet (she was allowed to be, it's a girls' bathroom) and Harry and Ron came to save her.   Is there a reason she lied? Evaluating indefinite integrals of the form $\int \frac{x^2 \,dx}{a x^5 + b}$ Evaluate the indefinite integral   $$\int \frac{x^2 \,dx}{a x^5 + b},$$   for real parameters $a, b \neq 0$.   No apparent substitutions simplify the expression (if the exponent of $x$ were an integral multiple of $3$, this would suggest the substitution $u = x^3$, $du = 3 x^2 \,dx$, but the exponent is not). Applying integration by parts with $u = a x^5 + b$, $dv = x^2 dx$ is straightforward, but it produces an integrand with a much larger degree in the denominator and so appears only to make the situation worse. Applying integration by parts instead with $dw = \frac{x^k dx}{a x^5 + b}$ results in integrating $\frac{x^k dx}{a x^5 + b}$, which except when $k \equiv 4 \pmod 5$ (which doesn't appear immediately fruitful), doesn't appear much easier than the given integral. Computing the cardinality of a combinatorial set Define two sets: $S_1$ and $S_2$ where we have that $a$ is an odd natural number and $b\in \mathbb{N}$, $S_1 = \Big\{ \frac{2}{a},\frac{2}{a-2},\frac{2}{a-4},...,\frac{2}{a-(a-1)},$ $\frac{2+4}{a+2},\frac{2+4}{a},\frac{2+4}{a-2},...,\frac{2+4}{a-(a-1)},$ $\frac{2+8}{a+4},...,\frac{2+8}{a-2},...,\frac{2+8}{a-(a-1)},$ $\vdots$ $\frac{2+4\lfloor\frac{b}{2}\rfloor}{a+\lfloor\frac{b}{2}\rfloor},\frac{2+4\lfloor\frac{b}{2}\rfloor}{a+\lfloor\frac{b}{2}\rfloor-2},...,\frac{2+4\lfloor\frac{b}{2}\rfloor}{a-(a-1)},$ $\frac{2+4(\lfloor\frac{b}{2}\rfloor+1)}{a+\lfloor\frac{b}{2}\rfloor},\frac{2+4(\lfloor\frac{b}{2}\rfloor+1)}{a+\lfloor\frac{b}{2}\rfloor-2},...,\frac{2+4(\lfloor\frac{b}{2}\rfloor+1)}{a-(a-1),}$ $\frac{2+4(\lfloor\frac{b}{2}\rfloor+2)}{a+\lfloor\frac{b}{2}\rfloor-2},\frac{2+4(\lfloor\frac{b}{2}\rfloor+2)}{a+\lfloor\frac{b}{2}\rfloor-4},...,\frac{2+4(\lfloor\frac{b}{2}\rfloor+2)}{a-(a-1)}$ $\vdots$ $\frac{2+4b}{a},\frac{2+4b}{a-2},...,\frac{2+4b}{a-(a-1)} \Big\}$ and $S_2 = \Big\{ \frac{2}{\lceil\frac{a}{2}\rceil}, \frac{2}{\lceil\frac{a}{2}\rceil-1},\frac{2}{\lceil\frac{a}{2}\rceil-2},...,\frac{2}{1}$ $\frac{2+2}{\lceil\frac{a}{2}\rceil+1},\frac{2+2}{\lceil\frac{a}{2}\rceil},\frac{2+2}{\lceil\frac{a}{2}\rceil-1},...,\frac{2+2}{1},$ $\vdots$ $\frac{2+2(\lfloor\frac{b}{2}\rfloor-1)}{\lceil\frac{a}{2}\rceil+(\lfloor\frac{b}{2}\rfloor-1)},\frac{2+2(\lfloor\frac{b}{2}\rfloor-1)}{\lceil\frac{a}{2}\rceil+(\lfloor\frac{b}{2}\rfloor-2)},...,\frac{2+2(\lfloor\frac{b}{2}\rfloor-1)}{1}$ $\frac{2+2\lfloor\frac{b}{2}\rfloor}{\lceil\frac{a}{2}\rceil+\lfloor\frac{b}{2}\rfloor},...,\frac{2+2\lfloor\frac{b}{2}\rfloor}{1},$ $\frac{2+2(\lfloor\frac{b}{2}\rfloor+1)}{\lceil\frac{a}{2}\rceil+\lfloor\frac{b}{2}\rfloor-1},...,\frac{2+2(\lfloor\frac{b}{2}\rfloor+1)}{1},$ $\frac{2+(\lfloor\frac{b}{2}\rfloor+2)}{\lceil\frac{a}{2}\rceil+\lfloor\frac{b}{2}\rfloor-2},...,\frac{2+(\lfloor\frac{b}{2}\rfloor+2)}{1}$ $\vdots$ $\frac{2+2b}{\lceil\frac{a}{2}\rceil-1},...,\frac{2+2b}{1} \Big\}$ The question is, how do I determine the cardinality of the intersection of these two sets i.e. how would I compute the value $|S_1 \cap S_2|$? Note that duplicates may appear within both sets such as $\frac{1}{2}=\frac{2}{4}$ etc. Therefore we must make sure that for each fraction $\frac{n}{m}$ we have $\text{gcd}(n,m)=1$. I am aware of the existence of , but not entirely sure if that identity would be useful here. I connected an external screen to my laptop, but my desktop didn't automagically extend to it, as it used to do about a year ago (older version of Ubuntu).  I went to the display settings. The screen was listed there (correct resolution, brand name, etc.). But when i put the switch on 'on' and click 'apply', i get this error:   Failed to apply configuration: %s  GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.SettingsDaemon.XRANDR_2' on object at path /org/gnome/SettingsDaemon/XRANDR   It's been like this for a few months now, but i'd really like to be able to use an external screen/beamer again.  Any ideas?  Thanks. Careers - Search Book JS error