I am writing a module that allows users to put comment on each paragraph. So in my module I have added a new field to comment table called "paragraph_id" and I have also added a new field to comment form that say:   Which paragraph do you want to put comment on?   After each paragraph I have added a link saying:    Put comment on paragraph 1 (2,3, ...., the number changed based on the number of the paragraph.   in order to this, I have written the following in node.tpl.php:          for ($i=1;$i&lt;$number;$i++) {          print render($paragraphs[$i]);        ?&gt;        &lt;a href="#commenting"&gt;Put comment for Paragraph &lt;?php echo $i?&gt;&lt;br&gt;&lt;/a&gt;       &lt;?php   I want to do one the following options:  1) Eliminate the new field which asks for the number of the paragraph from comment form, and do something that when a user for example clicks on a link like:     Put comment on paragraph 1   , the number "1" automatically got save in comment table in "paragraph_id" field.  2) Or  keep the field that asks for paragraph number in comment form and when user clicks on a link like    Put Comment on Paragraph 1   while he is getting directed to the comment form, the value of that field (paragraph_number in comment form) sets to 1.  How can I do it?
In node.tpl.php, I have done some changes, like creating an array of paragraphs:      $paragraphs = explode("&lt;p&gt;",render($content));   So, I have a for loop for showing the paragraphs, like:  $number = count($paragraphs); if($page){   print render($paragraphs[0]);   for ($i=1;$i&lt;$number;$i++)       {          print render($paragraphs[$i]);        &lt;a href="#commenting"&gt;Put comment for Paragraph &lt;?php echo $i?&gt;&lt;br&gt;&lt;/a&gt; &lt;?php  } ?&gt;     &lt;a id="commenting"&gt;&lt;?php print render($content['comments']); ?&gt;&lt;/a&gt; &lt;?php }?&gt;   As you can see I want to create a hyperlink under each paragraph, so when user click on it, they can put comment on the paragraph, But right now, when they click on the hyperlink, it will  jump to the end of the page, which has the comment form.  If you check the CommentPress website, in the right column, you can see for example, it is said: 5 Comment on Paragraph 1, and when you click on it, it will show the comments and the comment form under that link, I want to have the same thing, I mean, when users click on the link under each paragraph, the comment form displays under that link instead of jumping to the end of the page.
How do I reset a lost administrative password? I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution? Impact of denied entry to Croatia on trying to enter a Schengen country with a valid visa Tikzcd conflict with babel and cd I have this problem: when I try to compile a diagram I get the following message:     I think the culprit is a tikzcd arrow in ell 1-1   But I have not problem when, in the tikzlibrary, I just use cd, matrix and backgrounds. The problem is when using babel and cd at the same time.  \documentclass{article} \usepackage{amsfonts,amssymb,amsmath,tikz} \usepackage[spanish]{babel} \usepackage[latin1]{inputenc} \usepackage[mathcal]{euscript}  \usetikzlibrary{babel,cd,matrix,backgrounds}  \begin{document} \begin{center}   \begin{tikzcd}     X\rar[mapsto]{T}&amp;Y   \end{tikzcd} \end{center}  \end{document} I am an Indian citizen. I am flying from Toronto to New Delhi. I have two transits: one at Lisbon airport and the second one at Madrid airport.  While the Consulate of Portugal has assured me that I do not need an airport transit visa during my 2 hours stay in Lisbon airport, I did not get a definitive answer from the consulate of Spain in Toronto.   At Madrid airport, I need to make a transfer from Terminal 2 to Terminal 1.   Does anyone here know whether I need to pass through immigration while making this transition in Madrid and if so, do I need a Schengen visa for that? I am trying to install ia32-libs on Ubuntu 12.04 LTS (x86).  I enabled all the repository sources but I'm receiving the error message below:  ~$ sudo apt-get install ia32-libs   Reading package lists... Done   Building dependency tree          Reading state information... Done   Package ia32-libs is not available, but is referred to by another package.   This may mean that the package is missing, has been obsoleted, or   is only available from another source    E: Package 'ia32-libs' has no installation candidate   output of sudo apt-cache policy ia32-libs    ia32-libs:     Installed: (none)     Candidate: (none)     Version table:     output of cat /etc/apt/sources.list  (removed similar hyperlinks)    deb http://archive.ubuntu.com/ubuntu/ precise restricted main multiverse universe   deb-src archive.ubuntu.com/ubuntu/ precise restricted main multiverse universe #Added by software-properties   deb security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse   deb-src security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse #Added by software-properties   deb archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse   deb-src archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse #Added by software-properties Why do I see different versions of node and nodejs I ran the following commands to install the stable version of node  sudo npm cache clean -f sudo npm install -g n sudo npm install -g n   Now, when I run node -v, I see v10.0.0, whereas nodejs -v returns v4.2.6. As far as I'm aware, node and nodejs are the same thing. Why am I seeing this? Thanks. I don't like having the middle mouse button paste, because I often end up with uncompilable code in Eclipse. How can I turn this off (in all programs)? I'm running Fedora. I'm on IBM AIX 7.1 where cURL and wget are not available. Also, I'm not in a position to install either.  Are there alternatives that would be available that would enable remote API calls using GET/POST? Prove that $n! + k$ is a composite number Image uploads from the editor strip preceding line breaks Recently, using the image uploader in the post editor has starting stripping preceding line breaks; placing the image directly after any previous text instead of at the current cursor position. This means that the inserted image is placed inline as part of the previous line of text rather than in a new paragraph as it did previously...  Before inserting the image (note the cursor position):        After inserting the image:        This also happens after the Markdown for a horizontal rule, which destroys the rule and gives us a bunch of hyphens followed by an image instead:        Seems the behaviour is a bit inconsistent... Sometimes I get the behaviour shown above and sometimes it leaves a single newline, I'm not sure when or why but single line breaks are ignored in Markdown so the rendered result is the same regardless.  Obviously it's useful to be able to have inline images, but I'm pretty certain most images aren't intended to (and shouldn't) be. Are there ways to determine if a wall is load bearing? Other than looking up blue prints, which many homeowners may not have, are there ways to determine if a wall is load bearing?  Methods I can think of might include:   Going up in the attic to check if ceiling trusses run perpendicular to the wall If the wall is an exterior wall   Any others? Weight Painting Won't Get Rid of Weird Protrusions I tried adding weight, removing weight and removing doubles. The mesh popping out won't go away. Any ideas?    Blend File: Where do I find the maximum node? A lot of people recommend to use the maximum node for glass setup, but I can't find that node. Nothing comes up when I search for it.  Where do I find it? Here is a question from my number theory class.  Prove  $$(p-k)!(k-1)!\equiv (-1)^k \text{ mod p} $$ Help please! Solution for A/C Condensate Drain Line that doesn't require emptying a bucket of water every day? Are "pushforward" and "pullback by zero section" of diffrentials isomorphic in elliptic curves? Let S be a scheme, $p:E\rightarrow S$ be an elliptic curve with zero section $e:S\rightarrow E$. My question is: Are $p_*(\Omega_{E/S}^1)$ and $e^*(\Omega_{E/S}^1)$ isomorphic? I think it's right because I saw both definitions in different notes and they seem to represent the same thing. Thank you! Is there Ubuntu's analogue of snapshot.debian.org? How do  form? Why are they called the "time-reversed" versions of a black hole? What's an "eternal" black hole? How come a white hole is only encountered if you remove the star from the space-time surrounding the black hole? Why is it that if you add any matter to the area that the white hole disappears? Any explanation greatly appreciated. What's the best way to use SOAP with Ruby? A client of mine has asked me to integrate a 3rd party API into their Rails app.  The only problem is that the API uses SOAP.  Ruby has basically dropped SOAP in favor of REST.  They provide a Java adapter that apparently works with the Java-Ruby bridge, but we'd like to keep it all in Ruby, if possible.  I looked into soap4r, but it seems to have a slightly bad reputation.  So what's the best way to integrate SOAP calls into a Rails app? Prove that $\sum_{k=1}^{n}k\binom{n}{k}=n\cdot2^{n-1}$ I want to prove the following: $$\sum_{k=1}^{n}k\binom{n}{k}=n\cdot2^{n-1}$$ what I did is(use binominal): $$\binom{n}{k}X^k\cdot 1^{n-k} = (X+1)^n$$ $$k\binom{n}{k}X^k\cdot 1^{n-k} = k(X+1)^k-1$$ now I replace $k$ by $n$ and insert $X=1$ , I will get now $n\cdot2^{n-1}$ what you are suggesting? there is another way to do that? thanks!