Tuesday, December 15, 2015

Total Commander tips for compare files/folders

Enhance the Total Commander with some helpful buttons:

purpose: Compare folders
command: c:\Program Files (x86)\Meld\Meld.exe or c:\Program Files\KDiff3\kdiff3.exe
parameters: ?%X"%P." "%T."

purpose: Compare files
command: c:\Program Files (x86)\Meld\Meld.exe or c:\Program Files\KDiff3\kdiff3.exe
parameters: ?%X"%P%N" "%T%M"

purpose: Copy file names to clipboard (works well with filters)
command: cm_CopyNamesToClip


Notes:
? prompts the user for parameters (should be removed when everything goes fine)
%X always use left - right as in the Total Commander panels
. after %P and %T fixes the \ ending by redirecting at the current folder

Friday, March 13, 2015

Go incursion on Windows - powershell

Today moved on Windows with the project and tried to address same folder limitation for go build (no luck: named files must all be in one directory; have blabla\ and blabla\someotherblabla\ )
$allGoFilesForBuildStringBuilder = New-Object -TypeName "System.Text.StringBuilder"
Get-ChildItem . -recurse | where { $_.extension -eq ".go" } | ForEach { $allGoFilesForBuildStringBuilder.Append('"').Append($_.FullName).Append('" ') } 
go build $allGoFilesForBuildStringBuilder.ToString()
Reminder: If you are stuck on GOROOT_BOOTSTRAP error, check that this env variable hints to a go folder having all the binaries in the bin subfolder.
[Environment]::SetEnvironmentVariable("GOROOT_BOOTSTRAP", "Go_Folder", "User")
[Environment]::GetEnvironmentVariable("GOROOT_BOOTSTRAP","User")
Use "Machine" instead of "User" for system wide configuration