ImageProfile update and other news
-
Sorry for my absence of late, but I've been distracted with another little project...


I have almost finished working on an update to ImageProfile, which I expect will speed up an already-fast process, plus make it even more accurate than before. I'll post again when it's ready.
-
What Ruby did you use...

-
Wow! Congrats Dad & Mom, He's a handsome youngun'! I know your proud, Is this your first? Rick Jr.?
-
3eighty, thats the geekiest thing i've heard in a long time! and congrats on the kid, years of fun to look forward to

-
Yep, our first.
As for the code we used, I think it looked something like this

class BabyBoy attr_read ;eyes, ;hair, ;name attr_accessor ;weight, ;height def initialize(name,eyes,hair,weight,length) @name = name @eyes = eyes @hair = hair @weight = weight @length = length cry(10,1) end def eat(food="milk",qty) while qty<@@full eat(food,qty+1) end if rand(10) < 6 poop else pee end end def poop qty = rand(30) case qty when <11 puts "not much" cry(2,2) when >10 && <21 puts "quite a bit" cry(4,2) else puts "major blowout" cry(8,2) end end def pee qty = rand(30) case qty when <11 puts "not much" cry(2,3) when >10 && <21 puts "quite a bit" cry(4,3) else puts "serious waterworks" cry(6,3) end end def cry(volume,reason) action = getAction until action==reason PlaySound("cry.wav",volume) action = getAction end sleep(rand(240)) end def sleep(time) x=0 while x<time puts "sleep quietly, look precious" x+=1 end reason = rand(5) cry(3,reason) end def getAction case (gets action) when "feed" return 1 when "change messy diaper" return 2 when "change wet diaper" return 3 when "burp" return 4 when "sleep" return 5 else return rand(5)+5 end end end #class BabyBoy BabyBoy.new("Ian", "blue", "brown", 7.pounds, 19.inches)Now if that's not the geekiest thing you've ever heard, you hang around too many geeks

Thanks everyone!
-
He he hee...

Congrats! -
Herzlichen Glückwunsch, Rick
Nice to see all under developement, well done
-
Danke schoen, Burkhard.
Hast du gehaben eine gut Reise für Arbeit?
Leider wir nicht sprechen für ein lange Zeit, und mein Deutsch heute ist nicht gut.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement