Sunday, October 16, 2011

How I got Rage to work on my AMD/ATI Radeon 6870

The Rage release sucked for a lot of gamers. Here are my system specs and how I got the game to run.

  • Intel Core2Duo 2.93GHz E7500
  • Sapphire Radeon HD 6870
  • 4GB RAM

  • Get the 11.10 preview 2 drivers for Radeon cards. By itself this patch made the game completely unplayable for me. It worked better with the 11.9 drivers.
  • Get the latest game patch
  • Catalyst Control Settings:
    • Check "Use application settings" for everything
    • Catalyst AI: Set bar to middle (quality) and Enable Surface Format Optimize
    • Wait for V-Sync: Always On
    • Anti-Alias" Performace
    • OpenGL: Enable triple buffer
  • Add these command line args (In steam, right-click the game in the left pane -> Properties -> Set Launch Options): +set com_skipIntroVideo 1 +jobs_numThreads 0 +vt_maxPPF 8 +cvaradd g_fov 20 +set m_rawinput 1
  • This wasn't necessary, but may help performace: Create "rage" folder within an "id software" folder in your appdata folder (C:\Users\--your WINDOWS USER NAME--\AppData\Local\id software\rage)
I didn't have to use any config files to get this game running.

Although I can play the game at full settings, you may need to lower yours to get good framerates. Use the in-game video settings.

Best ok luck

Friday, October 7, 2011

Script for cleaning organizing your download folder

Here's a cool powershell script I wrote to keep my download folder organized. I have it setup to run automatically every day via Windows Task Scheduler. The last command is a call to CCleaner. If you don't have that installed, you should remove that line.

You'll need to change the directory variable "$downloadDir" to the location of your download folder.

Save the following code as a powershell script (eg: cleanup.ps1) and run it with powershell.

# Set this variable to your download directory (don't have a trailing '\')
$downloadDir = "C:\Users\jeremiah\Downloads";

# remove all torrent files
Write-Host "Deleting .torrent files..."
remove-item $downloadDir\*.torrent

# organize download folder
#create some folders:
Write-Host "Creating main directories..."
if(!(Test-Path $downloadDir\exe)) {
 mkdir $downloadDir\exe
}
if(!(Test-Path $downloadDir\zip)) {
 mkdir $downloadDir\zip
}
if(!(Test-Path $downloadDir\text)) {
 mkdir $downloadDir\text
}
if(!(Test-Path $downloadDir\images)) {
 mkdir $downloadDir\images
}
if(!(Test-Path $downloadDir\songs)) {
 mkdir $downloadDir\songs
}

Write-Host "Moving files to their folders..."
Move-Item $downloadDir\*.exe $downloadDir\exe -force
Move-Item $downloadDir\*.msi $downloadDir\exe -force

Move-Item $downloadDir\*.txt $downloadDir\text -force
Move-Item $downloadDir\*.log $downloadDir\text -force

Move-Item $downloadDir\*.zip $downloadDir\zip -force
Move-Item $downloadDir\*.7z $downloadDir\zip -force
Move-Item $downloadDir\*.rar $downloadDir\zip -force
Move-Item $downloadDir\*.tar $downloadDir\zip -force
Move-Item $downloadDir\*.gz $downloadDir\zip -force

Move-Item $downloadDir\*.jpg $downloadDir\images -force
Move-Item $downloadDir\*.jepg $downloadDir\images -force
Move-Item $downloadDir\*.png $downloadDir\images -force
Move-Item $downloadDir\*.gif $downloadDir\images -force
Move-Item $downloadDir\*.tif $downloadDir\images -force
Move-Item $downloadDir\*.tiff $downloadDir\images -force

Move-Item $downloadDir\*.m4a $downloadDir\songs -force
Move-Item $downloadDir\*.mp3 $downloadDir\songs -force
Move-Item $downloadDir\*.wav $downloadDir\songs -force

# Put the rest of the files in a folder with their extension as the folder name
$files = Get-ChildItem $downloadDir\* -include *.*
if($files.length -gt 0)
{
 foreach($file in $files)
 {
  $ext = [System.IO.Path]::GetExtension($file)
  $ext = $ext.Trim(".")

  if(!(Test-Path $downloadDir\$ext)) {
   mkdir $downloadDir\$ext
  }
  Move-Item $file $downloadDir\$ext -force
 }
}

# run ccleaner
Write-Host "Running CCleaner..."
&'C:\Program Files\CCleaner\CCleaner64.exe' /AUTO

Write-Host "All Done! Exiting."

Testing my code view

This is some code:

using System.IO;

class CodeViewTest
{
  private string _something;

  public void CodeViewTest(string somthing)
  {
    _something = something;
  }
}

For a really good guide on how to add this to your blog, go here

All the languages available here are:

  • cpp, c, c++
  • c#, c-sharp, csharp
  • delphi
  • pascal
  • java
  • js, jscript, javascript
  • php
  • py, python
  • rb, ruby, rails
  • ror
  • sql
  • vb, vb.net
  • xml, html, xhtml, css
  • xslt

Tuesday, October 4, 2011

Showing a regular date in Redmine (rather than # days ago)

Here's how to add the normal date to show up on issues/tickets in Redmine:


  • Open the show.rhtml file (C:\Program Files\BitNami Redmine Stack\apps\redmine\app\controllers)
  • Within the
    <div class="<%= css_issue_classes(@issue) %>"> 
    tag you can add a normal date with this line:
    Issue <em>Created</em> on: <strong><%= @issue.created_on %></strong>
I can't believe I couldn't find this posted anywhere on the interwebs.