KillerSites Blog

Stefan Mischook

The Millionaire Myth and the Business of Web Design

June 11, 2007

money.gif

This article has something to do with my Business of Web Design video course, so please bear with me!

What I am about to say, will probably get me into some trouble. Yet, it needs to be said because it is true.

In a nutshell: chances are, you will not become a millionaire!

A little background:

There is a popular belief, that if you follow the right steps, read the right books, that you can become a millionaire. The sense you get (from all the books and tv infomercials) is that it’s possible … very possible.

Some facts:

  • Only 1% of Americans make $250 000 / year … let alone becoming millionaires.
  • Something like 85% of self made millionaire live very modest (middle class) lifestyles.

Before I go on, I am not saying that we can’t reach financial independence (I will get into what that means later). Rather, I am saying that if you want to live the life of a movie star, drive around $250 000 sports cars, and live in mansions, then there is a 99% chance that you will NOT make it.

What it takes to become a millionaire:

After doing a lot of research, and having had few millionaire mentors of my own, I’ve found the following to be the keys to making it big:

  • You probably have to work much harder than most people.
  • You will have to be luckier than most people.
  • You will probably have to be talented. Although many times, luck can make up for the lack of talent.
  • You will have to take risks.

There is one thing that (just about) every rich/successful person I have ever spoken to, read about, or watched on TV has said:

that they have been very lucky.

… They had some stroke of dumb luck, that made things happen for them.

So, if you want to base your life on that less than 1% chance you will make the ‘big time’ … then good luck to you! I prefer to work toward the very attainable goal of financial independence.

What is financial independence?

For me, this means that you have more money coming in, than you need (to live comfortably,) … WITHOUT having to bust your butt, or be under massive pressure.

I did this through the web design business (but that’s not the only way,) and it is something that can be reasonably attained, even by reasonably untalented people … people like me!

About Talent:

It’s a sad fact in life, that not all people are created equal when it comes to talent. If boxing (and my broken nose) has taught me anything, it is this.

But it’s not all bad:

It is also true, that each of us can excel in one thing or another (and the trick is to find your talent!) but the fact of the matter is, that if you want to reach the very top of some profession, you need to have that natural talent that makes it easy for you.


What can talentless people do?

Ah, now that’s the trick: realize who you are, and then come up with a strategy!

  1. Find out what your talent really is. You don’t have to be the best (and you probably wont be,) just so long as you are naturally able.
  2. Start doing what you are good at.
  3. Get people around you who can make up for your lack of talent.

In the ‘Business of Web Design’ videos, I teach you the brass-and-tacks of building a home-based web design business, and I also teach the strategy to becoming financially independent.

For example:

You may not be the best coder, or perhaps your design skills suck. Not matter, you can make up for that by leveraging other people and other peoples work (I show you how in the videos,) freeing you to excel in whatever aspect of web design you happen to be good at.

Thanks so much for reading!

Stefan Mischook

www.killersites.com

read more

The Business of Web Design – Video 2

June 3, 2007

Hi,

I just released my second video for the Business of Web Design course:

Business of Web Design: Hardware and Software

It is about 14 minutes and it covers the basics on what hardware and software you need to start a web design business. Along the way, I discus a few basic business concepts that are crucial to any small business.

I am also archiving the videos at www.studioweb.com

Thanks,

Stefan

read more

idea22.com: how to produce a video tutorial

May 28, 2007

Hi,

I’ve put together a PDF document that outlines the process on how to create an effective video tutorial:

How to create a video tutorial

Although I wrote this to help people who want to contribute video tutorials to idea22.com, you will find it packed with a lot of tips on:

  • On how to create effective videos.
  • Software options for creating videos.
  • How to work with both Windows and Mac when creating videos.

Hope you find this useful.

Thanks,

Stefan Mischook

read more

The Business of Web Design

May 22, 2007

I just finished my first video (of a series) that I am calling:

The Business of Web Design.

Being clever nerds that you surely are, I’m sure you’ve guessed that the video has something to do with the web design business.

… You guessed correctly.

This first video provides an introduction to a course that will guide you in starting and growing a home based web design business. That means the course is targeting web designers who have little to no business experience at all.

Some of the topics the course will cover:

  • How to start a business.
  • How to create web design contracts.
  • How to charge clients.
  • How to get your first clients.
  • How to streamline the web design process to make it much more profitable.

… This is just a small taste, but I think you got the picture.

Check out my first video and send me some feedback … does it suck, was it interesting … or boring!

You can find it on my video tutorial site, idea22.com:

Business of web design – introduction

Many thanks,

Stefan Mischook

read more

CSS Menu Templates now on Webshapes.org

April 27, 2007

We’ve now added another category of web templates to webshapes.org: CSS menus.

