I'm wanting to alter the commerce cart page form.  By using var_dump($form_id) or chrome inspect I can see the id is id="views-form-commerce-cart-form-orange-default-42". If I write my hook as :  function module_form_views_form_commerce_cart_form_orange_default_42_alter   I can see that I am altering the form. But this has been altered in my theme hence the extra bit on the id orange_default_42. If I do :  function testingstuffs_form_views_form_commerce_cart_form_alter   I cannot alter the form.     How do I hook into this form correctly / is there  a correct way to find form ids?
How do I get the form id of my form? I've just begun to make my modules and I'm at a standstill. I got this code from someone else and am trying to customize it:  function hook_form_alter(&amp;$form, &amp;$form_state, $form_id) {   if ($form_id == 'the form id for the node form') {     $form['#submit'][] = 'my_custom_submit_handler';   } }
Using past tense when referencing a still-true fact The biggest peeve is sometimes I vote up an answer mid-way through reading it, and the "don't forget to accept" message blocks the remaining text, so I scramble and triple-click it until it closes.  Anyways I frequently scan my question list and search for SO's reminders, ("Consider accepting an answer") so the "don't forget to accept" is wholly unnecessary to some, and there should be a way to disable it. Do you think so too? What are the mechanics by which Time Dilation and Length Contraction occur? What are the mechanics of time dilation and length contraction? Going beyond the mathematical equations involving light and the "speed limit of the universe", what is observed is merely a phenomenon and not a true explanation of why time dilates or length contracts.  It has been proven to work out, but do we know why?  Is it something that happens at a subatomic level? "SELECT *" why is it an antipattern On multiple questions here and on stack overflow i saw people saying in the comments and answers that select * from table is almost always an antipattern without any explaination why. Althrough I can sort of deduce why it is an antipattern. I may be looking over a detail that someone else with better understanding of the issue noticed.  So here is my question, why people say that select * is an antipattern. The rulebook states that carrying capacity is the strength score times 15 (lbs). Find familiar allows me to get a hawk, which has a strength score of 5. This results in a carrying capacity of 75 lbs. This is well within the range of weights for small people such as gnomes or halflings. Does this mean my familiar can carry them and fly away (given they do not struggle)? I want to know all sets of single-variate functions that fulfill the following qualities: $\forall_{f:R^2 \to R^2} \forall_{g \in CAF} \forall_{h \in CAF} \exists_{k\in CAF} k(x) = f(g(x),h(x))$ where CAF is the set I am wishing to find. I know that the set of constants and the set of piece wise constants each satisfy that equation. Do any others? Since the version of the word "that" might matter to the correct answer, I'll provide the actual title in question:  Title:  Existing Solutions that Didn't Work  If someone could explain the why of the answer, I would be appreciative.  EDIT:  It has been suggested that this is a duplicate, and that may be, in a sense.  However, the after reading the suggested prior question, I'm no closer to my answer.  I think it may have to do with my use of the word "that."  Perhaps it is incorrect?  Using these definitions of the word "that:" I'm having trouble figuring out which definition of that matches my title.  Am I even using it correctly?  Perhaps I should use which instead:  Possible Title:  Existing Solutions which Didn't Work  If my original usage is incorrect, and I should use which, then the answer is simple since which is always a pronoun or adjective, and those are both capitalized in a title.  However, I'm having difficulty understanding which part of speech that is in my original title. How to install Python 3.6? I'd like to install the latest Python, which is 3.6 at the time of this post. However, the repository is saying that Python 3.4.2 is the newest version.  I've tried:   $ sudo apt-get update $ sudo apt-get install python3  python3 is already the newest version.  $ python -V  Python 3.4.2   To upgrade to Python 3.6 on my Windows workstation, I simply downloaded an exe, clicked "next" a few times, and it's done. What's the proper and officially accepted procedure to install Python 3.6 on Debian Jessie? Having recently switched to Google Chrome, I was wondering what files and directories I should be including in my backups to make sure that bookmarks and history are included.  Along the same lines, is there a process to restore these settings on a new install?  This is on Windows Vista. How get the :hover css style of an anchor with jQuery? How can i get the :hover in css stylesheet on the fly with jquery?  stupid example:   a.foo {     color: red;     font-size: 11px; }  a.foo:hover {     color: blue;     font-size: 12px;  }   how to retrieve that color and font-size before that mouse will go over the anchor? What's the purpose of two capacitors in parallel? What's the purpose of the two capacitors in parallel on each side of the regulator in      I've seen similar setups in other similar circuits and can guess that it's related to one being polarized an one not, but I don't really understand what's going on there. I wonder which of the two is correct:        I have a red and a blue car.   I have a red and a blue cars.      or        Everyone has a left and a right arms.   Everyone has a left and a right arm.      My (non-native) inclination would be for option 1, as it sounds better.  On the other hand, in the following examples, the plural sounds better to me.    Everyone has left and right arms. I have old and new cars. (when I only have only one old car and one new car) The left and the right arms are...   But are they correct? Where does the phrase "on the lam" come from? According to the Online Etymological Dictionary, lam means:     "flight," as in on the lam, 1897, from a U.S. slang verb meaning "to run off" (1886), of uncertain origin, perhaps somehow from the first element of lambaste, which was used in British student slang for "beat" since 1590s.    Does anyone know of any other explanations? Four balls with different colors in a box, how many times do I need to pick to see all four colors? How should I apply brick to an interior wall? What immigration and customs checks are performed for passengers leaving the U.S.? Is there a printf converter to print in binary format? I can print with printf as a hex or octal number.  Is there a format tag to print as binary, or arbitrary base? I am running gcc. printf(&quot;%d %x %o\n&quot;, 10, 10, 10); //prints &quot;10 A 12\n&quot; print(&quot;%b\n&quot;, 10); // prints &quot;%b\n&quot; Consider the IVP $$y'(t)=f(y(t)), \ \ \ \ y(0)=a \in \mathbb{R}$$ $$f : \mathbb{R} \rightarrow \mathbb{R}$$ Which of the following is/are true $(A)$  There exists a continuous function $f : \mathbb{R} \rightarrow \mathbb{R}$ and $a \in \mathbb{R}$ such that the above problem does not have a solution in any nbd of $0$. $(B)$  The problem has unique solution for every $a \in \mathbb{R}$ when $f$ is Lipschitz continuous $(C)$ When $f$ is twice continuously differentiable the maximal interval of existence for the above IVP is $\mathbb{R}$ $(D)$ The maximum interval of existence  for the IVP is $\mathbb{R}$ when $f$ is bounded and continuously differentiable.  It is obvious to me that $A \ \&amp; \ B$ are false from traditional existance and uniqueness theorems (viz Picards Theorem). I am not sure about $C \ \&amp; \ D$ and this is really bugging me. Please could anyone shed light on this. PS: Multiple correct options are allowed. the numer of partial function between two sets in combinatoric way $A$ and $B$ two sets. $|A|=k, |B|=n.$ I need to prove in a combinatoric way that the number of partial function from $A$ to $B$ is $(n+1)^k.$ I thing the number is $Σ(n^i),$ for $i=0$ to $k.$ but I have no idea how to show equality, and how to prove it in a combinatoric way.  If someone can show me the way or guide me that will be great!  thanks for helpers. Arrays in Unix Bourne Shell I am trying to use arrays in Bourne shell (/bin/sh). I found that the way to initialize array elements is:  arr=(1 2 3)   But it is encountering an error:  syntax error at line 8: `arr=' unexpected   Now the post where I found this syntax says it is for bash, but I could not find any separate syntax for Bourne shell. Does the syntax stand the same for /bin/sh as well?