<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>ben bernier's badass blog</title>
	<link>http://benbernier.com</link>
	<description>random blog about whatever i choose</description>
	<lastBuildDate>Thu, 02 Sep 2010 21:40:29 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>windows xp BSOD Stop 0&#215;0000007E</title>
		<description>so after an architecture change of a client's server's pc during a disaster recovery middle of business day, i was forced to learn a lot about migrating windows xp install to and from intel and amd architectures.

i found the repair to be sufficient moving from amd to intel, but left ...</description>
		<link>http://benbernier.com/?p=179</link>
			</item>
	<item>
		<title>remove stale locks vmware server 2</title>
		<description>so my virtual machine server went down in my office the other day, and the auto startup for a specific machine failed because there was a lock file present from before the power failure (time to replace my ups)

it was easy enough to fix by removing the folder located at:

/var/lib/vmware/Virtual\ ...</description>
		<link>http://benbernier.com/?p=177</link>
			</item>
	<item>
		<title>reparse and remount fstab</title>
		<description>after adding a  usb drive to fstab i reloaded it and remounted when needed using the following command:

# mount - a -o remount </description>
		<link>http://benbernier.com/?p=175</link>
			</item>
	<item>
		<title>funny stuff!</title>
		<description>[caption id="" align="alignnone" width="450" caption=""][/caption] </description>
		<link>http://benbernier.com/?p=173</link>
			</item>
	<item>
		<title>unpack multiple files at once using xargs</title>
		<description>how to upack all tarball gunzips .tar.gz in a given directory at a time

ls *.tar.gz &#124; xargs  -t   -I {} tar -zxvf  {} 

*note: after the -t it is a -I as in -(capital)i

substitute your flavors at -zxvf and adjust file list at the ls command before ...</description>
		<link>http://benbernier.com/?p=171</link>
			</item>
	<item>
		<title>compiling from source against 2.6.33</title>
		<description>i screwed up my slackware install on my laptop, did a reinstall, realized i installed 32-bit and decided to roll with it. everything i have gone to install out of the official tree has needed some patching due to the new kernel.