Check out our web template widget:


You can access the collection of CSS menus here: CSS menus

Thanks,

Stefan Mischook

read more

Video tutorial site idea22.com – public beta release.

April 4, 2007

We just launched idea22.com, a social networking, video sharing site that targets tutorial videos only.


What makes idea22.com different, is that we have built the system to cater to tutorial/training videos.

We are still tweaking the functionality and the UI, but I invite you to take a look:

www.idea22.com

Thanks,

Stefan

read more

Drupal Templates now on Webshapes.org

April 4, 2007

Hi,

I just wanted to announce that we now have several Drupal templates on webshapes.org

You should see more on the system within the next few days, and soon thereafter, there will be templates for other popular CMS’ as well.

If you have any request, please feel free to comment.

Thanks,

Stefan

read more

Matching Columns Script – Update.

February 17, 2007

Hi,

I decided to create another blog post to make it easier to find the updated version of the important matching columns script – it was buried in the originals article’s comments.

Notes:

Updated script by: Jonathan del Mar

I have modified the script to work with multiple class groups also with elements with multiple class names

/*
Derived from a script by Alejandro Gervasio.
Modified to work in FireFox by Stefan Mischook for Killersites.com

Modified to work with multiple class groups also with elements with multiple class names
by Jonathan del Mar (dec-14-2006)

How it works: just apply the CSS class of ‘column’ to your pages’ main columns.

to work with different classes
add

var columns = new Array(’class_name1′, ‘class_name1′…);

by Jonathan del Mar

by default the script will call
matchColumns();
and the default class_name is ‘column’
(see the bottom of this script)
by Jonathan del Mar

*/
matchColumns=function(my_class){

var divs,contDivs,maxHeight,divHeight,d;

// get all elements in the document

divs=document.getElementsByTagName(’div’);

contDivs=[];

// initialize maximum height value
maxHeight=0;
if (!my_class) {
my_class = ‘column’;
}

my_regex = new RegExp(’(.* |^)’ + my_class + ‘( .*|$)’);

// iterate over all elements in the document

for(var i=0;i elements with class attribute ‘container’

//if(/\bcolumn\b/.test(divs[i].className)){
// modified by Jonathan del Mar to match ‘column’ in multiple classes

if(my_regex.test(divs[i].className)){
d=divs[i];

contDivs[contDivs.length]=d;

// determine height for element

if(d.offsetHeight){

divHeight=d.offsetHeight;

}

else if(d.style.pixelHeight){

divHeight=d.style.pixelHeight;

}

// calculate maximum height

maxHeight=Math.max(maxHeight,divHeight);

}

}

// assign maximum height value to all of container elements

for(var i=0;i
var columns = new Array(’class_name1′, ‘class_name2′, …);

to your html header.

read more

Eric Meyer Interview

February 12, 2007

My friends at Lunarpages recently interviewed the well known tech/nerd author Eric Meyer.

Meyer is well known for his CSS books (I’ve read a few) and the books are pretty good overall. Especially the O’reilly titles.

My beef is that CSS hacks are just a bad idea, and Meyer uses his hacks all over his books …

That said, Amy (from Lunarpages) asked me if I had any questions for Eric; being a trouble maker that I am, I asked this question:

Do you regret promoting the use of CSS hacks given the recent issues with IE7 – i.e. that it broke certain commonly used hacks?

Eric: No. I always did my best to be clear that hacks were, by their nature, fragile beasts, and could be broken by a future revision. At the same time, what else could we do? It was either hack around browser bugs, or abandon CSS as a layout tool. Neither was palatable, but the former was less unpalatable than the latter. What I regret is that the hacks were necessary at all.

I find the answer interesting, but I don’t think it reflects the reality of the situation:

There was and is another option: IE conditional comments.

I won’t go in details about IE conditional comments here (just watch the video,) but I have to wonder why Eric and the other web standards proponents did not talk about this solution that easily and effectively solves one of CSS’ biggest failings (in the real world)?

Regardless of that point, it is an interesting interview with someone who has had some impact on web design today.

CIAO,

Stefan Mischook

read more

Writing a standlone, threaded application using Ruby On Rails

January 20, 2007

ruby language logo

Hi,

A little while back I asked my brother (a big Java nerd) to explore using Ruby to rewrite a threaded Java web application – a site monitor.

The results have been really cool so far. So cool in fact that I asked him to write an article on his experience.

NERD ALERT: This article is written for programmers.



Writing a standlone, threaded application using Ruby On Rails

By Richard Mischook

Awhile back I wrote a Java application designed to monitor web sites to ensure they are up and running. The Site Monitor service is hosted on the web and allows a user to sign up and add a site to a database that is routinely monitored by the engine.

When the engine finds that a site is down, a log entry is made and the owner is sent an email letting them know that they might want to look into it; if and when the site is back up, another log entry is made and once again the owner is emailed.

The development of the application took a little longer than expected and alas, has had a number of teething pains. On more than a few occasions we have asked ourselves if another set of implementation choices might have been better, such as a technology other than Java.

In addition, rather than delivering the tool as a hosted service, would it make sense to deliver some sort of standalone application that a user could download and run on their own desktop?

Around the same time I had been messing around with Ruby On Rails which as many of you will know, is a web application framework build on the Ruby scripting language. One of the central promises of Rails is a framework that allows the delivery of powerful results quickly.

The questions then:

  • Could the Site Monitor be delivered using Rails and if so;
  • How long would it take and would it be better than the existing solution?

Requirements

The Java version of Site Monitor is actually reasonably sophisticated and supports a range of features which I will not exhaustively list here.

Instead lets look at the main features we wanted to see in the Rails version:

  • Support for multiple sites checked concurrently, with sites double or tripple checked to make sure they were really down.
  • Support for multiple control sites to verify that the internet connection to the outside world is up
  • Support for multiple notification email addresses and mobile phone numbers (for SMS notification)
  • Configurable by the user with the choices saved to a file that is loaded when the engine is re-started
  • An Ajax-based user interface allowing the user to a) configure the engine and b) capable of displaying engine activity
  • An easy to install application suitable for Microsoft Windows users.

