<?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>Arteki &#187; Tutorials</title>
	<atom:link href="http://www.arteki.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arteki.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Feb 2011 18:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://www.arteki.com</link>
  <url>http://www.arteki.com/wordpress//wp-content/themes/Evolution/images/favicon.ico</url>
  <title>Arteki</title>
</image>
<cloud domain='www.arteki.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>How to make custom retweet links in WordPress</title>
		<link>http://www.arteki.com/how-to-make-custom-retweet-links-in-wordpress/</link>
		<comments>http://www.arteki.com/how-to-make-custom-retweet-links-in-wordpress/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 18:14:37 +0000</pubDate>
		<dc:creator>Gaby</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.arteki.com/?p=290</guid>
		<description><![CDATA[Providing a retweet link on your site is a great way to encourage Twitter users to let others know about a post. In this tutorial I provide you with an easy way to do this in Wordpress and then explain it for those who are interested. This tutorial is perfect for those who want to provide retweet links that use their own domain name for the short url.]]></description>
			<content:encoded><![CDATA[<p>Providing a retweet link on your site is a great way to encourage Twitter users to let others know about a post. In this tutorial I provide you with an easy way to do this in WordPress and then explain it for those who are interested. This tutorial is perfect for those who want to provide retweet links that use their own domain name for the short url.</p>

<h3>Custom short url using La Petite Url</h3>

<p>Before you can use the code I provide here you need to install the <a href="http://extrafuture.com/projects/la-petite-url/">La Petite Url plugin</a> to your WordPress installation. This is a beautiful plugin that creates short urls <strong>using your own domain name</strong>.</p>

<p>Retweet services such as tweetmeme are wonderful, but I moved away from using tweetmeme because I wanted to use my own domain for the link to preserve branding.</p>

<h3>What the code does</h3>

<p>My code takes a function from La Petite Url that would usually echo the shorturl and instead create a retweet link that is than echoed.</p>

<p>It also strips out <code>www.</code> if it exists in the url to make it even shorter. This is needed beause La Petite Url builds up the url using <code>bloginfo('site_url')</code> which will contain <code>www.</code> if that's how you have your normal urls display.</p>

<p><strong>This hack is also safe to use in the event La Petite Url gets deactivated.</strong> If the La Petite Url function this is based on does not exist my function will switch to using the post's permalink, minus <code>www.</code>, which Twitter will then convert to a bit.ly link if need be.</p>

<h3>The code</h3>

<p>Copy the following code into your theme's <code>functions.php</code> file.</p>

<p><em><strong>Update</strong> - Thank you very much to <a href="http://www.arteki.com/how-to-make-custom-retweet-links-in-wordpress/#comment-988">Chris Neale</a> for pointing out I was using <code>preg_replace()</code> where only <code>str_replace()</code> was needed. I have updated the code below.</em></p>

<pre>
/**
  * Must be called within The Loop
  */
function retweet_url() {
    $the_url;
    
    //if "la petite url" plugin is available
    if(function_exists('the_petite_url_link')) {
        //an edit of the_petite_url_link() from the plugin
        global $wp_query;
        global $wpdb;
        global $petite_table;
        
        
        $blogurl = get_bloginfo('siteurl');
        $url_table = $wpdb->prefix . $petite_table;
        $post_id = $wp_query->post->ID;
        $anchor_text = get_option('le_petite_url_link_text');

        $petite_url = $wpdb->get_var("SELECT petite_url FROM ".$url_table
            ." WHERE post_id = ".$post_id."");
        if($petite_url != "")
        {
            $le_petite_url_permalink = $blogurl;
            if(get_option('le_petite_url_permalink_prefix') != "")
            {
                $le_petite_url_permalink = $le_petite_url_permalink
                    . get_option('le_petite_url_permalink_custom');
            }
            else
            {
                $le_petite_url_permalink = $le_petite_url_permalink . "/";
            }
            $le_petite_url_permalink = $le_petite_url_permalink . $petite_url;
            
        //below differs from the_petite_url_link()
            $the_url = $le_petite_url_permalink;
        }
        else {
            $the_url = get_permalink();
        }
    }
    else
        $the_url = get_permalink();
    
    //for accessing the post title directly
    global $post;
    
    //edit this to your Twitter name
    $twitter_account = "YOURSITE";
    
    echo "http://twitter.com/home/?status=RT+%40"
    .$twitter_account."+"
    .urlencode($post->post_title)."+"
    .str_replace("www.", "", $the_url);
}
</pre>

<p><strong>Don't forget to edit the <code>$twitter_name</code> variable!</strong></p>

<h3>Using it in context</h3>

<p>You can now simply call <code>retweet_url()</code> in your theme where you want the url. <em class="warning">You must call it within the loop</em>.</p>

<p>Here is an example of how I use it on Arteki:</p>

<pre>
&lt;a title="Tweet about this article!"  href="&lt;?php retweet_url(); ?&gt;" rel="nofollow"&gt;Tweet&lt;/a&gt;
</pre>

<p>This is the basis of my retweet buttons, which you can see below this article in the "Share this" section.</p>

<h3>The code explained</h3>
<p>For those that are interested I will explain the parts of the code that builds the retweet url.</p>

<pre>
$the_url = get_permalink();
</pre>

<p><code>get_permalink()</code> is a WordPress function that is essentially the same as <code>the_permalink()</code>. The difference is that it returns the permalink rather than echoing it.</p>
<br />
<pre>
global $post;
</pre>
<pre>
.urlencode($post->post_title)."+"
</pre>

<p><code>global $post</code> brings into scope the array that contains all the information about the post in the current loop of The Loop. This is needed because otherwise <code>$post</code> would refer to a new local variable of the same name. From this we can grab the post's title then encode it using <code>urlencode</code> to make special characters their url friendly versions.</p>

<p>It would of course be possible to use <code>get_the_title()</code> to retrieve the title of the post to encode, but this leads to some issues when using <code>urlencode</code>. It seems WordPress functions will convert any <a href="http://www.webmonkey.com/reference/Special_Characters">special characters</a> such as apostrophes into their number code equivalent, e.g. &amp;#39; for an apostrophe. <code>urlencode</code> then converts all of those characters to their url friendly versions. This causes an ugly string of characters to be in the Twitter status box instead of the desired character.</p>

<p><small>I may be wrong about the exact problem between the_title() and urlencode() but this workaround was needed.</small></p>
<br />
<pre>
.str_replace("www.", "", $the_url);
</pre>

<p>This is what removes <code>www.</code> from the url to make the url shorter.</p>

<h3>Your thoughts or questions</h3>

<p>Do you have any thoughts or questions on this solution? I'd love to hear from you so please leave a comment, or if you'd rather you can email me using the <a href="http://www.arteki.com/contact/">contact form</a>.</p>

<p>I'd also be interested to hear of any existing WordPress retweet links, e.g. code you've seen or came up with or even plugins.</p>]]></content:encoded>
			<wfw:commentRss>http://www.arteki.com/how-to-make-custom-retweet-links-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to dual boot Vista and XP in 6 steps</title>
		<link>http://www.arteki.com/how-to-dual-boot-vista-and-xp-in-6-steps/</link>
		<comments>http://www.arteki.com/how-to-dual-boot-vista-and-xp-in-6-steps/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 02:05:18 +0000</pubDate>
		<dc:creator>Gaby</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dual boot]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.arteki.com/?p=259</guid>
		<description><![CDATA[Dual booting a computer can seem daunting if you have never attempted it before, but it is quite a simple task when given clear instructions. Windows 7 is coming soon, but there may well still be people who are considering dual booting Vista with XP, so I've decided to share how I go about doing this. I have done this several times and on different computers, you can trust I've actually followed the steps outlined in this tutorial.]]></description>
			<content:encoded><![CDATA[<p>Dual booting a computer can seem daunting if you have never attempted it before, but it is quite a simple task when given clear instructions. Windows 7 is coming soon, but there may well still be people who are considering dual booting Vista with XP, so I&#8217;ve decided to share how I go about doing this. I have done this several times and on different computers, you can trust I&#8217;ve actually followed the steps outlined in this tutorial. <img src='http://www.arteki.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
<p>Most steps will be relevant to Windows 7, I imagine. Just replace &#8220;Vista&#8221; with &#8220;Windows 7&#8243;.</p>
<p>This is a very quick tutorial that expects you to have some understanding of or familiarity with the installation screens for Vista and XP. If you don&#8217;t it should be possible to follow this tutorial, just make sure you have a copy available to reference.</p>
<p>I take no responsibility if something should go wrong with your system while following this tutorial. However, I am quite willing to try to help with any issues.</p>
<p><em class="warning">Please read all steps before following them.</em></p>
<h3>What you will need</h3>
<p>It is important to check you have all of the following on portable media (i.e. some where other than your computer) before you begin this process:</p>
<ol>
<li>Genuine install disk for Windows Vista and genuine activation key.</li>
<li>Genuine install disk for Windows XP and genuine activation key.</li>
<li>Network driver for Vista.</li>
<li>Network driver for XP.</li>
<li>The install file for <a title="EasyBCD download page" href="http://neosmart.net/dl.php?id=1">EasyBCD</a></li>
</ol>
<p>You should also ensure you have access to all the other drivers that came with your system, e.g. a driver CD or access to them through the manufacturer&#8217;s website. However, if you have your network driver you should be able to obtain your other drivers through the device manager once you are connected to the Internet.</p>
<p><small><em class="warning">Please be aware that if your system is fairly new you may not be able to find all the drivers you need for XP if your computer did not come with XP.</em> One example of this is if your hard drive is SATA. XP&#8217;s installation does not support SATA drivers and will result in a blue screen of death. Please <a href="http://www.arteki.com/contact/">contact me</a> if this is the case for you, I know a work around.</small></p>
<h3>Step 1. Back up files</h3>
<p>This may seem quite obvious to do, but I think it&#8217;s one of those things that is so obvious it can easily be overlooked.</p>
<p>Even if you are planning to shrink a volume to make space for a second partition (see step 2) it is important to back up your files in case something goes wrong.<br />
<h3>Step 2. Create the partitions</h3>
<h4>Option 1 (recommended)</h4>
<p><em class="warning">Warning! This option will completely wipe your hard drive, so be sure to back up your files first.</em></p>
<ol>
<li>
<p>Insert the Vista installation CD and boot your computer. At the bios, press the key to enter the boot options screen (usually F12)</p>
</li>
<li>
<p>Select the option to boot from your CD/DVD. Remember it will ask you to hit any key to confirm &#8211; it only gives you a few seconds.</p>
</li>
<li>
<p>Follow the standard installation steps until you reach the dialog that asks you which partition to install Vista on.</p>
</li>
<li>
<p>Delete any existing partitions.</p>
</li>
<li>
<p>Create a partition for Vista and another for XP. I recommend atleast 30GB for each (enter 30720MB), as Vista recommends around 24GB of free space on it&#8217;s partition. Create any other desired partitions.</p>
<p>It is possible to have a 3rd partition which you can use as an install location for programs. Surprisingly few programs actually require registry entries to run. My husband&#8217;s computer is set up this way so he doesn&#8217;t have to install programs on each OS.</p>
</li>
<li>Continue to step 3.</li>
</ol>
<h4>Option 2 (existing Vista install only)</h4>
<p>Alternatively you can attempt to shrink your existing OS partition if it is Vista.</p>
<ol>
<li>
<p>Open <strong>Control panel -> Administrative tools -> Computer Management</strong> (alternatively right click &#8220;My Computer&#8221; and select &#8220;Manage&#8221;).</p>
</li>
<li>
<p>Select &#8220;Disk Management&#8221; under &#8220;Storage&#8221;</p>
</li>
<li>
<p>Right click the partition you wish to shrink and select &#8220;Shrink<br />
Volume&#8221;.</p>
</li>
<li>
<p>You will be told how much you can shrink the volume by and are asked to input how much you wish to shrink it. Input an amount and click the shrink button.</p>
<p><small>N.B. The amount is likely to be smaller than the free space on the partition. This is due to fragmentation and unmovable files. Defragmenting the partition could increase the amount you can shrink by, however unmovable files are, as the name suggests, unmovable so defragmenting will only help to the point that an unmovable file is the last partition entry.</small></p>
</li>
<li>
<p>Use the disk management tool to create a new partition for XP with the space you freed up. To do this, right click the unallocated space and chose &#8220;New Partition&#8221;. Follow the partition wizard&#8217;s instructions.</p>
</li>
<li>Continue to step 4.</li>
</ol>
<h3>Step 3. Install Vista</h3>
<p><small>No need to do this if you did option 2 in step 2.</small></p>
<p>Boot from the Vista installation disk and install Vista on the first partition. The installation process is fairly straight forward, just follow the instructions.</p>
<p><small>Reminder: To boot from the install disk, hit the key for boot options on the bios screen (usually F12), chose to boot from CD/DVD and remember to press any key when prompted.</small></p>
<p>I don&#8217;t see that you <em>have</em> to install Vista first, but really as the newer OS you should have it on the first partition.</p>
<h3>Step 4. Install XP</h3>
<p>Boot from the XP installation disk and install XP on the second partition. Again, just follow the instructions Microsoft provide on the installation.</p>
<h3>Step 5. Repair Vista&#8217;s boot</h3>
<p>As Vista is the newer OS, it should be the one to &#8220;control&#8221; the boot sector of your computer. However, as XP was installed sencond it wrote over Vista&#8217;s boot sector and so Vista&#8217;s boot sector needs to be repaired to overwrite XP&#8217;s.</p>
<p>To do this, boot onto the Vista installation disk, but instead of going to the install option select the repair option (it&#8217;s near the bottom of the dialog in smaller text).</p>
<p>On the next screen, select the option for repairing the startup (top option). When it has completed it will ask you to confirm you want to exit and it will restart your computer.</p>
<p>If this stage was successful your computer should boot into Vista.</p>
<h3>Step 6. Set up the boot option screen</h3>
<p>At this stage you can only boot into Vista. To be able to boot into XP you need to add it to the boot list.</p>
<p>You can edit boot options without 3rd party software, but I find it is much easier (and some what safer) to use a tool to help you with this. I use EasyBCD to manage my triple boot and find it is very easy to use.</p>
<ol>
<li>
<p>Install EasyBCD on Vista.</p>
</li>
<li>
<p>Run EasyBCD and go to the &#8220;Add/Remove Entries&#8221; section.</p>
</li>
<li>
<p>In the &#8220;Add an Entry&#8221; subsection, go to the &#8220;Windows&#8221; tab, select XP from the drop down box and click the add entry button.</p>
</li>
</ol>
<p>Et voilà. Your dual boot is complete.</p>
<p>You can use EasyBCD to further customise your boot options, such as default OS, time until default is booted and the text that appears for each OS. Those 3 options are in the &#8220;Change Settings&#8221; section.</p>
<h3>Let me know how it goes</h3>
<p>If you dual boot your machine, or if you have in the past, please tell me of your experiences. Did you come across any difficulties?</p>
<p>Please leave a comment below.</p>
<h3>Need any help?</h3>
<p>If you need any help, please contact me with your queries via the <a href="http://www.arteki.com/contact/">contact form</a> and I will get back to you ASAP.</p>
<p>No problem is too small, I&#8217;m happy to try to help. <img src='http://www.arteki.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.arteki.com/how-to-dual-boot-vista-and-xp-in-6-steps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Protect your images using meta-data</title>
		<link>http://www.arteki.com/protect-your-images-using-meta-data/</link>
		<comments>http://www.arteki.com/protect-your-images-using-meta-data/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 14:00:00 +0000</pubDate>
		<dc:creator>Gaby</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[image theft]]></category>
		<category><![CDATA[meta-data]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.arteki.com/?p=243</guid>
		<description><![CDATA[There is no way to guarantee your images will not be stolen once you have put them in the Internet. There are, however, several ways to help people realise the image belongs to you. One of these methods uses meta-data to embed your details into the file and in this tutorial I will show you how using Adobe Photshop.]]></description>
			<content:encoded><![CDATA[<p>There is no way to guarantee your images will not be stolen once you have put them in the Internet. There are, however, several ways to help people realise the image belongs to you. One of these methods uses meta-data to embed your details into the file and in this tutorial I will show you how using Adobe Photshop.</p>
<p>This tutorial shows you how to add meta data in Photoshop CS2, however it should still be applicable for newer versions of Photoshop.</p>
<h3>Photoshop&#8217;s file info tool</h3>
<p><strong>Step 1 -</strong> Open your image in Photoshop then from the File menu select &#8220;File Info&#8221;. Alternatively you can use the keyboard shortcut: Alt+Shift+Ctrl+I</p>
<p><img alt="A screenshot of Photoshop showing the file menu open with File Info selected" class="center" src="http://www.arteki.com/wordpress/wp-content/uploads/metadata-tutorial-1.jpg" width="500" height="606" /></p>
<p><strong>Step 2 -</strong> When the file info dialog appears you should be in the &#8220;Description&#8221; section already, but if not, select it.</p>
<p><img alt="A screenshot of Photoshop showing part of the File Info dialog. There is a list of File Info sections with Description being the top one." class="center" src="http://www.arteki.com/wordpress/wp-content/uploads/metadata-tutorial-2.jpg" width="167" height="236" /></p>
<p><strong>Step 3 -</strong> Fill out all the sections that you feel are applicable to you. The image below shows the fields I fill in, but I have highlighted the most important field, which you should always fill in (I&#8217;ll explain why in a minute). You should also select &#8220;Copyrighted&#8221; in the copyright status field to remove any doubt.</p>
<p><img alt="A screenshot of Photoshop showing the Description section of the File Info dialog. The Copyright Notice section is highlighted as important." class="center" src="http://www.arteki.com/wordpress/wp-content/uploads/metadata-tutorial-3.jpg" width="500" height="453" /></p>
<p>To the right of each field is a drop down menu containing text you recently entered into it. This is a great time save for fields that will always have the same text, for example Author Name.</p>
<p><strong>Step 4 -</strong> Click the ok button on the dialog and there should now be a &copy; symbol next to the file name on the title bar of the open image. This will only be the case if you selected copyrighted in the copyright status field (which you should have done <img src='http://www.arteki.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ).</p>
<p><img alt="A screenshot of Photoshop showing the title bar of an open file. The title bar has the copyright symbol to the left of the title text." class="center" src="http://www.arteki.com/wordpress/wp-content/uploads/metadata-tutorial-4.jpg" width="304" height="40" /></p>
<p>The copyright symbol will appear like that for anyone who opens the image in Photoshop once you&#8217;re done saving the file.</p>
<p><strong>Step 5 -</strong> Save the file. The file info will attach to a PSD file, so I recommend if you are working with a PSD you save it after adding the file info. Any JPG files you save from it will contain the meta-data.</p>
<p><em class="warning">Warning!</em> The met-data will not save with the JPG if you chose the &#8220;Save for Web&#8221; option. You must save through either &#8220;Save&#8221; or &#8220;Save As&#8221;.</p>
<p>Anyone can view the meta-data in Photoshop by going to the File Info dialog as you did to save the data.</p>
<h3>Viewing meta-data outside Photoshop</h3>
<p>Not everyone is fortunate enough to have a copy of Photoshop. Those who don&#8217;t can still view some image meta-data through Windows (and probably other OSs too, but I&#8217;ll only cover Windows XP today).</p>
<p>Right click your saved JPG and chose &#8220;Properties&#8221;. In the properties dialog, go to the &#8220;Summary&#8221; tab and then go to the advanced view using the button at the bottom (it says &#8220;Simple&#8221; if you are already in advanced view.</p>
<p><img alt="A screenshot of a Windows XP properties dialog box for an image file. The Summary tab is selected and is on Advanced view. The Copyright section's text is the same as entered in the Copyright Notice section in Photoshop." class="center" src="http://www.arteki.com/wordpress/wp-content/uploads/metadata-tutorial-5.jpg" width="367" height="509" /></p>
<p>As you can see, the only copyright information that shows is what you wrote in the copyright notice field. That is why it is so important to fill out that section.</p>
<p>Windows doesn&#8217;t make it easy to read the full text, but you can adjust the column width to read it all.</p>
<h3>It has its flaws</h3>
<p>As I said, there is no guaranteed way to protect your images. Meta-data can be stripped from a file or it can simply be missed. I would love to see web browsers display file meta-data when viewing image properties.</p>
<p>However, meta-data is better than no meta-data. If someone doesn&#8217;t realise the data is there and uploads the image to their site, you can prove it is yours by extracting the data from the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arteki.com/protect-your-images-using-meta-data/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

