Google Publisher Plugin

Grappig,
Krijg ik van de week een e-mail waarin staat dat er een samenwerking is tussen WordPress en Google met een Google Publisher Plugin
Maar dat is leuk .. Lekker handig en snel zelf bepalen waar bijv. de ads komen te staan.
Ik hou wel van experimenten.

De laatste maanden is er een koppeling tussen mijn Twitter account en WordPress actief. Zo spaar ik toch een bepaalde historie voor mezelf op in mijn weblog. Maar echt interessante artikelen heb ik de laatste maanden niet echt geschreven.

Komt ook doordat we verhuist zijn en daar is erg veel tijd in gaan zitten.

Maar goed. Google Publisher Plugin, we gaan kijken of dit ook voor een andere site van ons interessant is of kan zijn .. Ben benieuwd hoe aanpasbaar de ads kunnen zijn.

Message to self: Virtual Host – ProxyPass & ProxyPassReverse

<Location /sabnzbd>
ProxyPass http://localhost:8080/sabnzbd
ProxyPassReverse http://localhost:8080/sabnzbd
</Location>

<Location /xbmc>
ProxyPass http://192.168.1.100:80
ProxyPassReverse http://192.168.1.100:80
</Location>

<Location /sickbeard>
ProxyPass http://localhost:8081/sickbeard
ProxyPassReverse http://localhost:8081/sickbeard
</Location>

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

</VirtualHost>
<VirtualHost *:80>
ServerName my.domain.org
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

<Location /sabnzbd>
ProxyPass http://192.168.1.115:8080/sabnzbd
ProxyPassReverse http://192.168.1.115:8080/sabnzbd
</Location>

<Location /sickbeard>
ProxyPass http://192.168.1.115:8081/sickbeard
ProxyPassReverse http://192.168.1.115:8081/sickbeard
</Location>

<Location /sickbeard>
ProxyPass http://localhost:8081/sickbeard
ProxyPassReverse http://localhost:8081/sickbeard
</Location>

:: Message to self: Sickbeard not active in server, that is on ‘Shark’

<Location /autosub>
ProxyPass http://localhost:8083/autosub
ProxyPassReverse http://localhost:8083/autosub
</Location>

13 years of Weblog: had to remove a 11 year old weblog post!

Last week I received an e-mail about a request to remove a weblog post from 2002 !

The post, about: ZigBee and Bluetooth was referring to Click Consult. Analysing it I saw that the PDF file it was linking to was receiving an Error 404 (it does not exist anymore).

So I removed it. One day later again the girl in the mail cause they found that I had it still on my MovableType export weblog. Damn I had to edit HTML now ..

So to have Click Consult to be in compliance with Google Webmaster guidelines I had to remove it .. uhmm Should I have charge them?

Plesk 11 issue with options FollowSymlinks or SymLinksIfOwnerMatch is off …..

I use a number of ‘open’ directories on my server for years, but I switched servers and updated Plesk to version 11.

Suddenly my open directories where not open anymore and no content was visible. In my error.log I find this error:

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/domain.com/httpdocs/index.pl

I searched the internet and I could not find a good solution other than that I had to change my dir.conf where is stated: DirectoryIndex at_domains_index.html index.php index.html index.cgi index.pl index.xhtml index.htm index.shtml index.cfm

I even changed my vhost configuration what did not work either, it might helped finding the solution, so I will check if my changed vhost.conf is necessary.

in the end: changing dir.conf with the line about the indexes was the solution. I had to remove to remove at least the perl (.pl) one.

I now have:

DirectoryIndex at_domains_index.html index.php index.html index.htm

restarted apache with: service apache2 restart and issue was resolved

Python vraagje: proxy gebruiken

 

Gezocht: Onderstaand gedeelte moet gebruik gaan maken van een proxy (IP adres en Port) maar wat ik ook probeer, ik krijg alleen maar een negatieve response terug. Dus ergens gaat er wat mis als ik er een ProxyHandler erbij wil voegen. Iemand een idee?

self.req = None
self.req = urllib2.Request(url)
self.req.add_header(“User-agent”, programma.USERAGENT)
self.connect()

elif autosub.Helpers.checkAPICalls(use=True):
self.req = None
self.req = urllib2.Request(url)
self.req.add_header(“User-agent”, programma.USERAGENT)
self.connect()

else:
log.error(“API: out of api calls”)
 
def connect(self):
import socket
socket.setdefaulttimeout(programma.TIMEOUT)
self.resp = urllib2.urlopen(self.req)
time.sleep(5) #Max 2 connections each second