Tech on Tour header image 4

Entries Tagged as 'Programming'

MM_XSLTransform Error

October 1st, 2008 by Alex Costa · No Comments

MM_XSLTransform error. [RSS URL] is not a valid XML document.  Non-static method DOMDocument::loadXML() should not be called statically, assuming $this from incompatible context in file
I recently came across this error and took me a lot of searching to find out the right fix for it. Here is where you can find the [...]

[Read more →]

Tags: Applications · Programming · Web Design · quick & easy tips



Secure Firewall for OpenVPN

September 23rd, 2008 by Skilla Repok · No Comments

Creating a secure firewall is essential for any openvpn configuration.
First of all, I’d strongly recommend grabbing a copy of Linux Firewalls.
Its got a great section on iptables, with a look at all the commands available to you
as well as an example firewall configuration.
I have setup an openVPN which has a configuration where there are three [...]

[Read more →]

Tags: Programming

wxpython Segmentation Fault

September 19th, 2008 by Skilla Repok · No Comments

In some of my wx python apps, I have come across this error.
It usually appears like this on the command line
Segmentation Fault (core dumped)
The most common reason for me getting this error, has been when a non-main thread tries to directly manipulate something in wx. Be it to Hide() a window, or ShowModal() a dialog.
The [...]

[Read more →]

Tags: Programming



Part 3: Setting up the schedule

September 17th, 2008 by Skilla Repok · No Comments

Part3: Setting up the schedule
So you’ve got the python screen capturer and emailer sorted. Now all we need to do is combine the two and set up a process to perform on a regular basis.
1. ScreenMailer
First, we’ll combine the two. When this module is run, it should grab a screen image and send it as [...]

[Read more →]

Tags: Programming

Part 2: Python Emailer

September 17th, 2008 by Skilla Repok · No Comments

Part 2: Python Emailer
If you want to send emails using python’s smtplib, this is a good example.
The method sendMail takes 8 arguments and is able to send attached emails to an address.
Currently, this is only tested using my gmail account as the sender, but it should work elsewhere.
#emailer.py
import os.path
import sys, smtplib, MimeWriter, base64, StringIO
import smtplib
import [...]

[Read more →]

Tags: Programming

Linux Windows Usage Surveillance in Python

September 17th, 2008 by Skilla Repok · No Comments

Lets say you want to keep track of a computers usage, for remote working. It should deliver hourly shots of computer usage to an email address that you’ll give it. It will also deliver screen shots every 2 minutes, but you can choose whether it does that or not!
Part 1: Python Screen Capture
Part 2: Python [...]

[Read more →]

Tags: Programming