Category Archives: Tips

Sports Betting Basics

Betting the spread: If the Bengals are favored to win by 7, they are listed as -7 on the betting sheet. That means, if you bet on the Bengals to cover the spread, they have to win by more than 7 for you to win the bet. If they win by exactly 7, the bet pushes and you get your money back. If they lose or win by less than 7, you lose the bet. Similarly, if you bet on a team that is +3.5, the team you bet on either needs to win or lose by 3 or less for you to win the bet.

Most bookmakers give 11-10 odds. So you bet $11. If you win, you get $21 back (your $11 plus $10). If you push, you get your $11 back. If you lose, you get nothing.

Over/Under Line: You can also bet on the total number of points that will be scored in a game. If the Over/Under line is 51.5, you can bet the “over” and win if 52 or more points are scored in the game. Odds given are still 11-10.

Money Line: Suppose you just want to pick the winner of a game, and you don’t want to worry about the spread. You can bet on the money line. The favorite in the money line is listed with a negative value, for example, -130. In this case, you bet $130 to win $100. If the favorite wins, you get $230 back (your $130 plus $100). If the favorite loses, you are out $130. The underdog is listed with a positive number, e.g. +200. In this case, if you bet on the underdog, you are betting $100 to win $200 if the underdog wins.

Baseball: Because the outcome of a baseball game depends heavily on the starting pitchers, the starting pitchers are listed with the bet. If either of those pitchers does not end up starting the game, your bet is a push and your money is returned.

Parlay: A parlay is a selection of two or more bets, all of which must win for the parlay to pay off. In horse racing, you will often see this as the “Daily Double” or something similar. If your parlayed bets are separate in time (one after the other), you typically get better odds by making the first bet and then re-betting all of your winnings on the second bet, as opposed to wrapping them in a parlay.

Teasers: Teasers involve you betting against a modified spread on two or more games. For example, suppose the Colts are -8 favorites and the Bengals are -3 favorites. A 7 point teaser involving the Colts and Bengals would have you bet on the Colts at -1 (-8+7) and the Bengals at +4 (-3+7). So you are given 7 points on top of the spread for each game, but you have to win against BOTH modified spreads to win the bet. If either game pushes on the modified spread, the teaser bet pushes.

sports_betting_logo

Life Tips- How to Win at Monopoly

monop

I’m a little hesitant to post this, because Monopoly is my favorite board game and I like to win. But here are two great webpages with way too much quantitative information about probabilities of hitting spaces on the board and rolls to recoup an investment:
Probabilities in Monopoly by Truman Collins
How to Win at Monopoly by Tim Darling

Here are a few of my strategies:
-Ideally, be the first to get a monopoly. Any monopoly, though the ones on the second side are preferable. Build 3 houses ASAP on each property.
-Trade. Always trade. (I also employ lots of trading in fantasy football). Be willing to give up bit pieces to get monopolies. Or even to get pieces that give you the CHANCE of picking up a monopoly. Be willing to give expensive monopolies to people that are cash-poor if it gives you a monopoly you can build on.
-Railroads are only good early in the game, in my opinion. Trade them later on for anything that increases your chance of a monopoly.
-Until <5 properties are available, get out of jail ASAP. After that, never pay to get out of jail early. -I mortgage more bit pieces than the average player to get cash to build houses. -Try to be the person who knocks others out of the game, because then you get their property, which is almost always valuable, even it it's mortgaged. Position yourself in the end game to knock people out. -Sometimes it's wise to trade a bit piece for cash if it both gives you needed cash and starves someone who has an expensive monopoly of cash to build with. -Know which properties others are likely to hit with their next roll. Build there if possible.

Life Tips- Watch Pixar Movies

pixar

Maria and I are of the opinion that they (Hollywood) don’t make movies for us anymore. We dislike the vast majority of adult movies. Most of them turn out to be vulgar, overly violent, pornographic, full of bathroom humor, or lousy sequels.

My suggestion is to watch animated movies, particularly those by Pixar. While they’re made for children, they’re full of jokes for adults. There are some silly childish gag scenes, but for the most part, I’m really impressed by the movies. They’re really funny and sometimes quite emotional.

Or perhaps I’m just seven years old.

Code Monkey Monday- Setting Up Self-Version Control

I program a lot. Mostly by myself. Sometimes at the office and sometimes at home. Last week, I suggested you set up Dropbox to store your personal files as you move from home to work. This week, I’ll show my solution to version control on these programming files.

While I do program by myself most of the time, version control keeps me from being an idiot and messing up my projects. It saves versions every time I “check in” my code and allows me to revert to a previous version if something goes wrong. I learned version control with Subversion, so I will be using that here. I know Git and Mercurial are also popular, so you may want to check out those instead.

I downloaded Subversion to both my work computer and personal laptop. This allows me to check in files from Windows Explorer by right-clicking on them. But first, we must set up a repository. Go into your Dropbox folder and create a folder titled “Repo”. Right-click this new folder and click TortoiseSVN->Create Repository Here.

Also in Dropbox, you are going to check out your code twice. Once from your personal computer and once from your work computer. I will explain why we check out two sets of the code in a couple paragraphs. Create a folder in Dropbox called “Repo-Checked out from home” (or work if you’re at work). Right-click on this folder and select SVNCheckout. The URL of your repository will be something like “file:///C:/Users/computerName/Dropbox/Repo”. Do a Fully Recursive checkout from the HEAD revision. Do the same thing at both work and home, adjusting the last word of the folder name accordingly.

