<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Rounded Works</title>
	
	<link>http://www.roundedworks.com</link>
	<description>Manchester web design, eCommerce solutions and bespoke web applications</description>
	<lastBuildDate>Wed, 09 Nov 2011 12:34:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/roundedworks" /><feedburner:info uri="roundedworks" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>5 of the best WordPress cheat sheets</title>
		<link>http://feedproxy.google.com/~r/roundedworks/~3/ctth8EqUxyI/</link>
		<comments>http://www.roundedworks.com/notebook/wordpress/5-of-the-best-wordpress-cheat-sheets/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 19:40:27 +0000</pubDate>
		<dc:creator>wayne</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.roundedworks.com/?p=209</guid>
		<description><![CDATA[Whether you are just starting out with WordPress or you are a seasoned developer, it&#8217;s always handy to have a reference you can refer to when you can&#8217;t quite remember how to access one of the built-in functions or the correct syntax for The Loop. The following are 5 of the best cheat sheets I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Whether you are just starting out with WordPress or you are a seasoned developer, it&#8217;s always handy to have a reference you can refer to when you can&#8217;t quite remember how to access one of the built-in functions or the correct syntax for The Loop. The following are 5 of the best cheat sheets I&#8217;ve come across. Print them out and pin them to your notice board!</p>
<h2>1. The Loop Cheat Sheet (bueltge.de)</h2>
<p><a href="http://bueltge.de/wp-content/download/wp/WP_loop.pdf" target="_blank">Download The Loop WordPress cheat sheet</a></p>
<h2>2. Complete WordPress Cheat Sheet (ekinertac.com)</h2>
<p><a href="http://docs.ekinertac.com/Wordpress-Cheat-Sheet.pdf" target="_blank">Download Complete WordPress cheat sheet</a></p>
<h2>3. Theme Development Cheat Sheet (wptoy.com)</h2>
<p><a href="http://wptoy.com/wp-content/uploads/2009/04/wordpress-theme-development-check-list.pdf" target="_blank">Download Theme Development WordPress cheat sheet</a></p>
<h2>4. WordPress Infographic Cheat Sheet (smashinghut.com)</h2>
<p><a href="http://www.smashinghut.com/wp-content/uploads/2011/05/The-Ultimate-WordPress-Cheatsheet-Infographic.jpg" target="_blank">Download WordPress Infographic cheat sheet</a></p>
<h2>5. Another Complete WordPress Cheat Sheet (onextrapixel.com)</h2>
<p><a href="http://www.onextrapixel.com/download/wordpress-cheat-sheet.pdf" target="_blank">Download Complete WordPress cheat sheet</a></p>
<p>Do let me know if you come across any better ones.</p>
<img src="http://feeds.feedburner.com/~r/roundedworks/~4/ctth8EqUxyI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.roundedworks.com/notebook/wordpress/5-of-the-best-wordpress-cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.roundedworks.com/notebook/wordpress/5-of-the-best-wordpress-cheat-sheets/</feedburner:origLink></item>
		<item>
		<title>10 CSS selectors you probably don’t know about</title>
		<link>http://feedproxy.google.com/~r/roundedworks/~3/uVpccLA_3Bg/</link>
		<comments>http://www.roundedworks.com/notebook/xhtmlcss/10-css-selectors-you-probably-dont-know-about/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 19:39:12 +0000</pubDate>
		<dc:creator>wayne</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>

		<guid isPermaLink="false">http://www.roundedworks.com/?p=203</guid>
		<description><![CDATA[Want to translate all your initial requirements into working websites without dabbling with JavaScript or adding countless lines to your stylesheets? With just a few nifty tricks you can achieve great things and add a lot of very useful functionality. Some of these advanced CSS selectors won&#8217;t work in all browsers, but most will work [...]]]></description>
			<content:encoded><![CDATA[<p>Want to translate all your initial requirements into working websites without dabbling with JavaScript or adding countless lines to your stylesheets? With just a few nifty tricks you can achieve great things and add a lot of very useful functionality. Some of these advanced CSS selectors won&#8217;t work in all browsers, but most will work in modern(ish) browsers.</p>
<p>Let me know if you have any more to add to the list.</p>
<h2>1. a[href^="http"]</h2>
<p>This selector will style any link with a href attribute starting with &#8216;http&#8217;. This can be useful for styling external links to make it clear that users are being redirected away from your website, or for doing fancy things like adding a padlock icon to any links that point to secure pages (in this case replace the &#8216;http&#8217; with &#8216;https&#8217;). Of course, you can change the string to whatever you want.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">a[href^=&quot;http&quot;] {
  background:url(images/new-window.png) no-repeat;
  padding-right:30px;
} </pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<h2>2. h1 ~ p</h2>
<p>The tilda(~) selector will select any element that is preceeded by the first element. This example will select any paragraph that is preceeded by a h1 tag. This could be useful if you wanted to indent paragraphs that are underneath a heading.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">h1 ~ p {
  text-indent:20px;
}</pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<h2>3. p:first-line / p:first-letter</h2>
<p>If you haven&#8217;t guessed already this selector will target the first line or first letter of any paragraph. You can use this on any element but using it with paragraphs is the most common.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">p:first-line {
  font-weight:bold;
}

p.fancy:first-letter {
  font-size:1.8em;
  font-weight:bold;
  color:#333;
}</pre>
<p>Compatible with Chrome, Firefox, IE6+, Opera, Safari</p>
<h2>4. img[alt]</h2>
<p>The attributes selector will only target the elements with the specified attribute. This example will add a border to any images that have an alt attribute. You could use this to manipulate images that have a title or alt attribute in order to display a caption, for example.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">
img[alt] {
  border:1px solid #000;
}
</pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<h2>5. :before / :after</h2>
<p>This CSS selector actually modifies the content of the page, not just the styling. You can insert content around the selected element using these selectors. In the following example the text &#8220;Error:&#8221; will be inserted before every paragraph with a class of &#8216;error&#8217;.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">
p.error:before {
  content: &quot;Error:&quot;;
}
</pre>
<p>Compatible with Chrome, Firefox, IE8+, Opera, Safari</p>
<h2>6. a[xyz~="abc def"]</h2>
<p>This can look quite confusing, but all the above does is look for an attribute (xyz) on the selected element and take a space separated list of values, each of which can be styled differently.</p>
<p>Example:</p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;#&quot; my-attribute=&quot;category product&quot;&gt;Some text&lt;/a&gt;</pre>
<pre class="brush: css; title: ; notranslate">
a[my-attribute~=&quot;category&quot;] {
  font-weight:bold;
}

a[my-attribute~=&quot;product&quot;] {
  color:#cc0000;
}</pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<h2>7. a[href*="roundedworks"]</h2>
<p>This selector allows you to add styling to an element whose attribute value contains the supplied string. Possible uses could be to add a little &#8216;G&#8217; icon to links pointing to any google page.</p>
<p>Example:</p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;http://www.google.com/search?q=rounded+works&quot;&gt;Google search link&lt;/a&gt;</pre>
<pre class="brush: css; title: ; notranslate">a[href*=&quot;google&quot;] {
  background:url(images/google-logo-icon.png)  no-repeat;
  padding-right:30px;
}</pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<h2>8. h2 + p</h2>
<p>The adjacent select0r will select the first element that is immeadiately preceded by the former element. This is similar to number 2, but this selector is restricted to the first element only, whereas h2 ~ p would select all paragraphs preceded by a h2. The example below would the first paragraph that follows a h2 bold.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">h2 + p {
  font-weight:bold;
}</pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<h2>9. a[href$=".jpg"]</h2>
<p>This selector searches the href attribute of a link and targets those that end with .jpg. Nice if you want to style image links or pdf links differently.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">a[href$=&quot;.jpg&quot;] {
  border:1px solid #e6e7e8;
}</pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<h2>10. ul:first-child/ul:last-child</h2>
<p>This selector is great for removing margins and borders from the first or last element within a specified parent, in this case the unordered list.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">ul:last-child {
  border-bottom:0;
  margin-bottom:0;
}</pre>
<p>Compatible with Chrome, Firefox, IE7+, Opera, Safari</p>
<div id="_mcePaste" class="mcePaste" style="position: absolute; left: -10000px; top: 1853px; width: 1px; height: 1px; overflow: hidden;">
<h2>a[href$=".jpg"]</h2>
</div>
<img src="http://feeds.feedburner.com/~r/roundedworks/~4/uVpccLA_3Bg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.roundedworks.com/notebook/xhtmlcss/10-css-selectors-you-probably-dont-know-about/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.roundedworks.com/notebook/xhtmlcss/10-css-selectors-you-probably-dont-know-about/</feedburner:origLink></item>
		<item>
		<title>Consume a RSS feed with ASP.NET C#</title>
		<link>http://feedproxy.google.com/~r/roundedworks/~3/9o20laRoHfY/</link>
		<comments>http://www.roundedworks.com/notebook/c-asp-net/consume-a-rss-feed-with-asp-net-c/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 19:38:08 +0000</pubDate>
		<dc:creator>wayne</dc:creator>
				<category><![CDATA[C# ASP.net]]></category>

		<guid isPermaLink="false">http://www.roundedworks.com/?p=199</guid>
		<description><![CDATA[If you ever find yourself wanting to display your favourite RSS feed on your website this can be achieved relatively easily by creating a reusable User Control. The control will take two parameters &#8211; feed url, and number of items to display, so this can be reused time and time again. First, create a new [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever find yourself wanting to display your favourite RSS feed on your website this can be achieved relatively easily by creating a reusable User Control. The control will take two parameters &#8211; feed url, and number of items to display, so this can be reused time and time again.</p>
<p>First, create a new User Control, I&#8217;ve called mine RSSFeed.ascx. Go to your code-behind and add the following:</p>
<pre class="brush: csharp; title: ; notranslate">
//declare the properties
private string _feedUrl;
public string FeedUrl
{
  get { return _feedUrl; }
  set { _feedUrl = value; }
}

private int _items;
public int Items
{
  get { return _items; }
  set { _items = value; }
}

//initiate the XMLNameSpaceManager
private XmlNamespaceManager _xmlnsm;

//grab the feed and bind it to a repeater control called rptRssFeed
protected void Page_Init(object sender, EventArgs e)
{
  XPathNavigator xpn = new XPathDocument(_feedUrl).CreateNavigator();
  _xmlnsm = XmlHelper.GetXmlNameSpaceManager(xpn);

  rptRssFeed.DataSource = xpn.Select(&quot;/x:rss/x:channel/x:item&quot;, _xmlnsm);
  rptRssFeed.DataBind();
}

//assign the feed values to controls within the repeater
protected void rptRssFeed_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
  if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
  {
    XPathNavigator xpn = (XPathNavigator)e.Item.DataItem;
    Literal litTitle = (Literal)e.Item.FindControl(&quot;litTitle&quot;);
    Literal litDescription = (Literal)e.Item.FindControl(&quot;litDescription&quot;);
    HyperLink hypLink1 = (HyperLink)e.Item.FindControl(&quot;hypLink1&quot;);
    HyperLink hypLink2 = (HyperLink)e.Item.FindControl(&quot;hypLink2&quot;);

    litTitle.Text = xpn.SelectSingleNode(&quot;x:title&quot;, _xmlnsm).Value;
    litDescription.Text = xpn.SelectSingleNode(&quot;x:description&quot;, _xmlnsm).Value;
    hypLink1.NavigateUrl = xpn.SelectSingleNode(&quot;x:link&quot;, _xmlnsm).Value;
    hypLink2.NavigateUrl = xpn.SelectSingleNode(&quot;x:link&quot;, _xmlnsm).Value;
  }
}
</pre>
<p>All that is needed in the design view of the User Control is the following:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;asp:Repeater ID=&quot;rptRssFeed&quot; runat=&quot;server&quot; onitemdatabound=&quot;rptRssFeed_ItemDataBound&quot;&gt;
  &lt;ItemTemplate&gt;
    &lt;asp:PlaceHolder ID=&quot;PlaceHolder1&quot; runat=&quot;server&quot; Visible=&quot;&lt;%# (Container.ItemIndex &lt; Items) %&gt;&quot;&gt;
      &lt;asp:HyperLink Target=&quot;_blank&quot; ID=&quot;hypLink2&quot; Text=&quot;View&quot; runat=&quot;server&quot;&gt;&lt;img src=&quot;images/view-button.png&quot; alt=&quot;view full story&quot; /&gt;&lt;/asp:HyperLink&gt;
      &lt;p&gt;&lt;asp:HyperLink Target=&quot;_blank&quot; ID=&quot;hyplink1&quot; runat=&quot;server&quot;&gt;&lt;asp:Literal ID=&quot;litTitle&quot; runat=&quot;server&quot; /&gt;&lt;/asp:HyperLink&gt;&lt;/p&gt;
      &lt;p&gt;&lt;asp:Literal ID=&quot;litDescription&quot; runat=&quot;server&quot; /&gt;&lt;/p&gt;
      &lt;hr /&gt;
    &lt;/asp:PlaceHolder&gt;
  &lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</pre>
<p>The code above simply lists the headlines with a short description, and there is a view button for clicking through to the full story.</p>
<p>To use this User Control in your pages you can simply drag and drop it from the Solution Explorer in to the Design View of your aspx page. This will add the control reference to the page automatically. Supply the two properties and you are good to go:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;uc1:RSSFeed ID=&quot;RSSFeed1&quot; FeedUrl=&quot;http://feed.url.xml&quot; Items=&quot;5&quot; runat=&quot;server&quot; /&gt;
</pre>
<p>That&#8217;s it. A simple reusable RSS Feed User Control.</p>
<img src="http://feeds.feedburner.com/~r/roundedworks/~4/9o20laRoHfY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.roundedworks.com/notebook/c-asp-net/consume-a-rss-feed-with-asp-net-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.roundedworks.com/notebook/c-asp-net/consume-a-rss-feed-with-asp-net-c/</feedburner:origLink></item>
	</channel>
</rss>

