You still did not find a good Adsense plugin for Wordpress? Read this article and do it yourself! Adapt your theme for Adsense injected gently in your posts, widget and in your post index. The result can you see on this site. I don’t use any Adsense plugin anymore.
I would like to test if it works to serve more websites from one Wordpress installation. By default Wordpress supports subdomains (like Wordpress.com) but I would like to run the installation with second-level domains (SLD). This is described in this article. Maybe in the future Wordpress will support SLD, in that case I will report that in this article.
Why this article?
Yes, I know there are a lot of other howto’s about to install Wordpress Multisite. I did not find a correct one and it confused me. To install Wordpress Multisite for SLD is not complex, it is robust, but there are some tricky things that you need to know. That is why I wrote this article. Ok, let’s start!
When developing websites on a local WAMP installation, I often need control over the DNS. It is no problem to add a hostname to the Windows hosts file, but a wildcard in the domain does not work. For example you need a wildcard domain when installing Wordpress Multisite locally with subdomains. This article has the solution to add wildcards to your local WAMP installation, without installing Bind or other heavy DNS solutions.
One of my Wordpress plugins had often bad functioning updates (Organize Series). With this updates I had to recover the corrupted database by hand. A lot of work. It is possible to ignore the updates, but you make easily the mistake to update it with the others. To protect you to this, it is possible to disable the update with a couple of simple rows of code.
Currently I have to use a pretty slow mobile internet connection. And sometimes a program is using a lot of my bandwidth. This means that I am unable to open websites or I have to wait very long. This is annoying. So I was searching for a method to monitor the network traffic per program.
To install Zend Framework is not as straight forward like other PHP Frameworks. Also to install it with NetBeans it was not described very well on blogs.sun.com/netbeansphp site. Let’s start!
My assumption is that NetBeans is installed already on Ubuntu. I used NetBeans 6.9.1 and Ubuntu 10.10. In NetBeans are also the PHP plugins installed.
Before we are going into depth, first check if the (external) hard disk is able to go in spindown. Disable all services which has disk access periodically, for example:
# /etc/init.d/asterisk stop # /etc/init.d/rsyslog stop # /etc/init.d/apache2 stop # /etc/init.d/mysql stop # /etc/init.d/samba stop # /etc/init.d/cron stop # /etc/init.d/ntp stop # /etc/init.d/rsync stop
And all other daemons which are suspicious…
This article is about installing Debian on a flash disk, like SD card, flash disk, Solid State Disk etc. The goal is to have the data on a hard disk. This will increase the lifetime of the flash disk.
Assumption of this article is that Debian is already installed on a flash disk in the root “/”-directory.
In the article Installing Debian on the Sheevaplug there is also a separate “/boot” ext2 partition, because U-Boot is unable to read from ext3 partitions. This article is written while installing Debian Squeeze on the SheevaPlug, but this article can also be used for other Debian or Ubuntu systems. Only the device names and partitions can be different.
After installing Debian on SD card, it was booting successfully with the ‘run bootcmd‘. But when I switched off the power and plugged in again, I was getting the following error messages:
Error! cmd : 8, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 Error! cmd : 1, err : 0201 No MMC card found ** Bad partition 1 ** ** Bad partition 1 ** ## Booting image at 00800000 ... Bad Magic Number Marvell>>
Add handy aliases
Add the following at the end of /etc/bash.bashrc:
alias ll='ls -l' alias pg='ps -ef|grep' alias vi='vim'
The last alias “vi” is to use vim instead of vi. vim is the more luxury editor ;-).
To install vim, enter the following command:
# apt-get install vim