An example of the user interface can be seen in the screen shots. The web interface leverages the Ajax support built into Rails and allowed me to deliver a richer user interface than normally found in traditional web applications

site monitor control panel

In fact as I’ll show later, some limitations in the Ruby threading model made it necessary for me to use the Ajax support in a way that I had not originally anticipated.

The hardest requirements to fulfill were going to be the first and the last:

i) support for concurrent checking and ii) an easy to install application.

Most of this paper will be about how I tried to address the first requirement, but I will discuss the second as well.

site monitor control panel

Concurrency in Ruby

In the original Java version of the application, a timer ran from time to time (say once a minute) and invoked a method to load a list of sites to check from a database. A Java thread was retrieved from a thread pool for each site that required checking; this meant that more than one site could be checked at a time.

This was important because it might take awhile to finish checking a site since we were actually double or tripple checking sites that did not respond (in order to avoid false positives). Without threads, it would take significantly longer to check a stack of sites as each site would be required to wait in line (so to speak) to be checked.

The good news was that Ruby has a threading model and it seemed very easy to implement. The check_sites method below (which is abbreviated for clarity) illustrates the main logic which is essentially:

  • for each site (line 2), spawn a thread (line 3) and execute the block of code from lines 3-17
  • check the site (line 5)
  • if the site does not respond (line 7) and we have verified count number of times that the site is down, let the user know (line 11)

-

1 def check_sites(sites)
2 sites.each do |site|
3 threads < < Thread.new(site) { |mySite| 4 begin 5 ping_site(mySite) # actually ping the site 6 handle_up(mySite, ...) # site is up so let user know IF site was down before 7 rescue ConnectException => c #if here then no response
8 count = count - 1 #count is set to some value above (not shown)
9
10 if count == 0 #log it and send mail
11 handle_down(mySite, ...) #another method that logs and sends email not shown here
12 break;
13 else
14 #check control sites [not shown]
15 end
16 end
17 }
18 end
19 threads.each { |aThread| aThread.join }
20 end

-

Note that there are few key bits missing from the above so don’t expect it to run by itself. That said the principle is sound and means that given an array of sites to check, processing will happen concurrently. But there is an issue that I did not anticipate: any code calling this method will block until all the child threads created in check_sites are done. This is a problem because what I had planned was to define a method like the following:

1 def start_engine
2 # load some sites ...
3 while(true)
4 sites = ... #not shown - code to load sites
5 threads = []
6 threads < < Thread.new(sites) { |mySites| 7 check_sites(mySites) 8 } 9 threads.each {|t| t.join} 10 sleep(30) #sleep for 30 seconds 11 end #end of while loop 12 end

The start_engine method starts a loop that:

  • Loads a list of sites to check (line 4)
  • Creates a new thread and calls the check_sites method with the sites (lines 6 and 7)
  • Goes to sleep for 30 seconds (line 10)

The plan was for the sleep() call to happen immediately after calling check_sites but before all the checking was done, i.e. not block. Unfortunately Ruby doesn't work that way; in fact what actually happens is that the call to sleep() only happens after all the threads in check_sites have finished executing.

The other really big problem is that since the while loop is always running, the Rails server (e.g Webrick or Mongrel) is always blocked meaning it cannot serve any further requests - such as my web browser Ajax call to find out the current status. All of this meaning that I needed another way to do the job done by start_engine, i.e. another way of periodically calling check_sites.

