I had two files that both contained lines that I needed. The final result I wanted was a file called LocalSettings.php that could get the “goodies” from the two other files. The “goodies” here are variable lines containing specific details for a certain Wiki installation. So my first file was called: LocalSettings.php.original The other: LocalSettings.php.upgraded

You can easily access your Windows computer desktop from a Linux computer with the tool rdesktop: [bash]rdesktop -u username -d domainname -k no -f -z -p- host[/bash] where -k no specify that the keyboard is norwegian -z to compress -p- prompt for password before connecting -f full screen (to quit full screen press CTRL-ALT-ENTER) host

I am writing most of my bash script with nano editor. If one want to get colours in nano, on can do: [bash] locate *.nanorc [/bash] which will give a list of what is available on your system: /usr/share/nano/html.nanorc /usr/share/nano/java.nanorc /usr/share/nano/man.nanorc /usr/share/nano/mutt.nanorc /usr/share/nano/nanorc.nanorc /usr/share/nano/perl.nanorc /usr/share/nano/python.nanorc /usr/share/nano/ruby.nanorc /usr/share/nano/sh.nanorc Now, you can do: [bash] nano -w ~/.nanorc

We are upgrading to WordPress Multisite 3.5.1  tomorrow. In addition we are also upgrading 20 plugins and 7 themes. This time we hope that we don’t experience the problem with the Atahualpa theme, and we hope everything goes well. Good luck 🙂 Details: https://rts.uib.no/projects/wp

After we upgraded our test wordpress multisite to 3.5 we realized that that both the ‘admin’ user and the other siteadmin users where suddenly added as a ‘participant’ to all the wp sites we had. Siteadmin shouldn’t be a member or participant to any blog in a multisite wordpress installation we think. The biggest problem

sed is a linux command that can replace characters and words in a file very easy! Syntax: sed -i ‘s/word/newword/g’ file.txt It means: replace all “word” with “newword” in the file called “file.txt”. Be aware! The option -i means that you will manipulate the file file.txt on-the-fly! If you are not sure, skip the -i

Sometimes you like to know some more what is behind a web-address or a domain-name. Then the linux command ‘dig’ can be helpful: dig www.interstingwebsite.com soa Example: dig www.google.com soa which gives:  ]$ dig www.google.com ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.5 <<>> www.google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: