<?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/"
	>

<channel>
	<title>ThroughTheLens</title>
	<atom:link href="http://blog.theadventus.com/yuit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.theadventus.com/yuit</link>
	<description>Just another TAC Blogs weblog</description>
	<pubDate>Wed, 25 Aug 2010 21:08:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What is wrong with today&#8217;s social network? (Facebook)</title>
		<link>http://blog.theadventus.com/yuit/2010/08/26/what-is-wrong-with-todays-social-network-facebook/</link>
		<comments>http://blog.theadventus.com/yuit/2010/08/26/what-is-wrong-with-todays-social-network-facebook/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 20:47:57 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[facebook socialnetwork]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/2010/08/26/what-is-wrong-with-todays-social-network-facebook/</guid>
		<description><![CDATA[A pretty good presentation about what is fundamentally broken with today&#8217;s social network (Facebook)
http://www.slideshare.net/padday/the-real-life-social-network-v2
Now, Orkut has come up with an implementation of this idea:
http://www.readwriteweb.com/archives/new_version_of_googles_orkut_separates_business_fr.php#more
Now, without going into Orkut and trying it out, my thoughts are as follows:
When architecturing a social network site, it is actually logical to first think about being able to present different [...]]]></description>
			<content:encoded><![CDATA[<p>A pretty good presentation about what is fundamentally broken with today&#8217;s social network (Facebook)<br />
http://www.slideshare.net/padday/the-real-life-social-network-v2</p>
<p>Now, Orkut has come up with an implementation of this idea:<br />
http://www.readwriteweb.com/archives/new_version_of_googles_orkut_separates_business_fr.php#more</p>
<p>Now, without going into Orkut and trying it out, my thoughts are as follows:<br />
When architecturing a social network site, it is actually logical to first think about being able to present different faces to different segments of your social network, or at least being able to group your social network into different groups. But the problem is fundamentally, &#8220;Decisions&#8221;.  When a user is made to &#8220;decide&#8221;, it raises the perceived complexity (and therefore decreases usability) by perhaps an order of magnitude.  I feel that one of the reason why Facebook took off so well was that it didn&#8217;t make people choose these things.  Just 1 post for everyone.<br />
But now that people are comfortable with that, lets see if this approach of different personas to different audiences will work better.<br />
It has to be usable or &#8220;simple&#8221; to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2010/08/26/what-is-wrong-with-todays-social-network-facebook/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Another beautiful song&#8230;</title>
		<link>http://blog.theadventus.com/yuit/2010/05/06/another-beautiful-song/</link>
		<comments>http://blog.theadventus.com/yuit/2010/05/06/another-beautiful-song/#comments</comments>
		<pubDate>Thu, 06 May 2010 00:46:47 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=143</guid>
		<description><![CDATA[Do you still remember
How we used to be
Feeling together, believe in whatever
My love has said to me
Both of us were dreamers
Young love in the sun
Felt like my saviour, my spirit I gave ya
We&#8217;d only just begun
Hasta Manana,
Always be mine
Viva forever, I&#8217;ll be waiting
Everlasting, like the sun
Live forever,
For the moment
Ever searching for the one
Yes I still [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Do you still remember<br />
How we used to be<br />
Feeling together, believe in whatever<br />
My love has said to me<br />
Both of us were dreamers<br />
Young love in the sun<br />
Felt like my saviour, my spirit I gave ya<br />
We&#8217;d only just begun</p>
<p>Hasta Manana,<br />
Always be mine</p>
<p>Viva forever, I&#8217;ll be waiting<br />
Everlasting, like the sun<br />
Live forever,<br />
For the moment<br />
Ever searching for the one</p>
<p>Yes I still remember,<br />
Every whispered word<br />
The touch of your skin, giving life from within<br />
Like a love song that I&#8217;d heard<br />
Slipping through our fingers,<br />
Like the sands of time<br />
Promises made, every memory saved<br />
Has reflections in my mind</p>
<p>Hasta Manana,<br />
Always be mine</p>
<p>Back where I belong now,<br />
Was it just a dream<br />
Feelings unfold, they will never be sold<br />
And the secret&#8217;s safe with me</p>
<p>Hasta Manana,<br />
Always be mine </p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2010/05/06/another-beautiful-song/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Beautiful Song&#8230;</title>
		<link>http://blog.theadventus.com/yuit/2010/05/05/beautiful-song/</link>
		<comments>http://blog.theadventus.com/yuit/2010/05/05/beautiful-song/#comments</comments>
		<pubDate>Wed, 05 May 2010 06:09:15 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=140</guid>
		<description><![CDATA[I&#8217;m gonna live my life
like every days&#8217; the last
without a simple goodbye it all goes by so fast
and now that you&#8217;re gone I can&#8217;t cry heard enough
I can&#8217;t cry hard enough
for you to hear me now
gonna open my eyes and see for the first time
I&#8217;ve let go of you like
a child letting go of his [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>I&#8217;m gonna live my life<br />
like every days&#8217; the last<br />
without a simple goodbye it all goes by so fast</p>
<p>and now that you&#8217;re gone I can&#8217;t cry heard enough<br />
I can&#8217;t cry hard enough<br />
for you to hear me now</p>
<p>gonna open my eyes and see for the first time<br />
I&#8217;ve let go of you like<br />
a child letting go of his kite</p>
<p>There it goes up in the sky<br />
there it goes beyond the clouds<br />
for no reason why<br />
I can&#8217;t cry hard enough<br />
No, I can&#8217;t cry hard enough for you to hear me now</p>
<p>gonna look back in vain and see you standing there<br />
when all that remains is just an empty chair<br />
and now that you&#8217;re gone<br />
I can&#8217;t cry hard enough, I can&#8217;t cry hard enough<br />
for you to hear me now</p>
<p>There it goes, up in the sky<br />
there it goes beyond the clouds<br />
for no reason why<br />
I can&#8217;t cry hard enough, no I can&#8217;t cry hard enough<br />
for you to hear me now</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2010/05/05/beautiful-song/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tablet User Interface Design</title>
		<link>http://blog.theadventus.com/yuit/2010/02/13/tablet-user-interface-design/</link>
		<comments>http://blog.theadventus.com/yuit/2010/02/13/tablet-user-interface-design/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 06:35:34 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=138</guid>
		<description><![CDATA[This is a rather good article about the state of user interfaces for tablets.
http://gizmodo.com/5461767/the-two-wrong-ways-to-make-a-tablet
The summary is that in the market currently, there are 2 main ways of building a tablet interface:
- Taking a desktop interface and shrinking it to a tablet interface (Windows Tablets)
-  Taking a mobile device (phone) interface, and blowing it up [...]]]></description>
			<content:encoded><![CDATA[<p>This is a rather good article about the state of user interfaces for tablets.<br />
http://gizmodo.com/5461767/the-two-wrong-ways-to-make-a-tablet</p>
<p>The summary is that in the market currently, there are 2 main ways of building a tablet interface:<br />
- Taking a desktop interface and shrinking it to a tablet interface (Windows Tablets)<br />
-  Taking a mobile device (phone) interface, and blowing it up to the size of a tablet (iPad and Android tablets)</p>
<p>Both cases are suboptimal.  What is needed is a radically different way of doing a tablet interface.  </p>
<p>Introducing the Microsoft Courier Tablet.<br />
http://www.pcworld.com/article/181487/microsoft_courier_a_feature_breakdown.html</p>
<p>I have never been a fan of Microsoft, but I must say that I would definitely be interested to lay my hands on one of this tablet if it were available!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2010/02/13/tablet-user-interface-design/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Amazing Battery life on my Palm Pre</title>
		<link>http://blog.theadventus.com/yuit/2010/02/04/amazing-battery-life-on-my-palm-pre/</link>
		<comments>http://blog.theadventus.com/yuit/2010/02/04/amazing-battery-life-on-my-palm-pre/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 03:24:07 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=136</guid>
		<description><![CDATA[Battery life on my Palm Pre has never been that great, maybe because smartphones, in general, encourage you to really use them.  3g, surfing, calls, sms&#8230; everything is so easy and fast and usable.
In the last 4 days that I&#8217;ve been in china, I realised something - the Palm Pre has amazing standby life!
Ok, [...]]]></description>
			<content:encoded><![CDATA[<p>Battery life on my Palm Pre has never been that great, maybe because smartphones, in general, encourage you to really use them.  3g, surfing, calls, sms&#8230; everything is so easy and fast and usable.<br />
In the last 4 days that I&#8217;ve been in china, I realised something - the Palm Pre has amazing standby life!<br />
Ok, some disclaimers here.  I think over here, my connection is limited to 2G/EDGE connection.  That, from what i&#8217;ve read, helps.  My usage has been really low, a few sms&#8217;s a day, checking calendar and contact information, and a few phone calls, and even wireless surfing a bit.<br />
But it has been on *all* the time, no recharges, no airplane mode, always on.</p>
<p>But still, I&#8217;ve been absolutely amazed.  It has lasted me absolutely 4 days. Full 4 days!  </p>
<p>This is something I should investigate more&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2010/02/04/amazing-battery-life-on-my-palm-pre/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rotating screen in Thinkpad x61T Tablet with Ubuntu Karmic</title>
		<link>http://blog.theadventus.com/yuit/2010/02/02/rotating-screen-in-thinkpad-x61t-tablet-with-ubuntu-karmic/</link>
		<comments>http://blog.theadventus.com/yuit/2010/02/02/rotating-screen-in-thinkpad-x61t-tablet-with-ubuntu-karmic/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 13:20:26 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[thinkpad ubuntu]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=132</guid>
		<description><![CDATA[If you read my comments on my own post on screen rotation on my thinkpad tablet you&#8217;ll read that I was having problems rotating my screen on my X61T tablet (1400&#215;1050 resolution).  I didn&#8217;t have any luck with that until this week, when I had some time to do some research again.
Thanks to this [...]]]></description>
			<content:encoded><![CDATA[<p>If you read my comments on my own post on <a href="http://blog.theadventus.com/yuit/2009/06/01/screen-rotation-for-jaunty-on-my-x60-tablet">screen rotation on my thinkpad tablet</a> you&#8217;ll read that I was having problems rotating my screen on my X61T tablet (1400&#215;1050 resolution).  I didn&#8217;t have any luck with that until this week, when I had some time to do some research again.</p>
<p>Thanks to this site, I am now able to do it:<br />
http://www.shrapnull.com/v1/node/22</p>
<p>Basically, the scripts here are much simpler and cleaner.<br />
Below is the code to rotate the screen :</p>
<blockquote><p>
#!/bin/sh<br />
#/etc/acpi/x200tsdown.sh<br />
echo &#8216;Rotating screen&#8230;&#8217;<br />
if [ "`/usr/bin/xrandr -o right -v | grep -i 'randr' | wc -l`" -ne "1" ]<br />
then<br />
echo &#8216;!! Something went wrong&#8230;&#8217;<br />
export DISPLAY=&#8221;:0.0&#8243;<br />
export XAUTHORITY=/var/lib/gdm/\:0.Xauth<br />
/bin/xset -display $DISPLAY dpms<br />
echo &#8216;Trying to rotate again&#8230;&#8217;<br />
/usr/bin/xrandr -o right<br />
fi<br />
echo &#8216;Rotating stylus&#8230;&#8217;<br />
/usr/bin/xsetwacom set stylus rotate cw<br />
echo &#8216;Starting keyboard&#8230;&#8217;<br />
/usr/bin/onboard&amp;
</p></blockquote>
<p>Now, this code doesn&#8217;t *quite* work 100%.  Somehow on the x61t, the wacom digitiser is not listed as &#8220;stylus&#8221;.  Instead, running the command</p>
<blockquote><p>
xsetwacom list
</p></blockquote>
<p>shows me that it is listed as &#8220;eraser&#8221;.  So the script works perfectly when you replace &#8220;/usr/bin/xsetwacom set stylus rotate cw&#8221; with &#8220;/usr/bin/xsetwacom set eraser rotate cw&#8221;</p>
<p>What I couldn&#8217;t get working was the acpi events. It basically means that I can&#8217;t get the tablet to rotate automatically when I flipped it to tablet mode, and revert to normal orientation when I flipped it back to laptop mode.</p>
<p>Instead, I used Gnome&#8217;s System-&gt; Preferences -&gt; Keyboard Shortcuts to map the tablet rotation key to launch the rotation script, and the Thinkvantage key to launch the back-to-normal script.</p>
<p>I couldn&#8217;t find a way to override the Tablet &#8220;Toolbox&#8221; key NOT to go into screensaver mode&#8230; something for me to do in future I guess.</p>
<p>Oh yes, and the instructions here http://liken.otsoa.net/blog/index.php?entry=entry080617-120522 on Keyboard in GDM and Screen Lock</p>
<blockquote><p>
GDM</p>
<p>In /etc/gdm/Init/Default, before exit 0, add:</p>
<p>/usr/bin/cellwriter &#8211;keyboard-only &#8211;read-only &#8211;window-y=600 &#8211;window-x=200 &amp;</p>
<p>In /etc/gdm/PostLogin/Default, add:</p>
<p>killall -u root cellwriter &amp;</p>
<p>In /etc/gdm/PostSession/Default, before exit 0, add:</p>
<p>sudo killall -u $USER cellwriter</p>
<p>SCREEN LOCK</p>
<p>Edit Gnome Registry with gconf-editor. In apps/gnome-screensaver</p>
<p>embedded_keyboard_command cellwriter &#8211;keyboard-only &#8211;xid<br />
embedded_keyboard_enabled [TRUE]
</p></blockquote>
<p>works very well.</p>
<p>I am happy. <img src='http://blog.theadventus.com/yuit/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2010/02/02/rotating-screen-in-thinkpad-x61t-tablet-with-ubuntu-karmic/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Interesting stuff about Google</title>
		<link>http://blog.theadventus.com/yuit/2009/12/26/interesting-stuff-about-google/</link>
		<comments>http://blog.theadventus.com/yuit/2009/12/26/interesting-stuff-about-google/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 15:09:36 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/2009/12/26/interesting-stuff-about-google/</guid>
		<description><![CDATA[Was reading an article complaining about supposed search engine spamming by Target on Google (http://www.goodroi.com/why-google-allows-target-com-to-spam-results/)
While its still not clear if it is an intentional spamming attempt by Target (general consensus is that it is not), there are 2 things that you learn about how Google operates from reading through the comments:
a.  Google datamines from [...]]]></description>
			<content:encoded><![CDATA[<p>Was reading an article complaining about supposed search engine spamming by Target on Google (http://www.goodroi.com/why-google-allows-target-com-to-spam-results/)<br />
While its still not clear if it is an intentional spamming attempt by Target (general consensus is that it is not), there are 2 things that you learn about how Google operates from reading through the comments:</p>
<p>a.  Google datamines from the Google Toolbar.  Based on what and where you visit, Google gets that information from its installed Search Toolbar, and uses it as references to crawl and index.<br />
b.  Google is looking into submitting forms and indexing the results too (http://googlewebmastercentral.blogspot.com/2008/04/crawling-through-html-forms.html) </p>
<p>The 2nd thing is pretty interesting&#8230; anyone noticed this behaviour of Googlebot in the wild?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2009/12/26/interesting-stuff-about-google/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Guidelines when building a consumer-facing website</title>
		<link>http://blog.theadventus.com/yuit/2009/10/08/guidelines-when-building-a-consumer-facing-website/</link>
		<comments>http://blog.theadventus.com/yuit/2009/10/08/guidelines-when-building-a-consumer-facing-website/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 12:59:01 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=129</guid>
		<description><![CDATA[This is a pretty good post by Kevin Rose on how to take your website to a million users.
http://highscalability.com/blog/2009/10/6/10-ways-to-take-your-site-from-one-to-one-million-users-by-k.html
To sum it up:

It should feed the user&#8217;s ego. Top scores, Twitter Follows (how many followers do you have?)
Focus on 2-3 items that your site should do well
Release often.  This means that your operations/process has to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a pretty good post by Kevin Rose on how to take your website to a million users.<br />
http://highscalability.com/blog/2009/10/6/10-ways-to-take-your-site-from-one-to-one-million-users-by-k.html</p>
<p>To sum it up:</p>
<ul>
<li>It should feed the user&#8217;s ego. Top scores, Twitter Follows (how many followers do you have?)</li>
<li>Focus on 2-3 items that your site should do well</li>
<li>Release often.  This means that your operations/process has to support immediate feedback and release</li>
<li>Leverage on your user base</li>
<li>Provide value to 3rd party sites and leverage on their traffic</li>
<li>Market through unique techniques like Invite Only signups (eg: Gmail in the early days)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2009/10/08/guidelines-when-building-a-consumer-facing-website/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CRM Systems</title>
		<link>http://blog.theadventus.com/yuit/2009/08/09/crm-systems/</link>
		<comments>http://blog.theadventus.com/yuit/2009/08/09/crm-systems/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 16:18:21 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[At Work]]></category>

		<category><![CDATA[Technologies]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=127</guid>
		<description><![CDATA[Checking out SugarCRM in terms of features and capabilities:
Helps when you are running Ubuntu on your laptop:
http://www.howtoforge.com/installing-sugarcrm-community-edition-on-ubuntu-8.10
]]></description>
			<content:encoded><![CDATA[<p>Checking out SugarCRM in terms of features and capabilities:</p>
<p>Helps when you are running Ubuntu on your laptop:<br />
http://www.howtoforge.com/installing-sugarcrm-community-edition-on-ubuntu-8.10</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2009/08/09/crm-systems/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Search &#38; Move in Ruby</title>
		<link>http://blog.theadventus.com/yuit/2009/08/04/117/</link>
		<comments>http://blog.theadventus.com/yuit/2009/08/04/117/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 13:37:34 +0000</pubDate>
		<dc:creator>yuit</dc:creator>
		
		<category><![CDATA[At Work]]></category>

		<guid isPermaLink="false">http://blog.theadventus.com/yuit/?p=117</guid>
		<description><![CDATA[Its interesting that one can still get an adrenalin rush from coding&#8230;
Ever wanted to be able to move a set of opening and closing tag from one part of the document to another?  Across 100 files?
This was a quick hack I did up over a night in Ruby.

#### Initialisation ############
files     [...]]]></description>
			<content:encoded><![CDATA[<p>Its interesting that one can still get an adrenalin rush from coding&#8230;<br />
Ever wanted to be able to move a set of opening and closing tag from one part of the document to another?  Across 100 files?</p>
<p>This was a quick hack I did up over a night in Ruby.</p>
<blockquote><p>
#### Initialisation ############<br />
files             = Array.new<br />
filelines         = Array.new<br />
locationfiletype  = &#8220;/home/yuit/*.html&#8221;<br />
destinationfolder = &#8220;/home/yuit/Desktop/&#8221;<br />
loggingfolder 	  = &#8220;/home/yuit/Desktop/&#8221;</p>
<p>#### loading all files into memory ######<br />
files = Dir["#{locationfiletype}"]<br />
files.each do |f|<br />
# 	puts &#8220;#{f}&#8221;</p>
<p>	filename  = &#8220;#{f}&#8221;.split(&#8217;/')<br />
	filelines = IO.readlines(&#8221;#{f}&#8221;)<br />
	puts &#8220;Opening file #{f}&#8221;</p>
<p>	############################################<br />
	## initial scanning : Form tag replacement##<br />
	############################################<br />
	a = 0<br />
	foundstarttagsource 	= false<br />
	foundendtagsource	= false<br />
	foundstarttagdestination= false<br />
	foundendtagdestination	= false<br />
	locationstarttagsource  = 0<br />
	locationstarttagdestination = 0<br />
	locationendtagsource	= 0<br />
	locationendtagdestination = 0	</p>
<p>	filelines.each do |g|<br />
		if &#8220;#{g}&#8221;.include? &#8220;<br />
<form>&#8221; then<br />
			locationstarttagsource	= a<br />
			foundstarttagsource	= true<br />
		end<br />
                if &#8220;#{g}&#8221;.include? &#8220;<!-- End Page intro -->&#8221; then<br />
                        locationstarttagdestination = a<br />
                        foundstarttagdestination = true<br />
                end<br />
		if &#8220;#{g}&#8221;.include? &#8220;&#8221; then<br />
			locationendtagsource 	= a<br />
			foundendtagsource	= true<br />
		end<br />
		if &#8220;#{g}&#8221;.include? &#8220;
<div>
<p>Notes:&#8221; then<br />
			locationendtagdestination = a<br />
			foundendtagdestination = true<br />
		end<br />
		a = a+1<br />
	end</p>
<p>	if foundstarttagsource &amp;&amp; foundstarttagdestination &amp;&amp; foundendtagsource &amp;&amp; foundendtagdestination then<br />
		puts &#8220;Found the form tag in #{f}&#8221;<br />
		puts &#8220;#{locationstarttagsource}, #{locationendtagsource}, #{locationstarttagdestination}, #{locationendtagdestination}&#8221;<br />
		filelines[locationstarttagsource].gsub!(&#8221;<br />
<form>&#8220;,&#8221;)<br />
		filelines[locationendtagsource].gsub!(&#8221;",&#8221;)<br />
		filelines[locationendtagdestination].gsub!(&#8221;
<div>
<p>Notes:&#8221;,&#8217;</table>
</form>
<div class="divider"></div>
<p class="blue bold">Notes:</p>
<p>&#8216;)<br />
		filelines.insert(locationstarttagdestination,&#8221;<br />
<form>&#8220;)</p>
<p>		file_output = File.open(&#8221;#{destinationfolder}#{filename[-1]}&#8221;, &#8220;w&#8221;)<br />
       	 	filelines.each {|line| file_output.puts &#8220;#{line}&#8221;}<br />
        	file_output.close</p>
<p>	else<br />
		File.open(&#8221;#{loggingfolder}error_replacement.log&#8221;, &#8216;a+&#8217;) { |file| file &lt;&lt; &#8220;#{Time.now}\t #{f}\t  : Form tag not replaced\t #{foundstarttagsource}\t#{foundstarttagdestination}\t#{foundendtagsource}\t#{foundendtagdestination}\n&#8221;}</p>
<p>	end<br />
end</p>
<p>#### Clearing up memory ##########<br />
files.clear<br />
filelines.clear
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.theadventus.com/yuit/2009/08/04/117/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
