Simple "Beer" Calculator

Other topics - beer-related or not.
Rabbitz
Posts: 48
Joined: Thursday Aug 02, 2007 12:52 pm
Location: Northern Sydney

Simple "Beer" Calculator

Post by Rabbitz »

Hi Chaps & Chappettes,

As the weather was pretty ordinary today, in Sydney, I spent the day indoors and I came up with this pretty simple calculator.

http://www.zip.com.au/~cswarren/BeerCalc.zip

If you feel inclined have a look and give it a go and let me know whether it is right, working, bug ridden etc etc etc...

If you want the source you are welcome to it on one condition:-
Don't take the p*ss out of the code :)

I have used several sources for the maths, although they look ok I am open to suggestions on better sources if the results you get don't tally with known good data.

Rabz
"Alcohol, the cause of and solution to all of lifes problems"
H.J. Simpson
User avatar
wambesi
Posts: 107
Joined: Wednesday Apr 11, 2007 9:24 pm
Location: Sydney

Post by wambesi »

Hey Rabbitz,

Looks ok to me but then I am not that experienced in the HB scene yet.

One thing I am doing though is writing my own software for all my records, calculations etc as I prefer to do stuff like that myself and would like to build the Cals, Kj and Carbs into it, would be interesting would you be able to send/post the code or the formulas?

Cheers
Kevnlis
Posts: 3380
Joined: Tuesday Jul 10, 2007 5:15 pm
Location: B-Rat
Contact:

Post by Kevnlis »

I would recommend never downloading a file that is posted on a forum. VERY bad idea!
Prost and happy brewing!

Image
O'Brien Gluten Free Beer
Rabbitz
Posts: 48
Joined: Thursday Aug 02, 2007 12:52 pm
Location: Northern Sydney

Post by Rabbitz »

Hey Wambesi,

It is a c# app (on .net2, FWIW)

The source is at http://www.zip.com.au/~cswarren/BeerCalcSrc.zip

Most of the formulae are here http://hbd.org/ensmingr/

Kev,

Sure it can be but there are many ways to protect yourself and prove the condition of the software...
Try here :
http://virtualbox.org/
Create a sandboxed OS, which if infected can easily be dumped and re-cloned with little risk to the under lying O/S.

Rabz
"Alcohol, the cause of and solution to all of lifes problems"
H.J. Simpson
gremlin
Posts: 23
Joined: Wednesday Apr 18, 2007 4:44 pm
Location: Brisbane
Contact:

Bloody homebrew nerds!

Post by gremlin »

Heh! I too write my own piece of s/ware to keep track of my brews...

I've noticed lots of programmers and linux geeks are homebrewers.
Some so extreme they even have graphs from GNUplot showing data collected by several temp sensors in their brew fridge along with a telnet interface (very cool :P)

I've come to the conclusion that homebrewing is a popular hobby for nerds. :P
'In the old days they brewed more basically, is it OK to drink it'. Polite answer 'Yes but we've improved the taste'.
User avatar
wambesi
Posts: 107
Joined: Wednesday Apr 11, 2007 9:24 pm
Location: Sydney

Post by wambesi »

I tend to do it with alot of stuff here at home, I used to be in the IT scene and do some basic programming for smaller clients but got out of that as I prefer it too much as a hobby than a profession, just started to get annoying - which was not good!

My brew software is "never complete" though, always finding something else to add into it!

It really is so easy these days though, especially with the MS express edition programming tools available for free download.
Rabbitz
Posts: 48
Joined: Thursday Aug 02, 2007 12:52 pm
Location: Northern Sydney

Post by Rabbitz »

What would be cooler would be a plot of:
CO2 Partial Pressure above the wort
CO2 Saturation in the wort

These could be mapped against SG or Degrees Plato of the wort to establish when fermentation peaks and truly ends.

These could be plotted real-time through a simple webserver interface

(Geeks Unite)

Rabz
"Alcohol, the cause of and solution to all of lifes problems"
H.J. Simpson
User avatar
wambesi
Posts: 107
Joined: Wednesday Apr 11, 2007 9:24 pm
Location: Sydney

Post by wambesi »

Rabbitz wrote:Hey Wambesi,

It is a c# app (on .net2, FWIW)

The source is at http://www.zip.com.au/~cswarren/BeerCalcSrc.zip

Most of the formulae are here http://hbd.org/ensmingr/

Kev,

Sure it can be but there are many ways to protect yourself and prove the condition of the software...
Try here :
http://virtualbox.org/
Create a sandboxed OS, which if infected can easily be dumped and re-cloned with little risk to the under lying O/S.

Rabz
Cheers Rabz, will look at it now seeing as the tribe is asleep...ahhh my time!
User avatar
wambesi
Posts: 107
Joined: Wednesday Apr 11, 2007 9:24 pm
Location: Sydney

Post by wambesi »

Funny you mention the web thing too, seeing as I have an access database as the storage system I am going to do an ASP version to put on our family web site - then I can access all my stuff from wherever I am!

Also seeing as work blocks alot of sites I will be able to access my stuff when I have nothing better to do. 8)
User avatar
KEG
Posts: 1682
Joined: Thursday Dec 21, 2006 9:02 am

