<?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>soderlind.no &#187; general</title>
	<atom:link href="http://soderlind.no/archives/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://soderlind.no</link>
	<description>I code for fun</description>
	<lastBuildDate>Wed, 01 Feb 2012 07:06:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Create footnotes from hyperlinks</title>
		<link>http://soderlind.no/archives/2004/10/07/create-footnotes-from-hyperlinks/</link>
		<comments>http://soderlind.no/archives/2004/10/07/create-footnotes-from-hyperlinks/#comments</comments>
		<pubDate>Thu, 07 Oct 2004 19:46:06 +0000</pubDate>
		<dc:creator>Guest</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Creative Commons]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://soderlind.no/archives/2004/10/07/create-footnotes-from-hyperlinks/</guid>
		<description><![CDATA[This Microsoft Word 2003 macro is very useful when run against web pages containing a lot of links, after first having cut and pasted them into Microsoft Word 2003. It will mark a hyperlink found with a footnote number and &#8230; <a href="http://soderlind.no/archives/2004/10/07/create-footnotes-from-hyperlinks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This Microsoft Word 2003 macro is very useful when run against web pages containing a lot of links, after first having cut and pasted them into Microsoft Word 2003.  It will mark a hyperlink found with a footnote number and put the URL as a footnote.</p>
<p><span id="more-186"></span></p>
<p>Example:</p>
<div><img src="http://soderlind.no/images/footnotefromlink.gif" alt="sample footnote from link" width="460" height="80" align="bottom" /></div>
<pre class="brush: vb; title: ; notranslate">

'****************************************************************************
' CreateFootnotesFromHyperlinks - Copyright (c) 2004 Per Soderlind
'
' The macro creates footnotes from HTML hyperlinks
'
' NOTE:  Very useful when run against web pages containing a lot of
'      links -- after having first cut and pasted the web page into word.
'      The macro is only tested in Microsoft Word 2003
'
' This work is licensed under a Creative Commons License:
'        http://creativecommons.org/licenses/by-nc-sa/2.0/
'
'****************************************************************************
Option Base 1
Public Sub CreateFootnotesFromHyperlinks()
Dim MyRange As Range, i As Long, linkFound As Boolean

linkFound = False
Btn = MsgBox(&quot;Create footnotes from hyperlinks?&quot; + Chr(13) + Chr(13) _
+ &quot;NOTE: Hyperlinks will be removed from the document&quot;, vbYesNo, &quot;Create Footnotes from Hyperlinks&quot;)

If Btn = vbNo Then Exit Sub

For i = ActiveDocument.Hyperlinks.Count To 1 Step -1
If Len(Trim(ActiveDocument.Hyperlinks(i).Address)) &gt; 0 Then
linkFound = True
Set MyRange = ActiveDocument.Hyperlinks(i).Range
ActiveDocument.Footnotes.Add Range:=MyRange,         Reference:=&quot;&quot;,Text:=ActiveDocument.Hyperlinks(i).Address
ActiveDocument.Hyperlinks(i).Delete
MyRange.Style = wdStyleHyperlink
End If
Next i

If Not linkFound Then
Btn = MsgBox(&quot;NO hyperlinks found&quot;, vbExclamation, &quot;Extract Hyperlinks&quot;)
Exit Sub
End If
End Sub
</pre>
<div><a href="http://creativecommons.org/licenses/by-nc-sa/2.0/"><img src="http://creativecommons.org/images/public/somerights20.gif" border="0" alt="Creative Commons License" /></a><br />
<small>This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>.<br />
For commercial use, please contact me.<br />
</small></div>
]]></content:encoded>
			<wfw:commentRss>http://soderlind.no/archives/2004/10/07/create-footnotes-from-hyperlinks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indy followup &#8211; How to send a simple text email message</title>
		<link>http://soderlind.no/archives/2004/05/19/indy-followup-how-to-send-a-simple-text-email-message/</link>
		<comments>http://soderlind.no/archives/2004/05/19/indy-followup-how-to-send-a-simple-text-email-message/#comments</comments>
		<pubDate>Wed, 19 May 2004 19:19:24 +0000</pubDate>
		<dc:creator>PerS</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://soderlind.no/archives/2004/05/19/indy-followup---how-to-send-a-simple-text-email-message/</guid>
		<description><![CDATA[more &#8230;]]></description>
			<content:encoded><![CDATA[<p>//The following code is the basic structure for constructing a message:<br />
Indy.Sockets.IndyMessage.Message LMsg = new Indy.Sockets.IndyMessage.Message();</p>
<p>LMsg.From.Text = AFrom;<br />
LMsg.Recipients.Add().Text = ATo;<br />
LMsg.Subject = ASubject;<br />
LMsg.Body.Text = AMsg;</p>
<p>SMTP LSMTP = new SMTP();<br />
LSMTP.OnStatus += new Indy.Sockets.IndyComponent.TIdStatusEvent(SMTPStatus);<br />
LSMTP.Host = &#8220;mail.domain.tld&#8221;;<br />
LSMTP.Connect();</p>
<p>try {<br />
    LSMTP.Send(LMsg);<br />
    Status(&#8220;Completed&#8221;);<br />
}</p>
<p>finally {<br />
    LSMTP.Disconnect();<br />
}</p>
<p><a href="http://www.codeproject.com/useritems/IndySMTP.asp" class="offsite">more &#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://soderlind.no/archives/2004/05/19/indy-followup-how-to-send-a-simple-text-email-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object-Relational Persistence for .NET</title>
		<link>http://soderlind.no/archives/2004/01/23/object-relational-persistence-for-net/</link>
		<comments>http://soderlind.no/archives/2004/01/23/object-relational-persistence-for-net/#comments</comments>
		<pubDate>Fri, 23 Jan 2004 06:33:56 +0000</pubDate>
		<dc:creator>PerS</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://soderlind.no/archives/2004/01/23/object-relational-persistence-for-net/</guid>
		<description><![CDATA[This is cool: &#8220;With SQL Server Yukon, you could do the following: The Person type is a .NET class. Columns in Yukon can be typed to custom .NET classes.&#8221; more &#8230;]]></description>
			<content:encoded><![CDATA[<p>This is cool:<br />
&#8220;With SQL Server Yukon, you could do the following:</p>
<pre class="brush: sql; title: ; notranslate">
CREATE TABLE [dbo].[Person] (
   [Id] [int] IDENTITY (1, 1) NOT NULL ,
   [Person] [Person] NOT NULL
) ON [PRIMARY]
</pre>
<p>The Person type is a .NET class.  Columns in Yukon can be typed to custom .NET classes.&#8221;</p>
<p><a href="http://www.15seconds.com/issue/040112.htm" class="offsite">more &#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://soderlind.no/archives/2004/01/23/object-relational-persistence-for-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

