I have such code:      &lt;li class="myClass"&gt;         &lt;a href="www.example.com"&gt;link&lt;/a&gt;     &lt;/li&gt;   I need to change href attribute to www.example2.com How would I achieve that using javascript?
How can you change the href for a hyperlink using jQuery?
Merge files based on matching of first column I have two files: File1  ARS-BFGL-BAC-10975 0.9303 688423261 1 01/04/2015 0.9983763305 ARS-BFGL-BAC-11025 0.9092 688423261 1 01/04/2015 0.9983763305 ARS-BFGL-BAC-11044 0.9626 688423261 2 01/04/2015 0.9983763305 ARS-BFGL-BAC-11193 0.9544 688423261 1 01/04/2015 0.9983763305 ARS-BFGL-BAC-10975 0.9303 688423263 1 01/04/2015 0.9983763305 ARS-BFGL-BAC-11025 0.9092 688423263 1 01/04/2015 0.9983763305 ARS-BFGL-BAC-11044 0.9626 688423263 2 01/04/2015 0.9983763305 ARS-BFGL-BAC-11193 0.9544 688423263 1 01/04/2015 0.9983763305   File2:  ARS-BFGL-BAC-10975 10 21225382 ARS-BFGL-BAC-11025 10 84516867 ARS-BFGL-BAC-11193 1 29303546   Desired output  ARS-BFGL-BAC-10975 0.9303 688423261 1 01/04/2015 0.9983763305 10 21225382 ARS-BFGL-BAC-11025 0.9092 688423261 1 01/04/2015 0.9983763305 10 84516867 ARS-BFGL-BAC-11193 0.9544 688423261 1 01/04/2015 0.9983763305 1 29303546 ARS-BFGL-BAC-10975 0.9303 688423263 1 01/04/2015 0.9983763305 10 21225382 ARS-BFGL-BAC-11025 0.9092 688423263 1 01/04/2015 0.9983763305 10 84516867 ARS-BFGL-BAC-11193 0.9544 688423263 1 01/04/2015 0.9983763305 1 29303546   So file 1 has many more rows than file 2. I only want to keep rows in the output that are in file 2 based on column1.   I have tried join but I cant get it to work right-it will tell me my files are not sorted  join -j 1 -o 1.1,1.2,1.3,1.4,1.5,1.6,2.2,2.3 &lt;(sort -k1 file1) &lt;(sort -k1 file2)   Preferably I would prefer an awk command. File 1 will be very large. I have tried   awk 'FNR==NR{a[$1]=$2 FS $3;next}{ print $0, a[$1]}' file2 file1 &gt; output   Any help would be much appreciated. Thanks  Sorry I cant comment below but just to clarify file not all rows in column1 in file 1 will be in file2.  The awk command  awk 'FNR==NR{a[$1]=$2 FS $3;next} $1 in a {print $0, a[$1]}'    will only keep the amount of rows there is in file 2. But ideally what I want is were for expample ARS-BFGL-10975 is repeated twice (realistically way more) to appear twice in my output.  Thanks for the help so far Which render engine renders faster? Blender Internal or Cycles? I wonder which render engine is faster? I mean, you have 2 identical scenes and render it using BI and Cycles. Which image will be generated faster? What will be the time difference?  Do you know any site (please post a link) which shows the results of such comparison? I can't change materials I was making a scene in blender and I wanted to change the texture from "Material_1" to "Material_2". It lets me change it but when I go to rendered view the part looks the same. can someone please help me Unupvote immediately followed by an upvote gives me a net -10 reputation points Make window always on top? Some applications do not have the functionality like Task Manager's &quot;Always on top&quot; feature.  Is there a way around this? MySQL 5.5.16 allows anonymous connections Apparently, I can connect to MySQL (at least from my localhost) without having to provide any username or password. I can even put anything as username, as long as the password is empty. I have access to the information_schema and test databases. I can create tables. If I run SELECT USER() it returns the proper value randomstring@localhost, where the random string is whatever I used for username when I connected.  The mysql.user table contains root@localhost, root@127.0.0.1, @localhost and pma@localhost. I manually set encrypted passwords to all the records (UPDATE user SET password=...) and only root has any privileges, the other two records have "N" for all privileges. That record with the empty username looks suspicious, but I don't think it has anything to do with this and I think it was there from the beginning.  To make matters worse, if I add a user with a password, I can only connect using empty string as password (just like if I put anything as username). If I try to connect using the username I created and password I supplied when creating it (CREATE USER .. IDENTIFIED BY ..) it doesn't work.  Does anyone know what is wrong and how I can fix this?  Note: I am using MySQL 5.5.16 for Windows, provided by the XAMPP package. I've just upgraded from Ubuntu 18.04 to its newest LTS version - 20.04. While it comes with some interesting changes, the Desktop icon system was messed up in my opinion. When you hover the mouse cursor over the icons, you see a huge space marked around them that cannot be violated (as you can see in the image below) so that they need to be placed very far apart from each other.  18.04 allowed you to place icons much closer to each other and didn't have that marked space around them. This new way leaves much less space on the Desktop to organize large amounts of icons - including folders, files and shortcuts. Is there a way I can significantly reduce the size of icons and their "spaces" or go back to the old system of organizing files? On "Settings", there is a tool to change the size of Dock icons, but not of Desktop icons.  Also, every time I move or delete something, the Desktop "flashes" and the icons seem to rearrange themselves automatically, nothing of which happened in 18.04. I also can't move anything directly to the Desktop; I need to move to the Desktop folder on Nautilus. This makes me start to think about downgrading Ubuntu back to 18.04. How to make a HTML Page in A4 paper size page(s)? Can I use a one-way ticket to come to the UK? Or do I need to show a return ticket to be able to get in? OpenSSL remains vulnerable after update to 14.04 I have blender 2.69 and I've been following a tutorial on how to make text.  The only problem is when I go to add a glossy shader in the node editor it does not exist. Neither does the shader category. Difference between Ethernet splitter and switch I have one Ethernet port that is wired directly to the router on another level.  However, I want to run a desktop and a server both off this one Ethernet port.  Can anyone tell me the difference between an Ethernet splitter and a switch?    Also, will either the splitter or switch slow down the connection as opposed to just one connection? For the Fibonacci numbers, show for all $n$: $F_1^2+F_2^2+\dots+F_n^2=F_nF_{n+1}$ The definition of a Fibonacci number is as follows:  $$F_0=0\\F_1=1\\F_n=F_{n-1}+F_{n-2}\text{ for } n\geq 2$$   Prove the given property of the Fibonacci numbers for all n greater than or equal to 1. $$F_1^2+F_2^2+\dots+F_n^2=F_nF_{n+1}$$  I am pretty sure I should use weak induction to solve this. My professor got me used to solving it in the following format, which I would like to use because it help me map everything out...  This is what I have so far:  Base Case: Solve for $F_0$ and $F_1$ for the following function: $F_nF_{n+1}$.  Inductive Hypothesis:  What I need to show: I need to show $F_{n+1}F_{n+1+1}$ will satisfy the given property. Proof Proper:  (didn't get to it yet)  Any intro. tips and pointers? How to Toggle Selected Objects Visibility with H shortcut as in Maya The extension of smooth function If $U$ is a bounded domain in $\mathbb R^n$ whose boundary is smooth, and $f$ is a smooth function on $U$ whose partial derivatives of all orders have a continuous extensions to $\bar U$. For an arbitrary domain $V \supseteq \bar U$, is there a smooth function $\tilde f$ on $V$ extending $f$? Show that $11^{10} \equiv 1 (\mod 100)$ $11^{10} \equiv 1 \pmod{100}$  I tried to solve by using euler's theorem, But I got stuck.  $\gcd(11, 100) = 1$  $11^{φ(100)} \equiv 1 \pmod{100}$  $11^{40} \equiv 1 \pmod{100}$  I don't know how to go on as $11^{40}$ is bigger than $11^{10}$ What does if __name__ == "__main__": do? Given the following code, what does the if __name__ == "__main__": do?  # Threading example import time, thread  def myfunction(string, sleeptime, lock, *args):     while True:         lock.acquire()         time.sleep(sleeptime)         lock.release()         time.sleep(sleeptime)  if __name__ == "__main__":     lock = thread.allocate_lock()     thread.start_new_thread(myfunction, ("Thread #: 1", 2, lock))     thread.start_new_thread(myfunction, ("Thread #: 2", 2, lock)) jQuery 1.9 checkbox not checked second time after once it unchecked Replacing fonts in EPS/PDF files Command to display and execute code (math formulae) Similar to  I would like to have a command to display and execute code. The code should be displayed with the listings package.  For example something like  \documentclass{scrartcl} \usepackage{amsmath,listings} \newcommand*{\codeExample}[1]{Code: \lstinline!\string{#1}! yields #1} \begin{document}   \codeExample{$\lVert a\rVert$} \end{document}   should for best of cases display $\lVert a \rVert$ as verbatim (\lstinline!...!) code and after that the rendered math code. Is something like that possible? The code above yields several mistakes. I think I miss something to avoid #1 being tokenised?