Friday, August 8, 2014

Win32 Build of AVRDude 6.0.1

**EDIT** urquan from reddit pointed out you can use an AVRDude available on their site here: http://download.savannah.gnu.org/releases/avrdude/ ***

For a while now, the easily available builds of AVRDude that I could find have been terribly out of date, and I've been building my own.  It just occurred to me it may make sense to release a build here.

This was built from avrdude-6.0.1 on a Linux Mint 15 system using the following commands:

./configure --host=i686-w64-mingw32 AR=i686-w64-mingw32-ar CFLAGS=-m32
make
i686-w64-mingw32-gcc -Wall -Wno-pointer-sign -g -O2 -DWIN32NATIVE  -static avrdude-main.o avrdude-term.o ./libavrdude.a  ser_win32.c crc16.c serbb_win32.c  -lusb  -lm  -o avrdude.exe
 i686-w64-mingw32-strip avrdude.exe

It was that simple.

The download including libusb, etc. can be found right here: http://cnlohr.net/random/avrdude-6.0.1-cnl.zip

You will still need to install "drivers" on Windows XP, Vista, 7 and 8.  There are some ways people have been doing this, but the easiest way I've found is to download win32 lib usb, then run the driver installer and running it right there on the spot.

http://cnlohr.net/random/libusb-win32-bin-1.2.6.0.zip

You can find the driver maker app "inf-wizard" in the "bin" folder of that zip.  Be sure to unzip the whole thing.  Follow the instructions, selecting the device that matches vid/pid pair: 0x1781, 0x0C9F

When done, tell it you want to install right then.

Note that on Windows 8, you will need to reboot with driver signing enforcement turned off. You'll have to look up another guide for that.


P.S. I HATE WINDOWS, I almost exclusively use Linux.  I just have to deal with people who use Windows, so you get to benefit from my misfortune.

Monday, February 3, 2014

To make terrible wordsearches.

A long time ago I saw a "DOG" word search, in which there were a bunch of letters and only one "DOG" so I was curious how hard it would be to write a program to make terrible word searches. The answer was, very easy.

I wrote a program that creates them in C. It took about 30 minutes. It simply produces letters from a list of letters I provide it, and checks to make sure that the word in the search does not show up. If that word does show up, it starts rewriting some letters. Eventually, it creates a wordsearch without the word that you're searching for.

You then have to add the word in the search yourself.

Usage: ./wordsearch [x] [y] [word] [letter dictionary]

For example:
 
./wordsearch 10 10 the the
HITS: 59
h h t h h t t h t t 
h h e e t t e e e h 
h h e t t t e t h h 
h h t t t e e h e e 
e t e h h e e t e e 
h h t h t h t t t e 
e t e h e e t t e e 
h t t e t h h h t t 
e t e e t h h h h h 
t t t h h e h h t h 

Notice how the word "the" does not appear in the word search at all. You simply have to change the letters to add that word and you're set! You have made a terrible word search.

Source code: http://pastebin.com/i2MBCHLQ

Here are some examples:





Happy hunting.