Technology Errors

last: btmp: File too large, Read Large btmp Files

Earlier today while investigating the logs on a CentOS Linux server I noticed the btmp file had grown to over 5GB. I was curious to look into the log and when attempting to read the 5GB file using last I received an error since last will only handle files that are 2GB in size or less. So what needs to happen is to split the file into multiple pieces so they can be read via the last command. Below I describe the error in detail, how to resolve it by splitting the btmp file into multiple files, and then how to join them together if you need to read logs older than the last split file.

Technology Errors

WinRAR Extract Error: Total Path And File Name Length Must Not Exceed 260 Characters

Yesterday when extracting a ZIP file created with WinRAR I received dozens of errors during the process. The file I was extracting was generated from the entire Documents and Settings folder on a Windows XP computer and I was extracting it to the Desktop of another user on another computer. The issue is the fact that the path and/or filename exceeded the 260 characters which is set by WinRAR. Below I show some output from the errors received as well as two tips that should help resolve the problem.

Technology Insights

Photoshop CS5: Replace The Entire Color In An Image With Photoshop

I have been working on a WordPress site for a client of mine and typically use the same theme called Mandigo which offers seven different color schemes. In this specific case my client wanted a color theme outside of the seven color schemes that are offered by default so I needed to modify each of the icons to reflect the requested color scheme by the client. Below are instructions on how to modify all of a specific color in an image to a new color using Adobe Photoshop CS5.

Technology Insights

How to Make a Patch using Diff

I have had a lot of questions lately about making patches. On Backtrack we get a lot of user submissions and many times we need a patch rather than a modified source file. The reason being is that a patch can be documented and contains the specific changes made to the source file and can also be easily reverted. Patching is also crucial if you fix a bug in a program and would like to submit the fix to the author. In any case being able to create a patch is very  useful if you are working with Linux or any sort of programing stuff.

I decided to make a short post on how to make a patch and apply it: