There are a number of ways to change the document header and footer styles in LaTeX. One of the easiest and most flexible options is to use the fancyhdr package. fancyhdr is a massive package with a crazy number of tweaks and modifications available for your document’s header and footer styles. This tutorial will only [...]
Posts Tagged ‘header’
301 Redirects in PHP
Posted: 9th July 2010 by Tim in PHPTags: 301, 404, error, header, htaccess, HTML, HTTP, management, PHP, redirection, website
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 [...]
Millisecond timer in C / C++
Posted: 18th October 2009 by Tim in C, C++Tags: C, code, coding, header, include, program, programming, time, timer
If you’re looking for a timer with fairly good accuracy in C or C++, you can use the functions in time.h and sys/time.h to build a millisecond timer. This is useful for things like evaluating the execution time of a program, roughly accurate to the nearest microsecond. double get_time_ms() { struct timeval t; gettimeofday(&t, NULL); [...]