Author Archives: Brian

Using ant to exec mysql .sql files via a fileset

In trying to automate our DB development, we decided to use ant and Jenkins to run our SQL scripts for a deploy. We had a hard time getting ant to work and after much trial and error (and cussing and fussing) we finally got it to work. The key really was the addsourcefile=”false” attribute and the redirector. Since mysql can run sql from a file using redirection (< ) you have to use a redirector (which is poorly documented). The ant apply task can apply an executable to every file in a fileset, so this will use the mysql executable to exec every *.sql file it finds. Continue reading

MC Frontalot Kindle Scrensaver Images

I just hacked my Kindle to show custom screensaver images and found zero MC Frontalot Kindle images online! As a huge Frontalot fan, I could not sit idly by while the interwebs were devoid of Frontalot Kindle images, so I made some.

Click for the larger image, ready for your Kindle. (I did not create these images, I just made them Kindle-ready)

Enjoy.

MC Frontalot Logo Kindle Screensaver Image MC Frontalot Kindle Screensaver Image
MC Frontalot Goth Girls Kindle Screensaver Image MC Frontalot Goth Girls Kindle Screensaver Image

Unit testing JavaBeans

I always just pretty much skipped unit testing JavaBeans since the work involved didn’t seem worth it. Today though, I was troubled by the lack of coverage on the Javabeans in our Emma code coverage reports so I googled and found this bit of unit testing brilliance: Unit Testing Javabeans. It’s a simple class that uses introspection to test the bean and works great!

Day 4 (and 2 and 3) of Insanity

Yes, I did days 2 and 3, I just didn’t blog about it til now.

Day 2
Woke up sore – not immensely sore, but definitely sore. The workout kicked my butt.

Day 3
20 seconds in (I think it was butt kicks) and my legs were killing me – back of my thighs (hamstrings?) were screaming… and that was just 20 seconds in. This workout was hard. I was already pretty sore already and this was rough. I don’t think I got through half of each of the exercises and I’m not positive I’m doing some of them correctly.

Day 4
I didn’t look at the workout ahead of time and it turns out it’s a recovery day (yay for recover days!) – a bunch of stretching. The stretching was hard (man my hamstrings(?)) are sore, but this was a welcome change from the high intensity stuff. I’m still sore, but it’s not killing me… makes me wonder if I’m not pushing hard enough.

General notes

  • I have never been on a diet in my life and I can now really empathize with people that diet. I have been craving so much other (bad) food, but I’ve been sticking to it and not wavering/cheating. On Day 4 (Thursday), during dinner, I had an iced coffee – that was my first “splurge”, but I cut back on the hazelnut cream and used some skim milk so it wasn’t too bad (I hope). I haven’t had coffee all week (since Sunday).
  • The food isn’t too bad really. The roast beef wrap, egg white wrap, and lean burger are pretty darn good. The chicken meatballs aren’t nearly as tasty as I thought they would be. The chicken breasts I cooked ahead of time on the grill but I screwed them up and the chicken is dry and tough but that’s my fault, not the recipes’.
  • I’ve easily eaten more fruit this week than I have in the past 15 years. I’ve been doing five 400 calorie meals so I’ve had to add 100 calories to each one and many times it’s a fruit. The vanilla berry protein smoothie is pretty tsasty!
  • It’s hard to get used to eating 5 small meals a day and I have to take a freakin satchel full of food so I can eat THREE meals at work.
  • The two muscles that are hurting the worst are the backs of my thighs (hamstrings?) and the muscles under my underarms – no idea what muscle that is, but damn they are sore. Every time I move, some muscle complains about it. Never been this sore – ever. Epic moment of the day – it hurt to pass gas.

Just 59 days to go!