<?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>.Net Geek &#187; Macro</title>
	<atom:link href="http://www.aakashjain.com/tag/macro/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aakashjain.com</link>
	<description>Technology, musings and stuff by Aakash Jain</description>
	<lastBuildDate>Mon, 04 Jan 2010 13:51:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Few More dasblog Macro</title>
		<link>http://www.aakashjain.com/dasblog/few-more-dasblog-macro-23</link>
		<comments>http://www.aakashjain.com/dasblog/few-more-dasblog-macro-23#comments</comments>
		<pubDate>Sat, 09 Feb 2008 15:39:07 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[dasBlog]]></category>
		<category><![CDATA[Garage Code]]></category>
		<category><![CDATA[Macro]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/Few+More+Dasblog+Macro.aspx</guid>
		<description><![CDATA[Completed my next dasBlog macro (LastFm Recent Tracks) and just uploaded a new page dedicated to dasBlog macro. Here are the list of dasblog macros that I have developed so far -
List of Last.Fm Recent Tracks
This macro will show a list of recent tracks that was listened by you and scrobbled by Last.fm. This macro is [...]]]></description>
			<content:encoded><![CDATA[<p>Completed my next dasBlog macro (<strong>LastFm Recent Tracks</strong>) and just uploaded a <a href="http://www.aakashjain.com/stuff/dasblog+macros.aspx" target="_blank">new page dedicated to dasBlog macro</a>. Here are the list of dasblog macros that I have developed so far -</p>
<p><span style="font-size: x-small;"><strong>List of Last.Fm Recent Tracks</strong></span></p>
<p>This macro will show a list of recent tracks that was listened by you and scrobbled by Last.fm. This macro is for only who have signed up at <a href="http://www.last.fm" target="_blank">last.fm</a>.</p>
<p><span style="font-size: x-small;"><strong>List of Last.Fm Top Artist</strong> </span></p>
<p>This macro will show the list of Top Artist that you listened to this week. Again, this macro is for only who have signed up at last.fm.</p>
<p><span style="font-size: x-small;"><strong>Show a Shoutbox<br />
</strong></span></p>
<p>This macro will add a shoutbox to dasBlog. Features included-<br />
XML Database &#8211; (All entries are stored in XML File. It can be kept under the content directory of blog)<br />
Ajax Enabled – No Iframe or refreshing of whole page. <span style="text-decoration: underline;">Update shoutbox silently</span> and regularly after specified interval.<br />
Customizable CSS – I tried to make it <span style="text-decoration: underline;">very customizable</span>. It can gel with any theme perfectly.</p>
<p>Visit <a href="http://www.aakashjain.com/stuff/dasblog+macros.aspx">http://www.aakashjain.com/stuff/dasblog+macros.aspx</a> for full description with installation instructions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/dasblog/few-more-dasblog-macro-23/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shoutbox: my first macro for dasBlog</title>
		<link>http://www.aakashjain.com/dasblog/shoutbox-my-first-macro-for-dasblog-29</link>
		<comments>http://www.aakashjain.com/dasblog/shoutbox-my-first-macro-for-dasblog-29#comments</comments>
		<pubDate>Sun, 23 Dec 2007 09:01:34 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[dasBlog]]></category>
		<category><![CDATA[Garage Code]]></category>
		<category><![CDATA[Macro]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/Shoutbox+My+First+Macro+For+DasBlog.aspx</guid>
		<description><![CDATA[I have just finished modifications in my first dasBlog macro. This macro will add a shout-box to the dasBlog (see it on the right side of this blog). I have tested it successfully with Firefox and IE 5.5+. This macro is written for new version of dasBlog (version 2.0 &#8211; supports .Net framework 2.0). If you want [...]]]></description>
			<content:encoded><![CDATA[<p>I have just finished modifications in my first dasBlog macro. This macro will add a shout-box to the dasBlog (see it on the right side of this blog). I have tested it successfully with Firefox and IE 5.5+. This macro is written for new version of <a href="http://www.aakashjain.com/dasBlog+V20+Is+Released.aspx">dasBlog</a> (version 2.0 &#8211; supports .Net framework 2.0). If you want to add this custom macro to your dasBlog, make sure you are using new version dasBlog 2.0.</p>
<p>On the best part, this macro uses Ajax to update the entries. It can refresh itself after a specified interval using Ajax calls. You can disable this behavior if you don’t want to update it silently. I have used XML to store the entires in a file on the webserver. So there is no need to bother about database. To make the look and feel for more controlled and customizable, I have added CSS support to shoutbox.</p>
<p>Here are few steps that will help you to add this macro to your blog. But before <a href="http://www.aakashjain.com/stuff/aakashjain.zip"><strong>download macro</strong></a> and extract the zip file on your hard-drive.</p>
<p>1. After extracting, copy <strong>aakashjain.dll</strong> into the bin directory of your blog.</p>
<p>2. Now, edit the web.config file of your dasBlog application to make the following changes.</p>
<p>a) Uncomment or Add the following code in the <strong>&lt;configuration&gt;/&lt;configSections&gt;</strong> of web.config file.</p>
<pre name="code" class="c-sharp:nocontrols"><section name="newtelligence.DasBlog.Macros" type="newtelligence.DasBlog.Web.Core.MacroSectionHandler, newtelligence.DasBlog.Web.Core" /></pre>
<p>b) Add or uncomment the following lines under the <strong>&lt;configuration&gt;</strong>.</p>
<pre name="code" class="c-sharp:nocontrols"><newtelligence.DasBlog.Macros>    <add macro="AJmacros" type="AakashJain.AakashJainMacros,AakashJain"/></newtelligence.DasBlog.Macros></pre>
<p>c) Add  the following line under the <strong>&lt;httpHandlers&gt;</strong> section of web.config.</p>
<pre name="code" class="c-sharp:nocontrols"><add verb="*" path="aakashjain/shoutBoxHandler.aspx" type="AakashJain.ShoutBoxHandler,AakashJain"/></pre>
<p>d) One more setting is to be done. We need to tell dasBlog about the XML file where our entries will be stored. For this you have to create a key under <strong>&lt;configuration&gt;</strong></p>
<pre name="code" class="c-sharp:nocontrols"><appSettings>    <add key="AakashJainShouts" value="~/content/aakashjainshouts.xml"/></appSettings></pre>
<p>The above piece of code add a key &#8220;<span style="color: #0000ff;">AakashJainShouts&#8221;</span> to specify the location of XML file in which all entries of shoutbox will be saved. I have chosen content directory to save the xml file in the code above. You can specify any directory on the webserver but make sure it should have write permission.<br />
Now add the following line in your <strong>homeTemplate.blogtemplate</strong> file at a suitable place where you want shout-box to appear. (You can find this file in the current theme folder of your blog.)</p>
<pre name="code" class="html:nocontrols"><%AjShoutBox(max char,refresh interval,max entries)|AJmacros%></pre>
<p>Here is the description of each parameter,</p>
<p><strong>max char (int)</strong> – Maximum number of characters allowed to enter in the message textbox of shoutbox. For name this is fixed to 30 characters.</p>
<p><strong>refresh interval (int)</strong> – Enter the number of seconds when the shoutbox will update from new server. If you want to disable this feature enter anything less than 5.</p>
<p><strong>max entries (int)</strong> – Maximum number of entries shown at a time in shout-box.</p>
<p><strong>For instance</strong> &#8211; &lt;%AjShoutBox(150,50,30)|AJmacros%&gt;<br />
(In this example shoutbox will be refreshed in 50 seconds, upto last 30 entries will be shown and only upto 150 characters can be entered in the message.)</p>
<p>Now lets move to style part of shoutbox. After the above settings you would like to apply some styles and colors to shoutbox to match with your blog theme. For this matter I have kept all style related code in a separate style-sheet (ajshoutbox.css). You can find this stylesheet in the download package. To attach this stylesheet to your blog enter the following lines with in the <span style="color: #0000ff;">&lt;head&gt;</span> section of your <strong>homeTemplate.blogtemplate</strong> file.</p>
<pre name="code" class="html:nocontrols">
<link media="all" rel="stylesheet" type="text/css" href="images/shoutbox.css"></link></pre>
<p>(You can keep the stylesheet file in any directory on your web server but I&#8217;d recommend the image directory of dasBlog. Attribute &#8220;<span style="color: #0000ff;">href</span>&#8220; specified the path of CSS file.)</p>
<p>Ok, now this shoutBox is ready to run on your blog. If you have any comments or suggestions please feel free to post them here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/dasblog/shoutbox-my-first-macro-for-dasblog-29/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dasBlog Shoutbox Macro Testing</title>
		<link>http://www.aakashjain.com/net/dasblog-shoutbox-macro-testing-32</link>
		<comments>http://www.aakashjain.com/net/dasblog-shoutbox-macro-testing-32#comments</comments>
		<pubDate>Sun, 18 Nov 2007 18:57:24 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[dasBlog]]></category>
		<category><![CDATA[Macro]]></category>
		<category><![CDATA[Shoutbox]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/dasBlog+Shoutbox+Macro+Testing.aspx</guid>
		<description><![CDATA[I’ve finished my first dasblog macro that was created by me. It’s an Ajax enabled Shout-box. Still it is under testing and enhancement. Let me tell you it took me two full weekends to get this done. It was quite a good work behind this. But I am happy that I am seeing it running and [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve finished my first dasblog macro that was created by me. It’s an Ajax enabled Shout-box. Still it is under testing and enhancement. Let me tell you it took me two full weekends to get this done. It was quite a good work behind this. But I am happy that I am seeing it running and working perfectly. Initially, I have added it on my blog (see the right navigation) for testing purpose only. Some of the main features are:-</p>
<p>a) XML Database (All entries are stored in XML File. It can be kept under the content directory of blog)<br />
b) Ajax Enabled – No Iframe or refreshing of whole page. <span style="text-decoration: underline;">Update shoutbox silently</span> and regularly after specified interval.<br />
c) Customizable CSS – I tried to make it <span style="text-decoration: underline;">very customizable</span>. It can gel with any theme perfectly.<br />
d) Support New <span style="text-decoration: underline;">dasBlog version 2.0</span> (with Asp.net 2.0)</p>
<p>I’d appreciate any feedback, comments or error from you. It will be available for download, once I make necessary changes on the basis of feedback received.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/net/dasblog-shoutbox-macro-testing-32/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
