<?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>Diary of an Entrepreneur Web Developer</title>
	<atom:link href="http://www.cosmocentral.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cosmocentral.com</link>
	<description></description>
	<lastBuildDate>Thu, 04 Mar 2010 19:04:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Started E-Commerce Website</title>
		<link>http://www.cosmocentral.com/2010/03/started-e-commerce-website/</link>
		<comments>http://www.cosmocentral.com/2010/03/started-e-commerce-website/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 19:04:27 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=632</guid>
		<description><![CDATA[I had this e-commerce website Shopping Cosmo developed few months back. Had big plans selling lot of stuffs and make tons of money  
So check out the site http://www.shoppingcosmo.com/
]]></description>
			<content:encoded><![CDATA[<p>I had this e-commerce website <a title="Shopping Cosmo" href="http://www.shoppingcosmo.com" target="_blank">Shopping Cosmo</a> developed few months back. Had big plans selling lot of stuffs and make tons of money <img src='http://www.cosmocentral.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So check out the site <a href="http://www.shoppingcosmo.com/">http://www.shoppingcosmo.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/03/started-e-commerce-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading a file from external url &#8211; ASP .NET</title>
		<link>http://www.cosmocentral.com/2010/02/reading-a-file-from-external-url-asp-net/</link>
		<comments>http://www.cosmocentral.com/2010/02/reading-a-file-from-external-url-asp-net/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 18:49:30 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=627</guid>
		<description><![CDATA[Often times you might need to read a file from another website server. For example reading a inventory data file from a vendor website. Here is a sample code to achieve that.]]></description>
			<content:encoded><![CDATA[<p>Often times you might need to read a file from another website server. For example reading a inventory data file from a vendor website. Here is a sample code to achieve that.</p>
<blockquote><p>WebResponse result = null;<br />
string output = &#8220;&#8221;;</p>
<p>try<br />
{<br />
WebRequest req = WebRequest.Create(&#8220;http://www.website.com/filename.txt&#8221;);<br />
result = req.GetResponse();<br />
Stream ReceiveStream = result.GetResponseStream();<br />
Encoding encode = System.Text.Encoding.GetEncoding(&#8220;utf-8&#8243;);<br />
StreamReader sr = new StreamReader(ReceiveStream, encode);<br />
Char[] read = new Char[256];<br />
int count = sr.Read(read, 0, read.Length);<br />
while (count &gt; 0)<br />
{<br />
String str = new String(read, 0, count);<br />
output += str;<br />
count = sr.Read(read, 0, read.Length);<br />
}<br />
}<br />
catch (Exception)<br />
{<br />
Response.Write(&#8220;get failed&#8221;);<br />
}<br />
if (result != null)<br />
{<br />
result.Close();<br />
}</p>
<p>Response.Write(output);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/02/reading-a-file-from-external-url-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to apply multiple css styles on single element</title>
		<link>http://www.cosmocentral.com/2010/01/621/</link>
		<comments>http://www.cosmocentral.com/2010/01/621/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 22:47:03 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming / Coding]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/2010/01/621/</guid>
		<description><![CDATA[If you like to apply multiple styles on the single element, all you have to do is separate the style names by a space.]]></description>
			<content:encoded><![CDATA[<p>If you like to apply multiple styles on the single element, all you have to do is separate the style names by a space.</p>
<p><strong>Example:</strong></p>
<p>Lets say you have three classes</p>
<blockquote><p>.a {..}<br />
.b{..}<br />
.c{..}</p></blockquote>
<p>To apply them on a single div tag:</p>
<blockquote><p>&lt;div&gt;<br />
&#8230;..<br />
&lt;/div&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/01/621/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add an additional ip address in windows server 2003 and 2008</title>
		<link>http://www.cosmocentral.com/2010/01/how-to-add-an-additional-ip-address-in-windows-server-2003-and-2008/</link>
		<comments>http://www.cosmocentral.com/2010/01/how-to-add-an-additional-ip-address-in-windows-server-2003-and-2008/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 19:46:44 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=616</guid>
		<description><![CDATA[If you have a dedicated server and you need to add an additional ip address, first thing to do is request for the additional ip address from the hosting company. Often time they would not hook it with your server, they would just give it to you.]]></description>
			<content:encoded><![CDATA[<p>If you have a dedicated server and you need to add an additional ip address, first thing to do is request for the additional ip address from the hosting company. Often time they would not hook it with your server, they would just give it to you.</p>
<p><strong>So how you add the additional ip address to your windows server?</strong></p>
<p>These steps are for Windows Server 2003.</p>
<ul>
<li>Click on Start button</li>
<li>Open Cotnrol Panel</li>
<li>Open Network connections</li>
<li>Select Local Area Connection (for first Ethernet card)</li>
<li>Right Click and select Properties</li>
<li>Select Internet Protocol (TCP/IP)</li>
<li>Now click on Properties button</li>
<li>Click on Advanced tab</li>
<li>Now you need to add in an IP address section Enter IP details such as IP address, Subnetmask etc</li>
<li>Save the changes and go back to Windows server desktop</li>
</ul>
<p>These steps are for Windows Server 2008.</p>
<ul>
<li>Click on Start button</li>
<li>Open Cotnrol Panel</li>
<li>Click on Network and Sharing Center</li>
<li>Click on Manage Network Connections</li>
<li>Right Click on the active network icon  and select Properties</li>
<li>Select Internet Protocol Version (TCP/IP). There may be more then version. For me there are 4 and 6. Mine one is at 4.</li>
<li>Now click on Properties button</li>
<li>Click on Advanced tab</li>
<li>Now you need to add in an IP address section Enter IP details such as IP address, Subnetmask etc</li>
<li>Save the changes and go back to Windows server desktop</li>
</ul>
<p><strong>After that you need to verifty that new settings are working. This is how you do that:</strong></p>
<ul>
<li>Open command prompt</li>
<li>Click on Start button</li>
<li>Select Run</li>
<li>Type cmd and press enter</li>
<li>Type the following command at DOS prompt: ipconfig /all</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/01/how-to-add-an-additional-ip-address-in-windows-server-2003-and-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maximum Int Value MS SQL</title>
		<link>http://www.cosmocentral.com/2010/01/maximum-int-value-ms-sql/</link>
		<comments>http://www.cosmocentral.com/2010/01/maximum-int-value-ms-sql/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 14:37:24 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[Programming / Coding]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=612</guid>
		<description><![CDATA[When you design database tables care should be taken selecting the type of integer columns. If you predict there is chances to have big numbers on the integer column, consider bigint or int accordingly.]]></description>
			<content:encoded><![CDATA[<p>When you design database tables care should be taken selecting the type of integer columns. If you predict there is chances to have big numbers on the integer column, consider bigint or int accordingly. Of course there are performance issues involved to consider.</p>
<p>Here are the maximum int value in MS SQL server.</p>
<p><strong>bigInt</strong> -9223372036854775808 through 9223372036854775807 (8 bytes)<br />
<strong>int</strong> -2147483648 through 2147483647 (4 bytes)<br />
<strong>smallInt</strong> -32768 through 32767 (2 bytes)<br />
<strong>tinyInt</strong> 0 through 255 (1 byte)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/01/maximum-int-value-ms-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Neglecting Improving Websites</title>
		<link>http://www.cosmocentral.com/2010/01/neglecting-improving-websites/</link>
		<comments>http://www.cosmocentral.com/2010/01/neglecting-improving-websites/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 22:51:53 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/2010/01/neglecting-improving-websites/</guid>
		<description><![CDATA[I guess with all good comes bad. My problem is before I monetize the websites well I jump into another business idea comes in mind.]]></description>
			<content:encoded><![CDATA[<p>Being an entrepreneur web developer has some advantages, I don&#8217;t have to pay anybody for the web development works. In the past I have developed some websites with great features; take webcosmo.com or shoppingcosmo.com for example. All those sites are custom made. Lot of people would spend tons of money to make those sites.</p>
<p>I guess with all good comes bad. My problem is before I monetize the websites well I jump into another business idea that comes in mind. That&#8217;s not a good business decision at all.</p>
<p>I have set a goal of getting those neglected websites back on track.</p>
<p>Is it only me or you guys also do the same thing?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/01/neglecting-improving-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Background does not extend beyond viewport</title>
		<link>http://www.cosmocentral.com/2010/01/background-does-not-extend-viewport/</link>
		<comments>http://www.cosmocentral.com/2010/01/background-does-not-extend-viewport/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 22:07:28 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[Programming / Coding]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=592</guid>
		<description><![CDATA[I have two backgrounds for a page; one on left side, another on the right side. Both repeat vertically. ]]></description>
			<content:encoded><![CDATA[<p>While working on a client website got into this situation.</p>
<p>I have two backgrounds for a page; one on left side, another on the right side. Both repeat vertically. This is an example how I have set the code at first:</p>
<blockquote><p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;2 columns, fixed width, right rail, content tallest&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
html, body {height:100%;margin:0;padding:0;}<br />
body {background:url(left.gif) 0 0 repeat-y;color:#010101;font:12px/18px Arial,Verdana;}<br />
#container {background:url(right.gif) 100% 0 repeat-y;width:100%;height:100%;}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id=&#8221;container&#8221;&gt;<br />
&lt;div style=&#8221;height:950px;&#8221;&gt;Bla Bla Bla&#8230;&lt;/div&gt;<br />
&lt;!&#8211;To force a height so we can see a scrollbar for testing&#8211;&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><strong>Problem:</strong></p>
<p>Everything works fine as long as we dont have a scrollbar on the right. When we have lot of content that makes the browser have a scrollbar, the background on the right does not seem to repeat; it ends at the end of the viewport.</p>
<p><strong>Basics of Percentage Height:</strong></p>
<p>Anytime you want to declare a percentage height of an element you must declare a dimension set for it&#8217;s parents as well(no necessarily by percentage). For example if you want to set 100% height for a div that is inside the body tag, you must set a dimension for the body as well as html tags as well.</p>
<blockquote><p>&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;div class=&#8221;adiv&#8221;&gt;bla bla bla&#8230;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p>And the css for that:<br />
html, body {height: 100%;}<br />
.adiv {height:100%;}</p>
<p><strong>Solution:</strong></p>
<p>We like our div to be at least as high as the viewport, but if the content is longer than the viewport, stretch to contain it. CSS provides a way for us to do that with the min-height property. If we change the height: 100%  in the #container rule to min-height: 100% everything is pronto. The code would look like this:</p>
<blockquote><p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;2 columns, fixed width, right rail, content tallest&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
html, body {height:100%;margin:0;padding:0;}<br />
body {background:url(left.gif) 0 0 repeat-y;color:#010101;font:12px/18px Arial,Verdana;}<br />
#container {background:url(right.gif) 100% 0 repeat-y;width:100%;min-height:100%;}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id=&#8221;container&#8221;&gt;<br />
&lt;div style=&#8221;height:950px;&#8221;&gt;Bla Bla Bla&#8230;&lt;/div&gt;<br />
&lt;!&#8211;To force a height so we can see a scrollbar for testing&#8211;&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/01/background-does-not-extend-viewport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Cloumn Equal Height Layout With CSS</title>
		<link>http://www.cosmocentral.com/2010/01/two-cloumn-equal-height-layout-with-css/</link>
		<comments>http://www.cosmocentral.com/2010/01/two-cloumn-equal-height-layout-with-css/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 17:43:21 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[Programming / Coding]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=578</guid>
		<description><![CDATA[I wanna create a two column layout using CSS. Both clumns would have equal height. This is how we can do it]]></description>
			<content:encoded><![CDATA[<p>I wanna create a two column layout using CSS. Both clumns would have equal height. This is how we can do it:</p>
<blockquote><p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Two Cloumn Equal Height CSS Layout&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
#container{<br />
background-color:#fff;<br />
overflow:hidden;<br />
width:750px;<br />
}<br />
#div1{<br />
background-color:#99cccc;<br />
width:600px;<br />
border-right:150px solid #c33; /* The width and color of the div2 */<br />
margin-right:-150px;<br />
float:left;<br />
}<br />
#div2{<br />
background-color:#cc3333;<br />
width:150px;<br />
float:left;<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id=&#8221;container&#8221;&gt;<br />
&lt;div id=&#8221;div1&#8243;&gt;This is left div 1 content&lt;br /&gt;This is left div 1 content&lt;/div&gt;<br />
&lt;div id=&#8221;div2&#8243;&gt;This is div 2 content&lt;/div&gt;</p>
<p>&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><strong>border-right:150px solid #c33;</strong><br />
This line of code just gives a color to the div2.</p>
<p><strong>margin-right:-150px;</strong><br />
This line of code create space on the right for div2.</p>
<p>Other then that everything else is self explanatory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2010/01/two-cloumn-equal-height-layout-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the type or namespace name &#8216;webmethod&#8217; could not be found</title>
		<link>http://www.cosmocentral.com/2009/09/the-type-or-namespace-name-webmethod-could-not-be-found/</link>
		<comments>http://www.cosmocentral.com/2009/09/the-type-or-namespace-name-webmethod-could-not-be-found/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 00:16:27 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[Programming / Coding]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=573</guid>
		<description><![CDATA[If you are adding Page Method on your ASP .Net page and you see this compile error: the type or namespace name 'webmethod' could not be found....]]></description>
			<content:encoded><![CDATA[<p>If you are adding Page Method on your ASP .Net page and you see this compile error:</p>
<p><span style="color: #ff0000;">the type or namespace name &#8216;webmethod&#8217; could not be found&#8230;.</span></p>
<p>then you are missing one of these things:</p>
<p>A. Make sure you have reference to System.Web.Services on your class.</p>
<p>using System.Web.Services;</p>
<p>B. Make sure on your web.config you have</p>
<p>&lt;system.web&gt;<br />
&lt;httpModules&gt;<br />
&lt;add name=&#8221;ScriptModule&#8221; type=&#8221;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8243;/&gt;<br />
&lt;/httpModules&gt;<br />
&lt;/system.web&gt;</p>
<p>C. Make sure you have EnablePageMethods set to true on your ScriptManager</p>
<p>&lt;asp:ScriptManager ID=&#8221;ScriptManager1&#8243; EnablePageMethods=&#8221;true&#8221; runat=&#8221;server&#8221;&gt;<br />
&lt;/asp:ScriptManager&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2009/09/the-type-or-namespace-name-webmethod-could-not-be-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Truncate MS SQL 2008 Database Log File</title>
		<link>http://www.cosmocentral.com/2009/09/truncate-ms-sql-2008-database-log-file/</link>
		<comments>http://www.cosmocentral.com/2009/09/truncate-ms-sql-2008-database-log-file/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 22:10:56 +0000</pubDate>
		<dc:creator>manik</dc:creator>
				<category><![CDATA[Programming / Coding]]></category>

		<guid isPermaLink="false">http://www.cosmocentral.com/?p=569</guid>
		<description><![CDATA[So you need to truncate the log files often to keep the log file smaller in size. The process I am demonstrating here is for MS SQL 2008.]]></description>
			<content:encoded><![CDATA[<div>If you need to truncate the SQL database log files to keep them smaller in size. The process I am demonstrating here is for MS SQL 2008.–Get in the database</p>
<p>use Test<br />
GO</p>
<p>–see current file sizes<br />
SELECT name,size from sys.database_files</p>
<p>–see current recovery model<br />
select name,recovery_model_desc from sys.databases</p>
<p>–According to the articles if you switch the Recovery Model to Simple inactive part of the transaction log should be removed in MS SQL 2008.<br />
–This command will reduce the log file somewhat<br />
Alter database Test SET Recovery simple</p>
<p>–check if the recovery model is changed<br />
select name,recovery_model_desc from sys.databases</p>
<p>–check file sizes<br />
select name,size from sys.database_files</p>
<p>–changing the recovery model to Simple might not reduce the size enough. to reduce it further<br />
DBCC SHRINKFILE (N’Test_log’ , 1)</p>
<p>–check file size<br />
select name,size from sys.database_files</p>
<p>Source: <a href="http://www.bostonwebdeveloper.com/2009/09/truncate-ms-sql-2008-database-log-file/" target="_blank">http://www.bostonwebdeveloper.com/2009/09/truncate-ms-sql-2008-database-log-file/</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmocentral.com/2009/09/truncate-ms-sql-2008-database-log-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
