<?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>Mad Fox Tech</title>
	<atom:link href="http://madfoxtech.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://madfoxtech.com</link>
	<description></description>
	<lastBuildDate>Fri, 01 Jul 2011 01:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Excel to LaTeX Tables</title>
		<link>http://madfoxtech.com/2011/06/excel-to-latex-tables/</link>
		<comments>http://madfoxtech.com/2011/06/excel-to-latex-tables/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 01:23:49 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[tabular]]></category>

		<guid isPermaLink="false">http://madfoxtech.com/?p=105</guid>
		<description><![CDATA[<a href="http://madfoxtech.com/2011/06/excel-to-latex-tables/"><img align="left" hspace="5" width="150" height="150" src="http://madfoxtech.com/wp-content/uploads/2011/06/table2tabular-150x150.png" class="alignleft tfe wp-post-image" alt="table2tabular" title="table2tabular" /></a>So here&#8217;s the story: I use LaTeX for creating documents almost exclusively, but making tables are a huge pain. I use Excel all the time for number crunching but I prefer to display results in LaTeX when I&#8217;m finished. After doing a bit of googling, I didn&#8217;t find anything that I found all that useful, <a href="http://madfoxtech.com/2011/06/excel-to-latex-tables/" class="read-more-link">Read More</a><a class="read-more-expand">Read More</a>]]></description>
			<content:encoded><![CDATA[<p>So here&#8217;s the story: I use LaTeX for creating documents almost exclusively, but making tables are a huge pain. I use Excel all the time for number crunching but I prefer to display results in LaTeX when I&#8217;m finished. After doing a bit of googling, I didn&#8217;t find anything that I found all that useful, so I decided to write some VBA to convert Excel tables to LaTeX code. I spent about 15 minutes working on a subroutine and this is what I came up with. (It&#8217;s still a work in progress&#8230; I&#8217;ll post later when I think it&#8217;s &#8220;complete&#8221;) To use it, copy and paste the code into Excel&#8217;s VBA Editor, highlight the table you want to convert, run the macro, and your output will be in the VBA Editor&#8217;s Immediate Window (View > Immediate Window).</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">% put this in your preamble</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">booktabs</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">ctable</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% I used this to make the look of captions stand out</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">hang,small,bf</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">caption</span><span style="color: #E02020; ">}</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #E56717; font-weight: bold;">Sub</span> Table2Tabular()
    <span style="color: #151B8D; font-weight: bold;">Dim</span> Xn <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
    <span style="color: #151B8D; font-weight: bold;">Dim</span> Yn <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
&nbsp;
    <span style="color: #151B8D; font-weight: bold;">Dim</span> Xi <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
    <span style="color: #151B8D; font-weight: bold;">Dim</span> Yi <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
&nbsp;
    <span style="color: #151B8D; font-weight: bold;">Dim</span> strCells() <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
&nbsp;
    Xn = Selection.Rows.Count
    Yn = Selection.Columns.Count
&nbsp;
    <span style="color: #151B8D; font-weight: bold;">ReDim</span> strCells(Xn, Yn) <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
&nbsp;
    <span style="color: #151B8D; font-weight: bold;">Dim</span> maxLength <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
&nbsp;
    <span style="color: #8D38C9; font-weight: bold;">For</span> Xi = 0 <span style="color: #8D38C9; font-weight: bold;">To</span> Xn - 1
        <span style="color: #8D38C9; font-weight: bold;">For</span> Yi = 0 <span style="color: #8D38C9; font-weight: bold;">To</span> Yn - 1
            strCells(Xi, Yi) = Cells(Selection.Row + Xi, Selection.Column + Yi)
&nbsp;
            <span style="color: #8D38C9; font-weight: bold;">If</span> maxLength &lt; Len(strCells(Xi, Yi)) + 9 <span style="color: #8D38C9; font-weight: bold;">Then</span> maxLength = Len(strCells(Xi, Yi)) + 9
        <span style="color: #8D38C9; font-weight: bold;">Next</span>
    <span style="color: #8D38C9; font-weight: bold;">Next</span>
&nbsp;
    <span style="color: #151B8D; font-weight: bold;">Dim</span> <span style="color: #151B8D; font-weight: bold;">line</span> <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
&nbsp;
    Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> <span style="color: #800000;">&quot;\begin{table}[tp]&quot;</span>
    Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> vbTab &amp; <span style="color: #800000;">&quot;\label{tab:Type label here.} \centering&quot;</span>
    <span style="color: #151B8D; font-weight: bold;">line</span> = vbTab &amp; <span style="color: #800000;">&quot;\begin{tabular}{&quot;</span>
    <span style="color: #8D38C9; font-weight: bold;">For</span> Xi = 1 <span style="color: #8D38C9; font-weight: bold;">To</span> Xn
        <span style="color: #8D38C9; font-weight: bold;">If</span> Selection.Columns(Xi).HorizontalAlignment = xlHAlignRight <span style="color: #8D38C9; font-weight: bold;">Then</span>
            <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot;r&quot;</span>
        <span style="color: #8D38C9; font-weight: bold;">ElseIf</span> Selection.Columns(Xi).HorizontalAlignment = xlHAlignLeft <span style="color: #8D38C9; font-weight: bold;">Then</span>
            <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot;l&quot;</span>
        <span style="color: #8D38C9; font-weight: bold;">Else</span>
            <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot;c&quot;</span>
        <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
    <span style="color: #8D38C9; font-weight: bold;">Next</span>
    <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot;}&quot;</span>
    Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> <span style="color: #151B8D; font-weight: bold;">line</span>
    <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #800000;">&quot;&quot;</span>
    Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> vbTab &amp; <span style="color: #800000;">&quot;\toprule&quot;</span>
&nbsp;
    <span style="color: #8D38C9; font-weight: bold;">For</span> Xi = 0 <span style="color: #8D38C9; font-weight: bold;">To</span> Xn - 1
        <span style="color: #8D38C9; font-weight: bold;">For</span> Yi = 0 <span style="color: #8D38C9; font-weight: bold;">To</span> Yn - 1
            <span style="color: #8D38C9; font-weight: bold;">If</span> Cells(Selection.Row + Xi, Selection.Column + Yi).Font.Bold = <span style="color: #00C2FF; font-weight: bold;">True</span> <span style="color: #8D38C9; font-weight: bold;">Then</span>
                <span style="color: #8D38C9; font-weight: bold;">If</span> Yi = 0 <span style="color: #8D38C9; font-weight: bold;">Then</span>
                    <span style="color: #151B8D; font-weight: bold;">line</span> = vbTab &amp; vbTab &amp; PadString(<span style="color: #800000;">&quot; \textbf{&quot;</span> &amp; strCells(Xi, Yi) &amp; <span style="color: #800000;">&quot;}&quot;</span>, maxLength) &amp; <span style="color: #800000;">&quot; &amp;&quot;</span>
                <span style="color: #8D38C9; font-weight: bold;">ElseIf</span> Yi = Yn - 1 <span style="color: #8D38C9; font-weight: bold;">Then</span>
                    <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; PadString(<span style="color: #800000;">&quot; \textbf{&quot;</span> &amp; strCells(Xi, Yi) &amp; <span style="color: #800000;">&quot;}&quot;</span>, maxLength) &amp; <span style="color: #800000;">&quot; \\&quot;</span>
                <span style="color: #8D38C9; font-weight: bold;">Else</span>
                    <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; PadString(<span style="color: #800000;">&quot; \textbf{&quot;</span> &amp; strCells(Xi, Yi) &amp; <span style="color: #800000;">&quot;}&quot;</span>, maxLength) &amp; <span style="color: #800000;">&quot; &amp;&quot;</span>
                <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
            <span style="color: #8D38C9; font-weight: bold;">Else</span>
                <span style="color: #8D38C9; font-weight: bold;">If</span> Yi = 0 <span style="color: #8D38C9; font-weight: bold;">Then</span>
                    <span style="color: #151B8D; font-weight: bold;">line</span> = vbTab &amp; vbTab &amp; <span style="color: #800000;">&quot; &quot;</span> &amp; PadString(strCells(Xi, Yi), maxLength) &amp; <span style="color: #800000;">&quot; &amp;&quot;</span>
                <span style="color: #8D38C9; font-weight: bold;">ElseIf</span> Yi = Yn - 1 <span style="color: #8D38C9; font-weight: bold;">Then</span>
                    <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot; &quot;</span> &amp; PadString(strCells(Xi, Yi), maxLength) &amp; <span style="color: #800000;">&quot; \\&quot;</span>
                <span style="color: #8D38C9; font-weight: bold;">Else</span>
                    <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot; &quot;</span> &amp; PadString(strCells(Xi, Yi), maxLength) &amp; <span style="color: #800000;">&quot; &amp;&quot;</span>
                <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
            <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
        <span style="color: #8D38C9; font-weight: bold;">Next</span>
&nbsp;
        <span style="color: #8D38C9; font-weight: bold;">If</span> Xi = 0 <span style="color: #8D38C9; font-weight: bold;">Then</span>
            <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot; \toprule&quot;</span>
        <span style="color: #8D38C9; font-weight: bold;">ElseIf</span> Xi = Xn - 1 <span style="color: #8D38C9; font-weight: bold;">Then</span>
            <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot; \bottomrule&quot;</span>
        <span style="color: #8D38C9; font-weight: bold;">Else</span>
            <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #151B8D; font-weight: bold;">line</span> &amp; <span style="color: #800000;">&quot; \midrule&quot;</span>
        <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
&nbsp;
        Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> <span style="color: #151B8D; font-weight: bold;">line</span>
        <span style="color: #151B8D; font-weight: bold;">line</span> = <span style="color: #800000;">&quot;&quot;</span>
    <span style="color: #8D38C9; font-weight: bold;">Next</span>
&nbsp;
    Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> vbTab &amp; <span style="color: #800000;">&quot;\end{tabular}&quot;</span>
    Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> vbTab &amp; <span style="color: #800000;">&quot;\caption{Type caption here.}&quot;</span>
    Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> <span style="color: #800000;">&quot;\end{table}&quot;</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #E56717; font-weight: bold;">Function</span> PadString(str <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, length <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>) <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
    <span style="color: #151B8D; font-weight: bold;">Dim</span> padLength <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
    padLength = length - Len(str)
&nbsp;
    <span style="color: #151B8D; font-weight: bold;">Dim</span> X <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
&nbsp;
    <span style="color: #8D38C9; font-weight: bold;">For</span> X = 1 <span style="color: #8D38C9; font-weight: bold;">To</span> padLength
        str = str &amp; <span style="color: #800000;">&quot; &quot;</span>
    <span style="color: #8D38C9; font-weight: bold;">Next</span>
&nbsp;
    PadString = str
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Function</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://madfoxtech.com/2011/06/excel-to-latex-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Word About Passwords</title>
		<link>http://madfoxtech.com/2011/06/a-word-about-passwords/</link>
		<comments>http://madfoxtech.com/2011/06/a-word-about-passwords/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 16:09:44 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Security Now]]></category>
		<category><![CDATA[Steve Gibson]]></category>

		<guid isPermaLink="false">http://madfoxtech.com/?p=70</guid>
		<description><![CDATA[<a href="http://madfoxtech.com/2011/06/a-word-about-passwords/"><img align="left" hspace="5" width="150" height="150" src="http://madfoxtech.com/wp-content/uploads/2011/06/haystacks-150x150.png" class="alignleft wp-post-image tfe" alt="Password Haystacks" title="Password Haystacks" /></a>If you&#8217;ve never heard of or listened to Security Now on the TWiT network, it&#8217;s a weekly netcast about security related topics. Recently, in Episode #303, Steve Gibson, of Gibson Research Corporation, the co-host of Security Now, spoke about password strength. An observation he makes is that it is very easy to make an incredibly <a href="http://madfoxtech.com/2011/06/a-word-about-passwords/" class="read-more-link">Read More</a><a class="read-more-expand">Read More</a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve never heard of or listened to <a href="https://www.grc.com/securitynow.htm">Security Now</a> on the <a href="http://twit.tv">TWiT</a> network, it&#8217;s a weekly netcast about security related topics. Recently, in Episode #303, Steve Gibson, of <a href="https://www.grc.com">Gibson Research Corporation</a>, the co-host of Security Now, spoke about password strength.  An observation he makes is that it is very easy to make an incredibly strong password that is also easy to remember through the use of &#8220;padding.&#8221;</p>
<p>Gibson points out on his web site that <tt>D0g.....................</tt> is 95 times stronger than <tt>PrXyc.N(n4k77#L!eVdAfp9</tt> as far as brute forcing goes, even though the stronger password is more easily memorable. While the second password has much high entropy (or randomness), an attacker (hopefully) wouldn&#8217;t have any knowledge of how you padded your password, so it makes little difference whether you add <tt>++++++++</tt> to your password, or <tt>,7Hq3_9F</tt>, simply because an attacker would have to guess all possible combinations of characters in a brute force attack.</p>
<p>If you&#8217;re anything like me, you&#8217;re hanging your head in embarrassment for not thinking of this yourself.</p>
<p>On GRC there is a page called <a href="https://www.grc.com/haystack.htm">Password Haystacks</a> where you can see a simple analysis of your password, and some estimated times for a brute forcer to crack different passwords:</p>
<div style="text-align:center;"><a href="http://madfoxtech.com/wp-content/uploads/2011/06/haystacks.png"><img src="http://madfoxtech.com/wp-content/uploads/2011/06/haystacks.png" alt="Password Haystacks" title="Password Haystacks" width="450" height="324" class="size-full wp-image-94" /></a></div>
<p>Take-away:<br />
Change your password from <tt>F0x</tt> to <tt>F0x***************</tt> so you can sleep better tonight.</p>
<p>References:<br />
<a href="https://www.grc.com/haystack.htm">GRC&#8217;s Password Haystacks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://madfoxtech.com/2011/06/a-word-about-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome.</title>
		<link>http://madfoxtech.com/2011/06/welcome/</link>
		<comments>http://madfoxtech.com/2011/06/welcome/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 15:24:42 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://madfoxtech.com/?p=7</guid>
		<description><![CDATA[<a href="http://madfoxtech.com/2011/06/welcome/"><img align="left" hspace="5" width="128" height="150" src="http://madfoxtech.com/wp-content/uploads/2011/06/madfoxtechremote-128x150.png" class="alignleft tfe wp-post-image" alt="madfoxtechremote" title="madfoxtechremote" /></a>Welcome to Mad Fox Tech. We do computer stuff.]]></description>
			<content:encoded><![CDATA[<p>Welcome to Mad Fox Tech. We do computer stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://madfoxtech.com/2011/06/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

