<?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>Marvin Sugirin</title>
	<atom:link href="http://marvin.sugirin.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://marvin.sugirin.net</link>
	<description>All around the world..</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:02:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SQL &#8211; SSIS Get FileName from Multi-Flat-File Import</title>
		<link>http://marvin.sugirin.net/?p=70</link>
		<comments>http://marvin.sugirin.net/?p=70#comments</comments>
		<pubDate>Mon, 06 Feb 2012 20:02:32 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=70</guid>
		<description><![CDATA[SUBSTRING(FileName,LEN(FileName) - FINDSTRING(REVERSE(FileName),"\\",1) + 2,LEN(RIGHT(FileName,FINDSTRING(REVERSE(FileName),"\\",1) - 1)))]]></description>
			<content:encoded><![CDATA[<pre>SUBSTRING(FileName,LEN(FileName) - FINDSTRING(REVERSE(FileName),"\\",1) + 2,LEN(RIGHT(FileName,FINDSTRING(REVERSE(FileName),"\\",1) - 1)))
</pre>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scroll to end to enable checkbox</title>
		<link>http://marvin.sugirin.net/?p=68</link>
		<comments>http://marvin.sugirin.net/?p=68#comments</comments>
		<pubDate>Wed, 01 Feb 2012 22:23:13 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=68</guid>
		<description><![CDATA[$(window).scroll(function () {             if ($(document).height() &#60;= $(window).height() + $(window).scrollTop())                 $("#chk", window.parent.document).removeAttr("disabled");  });]]></description>
			<content:encoded><![CDATA[<pre><code>$(window).scroll(function () {
            if ($(document).height() &lt;= $(window).height() + $(window).scrollTop())
                $("#chk", window.parent.document).removeAttr("disabled");
 });
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=68</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Truncate Logs</title>
		<link>http://marvin.sugirin.net/?p=64</link>
		<comments>http://marvin.sugirin.net/?p=64#comments</comments>
		<pubDate>Tue, 31 Jan 2012 22:05:10 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=64</guid>
		<description><![CDATA[alter database &#60;mydb&#62; set recovery simple go checkpoint go alter database &#60;mydb&#62; set recovery full go backup database pubs to disk = 'c:mydb.bak' with init go dbcc shrinkfile (N'mydb_log' , 1) go]]></description>
			<content:encoded><![CDATA[<pre>alter database &lt;mydb&gt; set recovery <strong>simple</strong>
 go

 checkpoint
 go

 alter database &lt;mydb&gt; set recovery <strong>full</strong>
 go

 backup database pubs to disk = 'c:mydb.bak' with init
 go

 dbcc <strong>shrinkfile </strong>(N'mydb_log' , 1)
 go</pre>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL &#8211; Find Space Used, Row Count of all tables in a database</title>
		<link>http://marvin.sugirin.net/?p=59</link>
		<comments>http://marvin.sugirin.net/?p=59#comments</comments>
		<pubDate>Tue, 31 Jan 2012 19:25:38 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=59</guid>
		<description><![CDATA[SET NOCOUNT ON DBCC UPDATEUSAGE(0) -- DB size. EXEC sp_spaceused -- Table row counts and sizes. CREATE TABLE #t ( [name] NVARCHAR(128), [rows] CHAR(11), reserved VARCHAR(18), data VARCHAR(18), index_size VARCHAR(18), unused VARCHAR(18) ) INSERT #t EXEC sp_msForEachTable 'EXEC sp_spaceused ''?''' SELECT * FROM #t -- # of rows. SELECT SUM(CAST([rows] AS int)) AS [rows] FROM [...]]]></description>
			<content:encoded><![CDATA[<pre>SET NOCOUNT ON 

DBCC UPDATEUSAGE(0) 

-- DB size.
EXEC sp_spaceused

-- Table row counts and sizes.
CREATE TABLE #t
(
    [name] NVARCHAR(128),
    [rows] CHAR(11),
    reserved VARCHAR(18),
    data VARCHAR(18),
    index_size VARCHAR(18),
    unused VARCHAR(18)
) 

INSERT #t EXEC sp_msForEachTable 'EXEC sp_spaceused ''?''' 

SELECT *
FROM   #t

-- # of rows.
SELECT SUM(CAST([rows] AS int)) AS [rows]
FROM   #t

DROP TABLE #t 
</pre>
<p>[Source: http://therightstuff.de/CommentView,guid,df930155-f60f-4f56-ab33-f1352ff091a1.aspx]</p>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=59</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio &#8211; Delete blank lines</title>
		<link>http://marvin.sugirin.net/?p=54</link>
		<comments>http://marvin.sugirin.net/?p=54#comments</comments>
		<pubDate>Wed, 01 Jun 2011 19:13:57 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=54</guid>
		<description><![CDATA[Visual Studio has ability to delete empty lines in replace operation using regular expressions. 1.Click Ctrl-H (quick replace) 2. Tick &#8220;Use Regular Expressions&#8221; 3. In Find specify ^$\n 4. In Replace box delete everything. 5 Click &#8220;Replace All&#8221; All empty lines will be deleted. Regular expression for empty line consist of Beginning of line ^ End of line $ [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial;">Visual Studio</span> has ability to delete empty lines in replace operation using regular expressions.<br />
1.Click Ctrl-H (quick replace)<br />
2. Tick &#8220;Use Regular Expressions&#8221;<br />
3. <span style="font-size: x-small;">In Find specify <span style="font-family: Arial;"><span><span style="font-family: Arial;">^$\n</span><br />
</span>4. In Replace box delete everything<span style="font-family: Arial;">.<br />
5 Click &#8220;Replace All&#8221;<br />
All empty lines will be deleted.</span></span></span></p>
<p><span style="font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/library/2k3te2cs%28VS.80%29.aspx">Regular expression </a>for empty line consist of </span></p>
<table width="100%">
<tbody>
<tr>
<td>Beginning of line ^</td>
<td></td>
<td></td>
</tr>
<tr>
<td>End of line $</td>
<td></td>
</tr>
</tbody>
</table>
<table width="100%">
<tbody>
<tr>
<td>Line break \n</td>
<td></td>
</tr>
</tbody>
</table>
<p>Note that normally in Windows an end of line  indicated by 2 characters <em>CRLF</em> &#8211; Carriage Return (<em>CR</em>, <em>ASCII</em> 13, \r) Line Feed (<em>LF</em>, <em>ASCII</em> 10, \n).</p>
<p>Addition from  <a id="Comments_ascx_CommentList_ctl10_NameLink" title="Kenneth" target="_blank">Kenneth</a> at 6/18/2009:<br />
A regex to remove blank lines that are/aren&#8217;t *really* blank (i.e. they  do/don&#8217;t have spaces):   ^:b*$\n</p>
<p>source:</p>
<p><a href="http://geekswithblogs.net/mnf/archive/2008/03/04/remove-empty-lines-in">http://geekswithblogs.net/mnf/archive/2008/03/04/remove-empty-lines-in</a>&#8211;text-using-visual-studio.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Office Documents appearing as zip in IE</title>
		<link>http://marvin.sugirin.net/?p=50</link>
		<comments>http://marvin.sugirin.net/?p=50#comments</comments>
		<pubDate>Wed, 11 May 2011 16:05:43 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=50</guid>
		<description><![CDATA[Add the following lines to the .htaccess file: AddType application/vnd.ms-word.document.macroEnabled.12 .docm AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm AddType application/vnd.openxmlformats-officedocument.presentationml.template potx AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx AddType application/vnd.ms-excel.template.macroEnabled.12 xltm AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template [...]]]></description>
			<content:encoded><![CDATA[<p>Add the following lines to the <em>.htaccess</em> file:</p>
<pre>AddType application/vnd.ms-word.document.macroEnabled.12 .docm
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm
AddType application/vnd.openxmlformats-officedocument.presentationml.template potx
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
AddType application/vnd.ms-excel.template.macroEnabled.12 xltm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx</pre>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=50</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix &#8211; Zip a Folder</title>
		<link>http://marvin.sugirin.net/?p=40</link>
		<comments>http://marvin.sugirin.net/?p=40#comments</comments>
		<pubDate>Mon, 07 Feb 2011 18:02:31 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=40</guid>
		<description><![CDATA[In the shell use the following command: zip -r filename directory]]></description>
			<content:encoded><![CDATA[<p>In the shell use the following command:</p>
<p>zip -r filename directory</p>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=40</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 and IE7 on Windows 7 (or any platform)</title>
		<link>http://marvin.sugirin.net/?p=41</link>
		<comments>http://marvin.sugirin.net/?p=41#comments</comments>
		<pubDate>Thu, 11 Nov 2010 00:17:16 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=41</guid>
		<description><![CDATA[Here&#8217;s the scenario: You are running Windows 7, but need to test a website or a web application for Cross Browser Compatibility. In Windows 7, you can&#8217;t rollback to IE6, what are your options? There are many ways to do this, but here are some. Option 1 (MS Solution) First download an image from Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the scenario:<br />
You are running Windows 7, but need to test a website or a web application for Cross Browser Compatibility. In Windows 7, you can&#8217;t rollback to IE6, what are your options? There are many ways to do this, but here are some.</p>
<p><strong>Option 1 (MS Solution)</strong><br />
First download an image from Microsoft (<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&amp;displaylang=en">http://www.microsoft.com/downloads/en/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&amp;displaylang=en</a>). There are many options to choose from and this is great!</p>
<p>Now it&#8217;s up to you how you handle the downloaded VHD. If you have Windows 7 Professional or Ultimate, you can follow the instructions to install Virtual PC (<a href="http://www.microsoft.com/windows/products/winfamily/virtualpc/default.mspx">http://www.microsoft.com/windows/products/winfamily/virtualpc/default.mspx</a>).</p>
<p>If you only have Windows 7 Home Premium, but you have VMWare Workstation/Server, you can convert the disc by using <em>StarWind V2V Image Converter (</em><a href="http://www.starwindsoftware.com/converter">http://www.starwindsoftware.com/converter</a>). Once you have converted it, simply create a new Virtual Machine and choose the existing VMDK.</p>
<p><strong>Option 2 (Web solution)</strong><br />
You can you Spoon! (<a href="http://www.spoon.net/">http://www.spoon.net/</a>)This requires only a plugin installation and you&#8217;re good to go to run various different browsers. An issue I was having with this was using IE6. Some pages it simply won&#8217;t display for any reason and if you change security settings, you might not be able to see the changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=41</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Jetta 2011</title>
		<link>http://marvin.sugirin.net/?p=31</link>
		<comments>http://marvin.sugirin.net/?p=31#comments</comments>
		<pubDate>Sat, 30 Oct 2010 17:46:49 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[Jetta 2011]]></category>
		<category><![CDATA[Volkswagen]]></category>

		<guid isPermaLink="false">http://marvin.sugirin.net/?p=31</guid>
		<description><![CDATA[So, I finally got my first own (leased) car! I decided to go with the VW Jetta 2011 (MK6). At first I was struck by the price on the ads, $15,995. But I knew the price was just for the basic version with a 2.0 engine and steel rims with hub caps. That didn&#8217;t really [...]]]></description>
			<content:encoded><![CDATA[<p>So, I finally got my first own (leased) car! I decided to go with the VW Jetta 2011 (MK6). At first I was struck by the price on the ads, $15,995. But I knew the price was just for the basic version with a 2.0 engine and steel rims with hub caps. That didn&#8217;t really struck my interest, going up in the class, I decided to go with the SEL version of the car.</p>
<p>The version I wanted, black exterior and black interior was not in the dealer, so they had to locate the car and ship it over from the port, which took about a week.</p>
<p>Here are some pictures on the first day. It was picked up last night, so this is the first time it hit sun light.<a href="../wp-content/uploads/2010/10/IMG_0503.jpg"></a></p>
<p><a href="../wp-content/uploads/2010/10/IMG_0503.jpg">
<a href='http://marvin.sugirin.net/?attachment_id=32' title='Jetta 2011 Front/Side View'><img width="150" height="150" src="http://sugirin.net/marvin/wp-content/uploads/2010/10/IMG_0503-150x150.jpg" class="attachment-thumbnail" alt="Jetta 2011 Front/Side View" title="Jetta 2011 Front/Side View" /></a>
<a href='http://marvin.sugirin.net/?attachment_id=33' title='Jetta 2011 Front View'><img width="150" height="150" src="http://sugirin.net/marvin/wp-content/uploads/2010/10/IMG_0504-150x150.jpg" class="attachment-thumbnail" alt="Jetta 2011 Front View" title="Jetta 2011 Front View" /></a>
<a href='http://marvin.sugirin.net/?attachment_id=34' title='Jetta 2011 Side Front Passenger Side'><img width="150" height="150" src="http://sugirin.net/marvin/wp-content/uploads/2010/10/IMG_0505-150x150.jpg" class="attachment-thumbnail" alt="Jetta 2011 Side Front Passenger Side" title="Jetta 2011 Side Front Passenger Side" /></a>
<a href='http://marvin.sugirin.net/?attachment_id=35' title='Jetta 2011 Back View'><img width="150" height="150" src="http://sugirin.net/marvin/wp-content/uploads/2010/10/IMG_0506-150x150.jpg" class="attachment-thumbnail" alt="Jetta 2011 Back View" title="Jetta 2011 Back View" /></a>
<a href='http://marvin.sugirin.net/?attachment_id=36' title='Jetta 2011 Interior'><img width="150" height="150" src="http://sugirin.net/marvin/wp-content/uploads/2010/10/IMG_0507-150x150.jpg" class="attachment-thumbnail" alt="Jetta 2011 Interior" title="Jetta 2011 Interior" /></a>
</p>
<p></a></p>
<p><a href="../wp-content/uploads/2010/10/IMG_0503.jpg"> </a></p>
<p><a href="../wp-content/uploads/2010/10/IMG_0503.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=31</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HSTS &#8211; Strict Transport Security</title>
		<link>http://marvin.sugirin.net/?p=25</link>
		<comments>http://marvin.sugirin.net/?p=25#comments</comments>
		<pubDate>Thu, 16 Sep 2010 23:05:58 +0000</pubDate>
		<dc:creator>Marvin Sugirin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://69.89.31.77/~sugirinn/marvin/?p=25</guid>
		<description><![CDATA[HTTP Strict Transport Security (HSTS) is the new security standard for websites. PayPal is one website that is using this standard for their HTTPS site. So you might think, what&#8217;s the difference between HTTPS and HSTS? HSTS is not a replacement for HTTPS, but rather an add-on. Without HSTS it is possible for a Man-In-The-Middle [...]]]></description>
			<content:encoded><![CDATA[<p><strong>HTTP Strict Transport Security</strong> (HSTS) is the new security standard for websites. PayPal is one website that is using this standard for their HTTPS site.</p>
<p><span id="more-25"></span></p>
<p>So you might think, what&#8217;s the difference between HTTPS and HSTS? HSTS is not a replacement for HTTPS, but rather an add-on. Without HSTS it is possible for a Man-In-The-Middle (MITM) attack. Why do you care? Imagine you sit in at a local Starbucks slurping your coffee or machiato, have your laptop open and connected to a wifi-spot. What you don&#8217;t know is that the wifi-spot is actually someone else&#8217;s laptop hijacking your connection to the internet. Before anything gets processed, your request to the internet will get redirected to him, the response will be capture by him and then send to you. Imagine you sending a letter in an envelope and the mail man will always read the letter before giving it to the recipient and the same way back. This is dangerous especially for bank transactions you might want to do while you are in a public wifi-spot.</p>
<p>HSTS will take care of this, since it requires an encrypted connection directly to the server. If this is not happening, either the connection to the server will be cut off, or the connection will be forced to be encrypted. Either way, you are safe!</p>
<p>This feature is new and only started to be available in FF 4+. As of this post, I&#8217;m not sure if IE is supporting this feature or in what version this will be available. Just another reason to update your browser to the latest versions. Besides the support of HTML 5! More on HTML 5 soon..</p>
<p>Reade more on HSTS on Wikipedia: <a href="http://en.wikipedia.org/wiki/Strict_Transport_Security">http://en.wikipedia.org/wiki/Strict_Transport_Security</a></p>
]]></content:encoded>
			<wfw:commentRss>http://marvin.sugirin.net/?feed=rss2&amp;p=25</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

