Web Design. Development. Optimization. RSS 2.0
 Thursday, July 06, 2006
If anyone is interested in a short tutorial on how to solve those Japanese-inspired Sudoku puzzles, I have written and published an e-book on it at Lulu.

How to Solve Sudoku

Only $0.95 as a PDF!
Thursday, July 06, 2006 3:04:38 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
 Wednesday, July 05, 2006

When friends and family ask me, “So, how is the book business these days?”, I have usually answered, “Dunno, I'm retired.”

(For those that don't know, I wrote a few books a couple of years back.)

Book publishing is a brutal business, and authors often get the short end of the stick. Besides earning a lousy $1.30 for each $25 book sold, the last book contract I signed would have given me an advance of about $7 per hour of time invested. That's minimum wage in Canada!

I have had a completed book kicking around on my hard drive for a while. One of the publishers I worked with went out of business before the book could get published. I've been thinking about it for a while, and so I decided to publish it myself.

Check it out at Lulu here. It's called “JavaScript 2.0: Everything You Need to Know”.

For less than $2, you can own an entire copy of this book in PDF format. Or if paper is your thing, it costs $7. The first edition contains only the first chapter, but over the next few weeks I will add more. And certainly within a month I will have the entire book uploaded. And anyone who buys it now (at this low price) will get the whole thing as a PDF free when it's complete.

So please, check it out and let me know what you think.

 

Wednesday, July 05, 2006 12:38:50 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
Technology | The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
 Wednesday, June 28, 2006
I have friends who refer to soccer (football for the rest of the world) as "the beautiful game". This phrase is credited to the soccer-great Pele.

I am not a true soccer fan I guess - I only watch the World Cup. But I have seen bits of every game in the 2006 World Cup. For instance, the goal Maxi Rodriguez of Argentina scored against Mexico. That was a beautiful goal. Off the chest, and onto the left foot and in the net in one smooth motion. Worth replaying again and again.

But more often than not, soccer is not beautiful. It is ugly. It seems to be full of cheaters, and rules that are meant to be bent. It is often a totally unsatisfying game to watch. Disgusting at times.

For instance, yesterday's France-Spain game is a good example. The winning goal was stolen. The French player Henry ran into a Spanish player, and then fell to the ground holding his face although the replay clearly shows his face was never touched.

Of course, the ref gives the Spanish player a yellow card and France has a free kick just meters from the goal. Some lucky bounces of the ball, and it's in the net. With less than 10 minutes to go, the game was virtually over. Spain was robbed.

Now, occassionally people ask "Why doesn't soccer 'take off' in North America the way it has in the rest of the world?". This is why. A game, in the North American point of view, is defined by a very precise set of rules. We employ every reliable means available to ensure the rules are followed.

American Football is known as "a game of inches". The referees employ camera replays from multiple angles to determine if the ball travelled one inch or two. Chains are available on both sides of the field to ensure an exact placement of the ball on each down. Each coach has the ability to "challenge" one or two calls during the game. And the ref can, on his own, go to the instant replay to double-check a call. A single toe touching the sideline can bring a touchdown all the way back up the field for 4th down.

Hockey also uses the instant replay. Did the puck cross the line? The instant replay judge can even call down to the on-ice referee during the next break in play and tell him of something he saw on the tape that the referee might have missed. Hockey players are tough - two players can have a big collision mid-ice, and both get up and keep playing. No diving, no fake injuries, and very little whining to the referee.

Basketball has shot clocks, lines, buzzers, 3-point lines. It's a very precise game as well. Since basketball is a small court, players are in contact much more often and the occasional foul call is made. But basketball is not broken nor corrupted.

Why not soccer? The biggest problem with soccer, as I see it, is the diving. It's a weird thing to watch. How did grown men get so fragile? These men are athletes! Yet, one little tug of a shirt is enough to cause a 200-pound man to fall to the ground clutching his elbow like it had fallen off. Oh the pain! Oh the agony! It gets to the point where the best soccer players are actors, and not goal scorers. They might as well hire Patrick Stewart to run around and pretend to be near death as the pinky finger of an opposing player came within half-an-inch of his forehead.

And the whole concept of "timing". Does the game last 90 minutes or not? With extra time added to both the first half and the second, the game often lasts 100 minutes. But some games don't. In this World Cup, I've seen a goal "called back" by a ref because time was up just seconds before the goal. This not knowing precisely how many minutes or seconds remain is ridiculous.

They need to fix this game. It is seriously broken.
Wednesday, June 28, 2006 1:10:24 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit

When I speculated earlier this week that the Larry Ellison would never be so generous as Gates and Buffett, I had no idea that he would provide proof of that so soon:

Larry Ellison Renegs on Pledge of $100 Million to Harvard

The funny thing is, he pledged the money about a year ago. And last week Harvard was complaining that they still haven't seen the money, and that Ellison stopped returning their calls.

So now Oracle officially confirms that Ellison is renegging. What a snake. Has there ever been anyone LESS deserving that has been so wealthy? (Some of the sleezy-industrialists of the 19th century come to mind, but that was a long ago era.)

People have been saying for years that Ellison has been jealous of Gates. But now that Ellison is falling on the Forbes richest list year after year (at one point, he was #2 I think, now down to at least #9), perhaps Ellison has given up trying to catch him.

 

Wednesday, June 28, 2006 10:37:48 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
Business and Investing | The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
 Monday, June 26, 2006
By the way, look at the following numbers:

* Bill and Melinda Gates Foundation (BMG) currently worth: $25 Billion
* Bill Gates currently worth: $50 Billion
* Warren Buffett currently worth: $44 Billion

Once Buffett has given 85% of his fortune to BMG, and assuming Gates himself will do the same, the foundation will have a worth of...

$104.4 Billion

Which is a staggering sum for a charity to have. Why, invested in a stock that returns a measly 8% a year, the charity gains $8.4 Billion in capital gains per year.

BMG currently gives away money at around $1 Billion per year, so the fund will earn 8 times that in just capital gains! It will soon have to increase spending to an incredible level!
Monday, June 26, 2006 7:20:24 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
 Sunday, June 25, 2006

Given the recent announcement that Warren Buffett plans to give away 85% of his $44 billion fortune, I have to admit to being a little bit jealous.

First, bravo to both Buffett and Gates for their generosity. The number 1 and 2 richest people in the world plan to give away most of their money. That's just amazing. Truly amazing.

The jealousy comes from not being able to do the same myself. I wish I could someday be in a position to make an enormous difference to the world. The Gates Foundation is not only the largest charity in the world, but also is apparently making an enormous difference in the causes it supports. And, after reading Buffett's letters (to the Gates Foundation and his kids' foundations), it's apparent that Buffett wants his money to do the most good it can too.

Honestly, the saddest thing about Gates and Buffett giving away their money is that the people who follow them on the list are not likely to do the same. Can you imagine the self-absorbed Larry Ellison doing the same?

Even Paul Allen, Gates former business partner, seems to be more absorbed with sports teams, yachts, and venture capital investing than charity.

So I kind of wish that their charitable donations didn't count against their net worth, so that two deserving men still sat at the top of the list for many more years to come.

 

Sunday, June 25, 2006 6:33:55 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
The Blogging Life
Del.icio.us Digg Technorati Blinklist Furl reddit
 Thursday, June 22, 2006

I have had the idea for a “web 2.0” application for some time, and playing with Ruby on Rails has spurred me to try a pre-alpha development of it. Make it pre-pre-alpha.

So, first step - a basic database diagram. I decided to use SQL Server 2000 as my database (not MySQL which is traditional in the open source world) because that is what I am used to. I like Enterprise manager, and I work quickly inside it. I found playing with MySQL from the command line too limiting.

I have created 4 tables to start:

First you have categories. Categories contain a number of goals. Goals contain a number of paths. And paths contain a number of steps. This is by no means complete or final, but it's a start.

Now, lets see if I can get a series of web pages set up to manage these four tables and their nested relationships.

By the way, there is a pretty good rails tutorial at O'Reilly OnLamp.

Once I have the database created, and have configured Rails to use SQL Server, I then use ruby to generate the model and component objects for these classes.

What is a model? A model is a data-tier object that represents a database table - it is a class. It provides the basic data-related create, delete, update, and find functionality.

What is a controller? A controller is an application-tier object that publishes a number of predefined (inherited) and custom methods and properties. It is also a class, but it is one level of abstraction above the database object.

Now I can generate the models and controllers separately. You can see what that looks like here and here. But I want Ruby to go that extra step further and generate all the starting code I need for my web app. You'll see what I mean in a second.

You know the old saying, “it's easier to edit than to create“, so I am going let Ruby create the basic HTML and classes needed for my application, and I will simply edit the pages according to the look and feel I want for the site. This pregenerated code is called “scaffolds”, and they are pretty cool. This will generate the models and controllers at the same time.

I will do this for all four of my database tables.

Finally, when I start the ruby web server (“ruby script/server”) and point my web browser to http://127.0.0.1:3000/categories I get:

Which is ugly as sin, but at least it's something to start editing. When I add a few sample categories it gets a bit better:

This is fun. Ruby on Rails is fun.

 

Thursday, June 22, 2006 10:34:47 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [2] -
Demo Code | Ruby on Rails | Technology
Del.icio.us Digg Technorati Blinklist Furl reddit
Archive
<July 2006>
SunMonTueWedThuFriSat
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Scott Duffy
Sign In
Statistics
Total Posts: 470
This Year: 30
This Month: 0
This Week: 0
Comments: 73
Themes
Pick a theme:
All Content © 2008, Scott Duffy
DasBlog theme 'Business' created by Christoph De Baene (delarou)