I watched "Zoom: Academy for Superheroes" tonight, and I have to say, I'm putting it up there just above "Shark Boy and Lava Girl." In case of mistake, I did want to mention that "Shark Boy..." was high on my enjoyment radar. What I found impressive about "Zoom" was the fact that the producers didn't skimp on special effects when needed. I don't remember seeing any wimpy special effects during the whole thing.
And for a final update on the car... perfect! It has been a full week since I repaired the brakes and wheel cylinder and I don't see any leaks at this point. Whoo hoo!
Workwise, I've spent about sixteen hours working on a big inventory program, and I'll guess another few days before finishing. For a big master program, a week. That portends good things for smaller programs!
Thursday, June 14, 2007
Sunday, June 10, 2007
Car Repair - Part Two
'Tis done! I had to disassemble the brakes a few more times during the test phase of the tires - but I think I fixed all of my brake fluid leaks. It is extremely nice to be able to pull up to a stop light and push on the breaks and not have to keep pushing the brakes over and over to push more break fluid into the lines. It does make me pay a lot more attention to the small sounds the car makes... "Is that small knocking sound every time the wheel goes around from changes I've made these last two days or was it there before and I never noticed it?"
I have a new life's ambition - daredevil gymnastics
When I saw the Chinese gymnastics at the boat races a month or two back, I saw some of the kids practicing, and they did some moves just as neat as these, but nothing quite as risky. My favorite move I saw a few months back was seeing the boy lay on the ground on his back with his elbows on the ground and his hands up, and the girl do a hand stand on his hands. At this point, the boy would roll over and over, keeping the girl on his hands. At this point, I can't remember exactly how he managed to do that while on his stomach? I don't even have a video of it. I'll bring a camera next year though!
I have a new life's ambition - daredevil gymnastics
When I saw the Chinese gymnastics at the boat races a month or two back, I saw some of the kids practicing, and they did some moves just as neat as these, but nothing quite as risky. My favorite move I saw a few months back was seeing the boy lay on the ground on his back with his elbows on the ground and his hands up, and the girl do a hand stand on his hands. At this point, the boy would roll over and over, keeping the girl on his hands. At this point, I can't remember exactly how he managed to do that while on his stomach? I don't even have a video of it. I'll bring a camera next year though!
Saturday, June 09, 2007
Car Repair - Part One
Today I took the first big steps of becomeing self-sufficient: I tried to repair my car. Specifically, my back brakes were leaking, so I'm replacing the back wheel cylinders and brake pads. Starting about eleven, and going until 7:30, I managed to do one back wheel. In the process, I stripped screw and broke a break line. The last two, I'm not going to count against my car repair ability, since my overseer was 99% certain the last car repair place I took my car to did it to make it harder for me ( long story, maybe I'll elucidate one day ).
lessons learned from this experience?
1) Estimations on time are always short
2) You can't repair a car and keep your hands clean
3) Even the cleaning materials get your hands dirty
4) Thank my boss over and over for having me get a car repair manual first
5) A car repair manual for a complicated job like this is VERY useful
6) Not having all the tools makes car repair extremely hard
7) I now know how my back braking system works
8) I have a car repair manual for other fixes ( such as air conditioning fan )
9) I still have a long way to go tomorrow for the other side's repair
10) I feel confident that I could repair something if I needed to do so
lessons learned from this experience?
1) Estimations on time are always short
2) You can't repair a car and keep your hands clean
3) Even the cleaning materials get your hands dirty
4) Thank my boss over and over for having me get a car repair manual first
5) A car repair manual for a complicated job like this is VERY useful
6) Not having all the tools makes car repair extremely hard
7) I now know how my back braking system works
8) I have a car repair manual for other fixes ( such as air conditioning fan )
9) I still have a long way to go tomorrow for the other side's repair
10) I feel confident that I could repair something if I needed to do so
Friday, June 08, 2007
Debit, Credits, and Calculator Troubles
The debits and credits aren't so much trouble, but setting up the file access protocol for my program is a bear. I think a solid day would be a big step forward - unfortunately I don't have day.
For work, I've spend the last 12 hours programming a calculator. It's a lot harder than it looks. Most of the time was just trying to figure out how things were supposed to work together. Simple you say? Only a calculator you say? Let me share but one of the problems I had. I STARTED with a simple order of operation, on 3 separate calculators, along with their results. I posted my final version at the bottom.
# - is any number you enter - I tend to use nine because it is the easiest for me to reach.
() - between the parenthesis is the result of the buttons pressed. Try it out on your calculator. See what format you get into. My second boss was also following along on a second calculator and had a different format than listed, but I didn't bother to catalog it, since my boss had already decided on a general format by then.
Casio Calculator
#= (#)
#/= (1/#)
#*= (#*#)
#+= (#)
#-= (#-#)
Window Calculator
#= (#)
#/= (#/#)
#*= (#*#)
#+= (#+#)
#-= (#-#)
Adv Calculator - our old software's calculator
#= (0)
#/= (#/0)(Divide by zero error)
#*= (#*0)
#+= (#+0)
#-= (#-0)
The calculator format my boss chose and I programmed
#= (#)
#/= (#)
#*= (#)
#+= (#)
#-= (#)
Such simple operations vary so much. The more involved such as a double equals, square root, percentage, varied drastically. The "%" especially was loco - though the button looked the same on different calculators, they didn't even do close to the same operations.
For work, I've spend the last 12 hours programming a calculator. It's a lot harder than it looks. Most of the time was just trying to figure out how things were supposed to work together. Simple you say? Only a calculator you say? Let me share but one of the problems I had. I STARTED with a simple order of operation, on 3 separate calculators, along with their results. I posted my final version at the bottom.
# - is any number you enter - I tend to use nine because it is the easiest for me to reach.
() - between the parenthesis is the result of the buttons pressed. Try it out on your calculator. See what format you get into. My second boss was also following along on a second calculator and had a different format than listed, but I didn't bother to catalog it, since my boss had already decided on a general format by then.
Casio Calculator
#= (#)
#/= (1/#)
#*= (#*#)
#+= (#)
#-= (#-#)
Window Calculator
#= (#)
#/= (#/#)
#*= (#*#)
#+= (#+#)
#-= (#-#)
Adv Calculator - our old software's calculator
#= (0)
#/= (#/0)(Divide by zero error)
#*= (#*0)
#+= (#+0)
#-= (#-0)
The calculator format my boss chose and I programmed
#= (#)
#/= (#)
#*= (#)
#+= (#)
#-= (#)
Such simple operations vary so much. The more involved such as a double equals, square root, percentage, varied drastically. The "%" especially was loco - though the button looked the same on different calculators, they didn't even do close to the same operations.
Monday, June 04, 2007
Keeping is Lazy
I'm staying lazy involuntarily. I had a hang nail and went to a podiatrist to get it removed, thus I now have to stay away from strenuous activities that involve toes. Fortunately, by carefully ignoring doctor's orders, I managed to bike six miles yesterday... and walked three today. I did make one small concession to the doctor and wore sandles for both activities. Unfortunately, I had to cancel my trip to blue springs this weekend and skip pain class. This coming weekend, I really want to go to SeaWorld, so I'm going to move my trip to Blue Springs back two weeks. I can't wait to try out my underwater camera in clear water - my earlier pictures were too dark.
In other exciting news: I now know the difference between a credit and a debit without a doubt. Very useful - especially since my job is programming accounting software!
In other exciting news: I now know the difference between a credit and a debit without a doubt. Very useful - especially since my job is programming accounting software!
Wednesday, May 23, 2007
Random Plans
I've officially started my new workout regamin. I was thinking about switching my home workout routine around a bit, making the workout more structured. After a week of mulling it over, I decided to try a new format - compound interest! Every week I'm going to increase the numbers involved by 3% and see how long I can keep up the exercises, but I'm cheating some because I'm starting with an easy 20 of everything: 20 push ups, 20 leg lifts, 20 setups, 20 second handstand, and whatever I can get for curls. This isn't close to a full or balance workout, but I think it will be good enough for an experiment.
What started me thinking about switching my workout was when I learned when I would be going home. I have a little over a month to get in shape for my homecoming. The vacation this time will be for over a week! I want to get my airline reservations finished before the week is out, but it may get put off a bit longer. :-)
I don't have many more random plans to share - I'm heading to WalMart after work to get a CD of some pictures from my camera so I can send them off to a friend. The pictures are of the Cinco de Mayo party... Oooo. I never posted about that. Maybe another day.
One final bit of news to remind my readers that I am a law abiding (cough), honest citizen.
During my last trip to WalMart, I bought StarCraft. I didn't buy it because I wanted to play the game more, but because I have played the *free* versions of the game a lot and I wanted to make restitution.
What started me thinking about switching my workout was when I learned when I would be going home. I have a little over a month to get in shape for my homecoming. The vacation this time will be for over a week! I want to get my airline reservations finished before the week is out, but it may get put off a bit longer. :-)
I don't have many more random plans to share - I'm heading to WalMart after work to get a CD of some pictures from my camera so I can send them off to a friend. The pictures are of the Cinco de Mayo party... Oooo. I never posted about that. Maybe another day.
One final bit of news to remind my readers that I am a law abiding (cough), honest citizen.
During my last trip to WalMart, I bought StarCraft. I didn't buy it because I wanted to play the game more, but because I have played the *free* versions of the game a lot and I wanted to make restitution.
Tuesday, May 22, 2007
Scuba Diving 101
Ta-Da!
I've completed my first open water dive. My class went to Blue Springs and went
down the into the spring... but I get ahead of myself.
The class met at our lovely diving shop at the dreadful hour of 7:00 AM Sunday morning and I carpooled with another person and we all drove down to the spring together. When we got to the entrance, we stood in line to sign a release that we wouldn't take anything, disturb the environment, dive safely, etc. The park only lets in 35 divers at a time so the spring doesn't get too crowded. Of course, if you are a snorkeler or a swimmer, you can walk straight in. We parked at the entrance to the spring, got suited up, learned how to use an underwater compass, and walked a tenth of a mile to the source of the stream. The walk was the hardest part of the whole trip. We're suited up in 5 mil two-piece wet suits, with all of our equipment and extra
weight, and we walked... and walked... The wet suits are meant to conserve warmth in cold water, not in a warm May day in Florida. Everyone was happy to step into the cold spring water.
We got our masks and flippers on and did our skills testing in a shallow area of the spring, only 6 or 7 feet deep. Then we got to suit up and go into the spring depths!
Diving into the spring was an experience. The opening was 6 feet by 20, looking like a big scar in the ground, and we had to swim down against the spring water coming up to reach our desired depth. We swam facing down, and as we went down, it just kept getting darker and darker. There is NO way I would go down a black cavern with black hidden recesses unless I knew it was safe like this one. As we got near our lower limits for this dive, we could continue to look down into the spring openings and we could see other divers practicing their caving skills. More accurately, I could see the beams from their headlights shining around and moving. My description does the experience little justice, suffice it to say, it was great to watch and also highly tempting to drop a small, loose stone to see I could hit the invisible divers below.
I would have loved to have gone deeper, but 55 feet was the limit for this class. We held onto the side ledges or swam around so we didn't continue our free fall into the depths. When we came up, there were quite a few more divers arriving and snorkelers galore! The water was freezing and I have no idea how the snorkelers handled the cold without wet suits. It was pretty cool to see a snorkeler come down 40 feet into the spring and turn around about face level and wave just as he goes up again. :-) I just read this morning, that the deepest unaided dive record (no snorkel or fins ) was just set at 82 feet. At that point, it would be completely black. Along with contortion, hip hop, and Aikido, deep snorkeling is my new goal!
One unexpected problem was when I had a full wet suit on, snorkeling was very hard. The wet suit is mostly small pockets of air, and it was hard getting down the 15 feet necessary to meet the course snorkeling requirements, but the effort of swimming down was worth it. You could swim really fast towards a catfish, and if you coasted the last foot down or so, I could occasionally touch the catfish before he swam off. While scuba diving, I also saw two big crabs. The shell was probably 8 inches across. He was just sitting on a ledge about 25 feet down, just watching us pass him up and down. The swim back to the cars was pretty neat also. I saw two more big crabs and 3 schools a fish. Two of the schools were in the distance to the side and hard to see, but just seeing a wall of silver flashing was pretty cool. I swam towards a third one and got close and saw all the fish. It was a fun trip.
This Saturday we'll be diving a reef in the ocean. Whoo hoo!
I've completed my first open water dive. My class went to Blue Springs and went
down the into the spring... but I get ahead of myself.
The class met at our lovely diving shop at the dreadful hour of 7:00 AM Sunday morning and I carpooled with another person and we all drove down to the spring together. When we got to the entrance, we stood in line to sign a release that we wouldn't take anything, disturb the environment, dive safely, etc. The park only lets in 35 divers at a time so the spring doesn't get too crowded. Of course, if you are a snorkeler or a swimmer, you can walk straight in. We parked at the entrance to the spring, got suited up, learned how to use an underwater compass, and walked a tenth of a mile to the source of the stream. The walk was the hardest part of the whole trip. We're suited up in 5 mil two-piece wet suits, with all of our equipment and extra
weight, and we walked... and walked... The wet suits are meant to conserve warmth in cold water, not in a warm May day in Florida. Everyone was happy to step into the cold spring water.
We got our masks and flippers on and did our skills testing in a shallow area of the spring, only 6 or 7 feet deep. Then we got to suit up and go into the spring depths!
Diving into the spring was an experience. The opening was 6 feet by 20, looking like a big scar in the ground, and we had to swim down against the spring water coming up to reach our desired depth. We swam facing down, and as we went down, it just kept getting darker and darker. There is NO way I would go down a black cavern with black hidden recesses unless I knew it was safe like this one. As we got near our lower limits for this dive, we could continue to look down into the spring openings and we could see other divers practicing their caving skills. More accurately, I could see the beams from their headlights shining around and moving. My description does the experience little justice, suffice it to say, it was great to watch and also highly tempting to drop a small, loose stone to see I could hit the invisible divers below.
I would have loved to have gone deeper, but 55 feet was the limit for this class. We held onto the side ledges or swam around so we didn't continue our free fall into the depths. When we came up, there were quite a few more divers arriving and snorkelers galore! The water was freezing and I have no idea how the snorkelers handled the cold without wet suits. It was pretty cool to see a snorkeler come down 40 feet into the spring and turn around about face level and wave just as he goes up again. :-) I just read this morning, that the deepest unaided dive record (no snorkel or fins ) was just set at 82 feet. At that point, it would be completely black. Along with contortion, hip hop, and Aikido, deep snorkeling is my new goal!
One unexpected problem was when I had a full wet suit on, snorkeling was very hard. The wet suit is mostly small pockets of air, and it was hard getting down the 15 feet necessary to meet the course snorkeling requirements, but the effort of swimming down was worth it. You could swim really fast towards a catfish, and if you coasted the last foot down or so, I could occasionally touch the catfish before he swam off. While scuba diving, I also saw two big crabs. The shell was probably 8 inches across. He was just sitting on a ledge about 25 feet down, just watching us pass him up and down. The swim back to the cars was pretty neat also. I saw two more big crabs and 3 schools a fish. Two of the schools were in the distance to the side and hard to see, but just seeing a wall of silver flashing was pretty cool. I swam towards a third one and got close and saw all the fish. It was a fun trip.
This Saturday we'll be diving a reef in the ocean. Whoo hoo!
Saturday, May 05, 2007
Cinco de Mayo Party
Today is Cinco De Mayo! The fifth of May is a big celebration of Mexico's victory over Napoleon III's army. American helped out and let any serviceman leave the army if they wanted to help in the Mexico's fight against the French.
Actually, it's only the fourth, but I moved the time ahead on this post so my history lesson would be relevant for the day. Since I've moved the post date ahead, I'll stay in the future and tell you what's happening at 10:00 AM on Cinco De Mayo!
I've just gotten back from pain class. Except for the one week we worked on wrist locks, it hasn't be too painful, but I enjoy using that name for the class. I'm taking a book on scuba diving down to south-east Orlando. I need to read a chapter and turn in homework at my next scuba diving class. So far, I've met my snorkeling requirement, and I've put on the diving equipment and stayed under for over 20 minutes in the deep end of a pool. Very cool. Some lessons I've learned from my class so far: A wet suit is way, way cool, Being able to clear out a facemask full of water, while still under the water is wonderful, and fins are hard to use.
I'm off to visit a friend in another half hour. I've just finished with my post-Aikido shower and will reach the destination by 12:00 hopefully. Her older sister is holding a large Cinco de Mayo party and we're all going to go out to eat at a Mexican restaurant and stay the rest of the day and overnight at their "party house". From McM's description, the house is huge and has all sorts of water equipment - boats, sailboats, skis, canoes... and stuff. I'm looking forward to the visit/party.
Actually, it's only the fourth, but I moved the time ahead on this post so my history lesson would be relevant for the day. Since I've moved the post date ahead, I'll stay in the future and tell you what's happening at 10:00 AM on Cinco De Mayo!
I've just gotten back from pain class. Except for the one week we worked on wrist locks, it hasn't be too painful, but I enjoy using that name for the class. I'm taking a book on scuba diving down to south-east Orlando. I need to read a chapter and turn in homework at my next scuba diving class. So far, I've met my snorkeling requirement, and I've put on the diving equipment and stayed under for over 20 minutes in the deep end of a pool. Very cool. Some lessons I've learned from my class so far: A wet suit is way, way cool, Being able to clear out a facemask full of water, while still under the water is wonderful, and fins are hard to use.
I'm off to visit a friend in another half hour. I've just finished with my post-Aikido shower and will reach the destination by 12:00 hopefully. Her older sister is holding a large Cinco de Mayo party and we're all going to go out to eat at a Mexican restaurant and stay the rest of the day and overnight at their "party house". From McM's description, the house is huge and has all sorts of water equipment - boats, sailboats, skis, canoes... and stuff. I'm looking forward to the visit/party.
Wednesday, May 02, 2007
10/29/05
Here is an old post that was in my "drafts" folder for my blog. I remember this day. I'll add one little detail, every time we've played the arcade at the theater, he has always won. And this day was no exception. :-) I'm proud of you Dad.
--------------
Earlier today, as I went to see Zorro on the big screen, and in the car ride with my dad, I was asking about what work he was doing at the moment and I started thinking of all the years and long hours. There were times that he had to stay up very late and get up very early and when we couldn't help him much during those long hours. I'm sure that comes in all businesses, but I was listening to some music tonight and one of the songs recalled this afternoon with my dad, and I hope that one day I have the courage and patience of Dad to stand up and keep working even though I am weary and the work is tiring.
The lyrics are below... My translation: "I said I would avoid trouble, but sometimes trouble can't be avoided, soI'll stand up and meet it head on without flinching, and I know you understand - I remember what you've said"
"I walk away from trouble when I can.
Now please don’t think I’m weak,
I didn’t turn the other cheek,And papa,
I sure hope you understand:
Sometimes you gotta fight when you’re a man. "
--------------
Earlier today, as I went to see Zorro on the big screen, and in the car ride with my dad, I was asking about what work he was doing at the moment and I started thinking of all the years and long hours. There were times that he had to stay up very late and get up very early and when we couldn't help him much during those long hours. I'm sure that comes in all businesses, but I was listening to some music tonight and one of the songs recalled this afternoon with my dad, and I hope that one day I have the courage and patience of Dad to stand up and keep working even though I am weary and the work is tiring.
The lyrics are below... My translation: "I said I would avoid trouble, but sometimes trouble can't be avoided, soI'll stand up and meet it head on without flinching, and I know you understand - I remember what you've said"
"I walk away from trouble when I can.
Now please don’t think I’m weak,
I didn’t turn the other cheek,And papa,
I sure hope you understand:
Sometimes you gotta fight when you’re a man. "
Tuesday, May 01, 2007
IO Language
I have been living this last week in a pleasant fiction: I live in a world populated by regular updates, intelligent conversation, educated topics, and unlimited ice-cream. This pleasant fiction sustained me for a whole day, then I blew the rest of the week in learning a new programming language and researching what makes good language design vs bad language design, pros and cons of programming languages, and compilers for making my own language. You may be saying "Boring!", and in truth I often wonder why I find it so fascinating, but I still keep going back to the internet night after night trying to compile, learn, and educate myself about a language that will probably have no real application in ANY job I have, but leaning an entirely new language is quite informative.
In fact, for the last month, I've been growing frustrated with the rigidity of C++ and was looking for something similar to Squeak without the big footprint. The only languages I had heard about that might be able to help were dolphin (smalltalk variant) and Self. Neither of which are currently freely available for the windows system. My conclusion: develop my own programming language. I've had been making quite good progress until I ran across the IO programming language, and everything I was planning had been implemented and then some!
Warning: The following post will be technical and boring to those un-initiated into the world of computer programming. I also don't hold out much hope if this being interesting to those who are interested in programming.
IO Language: How is it different from C++ and Java? Let's do a quick comparison. C++ and Java are class based languages using function calls as the main process of execution. The IO language is completely different. The closest similarity I've seen is the language Self. (Javascript is also a similar language, but I don't know enough about it to vouch for that). IO is a prototypical, message based language. Everything is an object, and a message is required to do anything. There are no function calls - which makes for a very powerful threading pardigm. Hello world is an example of the language; just keep in mind that this is an interpreted language that a virtual machine translates (like Java).
"Hello World!" println
prints: Hello World!
Wasn't that cool? Let's try a larger, more typical example using obvious procreate a generic object we can use. the clone message create an exact copy
Hat := Object clone // create a "Hat" object
Hat size := 8 // size & 8 are Number classes
Hat refit := method( newSize, // we create a function here
Hat size = 9
)
"Hat size started out at " print
Hat size println
"Hat size after refit is " print
Hat refit
Hat size println
The output:
Hat size started out at 8
Hat size after refit is 9
Remember - even though the code looks like it uses function calls it doesn't. Let's take a look at the last line: Hat size println. Hat is an Object. size is a message sent to Hat which has a result of evaluating the code in the "size" slot which has a final value of the Number object 9. println is a message sent to Number which prints a number on the screen. You may say, "What does it matter? function calls and methods end up do the same thing." Ha. You've never worked with threads in MFC then. :-)
I would have given up on this language except for two breakthroughs. My first breakthrough came around hour six in trying to get IO to do things beyond simple assignments and methods: I managed to get the addons (like OpenGL) working! 3 hours later, I was ready to give up. I really, really, really wanted to be able to do a simple console application. And I found it. I'll post the answer below, but first I just have to explain my genius ( random luck) in figuring it out. I'm looking at the online reference for IO, and I see a core prototype called CLI. It was undocumented and I didn't have the source in the download I had, but no worries! The IO language provides self inspections. I can print ANY io code used/declared in the current object. I'm looking through the various functions and I see about 5 lines of code that composes the main loop to the entire program. Turns out that CLI is the main window! I quickly copied the CLI code and made my own, simple, easy, short console application template that does not depend on any addons! The cumulative effort of 9 solid hours of research and grunt work:
//Do the prototype creation and setup here
stdout := File clone standardOutput
stdin := File clone standardInput
while(true,
write("Your next wish? ")
line := stdin readLine
if(stdin isAtEnd, writeln; Lobby exit)
// Do actions here depending on user's typing
)
My next goal: implement Legends11. Legends11 is an unpublished game that my brother got for me about 10 years ago. It was text based, short (under 4 hours), simple, and fun. I've played it though 5-10 times and I still enjoy playing it.
Hint: doFile("filename.io") is a lifesaver if you decide to try out IO
In fact, for the last month, I've been growing frustrated with the rigidity of C++ and was looking for something similar to Squeak without the big footprint. The only languages I had heard about that might be able to help were dolphin (smalltalk variant) and Self. Neither of which are currently freely available for the windows system. My conclusion: develop my own programming language. I've had been making quite good progress until I ran across the IO programming language, and everything I was planning had been implemented and then some!
Warning: The following post will be technical and boring to those un-initiated into the world of computer programming. I also don't hold out much hope if this being interesting to those who are interested in programming.
IO Language: How is it different from C++ and Java? Let's do a quick comparison. C++ and Java are class based languages using function calls as the main process of execution. The IO language is completely different. The closest similarity I've seen is the language Self. (Javascript is also a similar language, but I don't know enough about it to vouch for that). IO is a prototypical, message based language. Everything is an object, and a message is required to do anything. There are no function calls - which makes for a very powerful threading pardigm. Hello world is an example of the language; just keep in mind that this is an interpreted language that a virtual machine translates (like Java).
"Hello World!" println
prints: Hello World!
Wasn't that cool? Let's try a larger, more typical example using obvious procreate a generic object we can use. the clone message create an exact copy
Hat := Object clone // create a "Hat" object
Hat size := 8 // size & 8 are Number classes
Hat refit := method( newSize, // we create a function here
Hat size = 9
)
"Hat size started out at " print
Hat size println
"Hat size after refit is " print
Hat refit
Hat size println
The output:
Hat size started out at 8
Hat size after refit is 9
Remember - even though the code looks like it uses function calls it doesn't. Let's take a look at the last line: Hat size println. Hat is an Object. size is a message sent to Hat which has a result of evaluating the code in the "size" slot which has a final value of the Number object 9. println is a message sent to Number which prints a number on the screen. You may say, "What does it matter? function calls and methods end up do the same thing." Ha. You've never worked with threads in MFC then. :-)
I would have given up on this language except for two breakthroughs. My first breakthrough came around hour six in trying to get IO to do things beyond simple assignments and methods: I managed to get the addons (like OpenGL) working! 3 hours later, I was ready to give up. I really, really, really wanted to be able to do a simple console application. And I found it. I'll post the answer below, but first I just have to explain my genius ( random luck) in figuring it out. I'm looking at the online reference for IO, and I see a core prototype called CLI. It was undocumented and I didn't have the source in the download I had, but no worries! The IO language provides self inspections. I can print ANY io code used/declared in the current object. I'm looking through the various functions and I see about 5 lines of code that composes the main loop to the entire program. Turns out that CLI is the main window! I quickly copied the CLI code and made my own, simple, easy, short console application template that does not depend on any addons! The cumulative effort of 9 solid hours of research and grunt work:
//Do the prototype creation and setup here
stdout := File clone standardOutput
stdin := File clone standardInput
while(true,
write("Your next wish? ")
line := stdin readLine
if(stdin isAtEnd, writeln; Lobby exit)
// Do actions here depending on user's typing
)
My next goal: implement Legends11. Legends11 is an unpublished game that my brother got for me about 10 years ago. It was text based, short (under 4 hours), simple, and fun. I've played it though 5-10 times and I still enjoy playing it.
Hint: doFile("filename.io") is a lifesaver if you decide to try out IO
Thursday, April 26, 2007
Back and Caught Up
This is my final act to catch up with being away. I keep my room barely clean, refrigerator slightly stock with water, and bed always made. The first thing I did was make my bed. My rush to leave early Wednesday morning meant I didn't give myself time to make my bed or put any clothes away from the packing I did the night before. My room looked like someone had searched it and hadn't put anything back.. The second thing I do is to take everything off the floor and put it on the bed. Third third major project was to fill up the refrigerator with water. With the warm temperature here, I go through 3/4 a gallon a day. I still haven't cleaned off my bed, but the floor is a good friend.
My sister wants to redesign her website, so I was volunteered by my mom to do the redesign. The refresher on HTML has been worth it. Before yesterday, I didn't remember how to start a new light or how to make a table. Today I do, and I sent off a sample to sister M be examined for quality. She had already given me some rough drawings, but before I spent too much time implementing rough ideas, I wanted sister M to see and to change the design to suit her.
It looks as though I won't finish everything I wanted to finish tonight. I wanted to share some thoughts about the hypothetical questions I posed last post. After an hour on the phone with brother J, mulling over the issues myself for a while, and hearing mom's rationals in person with longer/more in-depth explanations, I've changed my opinion for my first response, and it shed a bit of light on how I see the world. :-) It is likely of little interest to anyone except family, but the best way to know and understand what I believe is to have myself be able to explain my beliefs to someone, and hopefully I'll be able to do that tomorrow evening. Maybe I'll even explain clearly! That would be a refreshing change!
My sister wants to redesign her website, so I was volunteered by my mom to do the redesign. The refresher on HTML has been worth it. Before yesterday, I didn't remember how to start a new light or how to make a table. Today I do, and I sent off a sample to sister M be examined for quality. She had already given me some rough drawings, but before I spent too much time implementing rough ideas, I wanted sister M to see and to change the design to suit her.
It looks as though I won't finish everything I wanted to finish tonight. I wanted to share some thoughts about the hypothetical questions I posed last post. After an hour on the phone with brother J, mulling over the issues myself for a while, and hearing mom's rationals in person with longer/more in-depth explanations, I've changed my opinion for my first response, and it shed a bit of light on how I see the world. :-) It is likely of little interest to anyone except family, but the best way to know and understand what I believe is to have myself be able to explain my beliefs to someone, and hopefully I'll be able to do that tomorrow evening. Maybe I'll even explain clearly! That would be a refreshing change!
Monday, April 16, 2007
2 Days Until Home
Whooo hooo! Home in 2 days. 36 hours and I'll be on the plane!
The real reason for this post is an article I read today in Discovery magazine. It made me think quite a bit about the moral judgments I make. These questions are NOT trick questions, and don't spend time on either one, because in real life you wouldn't have time to carefully decide.
Question one: A train is chugging down a traintrack ( big surprise ). If it continues, 5 people on a track farther down will die. If you throw the track switch right now, 1 person will die on the other route? What do you do?
Question two: 4 critically injured patients just came into the hospital and won't live much longer. They all need different and unavailable transplants to survive, but they would survive if they had transplants. A person that matches all five donors is about to walk out the doors. (Talk about long odds!) Do you take the healthy person and kill him to save all the others?
Now for the humdinger. Why did you choose what you chose?
The real reason for this post is an article I read today in Discovery magazine. It made me think quite a bit about the moral judgments I make. These questions are NOT trick questions, and don't spend time on either one, because in real life you wouldn't have time to carefully decide.
Question one: A train is chugging down a traintrack ( big surprise ). If it continues, 5 people on a track farther down will die. If you throw the track switch right now, 1 person will die on the other route? What do you do?
Question two: 4 critically injured patients just came into the hospital and won't live much longer. They all need different and unavailable transplants to survive, but they would survive if they had transplants. A person that matches all five donors is about to walk out the doors. (Talk about long odds!) Do you take the healthy person and kill him to save all the others?
Now for the humdinger. Why did you choose what you chose?
Monday, April 09, 2007
Early Bird Gets The Worm
I don't normally bog about work, but I think today would be a good day to make an exception. Rarely does time just "fly by" while working. Time usually passes, meanders, and sometimes plods while working. It doesn't seem to matter what type of work I'm doing or if I enjoy it, the passage of time is something I can't judge very well while working. Last Thursday, I was working hard, didn't check the time and didn't look for lunch since I didn't feel too hungry. Eventually, I pull back, spread my arms, and give a wide long yawn. I tried to guess the time... 12:00? 1:00? 3:00? It seemed as though I had been working forever. 9:30. I couldn't believe it. I was ready for the day to be about done and the clocks only said 9:30. Ugh.
Today though, I started at my normal 8:00 time. I started working, researching, tracking down bugs. Things I would consider fairly routine or even boring. I check the time after a little bit and it was already 11:30! I hadn't done much work, very little productive programming and it was already 9:30. I went for lunch, came back and worked on the exact same issues and the clock yet again jumped forward to 4:00.
My net productivity for those seven hours: I commented out 10 lines of code. The code I commented out were lines of code spread throughout a single file that I had added about 7 months ago. Not only did I get rid of the progress I thought I had made back then, but I also didn't add any features to the program. Essentially, I cut the cost that I myself produced, and got paid for it. :-)
Fortunately, most days I'm a little more beneficial to the company.
I had a nice talk with my mom today. We chatted for a half hour about movies, websites, nephews, and vacations. Based on my mom's recommendation, I am planning to see "Meet Joe Black" whenever I get a card to the local video rental store.
Time to do a little clean up of my paperwork and then an early bedtime.
9 more days until I go home!
Today though, I started at my normal 8:00 time. I started working, researching, tracking down bugs. Things I would consider fairly routine or even boring. I check the time after a little bit and it was already 11:30! I hadn't done much work, very little productive programming and it was already 9:30. I went for lunch, came back and worked on the exact same issues and the clock yet again jumped forward to 4:00.
My net productivity for those seven hours: I commented out 10 lines of code. The code I commented out were lines of code spread throughout a single file that I had added about 7 months ago. Not only did I get rid of the progress I thought I had made back then, but I also didn't add any features to the program. Essentially, I cut the cost that I myself produced, and got paid for it. :-)
Fortunately, most days I'm a little more beneficial to the company.
I had a nice talk with my mom today. We chatted for a half hour about movies, websites, nephews, and vacations. Based on my mom's recommendation, I am planning to see "Meet Joe Black" whenever I get a card to the local video rental store.
Time to do a little clean up of my paperwork and then an early bedtime.
9 more days until I go home!
Saturday, April 07, 2007
Tennis and Biking
Ah, another lovely Saturday comes to visit. Later this evening, I may be going to visit my cousins who are down here for vacation time. They said they would call me and let me know when a good time to visit popped up. My guess is I'm not going to get a call today: they are getting in today, and after an early start, a long drive, a long wait at the airport, flying, getting baggage, driving to their hotel, unpacking, and planning, the last thing they want is MORE things to do. :-) I hope they enjoy their time in Orlando.
I hope everyone enjoyed my pictures of SeaWorld. I was going to go back this Sunday after church, but when I realized it would be Easter weekend and prime vacation time, I decided it wasn't worth the crowds. Instead, I'm going to play tennis this afternoon and read a book. Don't know what book yet, but any book will do. Any suggestions? My living room has close to 2500 books and the library is just down the street, so if I can't find it in time for this weekend, I'll try it for next weekend.
I may go bicycling tomorrow. Depending on the weather and what I feel like, I may take a ride on the "nature" trail near my house. I don't know why it is called a nature trail. The 10 or so miles of it I've driven by are all by the road and next to housing developments. Not very naturish.
I hope everyone enjoyed my pictures of SeaWorld. I was going to go back this Sunday after church, but when I realized it would be Easter weekend and prime vacation time, I decided it wasn't worth the crowds. Instead, I'm going to play tennis this afternoon and read a book. Don't know what book yet, but any book will do. Any suggestions? My living room has close to 2500 books and the library is just down the street, so if I can't find it in time for this weekend, I'll try it for next weekend.
I may go bicycling tomorrow. Depending on the weather and what I feel like, I may take a ride on the "nature" trail near my house. I don't know why it is called a nature trail. The 10 or so miles of it I've driven by are all by the road and next to housing developments. Not very naturish.
Monday, April 02, 2007
Weekend Adventures
The weekend is done, and it was great. I'll start where I left off: Saturday. I went to the Regatta, arriving 10 minutes late. By then I had missed the karate/tai chi demo. Next was yoga dancers... all under 10 I'm guessing. No wonder they could stretch! But the next show was by far the best, the Chinese Acrobats - or the Dragon Legend Acrobats as they are billed in the Epcot center.
It was by far the neatest part of the day. In the Epcot center, I'm sure I would be sitting 50-100 feet away. At the regatta, I was only 10 feet away. I didn't get any pictures. I thought it was just a local group - I was really wrong. In a way, I was happy I didn't have my camera. It meant I could just watch without worrying about my video moving or losing track of the action - I had a thoroughly enjoyable time. My favorite part of the show were the twin contortionists. They weren't as flexible as others I've seen, but they did their whole routine on one hand! They had a five minute routine, and it was all done standing on their hands. I didn't see them waver or look like they lost their balance in the slightest.
Sunday: I went to Aikido class on Sunday morning (so early... why so early!), then headed off towards Seaworld. I enjoyed my time there. From the other times I've been there, I've figured out which of the up-close 'wet zones' get the least water, and then positioned myself there. I got some nice pictures, which are below, along with my geo-caching pictures on the way home. I found one geo-cache. The other one was in a park, off a trail, and I couldn't find it anywhere. As you can see in the picture of the one I found, the caches can be quite small.







It was by far the neatest part of the day. In the Epcot center, I'm sure I would be sitting 50-100 feet away. At the regatta, I was only 10 feet away. I didn't get any pictures. I thought it was just a local group - I was really wrong. In a way, I was happy I didn't have my camera. It meant I could just watch without worrying about my video moving or losing track of the action - I had a thoroughly enjoyable time. My favorite part of the show were the twin contortionists. They weren't as flexible as others I've seen, but they did their whole routine on one hand! They had a five minute routine, and it was all done standing on their hands. I didn't see them waver or look like they lost their balance in the slightest.
Sunday: I went to Aikido class on Sunday morning (so early... why so early!), then headed off towards Seaworld. I enjoyed my time there. From the other times I've been there, I've figured out which of the up-close 'wet zones' get the least water, and then positioned myself there. I got some nice pictures, which are below, along with my geo-caching pictures on the way home. I found one geo-cache. The other one was in a park, off a trail, and I couldn't find it anywhere. As you can see in the picture of the one I found, the caches can be quite small.
Friday, March 30, 2007
Saturday Plans
Today - I covered the software support department by myself today. The two others who normally cover that area went out of town. I only called them twice during the day for questions... I only had three calls, one of which was already expected and planned for.
After work, I went to "Meet The Robinsons". It is a Disney production, all computer animated, and it was very good. The hero goes forward in time to regain his confidence as an inventor and as a result has to fix the time stream because of his actions. It was a standard plot outline, but some of the smaller quirks were hilareous. The singing/mobster frogs were extremely funny, but the T-Rex would have been my favorite if he had been given more screen time. A big spoiler ahead: The main focus of the story, the kid, never finds his mom.
The River Regatta start was this evening, and the movie finished early enough that I could see the last few activities: a fire dancer and Polynesian dancers. It was very enjoyable to sit back and watch and listen. In fact, the picture on this blog is the opening ceremony.
I was going to go to Sea World Saturday, but the Regataa's entertainment tomorrow looks far too fun: Martial Arts/Tai Chi Demo, Yoga Dance, Chinese Acrobats, Para Jumpers, Jazz/Moder Dance, and Belly Dancing - all lined up from 10:00 to 1:00. With all that going on, I'll go to Sea World tomorrow.
Thursday, March 29, 2007
Going To *Bed* Early
I had to get the title right. I didn't notice I had mispelled the last post until I was ready to post this one.
Now that I've corrected a vital detail, I'm going to let you in on a non-secret: I'm going home! I bought the airline tickets today and will be heading home near the end of April. I'm going to be seeing my whole family; with the exception of my brother... but don't worry, it just means I'll be able to flip him farther when I see him - or I miss a block and lose a tooth. But no worries, I'm sure my brother would never injure my beautiful teeth. ;-)
Time to read some proverbs and go to b-e-d.
Now that I've corrected a vital detail, I'm going to let you in on a non-secret: I'm going home! I bought the airline tickets today and will be heading home near the end of April. I'm going to be seeing my whole family; with the exception of my brother... but don't worry, it just means I'll be able to flip him farther when I see him - or I miss a block and lose a tooth. But no worries, I'm sure my brother would never injure my beautiful teeth. ;-)
Time to read some proverbs and go to b-e-d.
Wednesday, March 28, 2007
Going To Be Early
I've found a geocache! I signed in the log and now I just need to visit geocaching.com and post my visit. The contents of the container were pretty neat. There was a spool of thread, and odd shaped paper clip, a weird quarter, plastic frog, plastic ring, mechanical pencil, and an Olympic medal (a souvenir). If I'm still down here in a month, I want to go back and put something of my own in it.
Any ideas of what would make a good trademark item? It should be unique, small, under 2 dollars, and memorable - just as a rough guideline. Feel free to ignore any of the guideline, so please suggest something! I can't think of anything.
Any ideas of what would make a good trademark item? It should be unique, small, under 2 dollars, and memorable - just as a rough guideline. Feel free to ignore any of the guideline, so please suggest something! I can't think of anything.
Monday, March 26, 2007
Three Lessons Learned: GPS Style
Three Lessons To Live By:
1. A GPS is dangerous when driving - I tried to help, but the GPS just couldn't reach the gas pedals.
2. Geocaches are dangerous - right by a restaurant with an open meat freezer. Uhg. Apparently vultures like to hang around that spot.
3. Enter coordinates EXACTLY. Being a mile off isn't fun, especially when walking.
I received my GPS this evening. UPS delivered about 6:00. It's been fun to use so far. Wednesday, I plan to make a good day of it. I'll work extra tomorrow and get off early Tuesday and go bicycling. With a 10 mile route, I think I can get 5 caches. There aren't any major hills to speak of in Florida, so it won't be too hot. (The weather yesterday was in the 80's )
I'm off to be soon. I'll try to read another 30 pages of "The Bourne Identity" before I go to bed. Have a good evening!
1. A GPS is dangerous when driving - I tried to help, but the GPS just couldn't reach the gas pedals.
2. Geocaches are dangerous - right by a restaurant with an open meat freezer. Uhg. Apparently vultures like to hang around that spot.
3. Enter coordinates EXACTLY. Being a mile off isn't fun, especially when walking.
I received my GPS this evening. UPS delivered about 6:00. It's been fun to use so far. Wednesday, I plan to make a good day of it. I'll work extra tomorrow and get off early Tuesday and go bicycling. With a 10 mile route, I think I can get 5 caches. There aren't any major hills to speak of in Florida, so it won't be too hot. (The weather yesterday was in the 80's )
I'm off to be soon. I'll try to read another 30 pages of "The Bourne Identity" before I go to bed. Have a good evening!
Sunday, March 25, 2007
Weekend Activities
I've gone to Aikido class twice at this point. I don't think I've been quite this sore since I last did a hard weightlifting session; but instead of biceps or quads, it's my shoulders, hips, gastrocnemius', toes, wrist, elbows, neck..... they were GOOD classes.
Playing tennis didn't help the soreness factor much. At least I put up a better fight against my boss this time. I actually won a sets. It's a little harder on the joints than racquetball I think - but I haven't had much experience for comparison yet.
Playing tennis didn't help the soreness factor much. At least I put up a better fight against my boss this time. I actually won a sets. It's a little harder on the joints than racquetball I think - but I haven't had much experience for comparison yet.
Subscribe to:
Posts (Atom)