<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tiposaurus</title>
	<atom:link href="http://www.tiposaurus.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tiposaurus.co.uk</link>
	<description>Web Development and Web Hosting Tutorials</description>
	<lastBuildDate>Wed, 02 May 2012 20:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to use the query string in PHP</title>
		<link>http://www.tiposaurus.co.uk/2012/04/19/how-to-use-the-query-string-in-php/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/19/how-to-use-the-query-string-in-php/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 01:04:10 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[introductions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[query string]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://discomoose.org/2005/10/19/how-to-use-the-query-string-in-php/</guid>
		<description><![CDATA[This article tells you how to pass variables to a PHP page using the query string, and how to access them from that page. Introduction Have you ever seen a URL which looked like &#34;www.example.com/page.php?mode=1&#38;style=red&#34;? Well, this page is being passed variables and their values through the query string, here the variables &#34;mode&#34; and &#34;style&#34; [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>This article tells you how to pass variables to a PHP page using the query string, and how to access them from that page.</p>
<h3>Introduction</h3>
<p>Have you ever seen a URL which looked like &quot;www.example.com/page.php?mode=1&amp;style=red&quot;? Well, this page is being passed variables and their values through the query string, here the variables &quot;mode&quot; and &quot;style&quot; are being passed, with values &quot;1&quot; and &quot;red&quot; respectively. The question mark indicates the start of the query string and the ampersand, &amp;, symbol seperates variable=value assignments. The page is then able to read these variables and react according to them, for example to display them to the user.</p>
<h3>Passing a query string to a page</h3>
<p>There are two ways to pass a QueryString to a page, the first is to enter it manually, for example:</p>
<pre>&lt;a href="page.php?mode=1"&gt;Mode 1&lt;/a&gt;</pre>
<p>The above HTML creates a link to a page passing the variable mode with the value &quot;1&quot;.</p>
<p>An alternative, and perhaps more useful, way is to use HTML forms. The main thing to remember with forms is that you need to use the GET method to send information via the query string, for example:</p>
<pre>&lt;form method="GET" action="page.php"&gt;
Please enter your name: &lt;input type="text" name="username" /&gt;
&lt;input type="submit" value="submit" /&gt;
&lt;/form&gt;</pre>
<p>This code displays a simple HTML form with a text box and a submit button. When the user enters their name and presses submit, the information in the name box is passed to a page called &quot;page.php&quot; (specified in the form's action attribute) via the query string. So, if I entered &quot;mooseh&quot; and pressed submit, the form will call page.php?username=mooseh. Remember that &quot;username&quot; was what we entered as the text input's name attribute.</p>
<h3>Accessing a query string element in a PHP page</h3>
<p>In PHP, all the information passed via the query string is held in the $_GET super global array (prior to PHP version 4.1.0 it was called $HTTP_GET_VARS, but that's now depreciated). To access an item, type $_GET['varName'], where varName is the name of the variable in the query string.<br />
To demonstrate, let's create page.php to process the information from the form above:</p>
<pre>&lt;?
if($_GET['username'] == "")
{
    // no username entered
    echo "You did not enter a name.";
}
else
{
    echo "Hello, " . $_GET[’username’];
}
?&gt;</pre>
<p>So now, me typing in mooseh and pressing submit will generate the reply &quot;Hello, mooseh&quot;.</p>
<h3>Listing the contents of $_GET</h3>
<p>Should you wish to find out everything that's in the query string, you can do so with the following code which displays the variables next to their values in a table:</p>
<pre>&lt;table border="1"&gt;
&lt;tr&gt;&lt;th&gt;variable&lt;/th&gt; &lt;th&gt;value&lt;/th&gt;&lt;/tr&gt;
&lt;?
foreach($_GET as $variable =&gt; $value)
{
    echo "&lt;tr&gt;&lt;td&gt;" . $variable . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $value . "&lt;/td&gt;";
}
?&gt;
&lt;/table&gt;</pre>
<h3>Conclusion</h3>
<p>This article showed you how to pass information between pages with the query string, and a use which allows you to add some increased interactivity. There are a lot of other uses, for example selecting which section of a site to display based on a variable in the query string, and processing form data.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/19/how-to-use-the-query-string-in-php/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to Find the Current URL with PHP</title>
		<link>http://www.tiposaurus.co.uk/2012/04/19/how-to-find-the-current-url-with-php/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/19/how-to-find-the-current-url-with-php/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 23:00:55 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://discomoose.org/2005/11/02/how-to-find-the-current-url-with-php/</guid>
		<description><![CDATA[The full URL to a page comes in three parts: The domain name, the path to the file then the filename, and the query string. For example, take the URL http://www.example.com/example/page.php?name=Bob. The three parts of this are: 1. The domain name: www.example.com 2. The path to the page: /example/page.php 3. The query string: name=Bob So [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>The full URL to a page comes in three parts: The domain name, the path to the file then the filename, and the query string. For example, take the URL http://www.example.com/example/page.php?name=Bob. The three parts of this are:</p>
<p>1. The domain name: www.example.com<br />
2. The path to the page: /example/page.php<br />
3. The query string: name=Bob</p>
<p>So how do you find it all out with your own PHP scripts?</p>
<p><span id="more-31"></span></p>
<p>All of the information we need is stored in the $_SERVER array, which is accessible from anywhere in your PHP script (and as such is called a superglobal variable), it works like a normal array and the keys we wish to retrieve the values of are 'HTTP_HOST', 'SCRIPT_NAME' and 'QUERY_STRING' for the three different parts of the url. Alternatively, if we don't need to have the path to the page and the query string seperate, we can use 'REQUEST_URI'.</p>
<p>The following code should let you find it:</p>
<pre>&lt;?php
// find out the domain:
$domain = $_SERVER['HTTP_HOST'];
// find out the path to the current file:
$path = $_SERVER['SCRIPT_NAME'];
// find out the QueryString:
$queryString = $_SERVER['QUERY_STRING'];
// put it all together:
$url = "http://" . $domain . $path . "?" . $queryString;
echo "The current URL is: " . $url . "
";

// An alternative way is to use REQUEST_URI instead of both
// SCRIPT_NAME and QUERY_STRING, if you don't need them seperate:
$url2 = "http://" . $domain . $_SERVER['REQUEST_URI'];
echo "The alternative way: " . $url2;
?&gt;</pre>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/19/how-to-find-the-current-url-with-php/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Find a visitor&#039;s IP Address with PHP</title>
		<link>http://www.tiposaurus.co.uk/2012/04/18/find-a-visitors-ip-address-with-php/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/18/find-a-visitors-ip-address-with-php/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 23:00:25 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://discomoose.org/2005/11/01/find-a-visitors-ip-address-with-php/</guid>
		<description><![CDATA[Do you want to know the IP address of a visitor? This can be useful for many reasons, such as tracking site usage or blocking access to specific people. Here's how you can find it using PHP. In a PHP page, within the PHP tags, &#60;?php ... ?&#62;, you can retrieve the IP address of [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>Do you want to know the IP address of a visitor? This can be useful for many reasons, such as tracking site usage or blocking access to specific people. Here's how you can find it using PHP.</p>
<p>In a PHP page, within the PHP tags, &lt;?php ... ?&gt;, you can retrieve the IP address of a user through the server variables array, which is contains information about the user and the server environment and is accessible from anywhere in your PHP script. To do this, you use the code $_SERVER['REMOTE_ADDR']. It works like a normal array, where REMOTE_ADDR is the key, and the IP address of the visitor is the value associated with that key.</p>
<h3>Display The IP Address</h3>
<p>So, if you want to display the IP Address to the user then the following page will suffice:</p>
<pre>&lt;?php
echo "Hello! Your IP Address is: " . $_SERVER['REMOTE_ADDR'];
?&gt;</pre>
<h3>Exploring the $_SERVER array</h3>
<p>You might be wondering what other information you can get from $_SERVER, well you can find out with the following script which displays all the variables in it along with their values if set, in a HTML table:</p>
<pre>&lt;table border="1"&gt;
&lt;tr&gt;&lt;th&gt;Variable&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;
&lt;?
foreach( $_SERVER as $key =&gt; $value )
{
echo "&lt;tr&gt;&lt;td&gt;" . $key . "&lt;/td&gt;";
echo "&lt;td&gt;" . $value . "&lt;/td&gt;&lt;/tr&gt;";
}
?&gt;
&lt;/table&gt;</pre>
<p>Finally, the following code works harder to find the true IP of the user by checking for proxies:</p>
<pre>function userIP()
{
//This returns the True IP of the client calling the requested page
// Checks to see if HTTP_X_FORWARDED_FOR
// has a value then the client is operating via a proxy
$userIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
if($userIP == "")
{
$userIP = $_SERVER['REMOTE_ADDR'];
}
// return the IP we've figured out:
return $userIP;
}</pre>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/18/find-a-visitors-ip-address-with-php/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Write Text on to an existing PNG image using PHP</title>
		<link>http://www.tiposaurus.co.uk/2012/04/18/write-text-on-to-an-existing-png-image-using-php/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/18/write-text-on-to-an-existing-png-image-using-php/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 07:21:27 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Image Handling]]></category>
		<category><![CDATA[image handling]]></category>
		<category><![CDATA[image manipulation]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web development. png]]></category>

		<guid isPermaLink="false">http://discomoose.org/2005/10/19/write-text-on-to-an-existing-png-image-using-php/</guid>
		<description><![CDATA[This article will tell you how to write text on an existing PNG image using PHP using PHP's image manipulation functions. The image functions require the GD library to be installed. This article is fairly basic, however some more detail on the basic functions used is included in the article, "write text on a dynamically [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>This article will tell you how to write text on an existing PNG image using PHP using PHP's image manipulation functions. The image functions require the GD library to be installed. This article is fairly basic, however some more detail on the basic functions used is included in the article, "write text on a dynamically generated image in PHP"</p>
<p>First, we need the source image. In this example, we're using an image called image.png (with dimension 150x150, though this code will work with any size of image) which is shown below:<br />
<a href="http://www.tiposaurus.co.uk/2012/04/write-text-on-to-an-existing-png-image-using-php/image/" rel="attachment wp-att-293"><img class="alignnone size-full wp-image-293" title="image" src="http://www.tiposaurus.co.uk/wp-content/uploads/2005/10/image.png" alt="source image" width="150" height="150" /></a><br />
This image is going to be kept in the same directory on the webserver as the php file we're using to manipulate it.</p>
<p>Now it's time for PHP code to load the image. We make use of the function imagecreatefrompng() to get the image into PHP to manipulate. This takes the path to the image as a parameter. If the image can't be loaded then we'll tell it to die() and stop interpreting the page, however there are better ways of dealing with this error.</p>
<pre>$im = imagecreatefrompng("image.png");
// if there's an error, stop processing the page:
if(!$im)
{
die("");
}</pre>
<p>Next, we'll define some colours for use in the image using the imagecolorallocate() function:</p>
<pre>$red_background = imagecolorallocate($im, 255, 0, 0);
$black = imagecolorallocate($im, 0, 0, 0);</pre>
<p>Now we get the dimensions of the image, using the imagesx() and imagesy(), which take the image resource as a parameter and return the width and height respectively:</p>
<pre>// get the width and the height of the image
$width = imagesx($im);
$height = imagesy($im);</pre>
<p>The next step is to draw a black rectangle on to the image to ensure that the text we write is visible. This step is optional, as you could write the text directly on to the image.<br />
The coordinate system used in PHP is that the top left of an image is (0,0) and the bottom right is ($width, $height). We're going to draw the rectangle across the bottom 20px of the image, so we pass imagefilledrectangle two sets of coordinates: (0, $height-20) and ($width, $height). The coordinates we're passing - as the 2nd to 4th parameters) tell the method to draw a rectangle from a point on the left hand side, 20 pixels from the bottom, to the very bottom right of the image. The rectangle is then automatically filled black.</p>
<pre>// draw a black rectangle across the bottom, say, 20 pixels of the image:
imagefilledrectangle($im, 0, ($height-20) , $width, $height, $black);</pre>
<p>Now it's time to write the text on the image. In this example, we will write the text in the middle of the rectangle we just created. First we declare two variables, $font and $text, to store the int representing the system font we're using and the text we're going to write to the image, respectively.</p>
<pre>$font = 4; // store the int ID of the system font we're using in $font
$text = "tiposaurus"; // store the text we're going to write in $text</pre>
<p>Then we will calculate where the left edge of the text is. This is done by using imagefontwidth() to get the width of the system font we're using (which is fixed width, so all characters have the same width), then multiplying that by the number of characters in the string we're writing. This finds the length of the text in pixels. We then subtract that from the total width of the image and divide by two to find the left position, which we store in the variable $leftTextPos:</p>
<pre>// calculate the left position of the text:
$leftTextPos = ( $width - imagefontwidth($font)*strlen($text) )/2;</pre>
<p>Now we write the text to the image, using the imagestring() function passing the variables we created earlier as parameters (NB. As height we're using the image height minus 18 pixels, to estimate a decent fit in the box, rather than calculating the height in the same way as width.)</p>
<pre>// finally, write the string:
imagestring($im, $font, $leftTextPos, $height-18, $text, $yellow);</pre>
<p>Lastly, we send the image to the browser then clear it from memory:</p>
<pre>// output the image
// tell the browser what we're sending it
Header('Content-type: image/png');
// output the image as a png
imagepng($im);</pre>
<p>That's it! the output image is:<br />
<a href="http://www.tiposaurus.co.uk/2012/04/write-text-on-to-an-existing-png-image-using-php/image-result/" rel="attachment wp-att-294"><img class="alignnone size-full wp-image-294" title="image result" src="http://www.tiposaurus.co.uk/wp-content/uploads/2005/10/image-result.png" alt="image with tiposaurus written on it" width="150" height="150" /></a><br />
This will be shown in the browser whenever anyone accesses the php page we've just created!</p>
<p>To finish off, here's the code in full:</p>
<pre>&lt;?
// load the image from the file specified:
$im = imagecreatefrompng("image.png");
// if there's an error, stop processing the page:
if(!$im)
{
die("");
}

// define some colours to use with the image
$yellow = imagecolorallocate($im, 255, 255, 0);
$black = imagecolorallocate($im, 0, 0, 0);

// get the width and the height of the image
$width = imagesx($im);
$height = imagesy($im);

// draw a black rectangle across the bottom, say, 20 pixels of the image:
imagefilledrectangle($im, 0, ($height-20) , $width, $height, $black);

// now we want to write in the centre of the rectangle:
$font = 4; // store the int ID of the system font we're using in $font
$text = "tiposaurus"; // store the text we're going to write in $text
// calculate the left position of the text:
$leftTextPos = ( $width - imagefontwidth($font)*strlen($text) )/2;
// finally, write the string:
imagestring($im, $font, $leftTextPos, $height-18, $text, $yellow);

// output the image
// tell the browser what we're sending it
Header('Content-type: image/png');
// output the image as a png
imagepng($im);

// tidy up
imagedestroy($im);
?&gt;</pre>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/18/write-text-on-to-an-existing-png-image-using-php/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Employee Rights: What breaks are you entitled to?</title>
		<link>http://www.tiposaurus.co.uk/2012/04/17/employee-rights-what-breaks-are-you-entitled-to/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/17/employee-rights-what-breaks-are-you-entitled-to/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 23:27:15 +0000</pubDate>
		<dc:creator>Tiposaurus</dc:creator>
				<category><![CDATA[Careers]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tiposaurus.co.uk/?p=329</guid>
		<description><![CDATA[The amount of time you get is determined by your employer – it may be in your contract or might just be how your employer treats others with your job. There are legal minimums though. An adult over 18 is entitled to a 20 minute break if they’re working more than 6 hours in a [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>The amount of time you get is determined by your employer – it may be in your contract or might just be how your employer treats others with your job.<br />
There are legal minimums though.</p>
<ul>
<li>An adult over 18 is entitled to a 20 minute break if they’re working more than 6 hours in a go.</li>
<li>Those who are between 16 and 18 are entitled to a 30 minute break if they’re working more than 4 and a half hours in one go.</li>
</ul>
<p>This break must be all in one go, and in the middle of a shift (not at the beginning or the end).</p>
<p>An adult is usually entitled to a break of 11 hours between working days, while for a young worker (someone above school leaving age but aged below 18) this is 12 hours. And an adult is entitled to 24 hours free of work once a week or 48 in a fortnight, while a young worker is entitled to 48 hours a week clear of work.</p>
<p>However, there are exemptions to these rules (for example agriculture workers during a peak time).</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/17/employee-rights-what-breaks-are-you-entitled-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Job Profile: Stockroom Assistant at Argos</title>
		<link>http://www.tiposaurus.co.uk/2012/04/17/job-profile-stockroom-assistant-at-argos/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/17/job-profile-stockroom-assistant-at-argos/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 23:25:50 +0000</pubDate>
		<dc:creator>Tiposaurus</dc:creator>
				<category><![CDATA[Careers]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[argos]]></category>
		<category><![CDATA[job profile]]></category>
		<category><![CDATA[stockroom assistant]]></category>

		<guid isPermaLink="false">http://www.tiposaurus.co.uk/?p=327</guid>
		<description><![CDATA[As an Argos stockroom assistant, you take the picking ticket as it comes through, take the item off the shelf and send it down the conveyor belt. Some items can be heavy, but in that case you aren’t expected to lift it on your own – you should ask for help. You may also have [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>As an Argos stockroom assistant, you take the picking ticket as it comes through, take the item off the shelf and send it down the conveyor belt.</p>
<p>Some items can be heavy, but in that case you aren’t expected to lift it on your own – you should ask for help.</p>
<p>You may also have to count stock.</p>
<p>Related Article:</p>
<ul>
<li><a title="Questions to prepare for a Retail Interview" href="http://www.tiposaurus.co.uk/2012/04/questions-to-prepare-for-a-retail-interview/">Questions to prepare for a Retail Interview</a></li>
</ul>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/17/job-profile-stockroom-assistant-at-argos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Employer Profile: B&amp;Q</title>
		<link>http://www.tiposaurus.co.uk/2012/04/17/employer-profile-bq/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/17/employer-profile-bq/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 23:21:32 +0000</pubDate>
		<dc:creator>Tiposaurus</dc:creator>
				<category><![CDATA[Careers]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[B&Q]]></category>
		<category><![CDATA[careers]]></category>
		<category><![CDATA[employer profile]]></category>

		<guid isPermaLink="false">http://www.tiposaurus.co.uk/?p=323</guid>
		<description><![CDATA[Originally called Block &#38; Quayle, which was later shortened to B&#38;Q. Part of the Kingfisher retailer group, who used to own Woolworths, however they were sold in 2001. Staff Discounts: 20% at B&#38;Q, 10% at other Kingfisher stores. Related Article: Questions to prepare for a Retail Interview]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>Originally called Block &amp; Quayle, which was later shortened to B&amp;Q.</p>
<p>Part of the Kingfisher retailer group, who used to own Woolworths, however they were sold in 2001.</p>
<p>Staff Discounts: 20% at B&amp;Q, 10% at other Kingfisher stores.</p>
<p>Related Article:</p>
<ul>
<li><a title="Questions to prepare for a Retail Interview" href="http://www.tiposaurus.co.uk/2012/04/questions-to-prepare-for-a-retail-interview/">Questions to prepare for a Retail Interview</a></li>
</ul>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/17/employer-profile-bq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Questions to prepare for a Retail Interview</title>
		<link>http://www.tiposaurus.co.uk/2012/04/17/questions-to-prepare-for-a-retail-interview/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/17/questions-to-prepare-for-a-retail-interview/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 23:17:16 +0000</pubDate>
		<dc:creator>Tiposaurus</dc:creator>
				<category><![CDATA[Careers]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[questions]]></category>
		<category><![CDATA[retail]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.tiposaurus.co.uk/?p=320</guid>
		<description><![CDATA[Got an interview for a shop assistant position at a retailer, such as Tesco or M&#38;S? Hopefully this article will give you some idea of what questions to expect. Customer service is important, and if you have had retail experience then you may be asked about times you’ve dealt with a difficult customer, or if [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>Got an interview for a shop assistant position at a retailer, such as Tesco or M&amp;S? Hopefully this article will give you some idea of what questions to expect.</p>
<p>Customer service is important, and if you have had retail experience then you may be asked about times you’ve dealt with a difficult customer, or if you haven’t had any experience, you may be asked hypothetical questions about such a scenario.<span id="more-320"></span></p>
<p>Some questions to expect:</p>
<ul>
<li>Why would you be a good employee?</li>
<li>Why do you want to work here?</li>
<li>What do you know about &lt;company&gt;?</li>
<li>What woud you do if a customer asked you where something was?
<ul>
<li>Take them to it, never just tell them</li>
</ul>
</li>
<li>What would you do if you suspected someone was stealing?
<ul>
<li>Don’t approach them, keep an eye on them and tell security</li>
</ul>
</li>
<li>What would you do if you faced a difficult customer?</li>
<li>What are your ambitions? / Where do you see yourself in 5 years time?
<ul>
<li>Show some ambition, but they won’t want to hire someone that intends to leave soon.</li>
</ul>
</li>
<li>Have you ever worked as part of a team before? What was your role?</li>
<li>What would you do if you had a disagreement with someone in your team?</li>
<li>Is there anything you would like to know about us?</li>
</ul>
<p>In your answers you should try to appear customer focused, diplomatic and pleasant to work with.</p>
<p>Also remember to ask questions at the end if you get the chance (and you will). Even simple questions about how busy their store is, how many other people work there, and what you’ll be doing are better than asking nothing, however make sure you don’t seem completely ignorant of the company and the position you’re interviewing for.  Good luck.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/17/questions-to-prepare-for-a-retail-interview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hints for a first interview at PricewaterhouseCoopers</title>
		<link>http://www.tiposaurus.co.uk/2012/04/17/hints-for-a-first-interview-at-pricewaterhousecoopers/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/17/hints-for-a-first-interview-at-pricewaterhousecoopers/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 23:15:47 +0000</pubDate>
		<dc:creator>Tiposaurus</dc:creator>
				<category><![CDATA[Careers]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[careers]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[PricewaterhouseCoopers]]></category>
		<category><![CDATA[PwC]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.tiposaurus.co.uk/?p=318</guid>
		<description><![CDATA[A first interview for a graduate position with PwC usually lasts 45 minutes to an hour, and takes place at the office you’re applying to with a manager there. It is usually quite a relaxed interview, a bit like a chat, in which they lead a discussion about points on your application form. You should [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>A first interview for a graduate position with PwC usually lasts 45 minutes to an hour, and takes place at the office you’re applying to with a manager there. It is usually quite a relaxed interview, a bit like a chat, in which they lead a discussion about points on your application form.</p>
<p>You should expect to be asked questions about your courses at university (“What modules did you like?” or “What did they involve?”), as well as any additional experiences and interests outside university.  If there is anything unusual on your application form then be prepared to talk about that.<span id="more-318"></span></p>
<p>Other topics you might be asked questions on:</p>
<ul>
<li>How you manage your time between university and your other interests.
<ul>
<li> “Was there ever a time where you weren’t able to do all the work that you had?”</li>
</ul>
</li>
<li>Employment and voluntary experience – general questions or inquiries about particular details.</li>
</ul>
<p>There is also a question or two where you are asked to display some knowledge of business or issues in the business stream, for example:</p>
<ul>
<li>Is there any business news you’ve read about recently?</li>
<li>Talk about an issue in Accountancy from the last 5 years. (Audit)</li>
<li>Do you know of any recent issues or news in VAT/Indirect Tax? (Indirect Tax)</li>
</ul>
<p>To prepare for these, it’s probably best to read financial newspapers every so often for a period prior to the interview and keep up with any major news. Be able to talk a bit about some recent issues, and be prepared to be asked follow-up questions (for instance if you talk about a takeover bid, “what does company X have to gain from this?”).</p>
<p>This information was prepared from my own experience and that of others. Hopefully this will give a couple of hints to anyone preparing for an interview, but remember that interview practices may change and this list is by no means conclusive.  Good luck.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/17/hints-for-a-first-interview-at-pricewaterhousecoopers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rotating Images with PHP</title>
		<link>http://www.tiposaurus.co.uk/2012/04/17/rotating-pictures-with-php/</link>
		<comments>http://www.tiposaurus.co.uk/2012/04/17/rotating-pictures-with-php/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 09:12:01 +0000</pubDate>
		<dc:creator>Tiposaurus</dc:creator>
				<category><![CDATA[Image Handling]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[image handling]]></category>
		<category><![CDATA[image manipulation]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://discomoose.org/2006/04/28/rotating-pictures-with-php/</guid>
		<description><![CDATA[This tutorial will show you how to rotate an image in your PHP scripts. You'll need to have the GD library installed to be able to use some of the functions we use in this guide, though this is included with most PHP installations so there's a chance you'll have it. Image rotation in PHP [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<p>This tutorial will show you how to rotate an image in your PHP scripts. You'll need to have the GD library installed to be able to use some of the functions we use in this guide, though this is included with most PHP installations so there's a chance you'll have it.</p>
<p>Image rotation in PHP is handled by a function called <code>imagerotate()</code>, which takes three parameters (and optionally a fourth, which deals with transparency and is beyond the scope of this guide). The first is the resource identifier which you obtain when you load the original image within your script, the second is the angle which you want to rotate the image and the third parameter is used when the image isn't going to be rectangular, and specifies the colour with which to fill the uncovered areas of the rotated image to make it into a rectangle (since all image formats require rectangular images).</p>
<p><span id="more-16"></span></p>
<p>The first thing we need to do is to load the original image into the script, we do this with a command such as imagecreatefromjpeg("file.jpg") for JPEG images, or imagecreatefrompng("file.png") for PNG images.</p>
<pre>// filename of the original image
$fileName = "cow.jpg";
// load the original image from the file
$original = imagecreatefromjpeg($fileName);</pre>
<p>In this example, we're using an image called cow.jpg. The method imagecreatefromjpeg() returns a resource identifier which represents that image within the script - we store this in the variable $original. We need to pass this as the first parameter of the imagerotate() method.</p>
<p>The original image we're using is this particularly nice cow:<br />
<a href="http://www.tiposaurus.co.uk/2012/04/rotating-pictures-with-php/cow/" rel="attachment wp-att-263"><img class="alignnone size-full wp-image-263" title="cow" src="http://www.tiposaurus.co.uk/wp-content/uploads/2012/04/cow.jpg" alt="picture of a cow" width="252" height="196" /></a></p>
<p>Now it's time to rotate the image! First we have to decide how many degrees to rotate the image <em>anti-clockwise</em>. Firstly, we'll just roate the image 90 degrees - this means that the resulting image will be rectangular and we won't have to worry about the third parameter.</p>
<pre>// degrees to rotate the image (counter clockwise)
$angle = 90.0;
// rotate the image by $angle degrees
$rotated = imagerotate($original, $angle, 0);</pre>
<p>We pass the original image identifer - $original - and the angle to rotate by - $angle - into the imagerotate() function. In this special case the third parameter isn't important so we'll just enter 0 (which represents the colour black). This returns an identifier for the new rotated image, which we store in the variable $rotated.</p>
<p>Now it's time to display the image. We first tell the browser the content type (IE what sort of image we're going to display) then use the appropriate command to output the data of the image. We're dealing with JPEG images in this example, so the Content-type is "image/jpeg" and the method to output the image is imagejpeg().</p>
<pre>// print the appropriate header type
// this tells the browser we're displaying a jpeg image
header('Content-type: image/jpeg');
// use the imagejpeg() method to display the rotated image
imagejpeg($rotated);</pre>
<p>That code tells the browser we're about to display a jpeg image, then we call imagejpeg($rotated) which turns the image identified by $rotated into the a JPEG image for the browser to display. The output of this code is a sideways cow:<br />
<a href="http://www.tiposaurus.co.uk/2012/04/rotating-pictures-with-php/cow-90/" rel="attachment wp-att-262"><img class="alignnone size-full wp-image-262" title="cow.90" src="http://www.tiposaurus.co.uk/wp-content/uploads/2012/04/cow.90.jpg" alt="Sideways picture of a cow" width="196" height="252" /></a></p>
<p>Now let's consider the case where you want to rotate an image by an angle such as 45 degrees which requires the imagerotate() method to fill around the rotated image to produce a rectangle. We need to pass an integer as the third parameter to tell the method which colour to fill around the image with. We will do this by specifying the hexidecimal representation of the colour, as is used in HTML. For example, FF0000 is red (each digit is between 0-F; the first two digits represent the red component, the next two are green and the last two are blue) - in HTML we would use #FF0000. To tell PHP that we're using hex to represent the numbers rather than decimal, we must prefix this number by <strong>0x</strong> (zero x).</p>
<pre>// degrees to rotate the image (counter clockwise)
$angle = 45.0;
// if the resulting image is not rectangular..
// .. what colour will the uncovered bits be?
$bgColour = 0xFF0000; // red
// rotate the image by $angle degrees
$rotated = imagerotate($original, $angle, $bgColour);</pre>
<p>The imagerotate() method works as with a 90 degree rotation except fills the outsides with the colour red. The resulting output is:<br />
<a href="http://www.tiposaurus.co.uk/2012/04/rotating-pictures-with-php/cow-45/" rel="attachment wp-att-261"><img class="alignnone size-full wp-image-261" title="cow.45" src="http://www.tiposaurus.co.uk/wp-content/uploads/2012/04/cow.45.jpg" alt="Picture of a cow rotated 45 degrees" width="317" height="317" /></a></p>
<p>Other hexidecimal colour codes are:</p>
<ul>
<li>0xFFFFFF - white</li>
<li>0x00FF00 - green</li>
<li>0x000000 - black</li>
</ul>
<p>That's it! This tutorial should have helped you to rotate images in PHP.</p>
<p>The full PHP code for the 45 degree example is below:</p>
<pre> // filename of the original image
$fileName = "cow.jpg";

// degrees to rotate the image (counter clockwise)
$angle = 45.0;

// if the resulting image is not rectangular..
// .. what colour will the uncovered bits be?
$bgColour = 0xFFFFFF; // red

// load the original image from the file
$original = imagecreatefromjpeg($fileName);

// rotate the image by $angle degrees
$rotated = imagerotate($original, $angle, $bgColour);

// print the appropriate header type
// this tells the browser we're displaying a jpeg image
header('Content-type: image/jpeg');
// use the imagejpeg() method to display the rotated image
imagejpeg($rotated);
?&gt;</pre>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.tiposaurus.co.uk/2012/04/17/rotating-pictures-with-php/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

