Banner with yellow background
Wednesday, 22. February 2006
RE Generator

Wanted: Take a list of strings and create a regular expression that matches them all. It has to be a significant RE, /*/ won't do. Maybe it takes two lists, one of matches and one of non-matches. Then the generated RE MUST match the first list and MUST NOT match the second list.

Use case: I download my bank statements, but the 'Pay To:' field is always different. I'd like to reduce the long text field '0003432992 Target POS 3270 Main 392020' to just 'Target', but the next time it will probably be '3270 Main Target Store register check'. I want to have a regular expression to normalize the wildly differing descriptions, but I don't want to hand code the expressions.

Hand tuning is OK but hand coding? Let's put some machine intelligence on the task.

... Link


Tuesday, 21. February 2006
Power Struggle

Last month I re-cased my computer. It's a 1.3 GHz Athlon from HP. Never liked the case, so I got one from surplus and did a motherboard transplant. The 'new' computer worked fine for me, but my children started complaining that their games were crashing. I watched a few times and the thing would just do a cold restart whenever the graphics card got busy. I'm running an ATI Radeon 9250.
I thought it might be a heat problem. The old case had a cowling that tied the main case fan directly to the CPU. It didn't fit the new case, so I just tossed the cowling out. The new case uses 80 mm fans, where the old one had a 120 mm fan. I had just changed the old fan for one with a green LED, just 'cause I like the glow in the background. Anyway I put the old fan into the second fan space, but it still crashed.
At this point I started thinking harder. Eventually it came to me, maybe this isn't a heat issue. Maybe it's a power thing. I kept the older power supply that came with the case. It was 200 watts, while the HP supply was only 150. I figured I was doing a good thing with those 50 extra watts. But it was an older supply, and maybe it wasn't as good at regulating the power. Rather like Apollo 13, when they only had so much power to restart the command module. Maybe when the GPU fired up I started getting 'BUS UNDERVOLTAGE' and that's what was triggering the cold restarts.
The ATX power supply has to provide a variety of voltages at different current levels. I compared the labeled capacities between the HP supply and the older supply. The older was rated for higher current on all the listed ports except the +5SB, which I guess is the USB serial bus voltage. I put the HP supply back in the computer hoping that the older supply just wasn't performing to spec.

Looks like that solved the problems. The kid's games run just fine so far. Maybe I'll open the older PSU and see if there are any obvious problems. Years ago I got the training, so when they say 'no user serviceable parts inside' they're not talking about me. I've heard of people re-using computer power supplies for workbench or radio power supplies. Maybe I'll give that a try. It would be interesting to see just what the old box can do. I don't usually work with whole amperes at a time.

... Link


Creative Commons License (by-nd)

Creative Commons License

Blog entries licensed under a Creative Commons License.

8144 days of detection
mod: 12/3/08, 5:42 AM

days of detection

... PMOG
... ideas
... brain hurts
... weblo

owner

Biography

Randall Bohn lives in Orem, Utah, USA. He works as a Software Quality Engineer. He is a big fan of the AVR line of microcontrollers. He has been in the computer industry since 1989. Randall is married and has three children.

rsbohn can be reached via gmail.com.


status
Youre not logged in ... Login
Amazon.com DVD Shop
menu
... home
... topics
... galleries

... Antville.org home
search

related


calendar
February 2006
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
262728
JanuaryMarch
recent updates
Arduino Starter Kit
MAKE Blog How-to Tuesday posted a challenge: Optimize the sketch code for a pressure sensor bar graph. Here is my second attempt: int gate[] = {10, 20, 50, 100, 200, 32767}; void setup() {DDRB = 0b00111110;} void loop() { int dval = 0; int rval = analogRead(2); for (int x = 0; rval...
12/3/08, 5:42 AM
Measuring Supply Voltage
I'm running my latest handheld computer on solar power. It starts up when the sun rises and runs all day. I started wondering how I could measure the voltage coming in from the solar panel. I came up with a way to use a diode and a resistor and the...
7/29/08, 9:53 AM
Ten Pin ISP adapter
I've already built a six pin ISP adapter, but my Olmex cards use the ten pin ISP. I put a header on a scrap of perf board, added an LED for the heartbeat, and then connected the ten pin cable. Actually it is a fifteen pin cable, off a joystick...
7/16/08, 10:00 PM
Hello 5x7 Style
Wrote a new firmware for the 5x7 display. Now it scrolls out 'hello' over and over again. I'm running it on a solar panel, so it wakes up with the sun and runs all day long. When I built the LED matrix I put resistors on the five columns. I'm starting...
6/17/08, 12:48 PM
Provo, Utah
With a walkable downtown and access to two Universities, Provo Utah is a great location. I live next door in Orem. Kipplinger: Provo: Pristine Tech Mecca (Video) (Text)
6/2/08, 10:07 AM
Another release of AVRISP sketch
There is a new release of the AVRISP emulation sketch for Arduino: avrisp.02.zip. This one should work with Mega8 and Mega168. mega-isp
5/28/08, 4:48 PM
Sorting Out Page Sizes
There is a new release of AVRISP Emulation for Arduino. This is an Arduino firmware that allows you to program other AVR microcontrollers. The new zip file (avrisp.01.zip) should compile on the current Arduino IDE, and I changed the comments that put the wrong labels on the SPI pins. Go ahead...
5/27/08, 11:31 AM
Flash Problems
I'm building a project using the AVR ATMega8 microcontroller. Once I got the thing wired up to where I could write firmware to it I found that it was always failing. I made a .hex file full of 0x10 values (256 bytes worth) and tried uploading that to the chip....
5/16/08, 2:56 PM
William's Arduino Board
I'm building an Arduino-compatible board for William. I'm building it on the Evil Mad Scientist MegaXX8 business card. It will have four built-in LEDs and a USB interface. It will also have connectors so he can use it with a breadboard. Perhaps we can connect it to some of his...
5/15/08, 7:26 AM
Cybord Signal Detector
Some digital radio signals use Frequency Shift Keying (FSK). This often has one frequency for a Mark and one for a Space. I plan to build a cybord or other chip that will decode an FSK signal, producing three different values: NO_SIGNAL, MARK, and SPACE. The signals would then go...
5/15/08, 7:20 AM

destinations

Listen to IT Conversations



Made with Antville

Quantum Touch

RSS Feed