Posts Tagged ‘website’

HTTP GET request in Python

Posted: 28th September 2014 by Tim in Python
Tags: , , , , , ,

There are a number of ways to make a GET request in Python, but the easiest (in my opinion) is via urllib2. With this library, you can make a request with only one line of code, storing the result for use later. For example: import urllib2 data = urllib2.urlopen(“http://timmurphy.org”).read() print “Website size (bytes): ” + […]

When working with large documents with tens (or hundreds) of pages, it’s useful to be able to scroll directly to the section you’re interested in by clicking the section in the table of contents. In LaTeX, this functionality can be added quickly and easily in just a few lines using the hyperref package (and the […]

This tutorial is for those who have gone through the first and second LaTeX tutorials, and should give you the knowledge required to understand more specific LaTeX tips both on this site and on other websites. This tutorial will cover Packages and the basics of math mode. Packages Much like in programming, additional functionality can […]

301 Redirects in PHP

Posted: 9th July 2010 by Tim in PHP
Tags: , , , , , , , , , ,

If you have a web page which has been moved to another URL, or if the page has been completely removed, chances are people will have that address saved in their bookmarks, or they will try to access the page via a search engine and get a 404 – Page Not Found error. Not only […]

In BibTeX there is no bibliography record type for website references. Luckily, the Misc bibliography record type has a howpublished attribute, which may be mixed with the \url command to allow website referencing. Below is an example of a document named urlbib which demonstrates this. File: urlbib.tex \documentclass[a4paper,11pt]{article} \usepackage{url} \begin{document} \section*{Testing the URL citations} Line […]