Post by KEG »

Kevnlis wrote:I would recommend never downloading a file that is posted on a forum. VERY bad idea!
how about just suggesting they virus scan it?

for the information of others, i've DL'd it, didn't even bother scanning it*, ran it, and can guarantee it's ok.


*firstly i suspected nothing, secondly i've been a computer tech for long enough to quickly clean up anything if it's malware.
Image
Kevnlis
Posts: 3380
Joined: Tuesday Jul 10, 2007 5:15 pm
Location: B-Rat
Contact:

Post by Kevnlis »

KEG wrote:
Kevnlis wrote:I would recommend never downloading a file that is posted on a forum. VERY bad idea!
how about just suggesting they virus scan it?

for the information of others, i've DL'd it, didn't even bother scanning it*, ran it, and can guarantee it's ok.


*firstly i suspected nothing, secondly i've been a computer tech for long enough to quickly clean up anything if it's malware.
I feel it best to warn the general public. Take the piss out of me for it...I could care less.
Prost and happy brewing!

Image
O'Brien Gluten Free Beer
User avatar
KEG
Posts: 1682
Joined: Thursday Dec 21, 2006 9:02 am

Post by KEG »

settle down, i wasn't taking the piss :?

just saying how about you just suggest they virus scan it? if i was Rabbitz and i'd spent some time and posted up my work to have someone say "I would recommend never downloading a file that is posted on a forum. VERY bad idea!" would leave me a bit pissed off.

that is all :)
Image
Kevnlis
Posts: 3380
Joined: Tuesday Jul 10, 2007 5:15 pm
Location: B-Rat
Contact:

Post by Kevnlis »

KEG wrote:settle down, i wasn't taking the piss :?

just saying how about you just suggest they virus scan it? if i was Rabbitz and i'd spent some time and posted up my work to have someone say "I would recommend never downloading a file that is posted on a forum. VERY bad idea!" would leave me a bit pissed off.

that is all :)
Obviously the people who know how to do that will ignore what I said. There are however ALOT of people out there that do not know better. I was not picking on Rabbitz or his file, just posting a general warning for all who thought they might want to check it out. I guess I should have been a bit more clear about that. Sorry if I offended anyone.
Prost and happy brewing!

Image
O'Brien Gluten Free Beer
Rabbitz
Posts: 48
Joined: Thursday Aug 02, 2007 12:52 pm
Location: Northern Sydney

Post by Rabbitz »

I can't say I was pissed off or even mildly annoyed :)

At the end of the day it is some "throw-away" code that I knocked together on a wet Sunday arvo. As anyone who looks at the source will see I don't normally code in C# and this was a learning experience. If someone finds it useful, great, if others don't thats great too. Besides I had finished bottling and had put the next brew to bed so I was at a loose end.

As for the "software safety" issue, I guess that I assumed that most people were aware of ways and means to protect themselves, therein lies the problem, I assumed.

Anyhoo, it ain't worth the effort to get all riled up over, and as I said all comments and criticisms are welcome!

Rabz
"Alcohol, the cause of and solution to all of lifes problems"
H.J. Simpson
gremlin
Posts: 23
Joined: Wednesday Apr 18, 2007 4:44 pm
Location: Brisbane
Contact:

Thanks...

Post by gremlin »

Got round to reading the source today, in the search for ideas to steal...
Thanks for the calorie and carb algorithms :P

I noticed the gravities don't account for temperature differences... not that they matter too much.

The other calculation i like to do is guesstimate (plus one or two) how many bottles i'll need for a brew minus the usual 1l wasteage.

One i have yet to crack is how to guesstimate the final color (SRM/EBC) and IBU from a list of ingredients... (Yes i am so nerdy i even have a detailed database of ingredients i have used :P)
'In the old days they brewed more basically, is it OK to drink it'. Polite answer 'Yes but we've improved the taste'.
ryan
Posts: 1177
Joined: Friday Oct 06, 2006 10:15 am
Location: Brisbane

Post by ryan »

All nerds should be wrapped in barbwire and fed to the lobsters. :roll:
pixelboy
Posts: 341
Joined: Tuesday Mar 07, 2006 9:42 pm
Location: Berowra Heights - Sydney

Post by pixelboy »

whose gunna fix yer PC then ryan..

geek brewers FTW :lol: :lol:
ryan
Posts: 1177
Joined: Friday Oct 06, 2006 10:15 am
Location: Brisbane

Post by ryan »

Shit- I never thought of that!
God bless the nerds.
gremlin
Posts: 23
Joined: Wednesday Apr 18, 2007 4:44 pm
Location: Brisbane
Contact:

Post by gremlin »

Yes... bless us indeed, for we know which sicko porn sites you visit... :P
'In the old days they brewed more basically, is it OK to drink it'. Polite answer 'Yes but we've improved the taste'.
ryan
Posts: 1177
Joined: Friday Oct 06, 2006 10:15 am
Location: Brisbane

Post by ryan »

right- get the barbwire out again! :shock:
Post Reply