<?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>Saulo Silva&#039;s Blog &#187; How-Tos</title>
	<atom:link href="http://saulosilva.com/category/howtos/feed/" rel="self" type="application/rss+xml" />
	<link>http://saulosilva.com</link>
	<description>On technology, programming, et cetera</description>
	<lastBuildDate>Sun, 13 May 2012 01:20:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to disable &amp; enable a network adapter on Windows with PowerShell</title>
		<link>http://saulosilva.com/2012/03/how-to-disable-enable-a-network-adapter-on-windows-with-powershell/</link>
		<comments>http://saulosilva.com/2012/03/how-to-disable-enable-a-network-adapter-on-windows-with-powershell/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 03:44:48 +0000</pubDate>
		<dc:creator>Saulo</dc:creator>
				<category><![CDATA[How-Tos]]></category>

		<guid isPermaLink="false">http://saulosilva.com/?p=912</guid>
		<description><![CDATA[Sometimes my USB wireless network adapter doesn&#8217;t work at all after my Windows desktop recovers from sleep mode. I haven&#8217;t found the root cause of this problem but disabling &#38; enabling the adapter works well as a workaround. Here is a PowerShell script to do so: Make sure the adapter name on line 3 matches [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes my USB wireless network adapter doesn&#8217;t work at all after my Windows desktop recovers from sleep mode. I haven&#8217;t found the root cause of this problem but disabling &amp; enabling the adapter works well as a workaround. Here is a PowerShell script to do so:</p>
<pre class="brush: powershell; title: DisableEnableNetworkAdapter.ps1; notranslate"># Get the network adapter object
$adapter = Get-WmiObject -Class Win32_NetworkAdapter |
    Where-Object {$_.Name -eq &quot;TP-LINK Wireless USB Adapter&quot;}

# Disable it
Write-Host -nonew &quot;Disabling $($adapter.Name)... &quot;
$result = $adapter.Disable()
if ($result.ReturnValue -eq -0) {
    Write-Host &quot;Success.&quot;
} else {
    Write-Host &quot;Failed.&quot;
}

# Wait 2 seconds
Start-Sleep -s 2

# Enable it
Write-Host -nonew &quot;Enabling $($adapter.Name)... &quot;
$result = $adapter.Enable()
if ($result.ReturnValue -eq -0) {
    Write-Host &quot;Success.&quot;
} else {
    Write-Host &quot;Failed.&quot;
}</pre>
<p>Make sure the adapter name on line 3 matches what you have in Control Panel &gt; Network and Internet &gt; Network Connections. Mine is called &#8220;TP-LINK Wireless USB Adapter&#8221;.</p>
<p style="text-align: center;"><img class="size-full wp-image-935 aligncenter" src="http://saulosilva.com/wp-content/uploads/2012/03/wifi-adapter.png" alt="" width="265" height="62" /></p>
<p>Since you will need to run that as an Administrator, create a shortcut to the PowerShell executable and pass the full path of the script above as an argument. Then, open the shortcut properties, click on &#8220;Advanced…&#8221; and check &#8220;Run as an administrator&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://saulosilva.com/2012/03/how-to-disable-enable-a-network-adapter-on-windows-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get a c cedilla on Ubuntu</title>
		<link>http://saulosilva.com/2007/02/how-to-get-a-c-cedilla-on-ubuntu/</link>
		<comments>http://saulosilva.com/2007/02/how-to-get-a-c-cedilla-on-ubuntu/#comments</comments>
		<pubDate>Sat, 17 Feb 2007 17:43:32 +0000</pubDate>
		<dc:creator>Saulo</dc:creator>
				<category><![CDATA[How-Tos]]></category>

		<guid isPermaLink="false">http://pensador.org/wordpress/?p=30</guid>
		<description><![CDATA[I was getting really frustrated with the fact that I had to copy and paste the character ç whenever I had a conversation with someone from Brazil. I did a search around the Ubuntu forums to realize that I was not the only one having this problem. The thing is that on Windows, when you [...]]]></description>
			<content:encoded><![CDATA[<p>I was getting really frustrated with the fact that I had to copy and paste the character ç whenever I had a conversation with someone from Brazil. I did a search around the Ubuntu forums to realize that I was not the only one having this problem. The thing is that on Windows, when you type single quote and c, you get a c cedilla (ç). On Ubuntu, you get a c acute (ć).</p>
<p>If you are in the same boat, here is how I solved my problem.</p>
<ol>
<li>Add &#8220;U.S. English International (with dead keys)&#8221; to your list of layouts (System &gt; Preferences &gt; Keyboard).</li>
<li>On the Layout Options tab, make sure the Alt key is a third level chooser.</li>
<li><kbd>Alt</kbd>+<kbd>,</kbd> gives the desired results.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://saulosilva.com/2007/02/how-to-get-a-c-cedilla-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get a directory listing on Windows using batch files</title>
		<link>http://saulosilva.com/2003/12/how-to-get-a-directory-listing-using-batch-files/</link>
		<comments>http://saulosilva.com/2003/12/how-to-get-a-directory-listing-using-batch-files/#comments</comments>
		<pubDate>Mon, 22 Dec 2003 18:48:32 +0000</pubDate>
		<dc:creator>Saulo</dc:creator>
				<category><![CDATA[How-Tos]]></category>

		<guid isPermaLink="false">http://pensador.org/wordpress/?p=79</guid>
		<description><![CDATA[I know there are programs that do the job much better but I like it the dirty way: batch files. It&#8217;s fast, no installation required and does what I want. Enough talk, here is the code: @dir %1 /w /b /o:gn &#62; "_listing.txt" Copy the code to a text file and change its extension to [...]]]></description>
			<content:encoded><![CDATA[<p>I know there are programs that do the job much better but I like it the dirty way: batch files.<br />
It&#8217;s fast, no installation required and does what I want. Enough talk, here is the code:</p>
<p><code>@dir %1 /w /b /o:gn &gt; "_listing.txt"</code></p>
<p>Copy the code to a text file and change its extension to .bat<br />
<strong>/b</strong> &#8211; bare format, remove this for detailed info<br />
<strong>/o:gn &gt; &#8220;_listing.txt&#8221;</strong> &#8211; sends the output to &#8220;_listing.txt&#8221;</p>
<p>For further customization, type <code>dir /?</code> on a command prompt.</p>
]]></content:encoded>
			<wfw:commentRss>http://saulosilva.com/2003/12/how-to-get-a-directory-listing-using-batch-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

