tag:blogger.com,1999:blog-69314669320523146512024-03-18T21:46:33.712-05:00Orson TyrellI have no idea what I'm doing.Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-6931466932052314651.post-80142788090521077852016-09-26T12:27:00.000-05:002016-09-26T12:47:12.196-05:00Dropbox update activating my microphoneDropbox needs access to my microphone? I saw this popup today:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi9vGZZeiScDnW5StzgaSnlOzM9Qbnv9x8QFOBVhZHTQ8CX37GQ457jFcmdL_sEyZ4LK6ko7M08lkb7FxG7dpKpGj2Mu315ky-_BQqKBJVnkiTVHf3YImxDO0CdX9LjVPVfqFYo_Rwrmc/s1600/2016-09-26+12_14_17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi9vGZZeiScDnW5StzgaSnlOzM9Qbnv9x8QFOBVhZHTQ8CX37GQ457jFcmdL_sEyZ4LK6ko7M08lkb7FxG7dpKpGj2Mu315ky-_BQqKBJVnkiTVHf3YImxDO0CdX9LjVPVfqFYo_Rwrmc/s1600/2016-09-26+12_14_17.png" /></a></div>
<br />
<span id="goog_1455050047"></span>
I'm not sure if Dropbox is trying to integrate with an OS assistant (Siri/Cortana) or are they doing their own thing? ...maybe a coming soon feature.<br />
<br />
<br />
Update:<br />
Speaking of Dropbox permission issues... it'd be nice if I could log into the Dropbox forums with an alternate gmail account to ask a question (for privacy reasons I don't want to use my normal account info). Unfortunately it's requesting management access to my calendar and contacts.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBQSnWpFD1D6-kwLq-B33Yn0wKpfXbF0M2H5MyxqpgpamIZg0B9fWQBB4xOVLxp-H-q3CMzgMRzrImVd9ffihzfT8DSwY1OgwItoDkY0sOytjf7hYrjtdNZuCLb7x4_xLm3KKH9TlOltM/s1600/2016-09-26+12_37_20-Request+for+Permission.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBQSnWpFD1D6-kwLq-B33Yn0wKpfXbF0M2H5MyxqpgpamIZg0B9fWQBB4xOVLxp-H-q3CMzgMRzrImVd9ffihzfT8DSwY1OgwItoDkY0sOytjf7hYrjtdNZuCLb7x4_xLm3KKH9TlOltM/s1600/2016-09-26+12_37_20-Request+for+Permission.png" /></a></div>
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-46707082142872681062013-12-06T16:43:00.001-06:002013-12-06T16:43:02.861-06:00Directory junctions for dropboxSome time ago Dropbox switched their default direction location from "My Dropbox" to just "Dropbox". If you happen to have a lot of scripts and apps installed, switching paths will break all kinds of stuff. There used to be a workaround by installing the old client (0.7.110), then upgrading through various releases to the latest version. This would let you preserve the old path of "C:\My Dropbox", but that no longer works. So, we're left with two problems.... <br />
<br />
<ol>
<li>We need the old Dropbox clients (installed to "C:\My Dropbox") to work with new script\app paths ("C:\Dropbox"). </li>
<li>We need the new Dropbox clients (installed to "C:\Dropbox") to work with the old paths ("C:\My Dropbox"). </li>
</ol>
<br />
How do we do this? One way is to use symbolic links. This will create a reference link from one directory to another... similar to a shortcut. Here's a workaround for each scenario:<br />
<br />
1. The old Dropbox client is already installed at "C:\My Dropbox". Now we need to create a symbolic link that connects "C:\Dropbox" to "C:\My Dropbox":<br />
Make sure c:\dropbox doesn't exist. Then from a command prompt type:<br />
<span style="font-family: Courier New, Courier, monospace;">mklink /J "c:\Dropbox" "c:\My Dropbox"</span><br />
<br />
2. For systems with the new Dropbox client installed "C:\Dropbox": <br />
Make sure c:\my dropbox doesn't exist. Then from a command prompt type:<br />
<span style="font-family: Courier New, Courier, monospace;">mklink /J "c:\My Dropbox" "c:\Dropbox"</span><br />
<br />
The other way to fix this problems is to edit all your scripts with the new path change, and also reinstall/reconfigure all your broken apps. ssssshhhhhhiiiiii<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-911487385602691922013-11-27T15:30:00.002-06:002013-12-06T16:59:57.646-06:00TRUE PowerShell command history persistence (i.e. Bash up arrow), surviving multiple sessions, syncing across multiple PCs, and a table full of fiiixinsA day of celebration is at hand. For centuries Windows administrators have been living crippled and hellish existences. Laughed at by some, mocked by others, and ignored by the rest. All throughout the 19th and 20th century (as well as the entire 5th Age of Paladine), the command line history of each PowerShell session was eradicated upon exit. Vaporized - trashed - hit over the head, tossed into a pickup truck, taken to an abandoned forest just off the highway, tossed into a pit, and burned till nothing was left but the smokey tears of sysadmins all across the world.<br />
<br />
Sure, PowerShell had that 'hash tag + hit TAB' crap, but they've never had 'up arrow' access to the command history. Well, not anymore...<br />
<br />
To get started, you'll need three things:<br />
<ol>
<li>A script to backup and restore your command history each time you start/exit a PowerShell instance. (don't worry, the execution time is negligible)</li>
<li>This backup/restore script will require the PSReadLine module.</li>
<li>The easiest way to get the PSReadLine module is to install PsGet.</li>
</ol>
<div>
<br /></div>
<h3>
Let's do this in reverse...</h3>
<b>Step 1: </b>Install PsGet here: <a href="http://psget.net/">http://psget.net/</a>. For the security conscious people, alternate methods of installation are available, OR you take the security-lite approach and download/inspect the files before execution.<br />
<pre style="background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; line-height: 20px; margin-bottom: 10px; padding: 9.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;"><code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 0px; color: inherit; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; padding: 0px;">(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex</code></pre>
<br />
<b>Step 2: </b> Install/Import the PSReadLine module.<br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin: 0px; padding: 0px; word-wrap: normal;">install-module PSReadline</code></pre>
<br />
<b>Step 3: </b>Add a script to your profile that loads/saves your command history. Be sure to have the path ready (HistoryDirPath). For me, I like to put his into a dropbox location and share it amongst my other workstations. Or if you want to have some level of separation, change the file name (HistoryFileName)<br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin: 0px; padding: 0px; word-wrap: normal;">$MaximumHistoryCount = 31KB
$ImportedHistoryCount = 0
$HistoryDirPath = "c:\dropbox\powershell\history\"
$HistoryFileName = "history.clixml"
if (!(Test-Path $HistoryDirPath -PathType Container))
{ New-Item $HistoryDirPath -ItemType Directory }
Register-EngineEvent PowerShell.Exiting –Action {
$TotalHistoryCount = 0
Get-History | ? {$TotalHistoryCount++;$true}
$RecentHistoryCount = $TotalHistoryCount - $ImportedHistoryCount
$RecentHistory = Get-History -Count $RecentHistoryCount
if (!(Test-path ($HistoryDirPath + $HistoryFileName)))
{
Get-History | Export-Clixml ($HistoryDirPath + $HistoryFileName)
}else
{
$OldHistory = Import-Clixml ($HistoryDirPath + $HistoryFileName)
$NewHistory = @($OldHistory + $RecentHistory)
$NewHistory | Export-Clixml ($HistoryDirPath + $HistoryFileName)
}
}
if (Test-path ($HistoryDirPath + $HistoryFileName))
{
Import-Clixml ($HistoryDirPath + $HistoryFileName) | ? {$count++;$true} |Add-History
Write-Host -Fore Green "`nLoaded $count history item(s).`n"
$ImportedHistoryCount = $count
}
# Importing PSReadline must come AFTER you load your command history
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadline
}
# if you don't already have this configured...
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
</code></pre>
<br />
Your profile location will be something like:<br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin: 0px; padding: 0px; word-wrap: normal;">C:\Users\username\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 </code></pre>
<br />
<h3>
Now for the fiiixins...</h3>
Redirect your default profile to your tricked-out profile.<br />
<a href="http://orsontyrell.blogspot.com/2013/11/saurons-powershell-profile-in-3-easy.html">http://orsontyrell.blogspot.com/2013/11/saurons-powershell-profile-in-3-easy.html</a><br />
<br />
Since you're putting your command history and profile on dropbox, don't forget to add your modules as well!<br />
<br />
Setup a command line installer like Scoop or Chocolatey.<br />
<a href="https://github.com/lukesampson/scoop/">https://github.com/lukesampson/scoop/</a><br />
<a href="http://chocolatey.org/">http://chocolatey.org/</a><br />
<br />
With one of these installer you're one line away from all sorts of cool tools, stuff like: 7zip, curl, grep, nano, git, openssh, vim, wget. With Chocolately you can install goodies like Notepad++, Chrome, VLC, etc.<br />
<br />
<br />
bunch of sources:<br />
<a href="http://psget.net/">http://psget.net/</a><br />
<a href="https://github.com/lzybkr/PSReadLine">https://github.com/lzybkr/PSReadLine</a><br />
<a href="http://stackoverflow.com/questions/17862618/loading-powershell-history">http://stackoverflow.com/questions/17862618/loading-powershell-history</a><br />
<a href="http://blog.clintarmstrong.net/2011/05/powershell-history-persistence.html">http://blog.clintarmstrong.net/2011/05/powershell-history-persistence.html</a><br />
<a href="http://rkeithhill.wordpress.com/2013/10/18/psreadline-a-better-line-editing-experience-for-the-powershell-console/">http://rkeithhill.wordpress.com/2013/10/18/psreadline-a-better-line-editing-experience-for-the-powershell-console/</a><br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com3tag:blogger.com,1999:blog-6931466932052314651.post-49087555225444496542013-11-27T15:23:00.001-06:002013-11-27T15:23:36.054-06:00Sauron's PowerShell profile in 3 easy steps.<br />
<div>
Wouldn't it be nice to share the same PowerShell profile at each of your workstations? Sharing your influence all throughout Middle-DataCenter... It's not very tricky, here's how:</div>
<div>
<br /></div>
1. Get your cloud syncing app up and running (let Dropbox be the ring-bearer). <br />
2. Create a location for your one-ring profile, some place like: c:\dropbox\powershell\hobbiton.ps1<br />
3. Edit your default PowerShell profile to point to the one-ring profile. So, from the PS command prompt, type:<br />
<div>
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin: 0px; padding: 0px; word-wrap: normal;">notepad $profile</code></pre>
This opens your default profile in notepad... now add this one-liner for the redirection:<br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin: 0px; padding: 0px; word-wrap: normal;">. "c:\dropbox\powershell\hobbiton.ps1"</code></pre>
From now on, each workstation can reference the same hobbiton.ps1 profile. Now your influence can now be felt all across the world. What sort of influence? say ye fellow traveler...<br />
<br />
How about a colored prompt? BAM:<br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin: 0px; padding: 0px; word-wrap: normal;">function Prompt
{
$promptString = "PS " + $(Get-Location) + ">"
# Custom color for Windows console
if ( $Host.Name -eq "ConsoleHost" )
{
Write-Host $promptString -NoNewline -ForegroundColor Cyan
}
# Default color for the rest
else
{
Write-Host $promptString -NoNewline
}
return " "
}</code></pre>
Sprinkle some of this code magic into your hobbiton.ps1 profile, then set out for an adventure on each of your workstations.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnSv1Y3joDAuRQIuXcHwkGG2KP_BM1uJ2tXGmEcC2I6pQ83LYI_Zio-SSELCpQpHzSczoGzWrgAY0-T0KLJfe1k6bopYtiahgELh_uHtSqqsnwhWRpEljaPKvgLJOP_9ahhAv6s2wDb58/s1600/hobbiton.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnSv1Y3joDAuRQIuXcHwkGG2KP_BM1uJ2tXGmEcC2I6pQ83LYI_Zio-SSELCpQpHzSczoGzWrgAY0-T0KLJfe1k6bopYtiahgELh_uHtSqqsnwhWRpEljaPKvgLJOP_9ahhAv6s2wDb58/s1600/hobbiton.png" /></a></div>
<br />
<br />
<br />
Sources:<br />
<a href="http://choorucode.com/2011/09/03/powershell-change-the-color-of-the-prompt/">http://choorucode.com/2011/09/03/powershell-change-the-color-of-the-prompt/</a><br />
<a href="http://www.asciiworld.com/-Lord-of-the-Rings-.html">http://www.asciiworld.com/-Lord-of-the-Rings-.html</a><br />
<br />
<br />
<br />
<br />
<br />
<b><br /></b></div>
Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-88719153566779930432013-11-10T12:17:00.002-06:002013-11-16T20:29:20.031-06:00AirPlay to an Arch Linux Raspberry Pi via Shairport<h3>
<span style="font-family: Times, Times New Roman, serif;">Here's a list of the components:</span></h3>
<ul style="background-color: white; font-size: small; list-style-image: initial; list-style-position: initial; margin: 0px; padding: 0px 0px 0px 25px;">
<li style="margin: 0.5em 0em;"><span style="font-family: Times, Times New Roman, serif;">Raspberry Pi - Model B (512 MB / Revision 2)</span></li>
<li style="margin: 0.5em 0em;"><span style="font-family: Times, Times New Roman, serif;">Arch Linux 3.6.11-18-ARCH+</span></li>
<li style="margin: 0.5em 0em;"><span style="font-family: Times, Times New Roman, serif;">some iOS devices (iPhone, iPad, etc)</span></li>
<li style="margin: 0.5em 0em;"><span style="font-family: Times, Times New Roman, serif;">an audio receiver with AUX in</span></li>
</ul>
<br />
<br />
<h3>
<span style="font-family: Times, Times New Roman, serif;">
The path of the music:</span></h3>
iOS device -> wifi -> router -> Pi -> 3.5mm output -> receiver input -> speakers -> my living room -> my ears<br />
<br />
<br />
<h3>
<span style="font-family: Times, Times New Roman, serif;">Here's a few of my notes for getting this up and running...</span><span style="font-family: Times, 'Times New Roman', serif;"> </span></h3>
<span style="font-family: Times, Times New Roman, serif;">Most of this is a modified version of the steps here:</span><br />
<a href="http://engineer.john-whittington.co.uk/2013/05/airpi-diy-airplay-speakers-using-shairport-and-a-raspberry-pi-updated/">http://engineer.john-whittington.co.uk/2013/05/airpi-diy-airplay-speakers-using-shairport-and-a-raspberry-pi-updated/</a><br />
I wouldn't say this is an 'updated' version, because I don't know what the hell I'm doing... keep that in mind.<br />
<br />
The first few steps are the same:<br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">pacman -Syu</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">pacman -S kernel26-headers file base-devel abs</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">pacman -S git</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">pacman -S avahi libao openssl perl-crypt-openssl-rsa perl-io-socket-inet6 perl-libwww</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">pacman -S wget</span><br />
<span style="background-color: #cccccc; font-family: 'Courier New', Courier, monospace;">wget https://aur.archlinux.org/packages/pe/perl-net-sdp/perl-net-sdp.tar.gz</span><br />
<span style="background-color: #cccccc; font-family: 'Courier New', Courier, monospace;">tar -zxvf perl-net-sdp.tar.gz</span><br />
<span style="background-color: #cccccc; font-family: 'Courier New', Courier, monospace;"><br /></span>
The directory name is different, so...<br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">cd perl-net-sdp</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">makepkg -s</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
And the package name is different, so...<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">pacman -U perl-net-sdp-0.07-1-any.pkg.tar.xz</span><br />
<span style="background-color: #cccccc; font-family: 'Courier New', Courier, monospace;">pacman -S alsa-utils alsa-firmware alsa-lib alsa-plugins</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">amixer cset numid=3 1</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">shutdown -r now</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
After the Pi reboots...<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">mkdir shairport</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"></span><br />
The Shairport repo has moved, so use this location:<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">git clone https://github.com/abrasive/shairport.git shairport</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">cd shairport</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">make</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
Here's where things start to get a little fuzzy. <br />
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;">pacman -S avahi </span><span style="font-family: Courier New, Courier, monospace;">nss-mdns</span></span><br />
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;">systemctl restart dbus.service</span></span><br />
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;">systemctl |grep avahi-daemon.service</span></span><br />
<br />
Getting avahi installed and loaded required a little more work. While trying to start the service it would enter a failed state. You can check the status with:<br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">systemctl</span><br />
or more specifically:<br />
<div>
<span style="background-color: #cccccc; font-family: 'Courier New', Courier, monospace;">systemctl |grep avahi</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
It wasn't until I found this post:<br />
<div>
<a href="http://forums.gentoo.org/viewtopic-p-7404160.html">http://forums.gentoo.org/viewtopic-p-7404160.html</a></div>
<div>
that said to edit avahi-daemon.conf and change "disallow-other-stacks" from no to yes. <span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">vim /etc/avahi/avahi-daemon.conf</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
Find "disallow-other-stacks=no" and change it to yes. Then try to restart the service:</div>
<div>
<br /></div>
<div>
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;">systemctl restart avahi-daemon</span></span></div>
<div>
check the status:</div>
<div>
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;">systemctl status avahi-daemon</span></span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
After that, change to the Shairport directory and start it up. From iOS you should see the new AirPlay device.<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">./shairport -a AirPi</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<br />
<h3>
<span style="font-family: Times, Times New Roman, serif;">
A little more troubleshooting...</span></h3>
</div>
<div>
I needed to play around with some of the mixer settings...<br />
<div>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">pacman -S alsa-utils</span></div>
<div>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">alsamixer</span></div>
<div>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div>
Make sure it's unmuted and audio is going out the 3.5mm port:</div>
<div>
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;">amixer sset Master unmute</span></span></div>
<div>
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;">amixer cset numid=3 1</span></span></div>
<div>
<br /></div>
<div>
<br /></div>
<h3>
<span style="font-family: Times, Times New Roman, serif;">The final step... configure Shairport to run at startup.</span></h3>
<div>
<span style="font-family: Times, Times New Roman, serif;">following along from the blog post above....</span><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;">Create the service file for shairport:</span><br />
<div>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">vi /etc/systemd/system/shairport.service</span></div>
<div>
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;"><br /></span></span>
<span style="font-family: Times, 'Times New Roman', serif;">Add this text to the file. If you have shairport in a different location, adjust the ExecStart path accordingly:</span><br />
<span style="background-color: #cccccc;"></span><br />
<div>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">[Unit]</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">Description=Startup ShairPort (Apple AirPlay)</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">After=network.target</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">After=avahi-daemon.service</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">[Service]</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">Type=oneshot</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">ExecStart=/usr/local/bin/shairport -a AirPi </span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">ExecStop=/usr/bin/killall shairport</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">RemainAfterExit=yes</span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;"><br /></span>
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">[Install]</span><br />
<span style="background-color: #cccccc;"><span style="font-family: Courier New, Courier, monospace;"></span></span><br />
<span style="background-color: #cccccc; font-family: Courier New, Courier, monospace;">WantedBy=multi-user.target</span><br />
<br /></div>
</div>
<span style="font-family: Times, Times New Roman, serif;">After that, give it a reboot and see if the service starts up ok. Check the service with:</span><br />
<span style="background-color: #cccccc; font-family: 'Courier New', Courier, monospace;">systemctl</span></div>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-12671833924750313812013-08-15T14:47:00.000-05:002013-08-15T14:47:18.675-05:00Updated Amazon Cloud Player app for IOS - now with more Social!Amazon's Cloud Player app for IOS has been updated... have a look:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqwiZHI7K57Jjo_Ls8meG7i1Rms68NV5JrZSRdy_MG5a-phLESWxgMOd6Ncj_htJ629KFxILkLw39gZpqT6ei-VGpHotQsWCTZ2-mxeChUlAB0db8NFRKLvLThtHFI8MnY-wBNVixlgp8/s1600/cloudplayer_new.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqwiZHI7K57Jjo_Ls8meG7i1Rms68NV5JrZSRdy_MG5a-phLESWxgMOd6Ncj_htJ629KFxILkLw39gZpqT6ei-VGpHotQsWCTZ2-mxeChUlAB0db8NFRKLvLThtHFI8MnY-wBNVixlgp8/s400/cloudplayer_new.png" width="264" /></a></div>
<br />
The Facebook icon is a nice touch, especially for someone who doesn't want it. It's great how it just sits there.... doing nothing.... with no options to remove it. What a fantastic feature! Better yet, let's make a suggestion to Amazon. We can start a new campaign, "Socialize it!":<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGtBufkTRwYuCKJdu2b_mxZlIuGblV7ACspYezK6ajtAyn85I5vzSrs9obSLN68U2KLeLLS_7fk3j_O4RX2KjDf_KvOTaC1AxuumYovFhPEbVb4fTJOwQOEkqKcJnWGc0hr0GXEO8vg_0/s1600/cloudplayer_better.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGtBufkTRwYuCKJdu2b_mxZlIuGblV7ACspYezK6ajtAyn85I5vzSrs9obSLN68U2KLeLLS_7fk3j_O4RX2KjDf_KvOTaC1AxuumYovFhPEbVb4fTJOwQOEkqKcJnWGc0hr0GXEO8vg_0/s400/cloudplayer_better.png" width="266" /></a></div>
<br />
Nice, subtle, refined..... but we can do better:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAyH4HPs2C3WxvC0S-0Q8fEdMy9_zBd1rACZuIhbuirt4E1Bs96fPZJt76g2RYvxgJZqBSl-6lG7enqoyWR8IF2QcChsu1_bbvkn82Rpn6kkF85N84P1tU_SIl3TMhUdmNfUxZd3XmzY4/s1600/cloudplayer_best.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAyH4HPs2C3WxvC0S-0Q8fEdMy9_zBd1rACZuIhbuirt4E1Bs96fPZJt76g2RYvxgJZqBSl-6lG7enqoyWR8IF2QcChsu1_bbvkn82Rpn6kkF85N84P1tU_SIl3TMhUdmNfUxZd3XmzY4/s400/cloudplayer_best.png" width="266" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-84312715060140543972013-07-17T10:53:00.002-05:002013-07-17T10:53:11.615-05:00A better Windows Command LineScott Hanselman has an<a href="http://www.hanselman.com/blog/MakingABetterSomewhatPrettierButDefinitelyMoreFunctionalWindowsCommandLine.aspx"> interesting post</a> about the Windows Command Line, including many apps I haven't seen before. My current favorite is ConsoleZ. I like the clean interface, the screen splitting feature, and also tabs if needed. Once you combine that with Dropbox + PortableApps, you get all kinds of goodies, such as VIM, Brief the editor, MPX a console music player, Lynx web browser, etc.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhav8zRI30OB3BemCLfdZZD_7R9h8hNRH4ZC87NwsjpSK_GZ4SHqDXeOJM3Xdi2Im1INFtXZ4VCDezlKNCkWblxiG5smVb8CG3cb1kikLy1-sG_0XGJ3GL28UJMDMUVHDEV7q2IR7kv2SQ/s1600/consolez_splits.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="372" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhav8zRI30OB3BemCLfdZZD_7R9h8hNRH4ZC87NwsjpSK_GZ4SHqDXeOJM3Xdi2Im1INFtXZ4VCDezlKNCkWblxiG5smVb8CG3cb1kikLy1-sG_0XGJ3GL28UJMDMUVHDEV7q2IR7kv2SQ/s640/consolez_splits.png" width="640" /></a></div>
<br />
Tabs at the bottom...<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhq2mhPwfTfD23ElBohLO78rxYZS_jg5UTltmgKcaUVThJWQXV7rEhJ1G8ot9rzRgmPku8fujgqyGExBK0Z1T5sFbGTDnUDMOBcE2W2TTRon6qyEhplIXpO159Y-3-cRQwXJFlVQUQk5c/s1600/consolez_tabs.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhq2mhPwfTfD23ElBohLO78rxYZS_jg5UTltmgKcaUVThJWQXV7rEhJ1G8ot9rzRgmPku8fujgqyGExBK0Z1T5sFbGTDnUDMOBcE2W2TTRon6qyEhplIXpO159Y-3-cRQwXJFlVQUQk5c/s400/consolez_tabs.png" width="400" /></a></div>
<br />
Lynx, a great web browser if you want to get straight to the text..<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqqq2NpzWTbyXx1AYuYQ4JSNxMcSisiTRRVC_mzPHZ1p0V7fJED7NyjXVJ_SsShiFzp4bnl24kzknKj9K-n-4uBH13dykv7sIYNhEpfQUtYiWbhvLYytupFWQG3hMmM9sGFpqPZ-1kiaE/s1600/lynx.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqqq2NpzWTbyXx1AYuYQ4JSNxMcSisiTRRVC_mzPHZ1p0V7fJED7NyjXVJ_SsShiFzp4bnl24kzknKj9K-n-4uBH13dykv7sIYNhEpfQUtYiWbhvLYytupFWQG3hMmM9sGFpqPZ-1kiaE/s400/lynx.png" width="347" /></a></div>
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-59755665133889136152013-07-05T11:00:00.000-05:002013-07-05T11:01:35.193-05:00Amazon's desktop Cloud PlayerAmazon's desktop Cloud Player is out, and the quality is surprisingly good. No hiccups yet. There aren't a lot of options (adjusting cache size, exporting to WMP, auto-download), but for simply playing music in my Amazon library, it's nice.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEawL8ugBlPDoMIi7YK13R3rNPTgqOj2Uq-FC7BWr90N0Ks_Ie4t7SSXV8inB7noRoXJH7DwPdWVDEKgRjV3r7iSisSXng60vhJg0wqYZxutBCfQ50XLraCX4NMo6GGW-mo8Cxd724l2g/s1600/cloudplayer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEawL8ugBlPDoMIi7YK13R3rNPTgqOj2Uq-FC7BWr90N0Ks_Ie4t7SSXV8inB7noRoXJH7DwPdWVDEKgRjV3r7iSisSXng60vhJg0wqYZxutBCfQ50XLraCX4NMo6GGW-mo8Cxd724l2g/s640/cloudplayer.png" width="640" /></a></div>
<br />
Looking at the process strings are interesting.... aside from the floral pattern, there's references to Adobe ImageReady, QT, openssl, Inkscape, and various certificate authority thumbprints - include DigiNotar!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWGPGNo4WcATJ-QtOq2p276JPo-hJUvt21YoOn0lpO_j6t0ygMchvI7h3PYxVLST47OavXv6onj1IbRQ6hwTFWjCPgPwDzzzxZa7_8tGbxqgpQTa5nhMpD-v6CTQY7rZhtGQevVOdcmgg/s1600/amazon.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="625" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWGPGNo4WcATJ-QtOq2p276JPo-hJUvt21YoOn0lpO_j6t0ygMchvI7h3PYxVLST47OavXv6onj1IbRQ6hwTFWjCPgPwDzzzxZa7_8tGbxqgpQTa5nhMpD-v6CTQY7rZhtGQevVOdcmgg/s640/amazon.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1P-TUBJOhxQvVB-RXQn4Y43W_-Y6m1y7QS__Cuk3l3MiokU_SjHP2r987VMBp3CPiLwh-d1m6USOvrqb2hRO2S1Ku9ktmK2sd8zsJJQiziwN3M0VSMwaD6l8MmELbRyjAX82pnUNQnH8/s1600/digi.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1P-TUBJOhxQvVB-RXQn4Y43W_-Y6m1y7QS__Cuk3l3MiokU_SjHP2r987VMBp3CPiLwh-d1m6USOvrqb2hRO2S1Ku9ktmK2sd8zsJJQiziwN3M0VSMwaD6l8MmELbRyjAX82pnUNQnH8/s640/digi.png" width="290" /></a></div>
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-3404498650609533182013-05-18T23:51:00.001-05:002013-05-19T08:49:20.427-05:00Building the perfect typewriter<b>I should be writing more.</b><br />
<b><br /></b>
I've come to the realization that I may be spending too much time building the perfect typewriter. For me, my current "typewriter" includes, but not limited to, the following:<br />
<br />
<ul>
<li>Dropbox to keep all files in sync</li>
<li>A writing folder inside Dropbox for all my projects</li>
<li>Console2 app for working in the Windows console (provides tabs and split screens)</li>
<li>PortableApps inside Dropbox (gives me apps like VIM... among other things)</li>
<li>VIM portable (custom vimrc for Brief controls... easier for me to write) Does a command line word processor exist these days for a modern OS? WordStar, WordPerfect 5.1, the DOS Word.</li>
<li>Homebrew PowerShell scripts for:</li>
<ul>
<li>Tracking changes to text files (short stories, novels, ideas, blog stuff)</li>
<li>Recording word count information to a log files</li>
<li>Displaying activity of various writing projects</li>
</ul>
</ul>
<div>
<br /></div>
<div>
I usually work in a split pane view. After starting up my config, I usually fire up a VIM session on the left pane and start writing. On the right pane I usually have one of the following:</div>
<div>
<ul>
<li>notes from <a href="http://www.writingexcuses.com/">Writing Excuses</a> or <a href="http://www.rachelaaron.net/">Rachel Aaron</a></li>
<li>my big bag of ideas (people, places, plots -text files)</li>
<li>my dashboard</li>
</ul>
</div>
<div>
<br /></div>
<div>
Below is how things look today: </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV5wZ9BpJqQLfxL33bFsbenrts3ExY8z56qarRIvIIoSWRHSSfD0A6CqZD34G5k2mRy7WrX7uOFo5tyfne95tYQ8JnZr4cvj_U-uUrqJqtDoZfxxSXLOhKxDupilPpwGtmB-1q593tk9A/s1600/dashboard.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV5wZ9BpJqQLfxL33bFsbenrts3ExY8z56qarRIvIIoSWRHSSfD0A6CqZD34G5k2mRy7WrX7uOFo5tyfne95tYQ8JnZr4cvj_U-uUrqJqtDoZfxxSXLOhKxDupilPpwGtmB-1q593tk9A/s400/dashboard.png" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
I'd like to think this setup will make writing easier (the same config on all my machines, thanks to Dropbox), and also provide an inspirational dashboard, but part of me thinks "that's B.S., just write something already, quit fidgeting!" I'm hoping that my dashboard will show a level of progress in various projects and cheer me on. The programmer in me loves to play around with this stuff. For example the dashboard has some interesting features:</div>
<div>
<ul>
<li>Some quick shortcut keys at the top (no big whoop)</li>
<li>Project tracking for text files or Word docs (I have some custom macros to record word count info to log files). The project tracker displays the following info:</li>
<ul>
<li>Change in word count</li>
<li>Date of the change</li>
<li>Bar graph of the word change (in relation to the displayed dates, not the entire log... which is completely adjustable)</li>
<li>Bar graph for the overall word count progress (again, completely adjustable.. number of dates(rows) to display, width, color, etc)</li>
</ul>
<li>And at the bottom is a small list of files that have recently changed in my writing directory.</li>
</ul>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-68732679228826088162010-05-11T13:43:00.000-05:002010-05-11T13:43:01.125-05:00Moving from Firefox to Chrome - keywords and search enginesSearching from the address bar is one of my favorite features of any browser. For example, if I want to search Wikipedia for Bill Gates, I enter the following string into the address bar: w Bill Gates<br />
<br />
Or if I'm searching for a movie: m Star Wars<br />
<br />
These shortcuts can work with multiple search engines and multiple browsers. You can add search engines to Firefox by looking through their addon library. You can add them to Chrome manually. Here's my top four Chrome search engines, listed by keyword, search engine name, and search engine URL string:<br />
<br />
y<br />
YouTube<br />
http://www.youtube.com/results?search_query=%s&search_type=&aq=1&oq=lady+<br />
<br />
m<br />
IMDB<br />
http://www.imdb.com/find?q=%s<br />
<br />
d<br />
Merriam-Webster<br />
http://www.merriam-webster.com/dictionary/%s<br />
<br />
w<br />
Wiki<br />
http://en.wikipedia.org/wiki/Special:Search?search=%sAnonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-47823008995140675382010-02-15T10:26:00.004-06:002010-02-15T15:10:03.005-06:00Script for bulk encoding videos to H.264 with HandbrakeI'm writing this because I needed a simple way to drop a batch file onto a computer, let it run for a few days, and when I come back all my files have been magically converted to H.264. So before we begin, I'm going to assume you have some knowledge of computers, scripts, and video encoding (Windows, Mac, or Linux). Be careful with the word wraps on this post, the command lines being executed are quite long! <br />
<br />
<b>Why H.264?</b><br />
Much like MPEG2 for DVD video or MP3 for audio, H.264 is a flexible video standard for all sorts of media, such as Blu-ray Discs, web streaming, and portable video devices (iPod Touch or iPhone). Here's a little background information for H.264 and x264:<br />
H.264 is a form of video compression - <a href="http://en.wikipedia.org/wiki/H264">http://en.wikipedia.org/wiki/H264</a><br />
x264 is a method(software) for encoding video into H.264 - <a href="http://en.wikipedia.org/wiki/X264">http://en.wikipedia.org/wiki/X264</a><br />
<br />
One of the things I like so much about H.264 is that it's very flexible. You can encode videos into very high quality HD videos, or something low resolution for use with a phone. The x264 software allows us to make these these adjustments very easily. We'll be using the command line version of Handbrake to do all our encoding. <a href="http://handbrake.fr/">http://handbrake.fr</a> It's free, available for Windows, Mac, and Linux. I'll assume you have the latest version installed at this location: "C:\Program Files (x86)\Handbrake\Handbrake.exe"<br />
<br />
<b>Bulk encoding</b><br />
There's more than a few ways to do this. If you're on a Windows PC probably the simplest way is to use a batch file. If you're like most people, your videos are stored in a particular location. For example, you may have a directory structure like this:<br />
<pre>c:\videos
c:\videos\video1\video1.mpeg
c:\videos\video2\video2.avi
c:\videos\video3\video3.xvid</pre>We'll use a batch file to start at the base directory (c:\videos) and work ourselves down through all the subdirectories and encode the video files into H.264. Here's an example batch file that can traverse subdirectories and do something along the way, convert.bat:<br />
<pre>@for /r %%F in (*.filetype) do (
some command here
some command here
some command here)
</pre><br />
<b>Encoding methods</b><br />
Handbrake is quite flexible when it comes to importing various file types. I've been able to import DivX, XviD, wmv, etc. One of the most important components of video encoding is the quality. With Handbrake you can handle this three ways: <br />
- setting an average bitrate (1500 kbps for example)<br />
- setting a target file size (Handbrake will adjust the bit rate to fit the requested size)<br />
- setting a constant quality <br />
For our encoding process we'll be using the constant quality method. The first two methods work well if all your videos are from the same source, the same resolution, and using the same codec, but if you have a mixed bag of videos then constant quality is easier to work with.<br />
<br />
<b>What quality level should we use?</b><br />
I'd suggest running a few tests first. Find a video file (the shorter the better, such as a movie trailer), and lets encode it with various levels of quality. In Handbrake, 100% quality is an extreme amount and you'll probably never use something this high. So we'll start with 40%, 50%, 60%, and 70%. After the encoding process is complete, take a look at the file sizes and the level of quality. It may be that you'll need to adjust the level to 65%, or 55%. <br />
<br />
I'm encoding my videos for playback on Apple TV, iPhone and iPod Touch. The iPhone\Touch can playback video with a resolution up to 640 x 480 (even though the displayed video is only 480 x 320). You can adjust these settings as well. For example you may want to encode video to 720p or 1080p, to do so just read up on Handbrake's command line switches for -X -Y -w -l, more info here: <a href="http://trac.handbrake.fr/wiki/CLIGuide">http://trac.handbrake.fr/wiki/CLIGuide</a> I'm also limiting the audio to 64kbps. You can bump this up as well using the -B switch, something like -B 128.<br />
<br />
OK, so you've found a video that you'd like to test. A short video, correct? Place the video in a directory all by itself. Create a new batch with this code in the same directory. Start up a command line windows, navigate to the directory, and run the batch file. Depending on your hardware, this encoding process may take a few minutes, or a few hours if you're using a long video (I told you to use a short video). <br />
<pre>@for /r %%F in (*.avi,*.mov,*.wmv,*.mpg,*.mpeg,*.divx) do (
"C:\Program Files (x86)\HandBrake\HandBrakeCLI.exe" -i "%%F" -o "%%~pnF-x40.mp4" -f mp4 -2 -I -O -X 640 -Y 480 -e x264 -q .40 -a 1 -E faac -6 auto -R Auto -B 64 -D 0.0 -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=400:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:psy-rd=0,0:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1
"C:\Program Files (x86)\HandBrake\HandBrakeCLI.exe" -i "%%F" -o "%%~pnF-x50.mp4" -f mp4 -2 -I -O -X 640 -Y 480 -e x264 -q .50 -a 1 -E faac -6 auto -R Auto -B 64 -D 0.0 -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=500:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:psy-rd=0,0:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1
"C:\Program Files (x86)\HandBrake\HandBrakeCLI.exe" -i "%%F" -o "%%~pnF-x60.mp4" -f mp4 -2 -I -O -X 640 -Y 480 -e x264 -q .60 -a 1 -E faac -6 auto -R Auto -B 64 -D 0.0 -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=700:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:psy-rd=0,0:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1
"C:\Program Files (x86)\HandBrake\HandBrakeCLI.exe" -i "%%F" -o "%%~pnF-x70.mp4" -f mp4 -2 -I -O -X 640 -Y 480 -e x264 -q .70 -a 1 -E faac -6 auto -R Auto -B 64 -D 0.0 -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=900:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:psy-rd=0,0:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1)
</pre><br />
After this batch file runs you should have 4 new videos, each at a different levels of quality. If you'd like to tweak your quality level, you can adjust the -q value up or down, such as -q .55 or -q .65 and you can also adjust the maximum bitrate with the vbv-maxrate=somevalue_kbps. <br />
<br />
For my videos, I'm going with these settings:<br />
<pre>-2 [two-pass encode]
-T [make the first pass go turbo!]
-O [optimize for web streaming, YAAA]
-I [for 5.5G ipods]
-X 640 [maximum width]
-Y 480 [maximum height]
-q .60 [not bad, not great, good file size]
-B 64 [64kbps is enough for me]
</pre><br />
In the batch file, we'll be looking to convert any avi file, divx file, wmv, etc. Place this file in your base video directory (such as c:\videos) and let it run (it may take a while to complete). It will crawl through all your subdirectories looking for video files to convert. We'll also dump our progress to a log file so you can see what video is currently being encoded. And when you put all this together with the other settings, here's what it looks like... <b>aka, the TL;DR section:</b><br />
<pre>@for /r %%F in (*.avi,*.mov,*.wmv,*.mpg,*.mpeg,*.divx) do (
@echo "- starting %%F" >> convert.log
"C:\Program Files (x86)\HandBrake\HandBrakeCLI.exe" -i "%%F" -o "%%~pnF-x60.mp4" -f mp4 -2 -T -I -O -X 640 -Y 480 -e x264 -q .60 -a 1 -E faac -6 auto -R Auto -B 64 -D 0.0 -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=700:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:psy-rd=0,0:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1
@echo "- completed %%~pnF-x60.mp4" >> convert.log)
</pre><br />
If you want date & time in the log file:<br />
<pre>@for /r %%F in (*.avi,*.mov,*.wmv,*.mpg,*.mpeg,*.divx) do (
@echo - starting %%F >> convert.log
date /t >> convert.log
time /t >> convert.log
"C:\Program Files (x86)\HandBrake\HandBrakeCLI.exe" -i "%%F" -o "%%~pnF-x60.mp4" -f mp4 -2 -T -I -O -X 640 -Y 480 -e x264 -q .60 -a 1 -E faac -6 auto -R Auto -B 64 -D 0.0 -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=700:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:psy-rd=0,0:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1
@echo - completed %%~pnF-x60.mp4 >> convert.log
date /t >> convert.log
time /t >> convert.log)
</pre><br />
<b>Other utilities</b><br />
MediaInfo is an informative little app. And with it's context menu it's very handy. It's good at finding video codec information, audio codec, resolution, bit rate, etc - <a href="http://mediainfo.sourceforge.net/en">http://mediainfo.sourceforge.net/en</a><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTH21T8O7lWxhgnuGS3uMYwf1qqFFYy1KxGYHenAr7CAsEMN8GKTLvKJLbubl5yuTDHI9FSdRuplgkovFaZg7G0Z5gb4bS1k_Mt_PdKmjRTh7rHq8TIjeSII6T4BixdO0i1timp3bczv8/s1600-h/GUI_Easy_en_Extract.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="367" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTH21T8O7lWxhgnuGS3uMYwf1qqFFYy1KxGYHenAr7CAsEMN8GKTLvKJLbubl5yuTDHI9FSdRuplgkovFaZg7G0Z5gb4bS1k_Mt_PdKmjRTh7rHq8TIjeSII6T4BixdO0i1timp3bczv8/s640/GUI_Easy_en_Extract.png" width="457" /></a></div> Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-12148764092358206582010-01-11T11:10:00.004-06:002010-01-11T11:16:18.611-06:00Better performance with Compiz Fusion in a VirtualBox VM on Windows 7First some background.... my previous entries about VMware and <a href="http://www.virtualbox.org/">VirtualBox</a>:<br />
<br />
Compiz Fusion and VMware Workstation 7 not playing nice:<br />
<a href="http://orsontyrell.blogspot.com/2009/11/compiz-fusion-and-vmware-workstation-7.html">http://orsontyrell.blogspot.com/2009/11/compiz-fusion-and-vmware-workstation-7.html</a><br />
<br />
Compiz Fusion and Virtual Box 3.10 playing together:<br />
<a href="http://orsontyrell.blogspot.com/2009/11/compiz-fusion-and-virtual-box-310.html">http://orsontyrell.blogspot.com/2009/11/compiz-fusion-and-virtual-box-310.html</a><br />
<br />
Today I'm seeing some great performance improvements with the latest version of VirtualBox, version 3.1.2. Specifically I'm now satisfied with the performance of Compiz Fusion running in a VM on Windows 7. Previous I'd see delays in the menuing system or delays when typing in a terminal window, but now the windowing performance is fine. <br />
<br />
After upgrading to VirtualBox 3.1.2, I upgraded the VirtualBox Guest Additions on an existing VM, and I also tested a new VM. In both instances (an Ubuntu VM and a Linux Mint VM) I saw the same performance improvements.<br />
<br>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-65173614455994371532010-01-07T10:51:00.001-06:002010-01-07T10:59:15.956-06:00Halo Reach: this is not the media you're looking for, move along.The CES 2010 Keynote Address is available <a href="http://www.microsoft.com/presspass/events/ces/VideoGallery.aspx">online</a>. Great, except it's not. At around the 1 hour mark, Microsoft's President of Entertainment and Devices Division Robbie Bach mentions the latest episode in the Halo saga. Instead of showing the video presented at CES, the viewer is greated with the screenshot below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQaBk0A-RnR5xwKYsnb-SaCcB3PtEjsB2_LV94wRLE-zTMOEHzOmkiqhtNnmKUrIQVAZd8ZWEcIztXLZ21xx4HWzC5U-OXb8L-zEYG9pEuJxwYmKTMenkgzWjkbVl5xJBBsUth8pnddGI/s1600-h/halo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQaBk0A-RnR5xwKYsnb-SaCcB3PtEjsB2_LV94wRLE-zTMOEHzOmkiqhtNnmKUrIQVAZd8ZWEcIztXLZ21xx4HWzC5U-OXb8L-zEYG9pEuJxwYmKTMenkgzWjkbVl5xJBBsUth8pnddGI/s640/halo.png" /></a><br />
</div><br />
Why not show the video?<br />
or Why not just cut the video out all together?<br />
Why leave it on the screen to linger for <b>over two minutes</b>, all the while playing crappy elevator music? <br />
<br />
Oh and sure, when the video feed returns, we're greeted with the audiance's applause of what they just saw... thanks Bungie.<br />
<br />
[UPDATE]<br />
uggh... and they do it again with Microsoft's own Gameroom Arcade...<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4S8Xzbr3rxboiGlk4rpNina0gZdpZOjANZNOeFz7eeaIgDVLaB4o7nKr0MaVz6MtOW-DS-rcBSfyKSxZhogj5cDjxI8Mw7BWoNGtaFQIK2xqHinOuVdpViGCmv___gXvj8NWCe_ty22I/s1600-h/gameroom.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4S8Xzbr3rxboiGlk4rpNina0gZdpZOjANZNOeFz7eeaIgDVLaB4o7nKr0MaVz6MtOW-DS-rcBSfyKSxZhogj5cDjxI8Mw7BWoNGtaFQIK2xqHinOuVdpViGCmv___gXvj8NWCe_ty22I/s640/gameroom.png" /></a><br />
</div>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-38049430947643258112010-01-04T20:46:00.004-06:002010-01-04T20:56:00.751-06:00MP3 to M4B: free, quick, and easy audiobook coversion for your iPhone<b>Quick?</b><br />
Maybe, maybe not. Depends on your hardware.<br />
<br />
<b>Why M4B?</b><br />
MP3 is nice for songs, but if you have a long audio book in MP3 form, it may be 10, 20, 30+ individual MP3 files. M4B lumps them all in one. M4A is similar to M4B, but it doesn't offer bookmarking(remembering playback location) which is a necessity when listening to a long audiobook. Sure, in some instances an app will remember the playback location of both MP3 and M4A, but as the file size increase so does the chance loosing your location. <a href="http://en.wikipedia.org/wiki/M4b">http://en.wikipedia.org/wiki/M4b</a><br />
<br />
<b>So why not just throw everything in iTunes and use a playlist?</b><br />
In my experience, the iPod app for the iPhone sucks. Plan and simple. Everytime I charge my iPhone via the computer's USB port, the iPhone looses it current playback location. I've run into similar instances when syncinging. So what the solution? I've found an audiobook player app with some good features, and most importantly it doesn't loose it's playback location. The app even supports background playback (the only non-Apple app I've come accross that does this). The app is called Bookmark <a href="http://bookmarkapp.com/">http://bookmarkapp.com/</a> , Bookmark Blog <a href="http://bookmarkapp.wordpress.com/">http://bookmarkapp.wordpress.com/</a><br />
<br />
And now let's start with some apps that I've tried, but for one reason or another haven't had much success:<br />
<ul><li>Audiobook Maker version 0.1b for Mac OSX - <a href="http://audiobookmaker.sourceforge.net/">http://audiobookmaker.sourceforge.net/</a> - A free MP3 to AAC app. For me, this app is hit and miss. Sometimes it works, sometimes it crashes, and sometimes I just get the spinning beachball. The good news is it's open source if anyone wants to pick it up, unfortunately the app was last updated Dec 03, 2005 (<a href="http://sourceforge.net/projects/audiobookmaker/files/">http://sourceforge.net/projects/audiobookmaker/files/</a>). Maybe it's incompatibilities with Snow Leopard, I don't know.</li>
<li>MP3 to iPod Audio Book Converter version 0.18 for Windows - <a href="http://freeipodsoftware.com/">http://freeipodsoftware.com/</a> - Another free all-in-one type app. And again, it's hit and miss with conversions. I tend to have better success when running it on XP, unfortunately most of my PCs have moved to Windows 7. When running under Win 7 I tend to run into a Java error at the start of the conversion process. </li>
</ul><b>A successful 3-step process:</b><br />
<ol><li> MP3 files to M4A files - using Format Factory version 2.20 - <a href="http://www.formatoz.com/">http://www.formatoz.com/</a> - This free app converts all kinds kinds of media. If you have a large number of files to convert it has a great queuing system. Just drop them in the queue and let it crank away. Out comes the M4A files.</li>
<li>M4A files to a single chaptered M4B - using Chapter and Verse version 1.3.3.5 - <a href="http://lodensoftware.com/chapter-and-verse/">http://lodensoftware.com/chapter-and-verse/</a> - Another free app. Creating the M4B is rather simple, just add the M4A files, make any necessary meta data changes (Author, Title, Album Art, etc), then click the Build Audiobook button. Individual files are converted to chapter breaks in the single M4B file, but with the Bookmark app this isn't really neccessary. </li>
<li>Drop the M4B into iTunes and BAM! your done. If you don't want to use iTunes, you can use CopyTrans Manager <a href="http://www.copytrans.net/">http://www.copytrans.net/</a></li>
</ol>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com2tag:blogger.com,1999:blog-6931466932052314651.post-86308798657172461602009-12-25T09:32:00.000-06:002009-12-25T09:32:27.397-06:00Flash 10.1 beta 2, Mac and Linux now availableAdobe has released an update to their beta Flash (GPU accelerated Flash). They're up to Flash 10.1 beta 2. Binaries are available for Windows, Mac, and Linux:<br />
<a href="http://labs.adobe.com/technologies/flashplayer10/">http://labs.adobe.com/technologies/flashplayer10/ </a><br />
<br />
With the latest nvidia drivers (on Windows 7) I saw quite a performance improvement with Flash 10.1 beta 1. <a href="http://orsontyrell.blogspot.com/2009/11/flash-101-gpu-acceleration-non.html">http://orsontyrell.blogspot.com/2009/11/flash-101-gpu-acceleration-non.html </a><br />
Now that binaries are available for the Mac (Flash 10.1 beta 2) I'm able to do some similar tests. I ran these tests on a MBPro that has an integrated GeForce 8600M GT.<br />
<br />
Flash 10.0.42.34<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGBAJc6LE6-DGQI7uvX_XQNv49MHnU1-MSFx2aGIWg_ksQPZPin_ZJtxCv3ljVSy5WdBOqDbbr2GpF7yE-cqc_j0EO2wjAUcpzv2huW7UIWsb2wUoM-Xlw66wtjyPRLGrP8cJ4V_ELWgE/s1600-h/flash_10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGBAJc6LE6-DGQI7uvX_XQNv49MHnU1-MSFx2aGIWg_ksQPZPin_ZJtxCv3ljVSy5WdBOqDbbr2GpF7yE-cqc_j0EO2wjAUcpzv2huW7UIWsb2wUoM-Xlw66wtjyPRLGrP8cJ4V_ELWgE/s640/flash_10.png" /></a><br />
</div><br />
Flash 10.1 beta 2, 10.1.51.66 <br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrHpjjXFrR2BVoxAUjG9PSyFQZA45X6wP8-dUKp_HFqoicwsLYApgnnbyG_rrwLYD9w2z66X9T4oVOggX_gwKwxBim3wODhS42VpB9bTQ0AH5Tsykp3DYup1r-2tUH6RJlWv0aGo1IA_4/s1600-h/Flash_10_beta.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrHpjjXFrR2BVoxAUjG9PSyFQZA45X6wP8-dUKp_HFqoicwsLYApgnnbyG_rrwLYD9w2z66X9T4oVOggX_gwKwxBim3wODhS42VpB9bTQ0AH5Tsykp3DYup1r-2tUH6RJlWv0aGo1IA_4/s640/Flash_10_beta.png" /></a><br />
</div> <br />
Unfortunately I'm not seeing any gains in performance. Playback of the 2012 HD trailer (<a href="http://www.youtube.com/watch?v=Hz86TsGx3fc">http://www.youtube.com/watch?v=Hz86TsGx3fc</a>) runs the CPU to around 45% with both Flash 10 and Flash 10.1 beta 2.<br />
<br />
So what's the problem? I suspect it's the nvidia drivers that are released by Apple. I can't remember the last time I've seen a graphics driver update for OSX. On the Windows side it seems there's an update every other month. In my previous test of Windows Flash 10.1 beta, the drivers are what made the difference. Upgrading from Flash 10 to Flash 10.1 didn't show any improvements, but after I upgraded the graphics drivers to the latest WHQL, I saw a huge improvement. I'm hoping for an update to the OSX graphic drivers, but I'm not holding my breath. In the meantime, this just gives us another reason to use bootcamp. Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-20208490336235405732009-12-18T08:48:00.002-06:002009-12-18T08:51:38.348-06:00Microsoft Surface + Dungeons and DragonsThis is probably years away, and something we'd only see at a convention or a game shop, but wow.... geek worlds are about to collide.<br />
<br />
<object height="225" width="400"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=8211657&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=8211657&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br />
<a href="http://vimeo.com/8211657">SurfaceScapes Gameplay Session</a> from <a href="http://vimeo.com/surfacescapes">Surfacescapes</a> on <a href="http://vimeo.com/">Vimeo</a>.<br />
<br />
The demo shows some really cool mechanics:<br />
<ul><li>fog of war</li>
<li>combat calculations</li>
<li>character selection</li>
<li>spell lists</li>
<li>inventory</li>
<li>movement calculations</li>
</ul>More info here:<br />
part 1:<br />
<a href="http://blogs.msdn.com/surface/archive/2009/12/08/bringing-d-d-to-microsoft-surface.aspx">http://blogs.msdn.com/surface/archive/2009/12/08/bringing-d-d-to-microsoft-surface.aspx</a><br />
part 2:<br />
<a href="http://blogs.msdn.com/surface/archive/2009/12/16/new-gameplay-video-with-d-d-on-surface.aspx">http://blogs.msdn.com/surface/archive/2009/12/16/new-gameplay-video-with-d-d-on-surface.aspx</a><br />
<ul></ul>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-34921150811867674632009-12-12T16:49:00.002-06:002009-12-12T17:02:54.193-06:00TWiT video is available on the web, h264 HQ and LQOn Demand TWiT has been around for a while with ODTV.me, but it's a low quality flash capture from fans. Today we can get HQ and LQ video from several shows, produced from the TWiT crew. Once an RSS feed is available I'm sure BoxeeHQ's TWiT plugin will get an update. It looks like the video is h264 854x480 and 640x368. I'm seeing video on Windows Weekly, TWiT, and Mac Break Weekly. <br />
<br />
Windows Weekly:<br />
<a href="http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/ww/ww0134/ww0134_h264b_864x480_500.mp4">http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/ww/ww0134/ww0134_h264b_864x480_500.mp4</a><br />
<br />
TWiT<br />
<a href="http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/twit/twit0224/twit0224_h264b_864x480_500.mp4">http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/twit/twit0224/twit0224_h264b_864x480_500.mp4</a><br />
<br />
Mac Break Weekly<br />
<a href="http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/mbw/mbw0170/mbw0170_h264b_864x480_500.mp4">http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/mbw/mbw0170/mbw0170_h264b_864x480_500.mp4</a>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-35598628184134923932009-12-08T08:23:00.001-06:002009-12-08T08:26:48.815-06:00Google's search results show twitter feedsPerhaps I'm late to the game but I just noticed this....<br />
If you do a Google search for a twitter user and the word "twitter" you'll see a new display section of the user's recent tweets. As time goes by the section will be populated with new posts and you'll get a scroll bar to move up and down the posts. If you click the "Latest results" link you'll see a list of the last dozen or posts. As new posts comes in the list is updated in real time. After the twitter section you'll see the normal Google results.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiampQDbNbqwAwXcSSg39_0ZyHfCSwCzBLNRnjRnVQTNBqLmWhX3UVJkXTO3uOkL6Wsp1Nvwkeek1zHRSoBNOZjlz-j0wPwUzPEEHn1fGxiEXl2uItrahSZKeR8LdwfTb4CGpMDuXXfix0/s1600-h/blog.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiampQDbNbqwAwXcSSg39_0ZyHfCSwCzBLNRnjRnVQTNBqLmWhX3UVJkXTO3uOkL6Wsp1Nvwkeek1zHRSoBNOZjlz-j0wPwUzPEEHn1fGxiEXl2uItrahSZKeR8LdwfTb4CGpMDuXXfix0/s640/blog.png" /></a><br />
</div>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-4452041511687583592009-12-07T20:32:00.000-06:002009-12-07T20:33:02.306-06:00Boxee Beta details, now with DXVA (DirectX Video Acceleration)A recent <a href="http://blog.boxee.tv/2009/12/07/the-boxee-beta/">blog post</a> from Boxee gives details about the new public beta release due Jan 7th (they're still in alpha). The most important detail in the announcement... support for <a href="http://en.wikipedia.org/wiki/DXVA">DXVA</a>. What's so cool about that? If your processor has problems displaying High Def video (720p, 1080p) then you may see some performance improvements with the CPU offloading video decoding to the GPU (your graphics card). For example, if you have a blu-ray rip that's encoded 1080p your CPU alone may not be able to handle decoding, especially since Boxee's decoder doesn't take advanage of dual/quad CPUs, neither does VideoLan's VLC media player. Instead of using Boxee/VLC you'd need to use something like ffmpeg's multi-core codec with Media Player Classic. And for those of you with an ION based computer (netbook, HTPC, etc) you should see some benefits as well. <br />
<br />
Video from their announcement is here: <br />
<a href="http://livestream.com/boxee">http://livestream.com/boxee</a><br />
<br />
Sign up for the beta here:<br />
<a href="http://bit.ly/boxeebetaea">http://bit.ly/boxeebetaea</a><br />
Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-61253662823550842802009-12-05T13:08:00.000-06:002009-12-05T17:04:27.520-06:00DNS benchmark showdown: Google DNS, Open DNS, Comcast, and more. Using Google's new DNS toolGoogle is providing a new DNS benchmarking tool for free. Available in .dmg, .exe, .tgz.<br />
<a href="http://code.google.com/p/namebench/">http://code.google.com/p/namebench/</a><br />
<br />
I ran the test a few times against my default ISP settings for DNS (Comcast). Some example results are below. I was hoping for better performance from Google's DNS, but perhaps I'll try again at a later time. In my tests so far, my ISP's DNS usually comes in first or second (second to UU Cache-4). At times Sprint and OnRamp will make it to the top. <br />
<br />
Then again speed is not be everything. OpenDNS has tons of cool features. And as a side note, I'm using dd-wrt on a linksys router (default DNS settings) running the tests from a MBpro.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXkBNA_kNtjJcZGnCM7iSxyjbQIGPI0me12ylWBW9yQ60KWwcw31CY9BVPWz5IwMi_7kILjNcBiNUPMRJzwPp9NFVgU8-_JpjV3SO2-aUZqdDkxd3ubI96H8Mxb_mes86iy50PwpKEGXI/s1600-h/Screen+shot+2009-12-05+at+Dec+5+++12.43.14+PM.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXkBNA_kNtjJcZGnCM7iSxyjbQIGPI0me12ylWBW9yQ60KWwcw31CY9BVPWz5IwMi_7kILjNcBiNUPMRJzwPp9NFVgU8-_JpjV3SO2-aUZqdDkxd3ubI96H8Mxb_mes86iy50PwpKEGXI/s640/Screen+shot+2009-12-05+at+Dec+5+++12.43.14+PM.png" /></a><br />
</div><br />
<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFP4a5axsCdBAHY9ScXPo-mNPVjutHkEZbcqQAF8-HwU_GeDwclIcDL2zbFY1GQT6zseXNmQ2l8upkzjPNci3YIwwUnk6zm9B0eCkMvYXrllXuxFtpbK-r4s2mIS4DMWjJQPdqU28petw/s1600-h/Screen+shot+2009-12-05+at+Dec+5+++12.44.03+PM.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFP4a5axsCdBAHY9ScXPo-mNPVjutHkEZbcqQAF8-HwU_GeDwclIcDL2zbFY1GQT6zseXNmQ2l8upkzjPNci3YIwwUnk6zm9B0eCkMvYXrllXuxFtpbK-r4s2mIS4DMWjJQPdqU28petw/s640/Screen+shot+2009-12-05+at+Dec+5+++12.44.03+PM.png" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK7b99daPauTvEKPYPwtiWCefZnWryIBw9YIwIQW3bNQYL2aFR1KKIEkmPSeDWy2unQb90Ne6CAmL0t9SZO12xNBy_nuTP1c6W5A3KC2w8mf_UEgKjDZ-c7W1kHUFVCC4YKcjNJhhzrgs/s1600-h/Screen+shot+2009-12-05+at+Dec+5+++12.43.25+PM.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK7b99daPauTvEKPYPwtiWCefZnWryIBw9YIwIQW3bNQYL2aFR1KKIEkmPSeDWy2unQb90Ne6CAmL0t9SZO12xNBy_nuTP1c6W5A3KC2w8mf_UEgKjDZ-c7W1kHUFVCC4YKcjNJhhzrgs/s640/Screen+shot+2009-12-05+at+Dec+5+++12.43.25+PM.png" /></a><br />
</div><br />
<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-67142764513077264842009-12-04T15:26:00.000-06:002009-12-04T15:26:36.388-06:00Adding video feed to Boxee, such as YouTube videoBe on the lookout for a new release of Boxee. It should be any day now. <br />
In the current version, they make it easy for us to add content. The steps are amazingly simple:<br />
<ul><li>Start Boxee</li>
<li>Click 'App Box'</li>
<li>Navigate to the 'My Feeds' tab</li>
<li>Click 'Add New Feed'</li>
<li>Type in the video feed's url. For example if you'd like to add the YouTube video feed for The Computer Action Show, you'd use 'http://feeds.feedburner.com/computeractionshowvideo' without the quotes<br />
</li>
<li>Check the Feed Type box for video</li>
<li>Click OK</li>
</ul><br />
After that you can navigate to Applications -> Video and you should see the show's icon. Adding audio is almost exactly the same, just select the appropriate Feed Type.Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-32150002960617562362009-12-01T20:57:00.000-06:002009-12-02T19:40:37.805-06:00Requirements for a HTPCMy replacement powersupply, a Shuttle PC55 450W, sounds like a helicopter taking off. It's a least 20db higher than the stock 350W.<br />
<br />
It's getting long in the tooth so now I'm thinking about a new HTPC. My must-have features:<br />
<ul><li>quiet, I don't mind a small amount of noise.</li>
<li>1080p playback of h264.</li>
<li>small, shuttle size would be acceptable.<br />
</li>
<li>good video graphics, either with ION or a PCI Express slot. I'd like to use the GPU for flash acceleration. <br />
</li>
</ul>I'm considering something extremely small, something like ASUS's EEE Box 1501, <a href="http://www.pcper.com/comments.php?nid=8027">http://www.pcper.com/comments.php?nid=8027</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR3VWJpiJdktnWi1JOk8HVEGko-Yv5fNF_4QEkzm7iD5xOooYTVKxTyg6_S5GbNo_NxEnL1MZ_DbsFihv5gPit_eS8-iNSGMtcS_OQD7onHZ2QOoBrhbFcKynw6jwol3HGlinXN9sxoD8/s1600/eeetop1501.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR3VWJpiJdktnWi1JOk8HVEGko-Yv5fNF_4QEkzm7iD5xOooYTVKxTyg6_S5GbNo_NxEnL1MZ_DbsFihv5gPit_eS8-iNSGMtcS_OQD7onHZ2QOoBrhbFcKynw6jwol3HGlinXN9sxoD8/s640/eeetop1501.jpg" /></a> <br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: left;">[UPDATE] The pc55 isn't as noisy as I thought. I had a cable rubbing against the fan, ugh.<br />
</div>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-48856939043684892032009-11-29T11:07:00.000-06:002009-11-29T11:07:09.774-06:00When UPS 2-day air isn't 2 days... more like slow-ass day airI'm home a little early on Wednesday afternoon, ready for a 4 day turkey weekend. I fire up the 'ol HTPC for some boxee\hulu\mkv... and nothing. After a some troubleshooting, it's the powersupply. Unfortunately this is a small form factor PC so it requires a non-standard sized powersupply. I hop on the interwebs, find a replacement, schedule it for 2 day air, and then I sit back and wait, and wait. <br />
<br />
I placed my order on the 25th, and deliver is scheduled for the 30th, a monday. Great! I'll get my HTPC up and running right when the full week starts. What the hell!?!? So instead of watching quality shows on the internet (TWiT, fringe, the cleveland show) I stare at the UPS package tracking page all weekend:<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRfn_jFCs3h8WfV2w8wTXcYL-5YUHoZPw07Ck2mDMya34vNVZTVuoq4VukNvhMuI8f_v8AkegZNIb60hDO0LbI-ot4z2C3wMz68tdauilSIWJTARKGzCmCi78W0Xcj8RBamzKYFIEjoGE/s1600/2dayair.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRfn_jFCs3h8WfV2w8wTXcYL-5YUHoZPw07Ck2mDMya34vNVZTVuoq4VukNvhMuI8f_v8AkegZNIb60hDO0LbI-ot4z2C3wMz68tdauilSIWJTARKGzCmCi78W0Xcj8RBamzKYFIEjoGE/s640/2dayair.png" /></a><br />
</div><br />
and whats up with that stop in Dallas?!?!? it arrived on the 28th at 6am, and it sits there for over a day. Come on people, I need to watch some hak5 and tekzilla. WTF! Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-7522553254988403352009-11-17T21:22:00.000-06:002009-11-19T08:38:38.486-06:00Flash 10.1 GPU acceleration (non-scientific) tested. WHQL drivers make a difference.MBpro, dual core 2.4 Ghz, Nvidia 8600M GT, bootcamp Win 7<br />
<br />
2012 trailer in HD: <br />
<a href="http://www.youtube.com/watch?v=Hz86TsGx3fc">http://www.youtube.com/watch?v=Hz86TsGx3fc</a><br />
<br />
<b>[Default bootcamp/Win 7 drivers] <br />
</b><br />
Using Flash 10.0.32.18, bootcamp/Win drivers, CPU usage averaged around 55%:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJwNRZCkXNG5jYthRjBPu6a6_NXWySo2PptytIpxLGWMsWyryzOYESA3tW7U_yEO9SJMCnbKZaWu92Y6qrXG_LWJsi2fsbmjxJjGB3IQBJq-1I3PPaoxfH5FHenrMOw10SAXPpVVm0loI/s1600/2012hd_10.0.32.18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJwNRZCkXNG5jYthRjBPu6a6_NXWySo2PptytIpxLGWMsWyryzOYESA3tW7U_yEO9SJMCnbKZaWu92Y6qrXG_LWJsi2fsbmjxJjGB3IQBJq-1I3PPaoxfH5FHenrMOw10SAXPpVVm0loI/s640/2012hd_10.0.32.18.png" /></a><br />
</div><br />
<br />
Using Flash 10.1.51.25 <b>beta</b>, bootcamp/Win drivers, CPU usage averaged around 65%:<br />
<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgil7x9t5Twm3wDMLkBwp3HhY3gMtBpPzf3F9tMn3DLVbmKpmMTwxBP3VVzkWl9bpCcgDuS9rgjSnw8Ecsg6Ss0HXQNKD5vwewUI7peMmwMvh27248POk5rDi32ZsEBmAa5-2KdFKWPTvY/s1600/2012hd_10.1.51.45_beta.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgil7x9t5Twm3wDMLkBwp3HhY3gMtBpPzf3F9tMn3DLVbmKpmMTwxBP3VVzkWl9bpCcgDuS9rgjSnw8Ecsg6Ss0HXQNKD5vwewUI7peMmwMvh27248POk5rDi32ZsEBmAa5-2KdFKWPTvY/s640/2012hd_10.1.51.45_beta.png" /></a><br />
</div><br />
<br />
<b>[Updated default bootcamp/Win 7 drivers to Nvidia's latest 186.81 WHQL drivers]</b><br />
<br />
Using Flash 10.0.32.18, 186.81 WHQL drivers, CPU usage averaged around 50%:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_aybjl8tjksJ9wjfmPn0Ppu7Opaj5C1bPcnPbWSXniqvmtoQAmzh3beWQ90gDxHohxWqoZOopRdevVjq0OaN8TNHWqLiiJxZlIgqw3BEMbCuaiwhgGjuU6jdsG5o-F8mhxeqD0VyFaVA/s1600/2012hd_10.0.32.18_WHQL.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_aybjl8tjksJ9wjfmPn0Ppu7Opaj5C1bPcnPbWSXniqvmtoQAmzh3beWQ90gDxHohxWqoZOopRdevVjq0OaN8TNHWqLiiJxZlIgqw3BEMbCuaiwhgGjuU6jdsG5o-F8mhxeqD0VyFaVA/s640/2012hd_10.0.32.18_WHQL.png" /></a><br />
</div><br />
<br />
Using Flash 10.1.51.25 <b>beta</b>, 186.81 WHQL drivers, CPU usage averaged around 35%:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvuNcRroFTy0lv5cs0KC3D57ZIYrCjSdee_TbZGfJovAWwtbTfSAjBLVlSIICqEZEu50KKNWdJijBHZUUfLji4X0OEc0CPnO3Rx4_kQwUnIT54L_M6bt6TobwLsEyGDKnuGCRdo2vdzGI/s1600/2012hd_10.1.51.45_beta_WHQL.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvuNcRroFTy0lv5cs0KC3D57ZIYrCjSdee_TbZGfJovAWwtbTfSAjBLVlSIICqEZEu50KKNWdJijBHZUUfLji4X0OEc0CPnO3Rx4_kQwUnIT54L_M6bt6TobwLsEyGDKnuGCRdo2vdzGI/s640/2012hd_10.1.51.45_beta_WHQL.png" /></a><br />
</div><br />
<b>Summary:</b><br />
Using the default drivers I didn't notice a big difference when upgrading to the Flash beta (55% to 50%) . When I switched drivers to 186.81 I saw a decrease in CPU usage from ~65% to ~35%. wow<br />
<br />
[UPDATE] It looks like AnandTech came up with similar numbers, from 450% to 190%. CPU usage dropped by more than half.<br />
<a href="http://www.anandtech.com/video/showdoc.aspx?i=3678&p=5">http://www.anandtech.com/video/showdoc.aspx?i=3678&p=5</a>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0tag:blogger.com,1999:blog-6931466932052314651.post-7272534780142851892009-11-17T19:07:00.000-06:002009-11-19T08:37:50.375-06:00GPU accelerated Flash... not so fast Mac, you too Linux.The beta is available for Mac, but no hardware acceleration. Windows only for now:<br />
<a href="http://labs.adobe.com/technologies/flashplayer10/">http://labs.adobe.com/technologies/flashplayer10/</a><br />
<br />
From the Hardware requirements section: <br />
<a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10.1_hardware_acceleration.html">http://www.adobe.com/devnet/flashplayer/articles/fplayer10.1_hardware_acceleration.html</a><br />
<blockquote><i>Linux and Mac OS X hardware-accelerated decoding is not supported in this version.</i><br />
</blockquote>Anonymoushttp://www.blogger.com/profile/18400145104761936040noreply@blogger.com0