This will set up your checked out code folders to have sub-folders “branches”, “tags”, and “trunk”. I’m working by myself, so I store all my code in the “trunk” sub-folder. Create a folder in “trunk” for each project and store your code in there. When you want to check in, right-click on the project folder and select “SVN Commit”. This will send your code to the Repo. When you next change computers, you’ll need to right click on the “Repo-Checked out from home/work” folder of your location and select “SVN Update”. This will update the files in this other repository with your work from the other location. Always update/commit from the correct folder on the correct computer.

I use two repositories like this because I use a development environment (Eclipse) that makes you select your workspace. I select one of the checked out code folders for home and one for work. If I ever lock my computer with Eclipse still running, I cannot select that same folder to be my workspace in Eclipse from another computer. So I can’t have both computers using the same checked out code folder as workspace if I plan on ever leaving Eclipse open when I travel. Having two folders, one for work and one for home, gets around this issue.

Code Monkey Monday- Dropbox for moving files between home and work

I got frustrated by the unreliability of IU’s shared drive in the fall. I also got tired of forgetting files at home or work when I needed them at the other location. So I took the plunge and set up a Dropbox account. I can now store all of my files on Dropbox and not worry about bringing them with me everytime I go home. I downloaded the desktop application to my work computer and personal laptop, which automatically synchs any updates and keeps me from having to go to dropbox.com every time I want to access a file. This works well for personal and homework files; I doubt it would be advisable for anything proprietary or confidential.

Next week, I’ll show how I set up version control in my Dropbox so that I have version control on all my programming files.

Life Tips- Do What You Can, Then Let It Go

We have a lot of defined deliverables in our lives– work that comes with a deadline. And you bust your ass to create a good product, produce good work, and line yourself up for rewards. Which is great. But remember that once your deliverable is presented/turned in/sent into the ether, there’s not much more you can do. Don’t fret about the results. Let it go.

Frozen-Sing-a-Long-Let-It-Go1

Worrying about the deliverable’s reception doesn’t do anyone any good. It makes you stressed and it annoys your co-workers that have to listen to you.

This is not to say that you shouldn’t do all you can to position your deliverable in a good place. You should. But all the accessory stress that comes with worrying about the fate of the deliverable should be avoided at all cost. After all, who has time to worry? Go work on your next project.

Life Tips- Start Early

I had a saying as an undergrad: “As time to the deadline goes to zero, my productivity goes to infinity”. This is how I lived back then. There’s a good chance that I didn’t start any homeworks or projects until the night before they were due. Not one. On more than one occasion, I was finishing papers within minutes of when they were due. But everything got done on time and I got really good grades.

So why start early? I succeeded pretty well as an 18-22 year old by starting at the last minute. Well, three main reasons.
One: It’s stressful to work against the deadline all the time.
Two: I didn’t do my best work. This didn’t matter much in undergrad courses, but does matter for most things in life.
Three: It’s hard to work and live with other human beings and procrastinate all the time. In undergrad, I largely worked and lived independently. Now, I have bigger projects with more people involved. And I live with my fiancée, Maria. And it’s not fair to all these people to be selfish with my time and start at the last minute.

I still procrastinate, but I’m light-years ahead of where I was a half-decade ago.

The trick, besides starting early, is avoiding “acceptable inefficiency” when not working against the deadline. Without a deadline to motivate myself, I find myself working less efficiently than I could be. This inefficiency seems acceptable because no noticeable problems arise. But by spending more-than-necessary time on a project, the unseen problem of less available time arises. Less time for other projects, less time for leisure. So start early, but don’t let the lack of deadlines hurt that peak efficiency you used to have when you battled deadlines.

dont procrastinate
(image from http://www.pausecutplay.com/blog/2013/4/14/dont-fucking-procrastinate-rules-of-a-creators-life.html)

Code Monkey Monday- Other Versions for Python Packages

If you program in Python on Windows, you know that there are a variety of versions of Python. Version 2.7 is still the standard, but the 3.x versions are probably getting better. You also need to worry about whether you are using 32-bit or 64-bit Python. Whenever you want to install a library, you need to be sure to get the library version that matches your Python version. That’s impossible half the time if you are using the standard package download site, whatever that may be. The developers of the library may or may not offer your version. If they don’t use your version and can’t be troubled with testing all the versions, then they won’t offer it.

The best work-around that I’ve found is a site by Christoph Gohlke. He offers unofficial Windows binaries for Python packages. There, you will typically find the version of the package that matches your Python version. Usually 32-bit and 64-bit options are available for recent releases of Python. Be sure to check there if you ever need a hard-to-find version of a package. It’s way easier than building it yourself.

Life Tips- Bouncy Ball Chair

Your desk job is slowly killing you. Sitting all day in a chair is bad. Bad for posture, bad for health. While there are many possible solutions, I’m trying out sitting on a 75” stability exercise ball (bouncy ball for short) this summer.

bouncy ball

At first, it was uncomfortable and made my lower back tired with all the balancing. A week in, however, I don’t feel any pain and really enjoy the alternative chair. My hope is that the balancing and bouncing eliminate some of the effects of sitting all day. Even if they don’t, it is undeniable that I am more active with a bouncy ball chair. Being active is good. I use a weighted, stable ball that doesn’t roll away when I get up. If all goes well, I will use the chair when I move back to my school office in the fall. Maria uses a bouncy ball chair at her job at IU as well.