I found that there is a way to add javascript files in the form validation function as stated in "".   However, I would like to know how to add javascript using the drupal_add_js function with the inline option. I would just like to execute some javascript code while I am in the validation function of the Drupal Form API.
I add js file with drupal_add_js in hook_form_alter, it is ok and I see it in list of js loaded in page, but when I submit form and form not validate and return to that form (after validation failed) I don't see js files that added to form, why this happened? and how can add my js file in that form after validation failed ?   some part of my code   function mymodle_form_alter(&amp;$form, $form_state, $form_id) {   if ($form_id == 'news_node_form') {     drupal_add_js(drupal_get_path('module', 'mymodule') . '/js/mymodulejsfile.js'); //, array('scope' =&gt; 'footer','weight' =&gt; 10));   } }   code work correctly in add and edit form, but when form submit and validation failed it show validation error but my js file not loaded in page (I checked html source and check firebug script files), but there is not my js file,
What websites or other resources do users of Blender have available to them to report bugs or problems with the program?  I would like to get this issue cleared in Q&amp;A format so that we can link new users with bug-report-style questions to this post. What software to cite in a manuscript, and how? When writing a manuscript for a scientific article, I often wonder what software I should cite or acknowledge, and how.  The first problem is to make a choice which software to cite. On the one hand, there is no way to cite all software, as this would mean to cite my whole software stack (Linux, GNU tools, emacs, git, ...). On the other hand, not citing any software is not fair, either. Furthermore, some software explicitly asks to be cited, some software doesn't. Also, some software is really crucial to the results, some isn't. Another important aspect is that citing software is not only about giving credit to the authors of the software, but also to give other scientists hints on what software they might want to use. So, the choice which software to cite is a problem.  The second problem is how to cite the software. Some (scientific) software does provide a classical scientific article that can be cited. However, in this case, no URL to the software is given. Others do not have an associated article. How do I cite these? I have seen people that cite the manual of a software, others just give the URL. What is the way to go?  Another aspect is where to cite the software. Some software can be cited in the course of the articles text, but when it comes to more fundamental software, other places may be more appropriate.  Are there any good ideas out there on any of these aspects? Remap Keys in Linux I'd like to switch my Ctrl and Alt keys under Linux (to make it more Mac-like).  How do I do this?  If it helps, I'm running Ubuntu 9.04. I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include directives. Sometimes the #includes are just artifacts and everything will compile fine with them removed, and in other cases classes could be forward declared and the #include could be moved to the .cpp file.  Are there any good tools for detecting both of these cases? Change style of labels of Tikz nodes of a given style I'm working on a 2nd order passive low pass filter, consisting of two passive low pass filters chained together.         &ndash; Schematic created using   Let \$ H(s) = H_1(s)H_2(s) \$ where \$ H_1(s) \$ and \$ H_2(s) \$ are the transfer functions for each separate filter stage.  Then \$ |H(s)| = |H_1(s)||H_2(s)| \$  Knowing the magnitude of a passive low pass filter,   $$|H(s)| = \dfrac1{\sqrt{ (\omega R_1C_1)^2 + 1} } \times \dfrac1{\sqrt{ (\omega R_2C_2)^2 + 1} } = \dfrac1{\sqrt{((\omega R_1C_1)^2 + 1)((\omega R_2C_2)^2 + 1)}} $$  Then trying to find the cutoff frequency:  $$ \left(\dfrac1{\sqrt{2}}\right)^2  = \dfrac1{\sqrt{((\omega R_1C_1)^2 + 1)((\omega R_2C_2)^2 + 1)}} $$ $$ 2  = \sqrt{((\omega R_1C_1)^2 + 1)((\omega R_2C_2)^2 + 1)} $$ $$ 4  = ((\omega R_1C_1)^2 + 1)((\omega R_2C_2)^2 + 1) $$ $$ 4  = (\omega R_1C_1)^2(\omega R_2C_2)^2 + (\omega R_1C_1)^2 + (\omega R_2C_2)^2 + 1 $$  And I'm stuck. Research on the web tells me \$ \omega_c = \dfrac1{\sqrt{R_1C_1R_2C_2}} \$, but I can't find why? Can anybody show my the derivation to find this? A standard proof for press needs crop marks and color bars as below    With the package crop, the crop marks can be easily added.  But how about the color bar ?  Is there a way or a package to make it ?  An example is   \documentclass[b5paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[cross,a4,center,info,axes]{crop}  \title{Test} \author{User} \begin{document} \maketitle \section{Fox} The quick brown fox jumps over a lazy dog. \end{document} How do i fix this Eevee rendering Problem? I can notfix this issue when selecting Eevee for my renders. It gets really annoying. I can get rid of them temporary when I scroll out or into the viewport. Does anyone have an Idea how I can fix that?  thanks c: SSL_read failing with SSL_ERROR_SYSCALL error Overleaf does not compile after using Biblatex I have my PhD deadline on Monday and disaster has struck at the very last minute! Any assistance would be eternally appreciated.  I'm using Overleaf (v2) to write my thesis - it's a very large file tree containing multiple .tex files.  Everything was compiling fine, until I decided to experiment and use:  \usepackage{biblatex}   It compiled with this included but looked odd, so I deleted the line again. However, now it does not compile - despite the document being exactly the same as before the problem began. remove files when name does NOT contain some words I need to use filter to sort calendar months in mmm format.  Data &gt; Sort &gt; Custom will do it but I cannot make filter work. Months are in a column eg SEP, APR, JAN, APR, etc.  Filter just does an alphabetical sort so it puts all the APR first. On a series involving harmonic numbers Finding $$\sum^{\infty}_{n=1}\bigg[\bigg(\frac{(-1)^{n+1}}{n+1}\bigg)\bigg(\sum^{n}_{r=1}\frac{1}{r}\bigg)\bigg]$$   Try: Let $\displaystyle H_{n} =\sum^{n}_{r=1}\frac{1}{r},$ then series $\displaystyle \sum^{\infty}_{n=1}\frac{(-1)^{n+1}}{n+1}\cdot H_{n}=\frac{H_{1}}{2}-\frac{H_{2}}{3}+\frac{H_{3}}{4}\cdots\cdots$  could some help me to solve it, thanks How can I (algorithmically) count the number of ways n m-sided dice can add up to a given number? proof that every finite matrix has an annihilating polynomial Proving that an additive function $f$ is continuous if it is continuous at a single point Suppose that $f$ is continuous at $x_0$ and $f$ satisfies $f(x)+f(y)=f(x+y)$. Then how can we prove that $f$ is continuous at $x$ for all $x$? I seems to have problem doing anything with it. Thanks in advance. I created an ext4 partition to back-up my files to, and partitioned it for 102GB in Gparted using a live USB. After I booted into Ubuntu, I opened Disk Utility, and it said that the partition was actually 108GB. Confused, I opened the mounted partition in Nautilus, and it said the partition was only 98GB.  Which is correct? Did I partition it wrong? I know that editing the boot options line and adding 'nomodeset' solves the problem of my laptop during LiveCD mode, what I don't know is how to set it at boot up through Grub2 after I've installed Ubuntu.  So, my question is; how do I set nomodeset before I boot into Ubuntu? TikZ: remove margin, padding, border around nodes containing images I want to create a simple figure where images are connected with arrows. Here is what I did:  \begin{tikzpicture} \node[](A) {\includegraphics[width=0.2\textwidth]{a}}; \node[right=1mm of A](B) {\includegraphics[width=0.2\textwidth]{b}}; \draw[-&gt;] (A) to (B); \end{tikzpicture}     But I want the arrow to start and end right at the images with no space between. How can I do that? Use of quotes in GNU grep regular expressions