<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>www. stuff</description><title>Heltblank</title><generator>Tumblr (3.0; @heltblank)</generator><link>http://heltblank.no/</link><item><title>jQuery curvycorners</title><description>&lt;p&gt;I started using &lt;a href="http://www.curvycorners.net/"&gt;http://www.curvycorners.net/&lt;/a&gt; on a project of mine, but &lt;a href="http://twitter.com/oliverGristDev"&gt;@oliverGristDev&lt;/a&gt; mentioned on Twitter the div problem with this solution, and suggested CSS3. But as we all now lte ie 8 dosen’t support that.&lt;/p&gt;
&lt;p&gt;To please all this became the solution:&lt;/p&gt;
&lt;pre&gt;    &lt;!--[if lte IE 8]&gt;&lt;br/&gt;        &lt;script src="/scripts/curvycorners.src.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br/&gt;        &lt;script src="/scripts/helpforIE.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br/&gt;    &lt;![endif]--&gt;&lt;/pre&gt;
&lt;p&gt;The helpforIE.js file looks like this:&lt;/p&gt;
&lt;pre&gt;curvyCorners.addEvent(window, 'load', initCorners);&lt;br/&gt;&lt;br/&gt;function initCorners() {&lt;br/&gt;    var settings = {&lt;br/&gt;        tl: { radius: 10 },&lt;br/&gt;        tr: { radius: 10 },&lt;br/&gt;        bl: { radius: 10 },&lt;br/&gt;        br: { radius: 10 },&lt;br/&gt;        antiAlias: true&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    curvyCorners(settings, "div.inner");&lt;br/&gt;}&lt;/pre&gt;
&lt;p&gt;And to ensure the other browsers just added a tiny line in my CSS:&lt;/p&gt;
&lt;pre&gt;div.inner { border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; }&lt;/pre&gt;
&lt;p&gt;Works with Internet Explorer and the others. Hurray!&lt;/p&gt;</description><link>http://heltblank.no/post/2742974545</link><guid>http://heltblank.no/post/2742974545</guid><pubDate>Fri, 14 Jan 2011 11:48:41 +0100</pubDate></item><item><title>omlm:

Har svært fotogene kolleger :)
</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lbx7luT7kD1qde4huo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://omlm.tumblr.com/post/1580321411/har-svaert-fotogene-kolleger"&gt;omlm&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Har svært fotogene kolleger :)&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://heltblank.no/post/1590863530</link><guid>http://heltblank.no/post/1590863530</guid><pubDate>Tue, 16 Nov 2010 13:42:44 +0100</pubDate></item><item><title>Photo</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_lby1d1IamX1qekdoto1_500.gif"/&gt;&lt;br/&gt;&lt;br/&gt;</description><link>http://heltblank.no/post/1590853494</link><guid>http://heltblank.no/post/1590853494</guid><pubDate>Tue, 16 Nov 2010 13:40:48 +0100</pubDate></item><item><title>We just finished a Facebook campaign site for the Norwegian...</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_lbz5l0sUf01qelocpo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;We just finished a Facebook campaign site for the Norwegian Church Abroad. &lt;a href="http://www.facebook.com/sjomannskirken"&gt;www.facebook.com/sjomannskirken&lt;/a&gt;&lt;/p&gt;</description><link>http://heltblank.no/post/1590408633</link><guid>http://heltblank.no/post/1590408633</guid><pubDate>Tue, 16 Nov 2010 12:07:48 +0100</pubDate><category>facebook</category><category>sjomannskirken</category></item><item><title>New Umbraco site for lmi.no (The Association of the...</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_lbxblp6bM81qelocpo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;New Umbraco site for &lt;a href="http://www.lmi.no"&gt;lmi.no&lt;/a&gt; (The Association of the Pharmaceutical Industry in Norway) by bouvet&lt;/p&gt;</description><link>http://heltblank.no/post/1580663547</link><guid>http://heltblank.no/post/1580663547</guid><pubDate>Mon, 15 Nov 2010 12:22:00 +0100</pubDate><category>umbraco</category><category>bouvet</category></item><item><title>Add Email as Node</title><description>&lt;p&gt;Email as Node adds a macro for adding emails to your Umbraco tree as nodes. It’s a simple add newsletter email macro.&lt;/p&gt;
&lt;p&gt;More info here: &lt;a href="http://our.umbraco.org/projects/website-utilities/add-email-as-node"&gt;&lt;a href="http://our.umbraco.org/projects/website-utilities/add-email-as-node"&gt;http://our.umbraco.org/projects/website-utilities/add-email-as-node&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://heltblank.no/post/1580558567</link><guid>http://heltblank.no/post/1580558567</guid><pubDate>Thu, 17 Jun 2010 11:57:00 +0200</pubDate><category>umbraco</category><category>umbraco package</category></item><item><title>Audio Player for Umbraco</title><description>&lt;p&gt;A simple audioplayer for Umbraco&lt;/p&gt;
&lt;p&gt;More info here: &lt;a href="http://our.umbraco.org/projects/website-utilities/audio-player"&gt;&lt;a href="http://our.umbraco.org/projects/website-utilities/audio-player"&gt;http://our.umbraco.org/projects/website-utilities/audio-player&lt;/a&gt; &lt;/a&gt;&lt;/p&gt;</description><link>http://heltblank.no/post/1580556890</link><guid>http://heltblank.no/post/1580556890</guid><pubDate>Thu, 17 Jun 2010 11:56:00 +0200</pubDate><category>umbraco</category><category>umbraco package</category></item><item><title>Simple CSS/jQuery drop shadow</title><description>&lt;p&gt;This code show how to create a very simple drop shadow effect to all images with a given css class.&lt;/p&gt;
&lt;p&gt;First give the images you want the shadow for the class “contentimage”.&lt;/p&gt;
&lt;p&gt;Then some jQuery:&lt;/p&gt;
&lt;pre class="csharp"&gt;$('.contentimage').wrap("&lt;span class='wrap1'&gt;&lt;span class='wrap2'&gt;&lt;span class='wrap3'&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;");&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;
&lt;p&gt;Then some css:&lt;/p&gt;
&lt;pre class="csharp"&gt; .wrap1, .wrap2, .wrap3 { display: block; }&lt;br/&gt; .wrap1 { border: 1px solid #DDD; }&lt;br/&gt; .wrap2 { border: 1px solid #BBB; } &lt;br/&gt; .wrap3 { border: 1px solid #999; }&lt;br/&gt;&lt;/pre&gt;</description><link>http://heltblank.no/post/1580550558</link><guid>http://heltblank.no/post/1580550558</guid><pubDate>Wed, 06 Jan 2010 11:55:00 +0100</pubDate><category>jquery</category><category>css</category></item><item><title>.NET UserControl displaing a Twitter Search (Atom feed)</title><description>&lt;p&gt;This sample code shows how to add a Twitter rss, or to be exact atom feed to a .NET page/usercontrol.&lt;/p&gt;
&lt;pre class="csharp"&gt;using System;&lt;br/&gt;using System.Collections.Generic;&lt;br/&gt;using System.Linq;&lt;br/&gt;using System.Web;&lt;br/&gt;using System.Web.UI;&lt;br/&gt;using System.Web.UI.WebControls;&lt;br/&gt;using System.Xml.Linq;&lt;br/&gt;using Stormberg.Util;&lt;br/&gt;using System.ServiceModel.Syndication;&lt;br/&gt;using System.Xml;&lt;br/&gt;&lt;br/&gt;namespace HeltBlank.social&lt;br/&gt;{&lt;br/&gt;    public partial class twitter : System.Web.UI.UserControl&lt;br/&gt;    {&lt;br/&gt;        protected override void OnLoad(EventArgs e)&lt;br/&gt;        {&lt;br/&gt;            base.OnLoad(e);&lt;br/&gt;&lt;br/&gt;            //Semicolon seperated string with searchwords; ex "@ravnevand;#ravnevand"&lt;br/&gt;            if (TwitterSearch != null)&lt;br/&gt;            {&lt;br/&gt;                List lst = new List();&lt;br/&gt;&lt;br/&gt;                string[] split = TwitterSearch.ToString().Split(';');&lt;br/&gt;&lt;br/&gt;                foreach (string s in split)&lt;br/&gt;                {&lt;br/&gt;                    AddRange(lst, s);&lt;br/&gt;                }&lt;br/&gt;&lt;br/&gt;                if (lst.Count() &gt; 0)&lt;br/&gt;                {&lt;br/&gt;                    rep.DataSource = (from p in lst orderby p.Date descending select p).Take(10);&lt;br/&gt;                    rep.DataBind();&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;            else&lt;br/&gt;                this.Visible = false;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        private void AddRange(List lst, string searchword)&lt;br/&gt;        {&lt;br/&gt;            if (searchword.Trim() != string.Empty)&lt;br/&gt;            {&lt;br/&gt;                XmlReader reader = XmlReader.Create(@"http://search.twitter.com/search.atom?q=" + HttpUtility.UrlEncode(searchword.Trim()));&lt;br/&gt;                SyndicationFeed feed = SyndicationFeed.Load(reader);&lt;br/&gt;&lt;br/&gt;                if (feed != null &amp;&amp; feed.Items.Count() &gt; 0)&lt;br/&gt;                {&lt;br/&gt;                    var sotcPosts = from entry in feed.Items&lt;br/&gt;                                    from a in entry.Authors&lt;br/&gt;                                    select new RssPost&lt;br/&gt;                                    {&lt;br/&gt;                                        Title = entry.Title.Text,&lt;br/&gt;                                        Link = (from p in entry.Links where p.RelationshipType == "alternate" select p.Uri).FirstOrDefault().ToString(),&lt;br/&gt;                                        Image = (from p in entry.Links where p.RelationshipType == "image" select p.Uri).FirstOrDefault().ToString(),&lt;br/&gt;                                        Date = entry.PublishDate.DateTime,&lt;br/&gt;                                        Author = a.Name,&lt;br/&gt;                                        AuthorUri = a.Uri&lt;br/&gt;                                    };&lt;br/&gt;&lt;br/&gt;                    if (sotcPosts.Count() &gt; 0)&lt;br/&gt;                    {&lt;br/&gt;                        lst.AddRange(sotcPosts);&lt;br/&gt;                    }&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        //Use this in your repeater itemtemplate like this:&lt;br/&gt;        //&lt;%# AuthorLink(Eval("Author"), Eval("AuthorUri")) %&gt;&lt;br/&gt;&lt;br/&gt;        protected string AuthorLink(object author, object url)&lt;br/&gt;        {&lt;br/&gt;            string a = author.ToString();&lt;br/&gt;            string username = a.Substring(0, a.IndexOf(" ")).Trim();&lt;br/&gt;            a = a.Replace(username, string.Empty).Replace("(", string.Empty).Replace(")", string.Empty).Trim();&lt;br/&gt;&lt;br/&gt;            return iRec.Util.XHTML.Link(url.ToString(), string.Empty, a, a);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        //Use this in your repeater itemtemplate like this:&lt;br/&gt;        //&lt;%# TimeAgo((DateTime)Eval("Date")) %&gt;&lt;br/&gt;        protected string TimeAgo(DateTime d)&lt;br/&gt;        {&lt;br/&gt;            TimeSpan ts = DateTime.Now - d;&lt;br/&gt;&lt;br/&gt;            if(ts.Days &gt; 1)&lt;br/&gt;                return "ca " + ts.Days + " days";&lt;br/&gt;            if (ts.Days == 1)&lt;br/&gt;                return "ca 1 day";&lt;br/&gt;&lt;br/&gt;            if (ts.Hours &gt; 1)&lt;br/&gt;                return "ca " + ts.Hours + " hours";&lt;br/&gt;            if (ts.Hours == 1)&lt;br/&gt;                return "ca 1 hour";&lt;br/&gt;&lt;br/&gt;            if (ts.Minutes &gt; 1)&lt;br/&gt;                return ts.Minutes + " minutes";&lt;br/&gt;            if (ts.Minutes == 1)&lt;br/&gt;                return "1 minute";&lt;br/&gt;&lt;br/&gt;            if (ts.Minutes &gt; 1)&lt;br/&gt;                return ts.Seconds + " seconds";&lt;br/&gt;&lt;br/&gt;            return ts.Seconds + " second";&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        public object TwitterSearch { get; set; }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;    public class RssPost&lt;br/&gt;    {&lt;br/&gt;        public string Link { get; set; }&lt;br/&gt;        public string Title { get; set; }&lt;br/&gt;        public string Lead { get; set; }&lt;br/&gt;        public string Image { get; set; }&lt;br/&gt;        public string Author { get; set; }&lt;br/&gt;        public string AuthorUri { get; set; }&lt;br/&gt;        public DateTime Date { get; set; }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;/pre&gt;</description><link>http://heltblank.no/post/1580546811</link><guid>http://heltblank.no/post/1580546811</guid><pubDate>Fri, 04 Dec 2009 11:54:00 +0100</pubDate><category>twitter</category><category>atom</category></item><item><title>Tutorial: jQuery Coverslide integrated with Umbraco</title><description>&lt;p&gt;This tutorial show how to integrate the jQuery Coverslide found here: &lt;a href="http://dev.jqueryui.com/browser/branches/labs/powella/coverslide?rev=2701"&gt; &lt;a href="http://dev.jqueryui.com/browser/branches/labs/powella/coverslide?rev=2701"&gt;http://dev.jqueryui.com/browser/branches/labs/powella/coverslide?rev=2701&lt;/a&gt;&lt;/a&gt;, with Umbraco.&lt;/p&gt;
&lt;p&gt;First you need to download the zip file, you’ll need almost all the files.&lt;/p&gt;
&lt;p&gt;Add the following files to your “scripts” folder:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;jquery-1.3.2.min.js (if you haven’t jquery allready)&lt;/li&gt;
&lt;li&gt;jquery.bounds.js&lt;/li&gt;
&lt;li&gt;jquery-ui-1.7.1.custom.min.js&lt;/li&gt;
&lt;li&gt;ui.coverslide.js&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Copy the folowing file to your css folder:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;base.css&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Add the references to your head section of your master.&lt;/p&gt;
&lt;p&gt;Then create a usercontrol looking like this, let’s call it “coverslide.ascx”:&lt;/p&gt;
&lt;pre&gt;&lt;asp:Repeater  ID="rep" runat="server"&gt;     &lt;br/&gt;&lt;HeaderTemplate&gt;         &lt;br/&gt;&lt;div class="ui-coverslide ui-coverslide-stack"&gt;            &lt;br/&gt; &lt;ul id="stack"&gt;    &lt;br/&gt; &lt;/HeaderTemplate&gt;     &lt;br/&gt;&lt;ItemTemplate&gt;        &lt;br/&gt; &lt;li&gt;            &lt;br/&gt; &lt;img src='&lt;%#  Eval("FilePath") %&gt;' alt='&lt;%# Eval("Text") %&gt;' /&gt;        &lt;br/&gt; &lt;/li&gt;     &lt;br/&gt;&lt;/ItemTemplate&gt;     &lt;br/&gt;&lt;FooterTemplate&gt;        &lt;br/&gt; &lt;/ul&gt;&lt;br/&gt; &lt;/div&gt;         &lt;br/&gt;&lt;div id="scrollbar"&gt;         &lt;/div&gt;     &lt;br/&gt;&lt;/FooterTemplate&gt;&lt;br/&gt; &lt;/asp:Repeater&gt;&lt;/pre&gt;
&lt;p&gt;The codebehind should look identical to to the codebehind file described earlier in “MediaFolderContent”:&lt;/p&gt;
&lt;pre class="csharp"&gt;using System;&lt;br/&gt;using System.Collections.Generic;&lt;br/&gt;using System.Linq;&lt;br/&gt;using System.Xml.Linq;&lt;br/&gt;using System.Web;&lt;br/&gt;using System.Web.UI;&lt;br/&gt;using System.Web.UI.WebControls;&lt;br/&gt;using umbraco.presentation.nodeFactory;&lt;br/&gt;using umbraco.cms.businesslogic.media;&lt;br/&gt;&lt;br/&gt;namespace HeltBlank.UmbracoModules&lt;br/&gt;{&lt;br/&gt;    public partial class MediaFolderContent : System.Web.UI.UserControl&lt;br/&gt;    {&lt;br/&gt;        protected override void OnLoad(EventArgs e)&lt;br/&gt;        {&lt;br/&gt;            base.OnLoad(e);&lt;br/&gt;&lt;br/&gt;            Media med = new Media(MediaFolderID);&lt;br/&gt;&lt;br/&gt;            var lst = from p in med.Children&lt;br/&gt;                      where p.getProperty("umbracoFile") != null&lt;br/&gt;                      orderby p.Text&lt;br/&gt;                      select new { Text = p.Text, FilePath = p.getProperty("umbracoFile").Value };&lt;br/&gt;&lt;br/&gt;            rep.DataSource = lst;&lt;br/&gt;            rep.DataBind();&lt;br/&gt;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        public int MediaFolderID { get; set; } //type: mediaCurrent&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;/pre&gt;
&lt;p&gt; Then in umbraco do the following:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Create a macro with the usercontrol you just created&lt;/li&gt;
&lt;li&gt;Add a property to the macro called MediaFolderID, type: mediaCurrent&lt;/li&gt;
&lt;li&gt;Add the macro to your template or the rich text editor&lt;/li&gt;
&lt;li&gt;Select a folder containing images&lt;/li&gt;
&lt;li&gt;Save, and you’re good to go&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Sources: &lt;a href="http://dev.jqueryui.com/browser/branches/labs/powella/coverslide?rev=2701"&gt; &lt;a href="http://dev.jqueryui.com/browser/branches/labs/powella/coverslide?rev=2701"&gt;http://dev.jqueryui.com/browser/branches/labs/powella/coverslide?rev=2701&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://heltblank.no/post/1580516278</link><guid>http://heltblank.no/post/1580516278</guid><pubDate>Wed, 11 Nov 2009 11:46:00 +0100</pubDate><category>umbraco</category><category>jquery</category></item><item><title>A little note about umbracoUrlAlias</title><description>&lt;p&gt;The umbracoUrlAlias just make me happy. You can easly store your old urls from for example your old cms or blog.&lt;/p&gt;
&lt;p&gt;An example when importing content from blogengine you can use this approach:&lt;/p&gt;
&lt;pre class="csharp"&gt;docNode.getProperty("umbracoUrlAlias").Value = blogenginexmlitem.Attribute("post-url").Value.ToLower().Remove(0,1)&lt;br/&gt;&lt;/pre&gt;
&lt;p&gt;Remember the “ToLower” since umbracoUrlAlias uses lowercased url, and remove the first letter in the url, since it should not start with “/”. For example a blogengine post url: “/post/YourPost.aspx” should result as this: “post/yourpost.aspx”&lt;/p&gt;</description><link>http://heltblank.no/post/1580494682</link><guid>http://heltblank.no/post/1580494682</guid><pubDate>Tue, 20 Oct 2009 11:41:00 +0200</pubDate><category>umbraco</category></item></channel></rss>

