I have created a 2 custome content type in drupal 7 one is tourname and another one is location. Once I added a tour name in tour content type like tour1,tour2 and so on. In location content type I added location1, location 2 and so on for each tour name. Now I created third content type name it as details in that I need two drop down one is list of tour I have added and another one is list of location I have inserted. Whenever i changed the tour drop down value, the second drop down value will get automatically updated  based on the tour name.  Thanks in advance.
I'm using Drupal seven. I want to make the options in a select list be dependent on the value chosen in another select list in a form.  I'm sure this has been asked many times before, but I am having difficulty finding a clear answer for how to do this.  The form is for users to enter a work history.  They need to select a squadron which is a node reference to the squadron field type, and this is in a drop-down list.  However, the squadron, is dependent upon a city drop-down list.  Users first need to select a city which will then filter the options for the squadron.  In the squadron content type, I created a taxonomy for city which gets tagged to the squadron.  I would be very grateful for any pointers as to the best way (simplest?) to go about this, or for any useful resources online which would help.
Process management and high technology weapon. Novel name and author? Adding meta values to permalink I have publications and I want to simply add year and month to the permalink. Currently the year and month of publication is added to the post as a meta value. I've set up publications as a custom post type and created taxonomy for the specific title of the publication. I would like the permalink to be:  publications/publication-title/year-published/month-published/name-of-post  I simply want to add the meta values for the publication year and month to the permalink.   So far, I've been able to pull the year and month published and add it to the url but unfortunately I keep getting a 404 when I try to access posts. I think I'm taking a wrong turn with one of my steps below ...  Any help would be appreciated.  These are the steps I did in the following order:   Since I was adding publication-year and publication-month to the url, I was reading that I had to make WordPress aware of these custom querystring variables. I added the following functions to register these custom variables:  function pubyear_register_rewrite_tag() {       add_rewrite_tag( '%pubyear%', '([0-9]{4})');   }    add_action( 'init', 'pubyear_register_rewrite_tag');  function pubmonth_register_rewrite_tag() {      add_rewrite_tag( '%pubmonth%', '([0-9]{2}');   }    add_action( 'init', 'pubmonth_register_rewrite_tag');    2) Added the year and month to the permalink structure:  add_filter('post_type_link', 'pub_term_permalink', 10, 4);  function pub_term_permalink($permalink, $post, $leavename, $sample) {     if ( false !== strpos( $permalink, '%publication-title%/%pubyear%/%pubmonth%' ) ) {       //get the publication-title      $publicationtype = get_the_terms( $post-&gt;ID, 'publication-type' );       //get the year of the publication      $pubyear = date('Y', get_post_meta($post-&gt;ID, 'pub_date', true));       //get the month of the publication      $pubmonth = date('m', get_post_meta($post-&gt;ID, 'pub_date', true));       $rewritecode = array(          '%publication-type%',          '%pubyear%',          '%pubmonth%',          $leavename? '' : '%postname%',      );       $rewritereplace = array(          array_pop($publicationtype)-&gt;slug,          $pubyear,          $pubmonth,          $post-&gt;post_name      );       $permalink = str_replace($rewritecode, $rewritereplace, $permalink);       }     return $permalink; }   3) Add rewrite rules:  function pub_add_rewrite_rules() {       add_rewrite_rule(  '^([^/]*)/([0-9]{4})/([0-9]{2})/([^/]+)?', 'publications/index.php?pagename=$matches[3]', 'top' );   }    add_action( 'init', 'pub_add_rewrite_rules' );   4) Made sure the custom post type is registered and includes this rewrite array:  'rewrite' =&gt; array     (             'slug' =&gt; 'publications/%publication-type%/%pubyear%/%pubmonth%',     'with_front' =&gt; false          ), I am having trouble with the following problem:   $f: N\times N\rightarrow N$ and $f(i,j)=2^{i-1}(2j-1)$. Prove that $f$ is a bijection thus $N\times N$ and $N$ are numerically equivalent.   Work: I am told that Euclid's Lemma will be useful to proving injection and also that for any positive integer $n$, $n$ is a product of prime numbers.   For injection, I set $f(a,b)=f(x,y)\rightarrow 2^{a-1}(2b-1)=2^{x-1}(2y-1)$.  Then I distributed across to get $2^ab-2^{a-1}=2^xy-2^{x-1} \rightarrow 2^ab-2^xy=2^{a-1}-2^{x-1} \rightarrow 2(2^{a-1}b-2^{x-1}y)=2^{a-1}-2^{x-1}$.   From here, I am unsure how to apply Euclid's Lemma to arrive at the injection result.  I am even more unsure how to prove surjection. I have a framed picture about two feet by three feet in size that weighs about one pound (not a sheet of paper). I want to hang it onto a wall that is of full-blown hard concrete and covered with paper wallpaper (not vinyl - just paper).  The default way would be to drill the concrete and insert an anchor but that would damage the wall surface.  Is there a way to hang such picture onto such wall without damaging the wall? In C#, I want to initialize a string value with an empty string.  How should I do this?  What is the right way, and why?  string willi = string.Empty;   or  string willi = String.Empty;   or  string willi = "";   or what? Using OR comparisons with IF statements When using IF statements in Python, you have to do the following to make the "cascade" work correctly.  if job == "mechanic" or job == "tech":         print "awesome" elif job == "tool" or job == "rock":         print "dolt"   Is there a way to make Python accept multiple values when checking for "equals to"? For example,  if job == "mechanic" or "tech":     print "awesome" elif job == "tool" or "rock":     print "dolt" Two Answers, One Question Sometimes, when I answer a question on Stack Overflow, I have two different answers that are equally valid. This happens most when answering architectural questions where there are many valid ways to solve a problem.  Is it better to put each alternative into a single answer, or put each alternative in its own answer?  Posted each alternative separately will allow the voting system to float the best answer to the top, but I don't want to be accused of rep whoring by "flooding" a question with answers.  What's your opinion? One or two answers? Is there a HTML opposite to ? Is there a tag in HTML that will only display its content if JavaScript is enabled? I know &lt;noscript&gt; works the opposite way around, displaying its HTML content when JavaScript is turned off. But I would like to only display a form on a site if JavaScript is available, telling them why they can't use the form if they don't have it.  The only way I know how to do this is with the document.write(); method in a script tag, and it seems a bit messy for large amounts of HTML. What is a Generic Handler in asp.net and its use? Multiple regression or partial correlation coefficient? And relations between the two I don't even know if this question makes sense, but what is the difference between multiple regression and partial correlation (apart from the obvious differences between correlation and regression, which is not what I am aiming at)?  I want to figure out the following: I have two independent variables ($x_1$, $x_2$) and one dependent variable ($y$). Now individually the independent variables are not correlated with the dependent variable. But for a given $x_1$ $y$ decreases when $x_2$ decreases. So do I analyze that by means of multiple regression or partial correlation?  edit to hopefully improve my question: I am trying to understand the difference between multiple regression and partial correlation. So, when $y$ decreases for a given $x_1$ when $x_2$ decreases, is that due to the combined effect of $x_1$ and $x_2$ on $y$ (multiple regression) or is it due to removing the effect of $x_1$ (partial correlation)? Find the limit of $\sum\limits_{k=1}^n\left(\sqrt{1+\frac{k}{n^2}}-1\right)$ Separators for author group (IF conditon) I am new to LaTeX, just a beginner, basically a Perl developer.  I have created a LaTeX file  \begin{document}  \cont{\iname{\isurname{Name1}\ifname{K. C. G.}}\iname{\isurname{Name11}\ifname{Y. Q.}}\iname{\isurname{Name111}\ifname{C.-Z.}}\ititles{Some title Text}\ipage{995}}  \end{document}   Now my need is to define LaTeX commands so that the output should appear as below     Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.   \iname - Person Name will repeat several times \isurname - Surname of a person \ifname - First Name of a person    \iname will repeat any number of times, say 1 to ...  If only one \iname found inside \cont, display should be like the below     Name1 K. C. G. Some title Text - 995.   If only two \iname found inside \cont, display should be like the below     Name1 K. C. G. and Name11 Y. Q. Some title Text - 995.   If more than two \iname found inside \cont, display should be like the below (and should come after last \iname)     Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.   I can define input for \iname separated by commas, but I don't know how to write a macro to define \iname with different outputs based on the if condition.  I hope to have clearly explained my doubt. How to make read-only file system writable? At some point, the filesystem on my digital audio player has become read-only. I cannot copy files into it or remove files on it.  Are there some possible reasons for the player's file system to change permissions in this way?  I tried using chmod:  $ sudo chmod a+rw SGTL\ MSCN/  chmod: changing permissions of `SGTL MSCN/': Read-only file system   SGTL MSCN is the mount point of the digital audio player.  What else can I try to make it writeable? Example of modules that are projective but not free; torsion-free but not free Is Stack Overflow merging two different accounts by email without the user's consent? I had one account through Google with email X and another account through myopenid.com. I happened to add the same email X to this myopenid.com account. My intention was to stop using the Google account in favor of the new myopenid.com account.   After some time asking and answering questions with my openid.com account I am astonished to find out that it is now merged into my Google account. That creates all kinds of privacy issues. I thought the email on my Stack Overflow account was private. Did I miss anything here?  To be clear, I wanted to preserve my privacy in the second account, but now since all my recent questions were transferred to the old account, my privacy is completely lost.  And it looks like there is no verification for the email field in my profile, so if Stack Overflow is using that info to merge, there is a very serious security bug. If it is merging based on something else, that's even worse. I think your account belongs to that user here. Let me merge it. Terrible! In Einstein's General Relativity, do the space-time dimensions curve? In Einstein's General Relativity, do the space-time dimensions curve according to the positions of stars, planets, and masses? Co-signed a loan and I need to have my name removed 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. We (Russian citizens) are planning to go to Munich in late June. We would like to book our accommodation on AirBnB, but it is not very clear whether it will be accepted by the German embassy when we apply for a Schengen visa.  I can't find such information on the German embassy site or on the VFS-Global site. I've also searched for it on the Internet, and, while most sites agree that AirBnB booking is generally OK for a visa, I don't see a clear answer for Germany specifically, and there seems to be some exceptions for other European countries. In my cover letter I want to write that I am a graduate student in statistics. But I am not sure about the "in". So what is correct?     I am a graduate student in statistics.      I am a graduate student of statistics.