Check Column Exist in a Table
How to check if specific column exists in an Access database table
Is there a way to tell Nautilus not to generate previews of PDF files? I tend to download lots of articles as PDFs, and I find that when I browse a directory of these Nautilus takes 1 minute to load the directory. I assume that's because it's generating previews of their front pages. That feature is useless to me, alas.  I'd like to tell it not to do that. In the 3rd and 4th editions of D&amp;D, there were explicit rules for determining if a character knew anything about a monster before them.  In 3rd edition, for example, use of the  skill with a general DC of 10 + the monster's HD allowed for determining one fact, plus one fact per 5 points over the check.  Looking at the Intelligence section of the 5e PHB, I don't see any similar notation.  Does 5e provide any guidance as to when a player could use their out-of-game knowledge about a monster, or when the player might be told things their character would probably know in-game? Why does Java's hashCode() in String use 31 as a multiplier? Per the Java documentation, the  for a String object is computed as:   s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]       using int arithmetic, where s[i] is the    ith character of the string, n is the length of    the string, and ^ indicates exponentiation.   Why is 31 used as a multiplier?  I understand that the multiplier should be a relatively large prime number. So why not 29, or 37, or even 97? Prolog count the number of times a predicate is true How to shop for a lens filter? What should I consider when shopping for a lens filter?    I see filters that range from $15 to $115 and more.  What are the differences between the $15 and the $115 filter?    I'm asking in the generic sense but if you need specifics, I'm looking to buy a UV filter and a polarizing filter for a Panasonic GF1 w/ 20mm pancake lens.  EDIT: I've read some of the other posts and some refer to multi-coating but doesn't explain what is this and why it matters.  What I've gathered from reading related posts is that price is generally the only indication of quality in the case of choosing a filter.  Is this right? I have created two files:  sample.txt and sample.txt  (the second file contains some hidden characters, e.g. a space). How can I remove the latest modified file? I'm using Linux. I would like to get the path to the execution directory of a Windows Forms application. (That is, the directory in which the executable is located.)  Does anyone know of a built-in method in .NET to do this? Why is asking a question on "best practice" a bad thing? How can I convert JPG into PDF easily? Let $(x_n)_{n\in \mathbb{N}}$ be a sequence of real numbers. A well known result is:     The sequence $(x_n)_{n\in \mathbb{N}}$ converges to $a\in \mathbb{R}$ if and only if every subsequence $(x_{n_k})_{k\in \mathbb{N}}$ converges to $a\in \mathbb{R}$.   Now, I'm working on an exercise which essentialy asks to prove the following:     The sequence $(x_n)_{n\in \mathbb{N}}$ converges to $a\in \mathbb{R}$ if and only if for every subsequence $(x_{n_k})_{k\in \mathbb{N}}$ there is a (sub)subsequence $(x_{n_{k_j}})_{j\in \mathbb{N}}$ which converges to $a$.   Now, one direction is trivial. If in fact $(x_n)_{n\in \mathbb{N}}$ converges to $a$, then by the result I've mentioned, every subsequence of $(x_{n})_{n\in \mathbb{N}}$ converges to $a$. Let then $(x_{n_k})_{k\in \mathbb{N}}$ be an arbitrary subsequence. In that case, we know that it is a subsequence of itself, and hence we've found a (sub)subsequence which converges to $a$.  The other way around seems quite complicated for me. The reason is as follows: I must assume that every subsequence $(x_{n_k})_{k\in \mathbb{N}}$ has a (sub)subsequence which converges to $a$ and the proof that the original one converges to $a$.  My problem is exactly that "a". If it had all (sub)subsequences converging to $a$, then by the result i've mentionted, the subsequence $(x_{n_k})_{k\in \mathbb{N}}$ would converge to $a$. In that case, we would have every subsequence converging to $a$ and the result would follow.  My idea to prove the claim was then:  First remember that a subsequence is the restriction of the original one $x: \mathbb{N}\to \mathbb{R}$ to an infinite subset $\mathbb{N}'\subset \mathbb{N}$. In that case a (sub)subsequence is the restriction of $\tilde{x} = x|\mathbb{N}'$ to an infinite subset $\mathbb{N}''\subset \mathbb{N}$. But since $\tilde{x}$ is the restriction of $x$ to $\mathbb{N}'$ and since $\mathbb{N}''\subset \mathbb{N}'$, the restriction of $\tilde{x}$ to $\mathbb{N}''$ is itself the restriction of $x$ to $\mathbb{N}''$.  In other words, every (sub)subsequence can be viewed as a subsequence of the original one. Considering this, by hypothesis every subsequence has a (sub)subsequence which converges to $a$. But by this argument, this means that we can replace every subsequence with a convergent one. And then we can use the result I stated.  Is my idea correct? Is this really the way to prove the claim? My only doubt is that I need every subsequence converging to $a$ to use the result. In this case I can't see how I can argue that this implies every subsequence converges to $a$.  How can I finish this proof? Everybody has to obey their own parents I am new here and I don't really know how to post, so please forgive my mistakes. My question is this: Is a sentence like "everybody has to obey their own parents" nowadays completely acceptable under a grammatical point of view or it is still preferable, in written form, to use "everybody has to obey his/her own parents"? Thank you very much and sorry if this has been asked before. How to limit charging to a user defined limit? My UleFone Armor 2 has a 4700mAh battery and I would like to limit the charging to 60% to reduce battery aging. The batteries in most of the phones are not user-replaceable and I am worried that a factory/service battery replacement might affect water resistance negatively.  How can I limit the charging to 60%? (But not limiting charging speed. I love fast charging.)  Lenovo ThinkPads have a built-in feature that does this, called “battery preservation mode”. Multiple two pin multi-color LEDs pattern - how does this work? Density function for RV The density function for a random variable X is given in terms of a constant $c$.  Find the value of $c$.  What is the corresponding distribution function?  Sketch both the density and the distribution functions. Finally, find the probabilities.  5.1 $f(x)=0$ for $x&lt;0$ and $f(x)=\frac{c}{(x+1)^4}$ for $0&gt;x$   $P(X&gt;4)$  $P(X&lt;2)$  $P(1\le\ X&lt;3)$   I get $c=3$ by taking the integral, and then I am a little confused as to why  $F(x)=1-\frac{1}{(x+1)^3}$  Is that because in solving for $c$, I ended up with $1=\frac{c}{3(x+1)^3}$, so substituting c in I get $1=\frac{1}{(x+1)^3}$?  And, then  $P(X&gt;4)=1-P(X\le\ 4)$ $=1-(1-{1}{(1+4)^3})$ $=1/125$  $P(X&lt;2)=1-{1}{(1+2)^3}$ $=26/27$  I guess I am a little confused about what $F(x)$ and $f(x)$ actually MEAN? And thus that leads to my confusion about what the differences between $&gt;$ and $&lt;$ and greater than or equal to are, etc etc in terms of the equations. The ones above I solved by comparing to the book but I still don't understand what they mean really.  So as a result, I don't really get how to solve $P(1\le\ X&lt;3)$.  5.2 $f(x)=ce^x$ for $x&lt;0$ and $f(x)=ce^{-x}$ for $0&gt;x$  5.3 $f(x)=0$ for $x&lt;-1$ or $x&gt;2$ and $f(x)=cx^2$ for $-1&lt;x&lt;2$ What is the difference between .pem, .csr, .key and .crt and other such file extensions? I'm new to SSL / TLS and I want to work with the OpenSSL toolkit.  I don't know what .pem and .csr stands for?  I do know that .key is the private key and .crt is the public key. Bash : compare two strings with space I am trying to write a bash script which run a command and compare the result with another string.   #!/bin/bash -x  STATUS=`/root/setup_ha show --password-file=/root/password | grep "&gt;HA State" | awk '{print $3}' |  cut -c 2-`  TEST=`echo $STATUS` if [[ "$TEST" == "ON Master" ]]; then echo CLUSTER CRITICAL else   echo CLUSTER OK MASTER fi   As the Original string is on two lines, I echo it in a new variable TEST. The New variable have the output of the command on one line.  Here is the Bash debug output :  ++ /root/setup_ha show --password-file=/root/password ++ grep '&gt;HA State' ++ awk '{print $3}' ++ cut -c 2- + STATUS='ON Master' ++ echo 'ON' Master + TEST='ON Master' + [[ ON Master == \O\N\ \M\a\s\t\e\r ]] + echo CLUSTER OK MASTER CLUSTER OK MASTER   I also tried the following test :  if [[ "$TEST" =~ "ON Master" ]]   The thing is bash is not able to compare the strings it is always false.  Any idea ?   EDIT :  Here is the output with the first answer :  + STATUS='ON Master' ++ echo 'ON' Master + TEST='ON Master' + '[' 'ON Master' == 'ON Master' ']' + echo CLUSTER OK MASTER CLUSTER OK MASTER   Still  not working ON seems weird on line 3, plus in my bash it takes green color ! It is known that a superconductor is a material with electrical resistance zero. My question is, it is exactly zero, a theoretical zero, or for practical realistic reasons it is effectively zero? Sphere rolling up a ramp In this question, I did energy conservation, with the states being the initial one and the one where it is at the top , and I got $$ .5 I w^2 + .5 mv^2 = mgh$$ However, in  the answer key they have done, $$ .5 mv^2 + .5 Iw^2 = .5 Iw^2 + mgh$$ Now why would the k.e be turned to p.e but not the rolling energy?? A challenge on the parabola Good Night ... Here I am editing the question and explaining the purpose of the same ... Mathematics course, and I love this science, I am very curious, and these days, studying a book of calculus found in (book from the library of the University) a sheet full of challenges, to share with a colleague, he gave me this challenge, which he also failed to respond ... I tried, I tried, I used the formulas of quadratic equation, and I've been trying since Friday (here in Brazil is Sunday at 22:33), and could not, and I ask your help, and please believe me, I struggled, tried to make substitutions, tried both, and I'm confused ... I must find the values of $ a, b $ and $ c $?  Consider a parabola whose roots, other are $x'$ and $x''$, and such that $x'=-x''$ where $x'&gt; 0$. Let $$A = (x', 0)$$ $$B = (x'', 0)$$ and $V$ the vertex of the parabola. Suppose that the equation of this parabola is $$y = ax^2 +bx+ c$$. Calculate the value of the discriminant $$\Delta=b^2-4ac$$, so that the triangle is equilateral AVB. Using recordtypes of the same name across multiple SObject types I have one recordtype named 'India' in both Account and Contact Objects.My requirement is whenever i create a new account record of type 'India' a new contact record of type 'India' should be created automatically.  i tried with the following code:  trigger AccRecTypeTrigger on Account (before insert) {     List&lt;RecordType&gt; recType = [select id,name from RecordType where sobjectType = 'Account' and isActive = true];    Map&lt;String,Id&gt; m = new Map&lt;String,Id&gt;();    for(RecordType r : recType){      m.put(r.name,r.id);    }     List&lt;Contact&gt; conlst = new List&lt;Contact&gt;();    for(Account a : trigger.new){        a.recordTypeId = m.get('India');        Contact con = new Contact();        con.accountId = a.id;        con.recordTypeId = a.recordTypeId;        con.recordType.name = a.recordType.name;         conlst.add(con);       }    insert conlst; }   But i am getting following error when i try to save     Apex trigger AccRecTypeTrigger caused an unexpected exception, contact   your administrator: AccRecTypeTrigger: execution of BeforeInsert   caused by: System.NullPointerException: Attempt to de-reference a null   object: Trigger.AccRecTypeTrigger: line 14, column 1   Please help me how to achieve this......