You may be wondering why I wanted to run this in a Rails server at all? One answer is that I wanted to do the user interface as an Ajax-enabled web page but also wanted the user to be able to start the server and have the engine running in the background. Alas this was not going to work.

ruby site monitor interface

I thought for a second that I might need to think about spawning some seperate processes (rather than relying on Ruby threads), but that looked like a lot of work. I did look at using the backgroundrb library (a Ruby library for simplifying distributed, interprocess communication) but it is not supported on Windows (crappy toy operationg system *&&^%$). Instead I decided a compromise was in order.

Using Ajax to Run the Engine

The problem then: how do I replace the start_engine method such that I can get the server code to periodically check my sites (while allowing other stuff to work)? Well the answer simply enough was to embed a Rails periodically_call_remote tag in my index.rhtml page; the tag sends an Ajax request every so often to the server that gets it to call check_sites. In fact I also embedded a second periodically_call_remote tag that refreshes the user interface console so the user sees what is going on.

There is still a problem though: check_sites can still take some time if you are checking more than one or two sites and any fail to respond. While this is happening (the checking), the Rails server will be unable to answer any UI refresh calls (coming from the second periodically_call_remote tag). Still, not the end of the world as this version is meant for a single user checking a very small number of sites. On the other hand frankly, this is not the most elegant solution and one I would like to change.

In fact I did look at trying to spawn the Monitor in a seperate process using a fork call. Unfortunately the implementation on Windows is broken (anyone see a theme developing here?) In fact the Programming Ruby book's section on processes does suggest that support for forking is limited, which is better than the API documentation's thunderous silence on the matter.

Lesson then: Ruby is Unix-centric by default - live with it.

I did try and get around it by installing a set of gems associated with the Win32 Utils project - specifically win32-process. I did have some luck with this but not enough (the main issue having to do with class loading woes).

I do think that there is some potential in this route, but it would require me to spend a bit more time making sure the Monitor code is free of any Rails dependencies. In the meantime my next little project may be to start playing with win32-process to see if I can get it to work the way I think it should work.

Packaging Up the Whole Thing

I mentioned earlier that one of my other requirements was to try and package this thing up in such a way that I could distribute it as a single, easy-to-use windows exe or equivalent. What I was in fact hoping for was the ability of users to download the whole thing without having to install Ruby or Rails or any of the gems used by the application.

Now admitedly this was something of a tall order; but I was led to believe that it was worth looking at given an article entitled Distributing Rails Apps: A Tutorial.

Unfortunately my attempts have not met with any success; in fact when running the various tools I'm not really getting any feedback that indicates what, if anything went wrong, other than the fact that things just are not working (to be fair I only spent about 15 minutes on this). So I have added this to my list of things to look into; in fact it's top of the list since not getting this working will make distribution that much harder. I'll post a follow up if I have any luck on this front.

Conclusions

The application I re-built in Ruby actually works pretty well and the Ajax user interface does what I hoped it would do - even if it doesn't win any beauty contests. But Ruby threading, while easy to implement, suffers from a few limitations such as:

  • When spawning new child threads, the parent thread needs to block waiting for all the little kiddy threads to do their thing.
  • This is made even more of a pain by the fact that the main Rails runners, Mongrel and Webrick, can only handle one request at a time - period. It would be nice if someone could write an easy-to-use proxy that wraps a couple of Webrick/Mongrels so that you can have a single container that supports concurrent requests (yes I know you can do this with Apache but that requires that I do some work when all I want is a development environment that can support say - 2 concurrent requests).

Which brings me to another issue with Rails in general that has nagged at me: its reliance on process-based request handling. Each request has to be handled by a dedicated process which would seem to have the potential for limiting the scalibility of a Rails application.

Now I know that this debate has been raging elsewhere on the Interweb and I must confess I have not looked into it in great detail. At the very least it would suggest to me that anyone designing a Rails application really does need to keep that in mind, especially with regard to managing connections to databases. While that's a side issue, I invite any comments (and pointers) on the matter.

One last thing - my main interest in Rails has been fueled by my ever increasing lack of patience. Not so very long ago I was happy to spend days trying to understand some new API or product that promissed to be the next cool thing. This, some might say, was a prerequisite for becoming a Java J2EE developer.

These days, I have a wife and a baby, TV shows I want to watch, books I want to read - in other words - lots of other things I want to do. I want to get my work done NOW. I want to work with tools that are enablers - rather than impediments.

We're not there yet and truth be told, Rails is very good for developing data-driven green field web applications; but there are limits to what it can do and one wonders if it can (or indeed should) grow beyond these.

References

Programming Ruby: The Pragmatic Programmers' Guide, Dave Thomas

read more