Teach The Net
Home of the Seanybob
  • Home
  • About Me
  • Links
  • My Portfolio
  • My Programs
  • USURP

Archive for October, 2008

Budget

My Programs, c++ No Comments »

I wrote a C++ program to keep track of how much I’m spending… With all the thinking I’ve been doing lately of Cal Poly Pomona vs. Cal State San Bernadino, this has been on my mind a lot.

It’s not optimized. It’s clear, although takes a minute or so to understand. But, for my purposes, it works. I’m adding a download link with the source code, so you can edit it to your specifications if you need something similar.

Extract all the files into the same directory.

Are there other, better ways to manage your budget? Probably.

But I needed the practice in c++ reading and writing to files, and making text file databases.

Download link:

http://seanybob.net/codedownloads/budget/


October 31st, 2008 |



I have such a way with words…

My Comics No Comments »

Click to enlarge.

*sigh*

This was a wonderful night.


October 30th, 2008 |



Latin phrase ftw.

Assorted, Quotations, Reflections No Comments »

“Docendo Discimus.”

One of the most powerful statements I’ve ever heard. Indeed, one of the truest as well.

Docendo Discimus. We learn by teaching.

The entire educational system is corrupt. Kids go, sit in a chair for 2 hours, and listen to a professor talk. Some take notes. Most of the stuff is general knowledge that the kid is not interested in.

It’s wrong.

We learn by teaching. I enjoy programming. How do I progress? Well, I teach myself, I take some classes… and I share my knowledge with others. I try to teach my friends, classmates, random people over the net. That is where I truly learn new things, and totally master old things.

I encourage you, if you are stuck in a learning facility, try using this principle in your life. You will be amazed at how much more you come to know, and how many new things you learn.


October 28th, 2008 |



I miss classical music…

My Comics No Comments »

If anyone has cd’s or mp3 files of classical music, you should send them to me. I am forced to create my own using beeps from a computer in C++.

Click to enlarge.


October 28th, 2008 |



C++ noobs.

My Comics No Comments »

Click to enlarge

Oh man… good times.


October 28th, 2008 |



Bored?

Random (personal) No Comments »

So I started asking a good friend probing questions (as a sort of game) to get to know her better. Every time I give her a ride somewhere (typically once a week) I get to ask her a question. She has to answer – unless she absolutely does not want to answer, in which case she just has to say so, and I’ll ask a different question.

This has proved to be a lot of fun. I’ve learned a lot about her, and moreover, she’s learned more about me (she makes me answer my own questions too :D ).

Perhaps you can put some use to these.

1) You are the last human alive on earth. Something (disease, comet, whatever) wiped out everyone else. What do you spend your time doing?

2) I’m in a car accident. I’m rushed to the hospital, where you meet me. The doctors say I have no chance to live, and will die in a couple minutes, just enough time for you to say one last thing to me. What would you say?

3) I mysteriously vanish, and no one (my family, roommate, friends) knows what happened. What would you do?

4) You’re in a car crash. Metal from my car is intertwined with your spine. The doctors say you have no chance of living through the night unless… they perform an experimental operation, that will give you a 75% chance of living, though it will paralyze your arms and legs forever. Moreover, the operation costs $500,000 and is not covered by your medical insurance, so your family will just have to go into debt. Your family and doctors say the choice is up to you – do you want to go ahead with the operation?

More to come.


October 27th, 2008 |



Hugs.

My Comics No Comments »

Click to enlarge.

Semi-true story. Nuff said.


October 26th, 2008 |



Risk: World domination?

My Programs, c++ No Comments »

I played risk yesterday with friends, and we got in a debate (as always) whether it’s better to attack or defend.

I’ve always thought it really didn’t matter, that the odds were so close that chance played a bigger part than any minor advantages one side had.

I decided to write a program to figure out which side (if any) has an advantage in Risk. Here are the results…

First, I ran a test doing about 100 attacks. As you can see, it varied, but it looks like attacker may have a VERY slight edge. Chance screwed everything up though, either side could easily win.

So… now for 10,000,000 attacks…

So my thoughts were basically correct. For low numbers, it really doesn’t matter. However, as you can see from the previous image, attackers do have a slight edge.

Download source code/exe:
http://seanybob.net/codedownloads/risk


October 26th, 2008 |



Casino games: Craps odds

My Programs, c++ No Comments »

So I wrote a c++ program to determine the odds of winning the game of craps at a casino.

At first, I ran about 10,000 games per test. I found the overall winner to be somewhat random… sometimes the player would emerge with about 53% wins, sometimes the house would get about 54% wins.

So I stepped it up.

I ran it 10,000,000 games at a time. Finally, my results were final and unchanged. House wins (naturally, casinos couldn’t operate otherwise).

I did the 10,000,000 game test run 6 times, to make sure my results were valid. Here’s a screenie:

House won: 30,440,854 of 60,000,000 games (50.735%)

So a player has a 49.265% chance of winning.

Of course, various betting strategies alter the amount the player wins…

Interesting.

Download for source code/exe:
http://seanybob.net/codedownloads/craps


October 25th, 2008 |



Talk faster.

My Comics No Comments »

Click to enlarge.

You ever noticed this? You never think to say certain things until it’s… too late.


October 24th, 2008 |



Previous Entries
  • You are currently browsing the Teach The Net blog archives for October, 2008.

  • Categories

    • -Personal (135)
      • My Comics (23)
      • Programs I Use (2)
      • Quotations (85)
        • Assorted (17)
        • Bible (11)
        • C. S. Lewis (44)
        • Douglas Wilson (8)
        • George MacDonald (4)
      • Random (personal) (9)
      • Reflections (21)
    • -Programming/Coding (75)
      • AutoIt v3 (3)
      • c++ (4)
      • Call of duty (3)
      • CSS (3)
      • Design (1)
      • HTML (3)
      • Javascript (6)
      • LISP (1)
      • My Programs (31)
      • Php (20)
      • Regular Expressions (1)
      • Robotics (9)
      • Security (1)
      • Visual Basic (24)
    • CSUSB (15)
      • HUM 319 – Myths (7)
      • Mus 180 (8)
    • Other (29)
      • Easter Eggs (4)
      • Funny Stuff (8)
      • Hacks/Tricks (13)
      • Random (Other) (4)
      • Roll Towards Me (Band) (1)
    • USURP (3)
  • Archives

    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
  • Recent Posts

    • Random Post: Regeneration is a slow process…
    • Women were not an afterthought.
    • The Cutting Edge
    • Micah 7:18-19
    • Micah 6:8
    • Selected quotes from “A Grief Observed”
    • A very good bed
    • God is good; He is not evil.
    • Merely blank paper
    • Two types of faith.
    • Relative and Absolute will

Copyright © 2010 Teach The Net All Rights Reserved
RSS XHTML CSS Log in
Wp Theme by n Graphic Design
Powered by Wordpress