apparently the new kernel (2.6.33) no longer generates a ...</description>
		<link>http://benbernier.com/?p=168</link>
			</item>
	<item>
		<title>remove files by date - bash</title>
		<description>find /path/to/files/* -mtime +5 -exec rm {} \;

where +5=older than 5 days </description>
		<link>http://benbernier.com/?p=166</link>
			</item>
	<item>
		<title>arduino, x10, buttons, and lcd</title>
		<description>this code is one night old. more to come from it but it's not much now:

#include &#60;LiquidCrystal.h&#62;
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
/*
brb 20091121
control 2 x10 devices (4 &#38;2) via momentary switches on pins 10
and 12. x10 interface on pins ...</description>
		<link>http://benbernier.com/?p=164</link>
			</item>
	<item>
		<title>wep cracking with aircrack-ng</title>
		<description>had to get a new usb adapter that was capable of inject and monitor modes. took a chance with a netgear usb wg111 at best buy, it happened to be ralink based (wg111v3). then i installed the aircrack-ng suite and began testing my network with the commands below

scan for available ...</description>
		<link>http://benbernier.com/?p=162</link>
			</item>
	<item>
		<title>found the prank site, need the pranker</title>
		<description>http://www.hoaxcall.com/flatrate_103_a.html

my phone number was even listed as having been called in the last 21 days and would not let me recall it.

i called our office and that prank call was definitely it. the voice was the same and the interactions possible are the same.  all thats left now is finding ...</description>
		<link>http://benbernier.com/?p=160</link>
			</item>
	<item>
		<title>unknown numbers</title>
		<description>so i got a call from an unknown number today. I answered it, which is completely contradictory to my instinct. There was an attractive sounding woman who had a very familiar voice who said "Hi" and that I had to guess who it was. I asked them to please not ...</description>
		<link>http://benbernier.com/?p=158</link>
			</item>
	<item>
		<title>Motion Detection Arduino Code</title>
		<description>

/*
motion detection code for parallax module from radio shack
**20091015 brb**
basic motion/infrared detection software
**20091015 brb**
add similtaneous green led blinks during motion poll

parts:

3 leds (2 green, 1 red)

1 parallax PIR sensor

on detection of any motion, binary signal on digital pin 8
changes, which causes led on digital pin 5 to light

while motion is ...</description>
		<link>http://benbernier.com/?p=155</link>
			</item>
	<item>
		<title>fop 0.95 on slackware64</title>
		<description># slackpkg update

# slackpkg install jdk

# cd /usr/local/src

# wget http://archive.apache.org/dist/ant/source/apache-ant-1.6.5-src.tar.gz

# tar zxvf apache-ant-1.6.5-src.tar.gz

# cd apache-ant-1.6.5

#./build.sh

# cd ..

# wget http://apache.siamwebhosting.com/xmlgraphics/fop/source/fop-0.95-src.tar.gz

# tar zxvf fop-0.95-src.tar.gz

# cd fop-0.95

# /usr/local/src/apache-ant-1.6.5/dist/bin/ant

now you have a 64 bit fop...or you can download it here:

drunkensailor.org/software/fop-0.95-slackware64.tar.gz

i have my ant available here:

drunkensailor.org/software/ant-1.6.5-slackware64.tar.gz

*both of these are just meant to be unpacked where ...</description>
		<link>http://benbernier.com/?p=148</link>
			</item>
	<item>
		<title>block hulu ads and google analytics</title>
		<description>add these lines to your hosts file. just rebuilt my laptop to 64bit and want to document these things before they disappear into the abyss of knowledge i once had. used in combination with adblockplus i get almost no ads on hulu

127.0.0.1       www.google-analytics.com google-analytics.com ssl.google-analytics.com analytics.google.com googleanalytics.com
127.0.0.1       flash.quantserve.com quantserve.com ads.hulu.com ...</description>
		<link>http://benbernier.com/?p=146</link>
			</item>
	<item>
		<title>slacklite mirror version 0.2</title>
		<description>currently its at 0.2 and will undergo a complete overhaul to run with the aliens slackware mirror script as its base. its very primitive right now and requires manual checking of the changlog to know if it should be run. it also assumes a few directory paths that are documented ...</description>
		<link>http://benbernier.com/?p=141</link>
			</item>
	<item>
		<title>mysql bizarre self union</title>
		<description>i wanted to use this:

(select * from Seasons where id=5) union
(select * from Seasons where id&#60;&#62;5 order by id desc);

but i had to use this:

SELECT * FROM
(SELECT * FROM Seasons
WHERE id=5
ORDER BY id DESC) AS t1

UNION

SELECT * FROM
(SELECT * FROM Seasons
WHERE id&#60;&#62;5
ORDER BY id desc) AS t2 </description>
		<link>http://benbernier.com/?p=137</link>
			</item>
	<item>
		<title>klogd it</title>
		<description>step one: ln -s /dev/null /thetoilet

step two: klogd &#62; /thetoilet  2&#62;&#38;1

this is how you can clog the toilet with 2s and 1s </description>
		<link>http://benbernier.com/?p=132</link>
			</item>
	<item>
		<title>good fortune (no dash oh)</title>
		<description>a server told me this joke today:
He:     Do you like Kipling?
She:    Oh, you naughty boy, I don't know!  I've never kippled! </description>
		<link>http://benbernier.com/?p=130</link>
			</item>
	<item>
		<title>djb quotes</title>
		<description>somehow made my way here after fighting with his three versions of documentation for the same AMAZING product

incredibly amusing: http://en.wikiquote.org/wiki/Daniel_J._Bernstein

incredibly surprising: http://blogs.zdnet.com/security/?p=2812 </description>
		<link>http://benbernier.com/?p=128</link>
			</item>
	<item>
		<title>remove files and folders by date</title>
		<description>this is designed to delete files by date from the current directory....it was googles fault for providing "source" in a .deb with relative paths without being clear. plus it was my fault for not doing a test extract prior to doing a real one....pretty irrelevant but was needed to tidy ...</description>
		<link>http://benbernier.com/?p=124</link>
			</item>
</channel>
</rss>
