Quantcast
Channel: Andrew's Knowledge Base
Browsing all 38 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Sending Email From Gmail Using Python

I’ve used the following code to send email to myself – this is part of a grander scheme. Please note this must not be saved in file email.py or smtplib.py as it will not work if you do. This is passed...

View Article



Image may be NSFW.
Clik here to view.

Insufficient RAM To Update Panel View Plus (5.10)

Please note that this is risky, and this website takes no responsibility for any damage done. The screen shot shown below shows the error message, noting I was going from 5.10.6.09 to 5.10.10.09: The...

View Article

Image may be NSFW.
Clik here to view.

Python To MySql

Here is a very usefully link, which this is based upon. Please note that if you installed Python 64bit, you won’t be able to install this add-on, as it only works for 32bit Python. If you have install...

View Article

Image may be NSFW.
Clik here to view.

Timing Event In Python

To time an event in Python (for example how long a GPIO pin stays on for) the following code is used: This uses the real-time clock on the

View Article

Image may be NSFW.
Clik here to view.

Issue Doing Export From RSLogix 5000 To Network Drive

If you attempt to do a export from RSLogix 5000 to a network drive (i.e. host machine while working in virtual box), this creates a 0kB file which can’t be reimported, therefore the file must always be...

View Article


Image may be NSFW.
Clik here to view.

Multithreading In Python

Please see below code as an example of threading Firstly to thread you need to import the threading library, then define all you’re thread class (as demonstrate with thread_1 and thread_2), then in...

View Article

Image may be NSFW.
Clik here to view.

Missing Max Close etc Button In Lightroom

The solution I found was located here. Basically what has happened is you’ve gone into full screen mode, the solution as point out in the above solution is to press the f key a couple of times

View Article

Image may be NSFW.
Clik here to view.

Keyboard Input In Python

To get a keyboard input in python use the following code key_pressed = raw_input(‘Prompt in here – i.e. press x to exit’) This will also put what key was pressed into key_pressed Note that the code...

View Article


Image may be NSFW.
Clik here to view.

Putting Code Into A WordPress Blog Post

WordPress has a very call feature, which allows code to be automatically turned into code, this is detailed here and here To add code into your post simply put (code language=”html”)and to end (/code)...

View Article


Image may be NSFW.
Clik here to view.

Using Mircsoft Image Composite Editor (ICE)

Firstly I think that a brief explanation is need to what it Microsoft ICE, it a lovely free tool which allow you stick photo together to make, the result can be seen below at the bottom of this blog....

View Article

Image may be NSFW.
Clik here to view.

Creating .bat to Join Text Files

A batch file can be used to The following code need to be inserted into batch file

View Article

Image may be NSFW.
Clik here to view.

Uploading Register In GX IEC Developer

To upload tag values in GX IEC Developer: Make sure you can get online Go “Debug” – “Device Edit…” Select “Read From PLC…” Then select either to read selected values or all Then chose to “Write to...

View Article

Image may be NSFW.
Clik here to view.

Recovering RSViewME 3.x or 4.0 Application Files

Recovering RSViewME 3.x or 4.0 Application Files (from Allen Bradley) In order to recover the application files, it is assumed that you will be using a Win2K or WinXP machine that is already configured...

View Article


Image may be NSFW.
Clik here to view.

Article 2

One common question is how do I write from an office app like Excel or Project to a text file. I have the code embedded in a few samples here, but this short sample shows it most clearly. There are...

View Article

Image may be NSFW.
Clik here to view.

PCD Files And Outlook

PCD files are by defualt blocked by outlook, the following is from sitepoint 1. Close Outlook 2. Run regedit.exe Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Office\XX.X\Outlook\Security Where...

View Article


Image may be NSFW.
Clik here to view.

Resetting E1101 IP Address

To setup the E1101 HMI IP Address the following steps need to be done: Power Off The HMI Set Dip-switch 1 to on possition (these are located behind the CF card slot cover) Restore power The HMI will...

View Article

Image may be NSFW.
Clik here to view.

Embedding Google Maps To WordPress.com Blogs

To embedded Google Maps into WordPress: Open Google maps Display the area you want to link to Open the link symbol (a) Then copy the “Paste HTML to embed in website” (b) Now WordPress won’t use this...

View Article


Image may be NSFW.
Clik here to view.

Downloading from Flickr locked photos

A good guide is found here http://nerd10101.wordpress.com/2008/08/19/how-to-save-protected-images-from-flickr/   Note this should only be used for photo that you’ve got permission to use

View Article

Image may be NSFW.
Clik here to view.

Basic Westermo Lynx Setup

Noting that the earlier version of the switch can only be access from Internet Explorer, and not Chrome / Firefox, I find that if it’s a Lynx+ it will work, otherwise to use Internet Explorer. You need...

View Article

Image may be NSFW.
Clik here to view.

Remote Viewing Of Raspberry PI

For this you need one computer and your Raspberry PI, on the same network. This assume you’re running Raspbian On Raspberry PI On up terminal Enter “Sudo apt-get install tightvncserver” Agree to the...

View Article
Browsing all 38 articles
Browse latest View live




Latest Images