RSS
 

Hobbyist or Professional: Many Ways to Learn

29 Aug

I’ve found I enjoy the hobbyist design as mental stimulation more than I do trying to earn a little extra money on the side.

I have a few sites that I improve periodically through design, and slowly but surely traffic has increased enough to make it worth continued development.

On the job I wear many hats, its nice to focus on just purely design when I’m at home in the evenings…or coding for fun, rather than trying to fit a square peg in a circular hole day after day.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Retweet
 
Comments Off

Posted in UI Design

 

Sending UI Messages in PHP

29 Aug

I am using sessions to save UI messages that can be shown to the user after an action has been formed (ie: logging in).

My initial problem was that the message persisted, while attempts to unset the session message didn’t allow for any messages to be shown.

Here’s how I solved the problem:

class Application {
...
  public function getMessages() {
    $messages = $_SESSION['messages'];
    unset($_SESSION['messages']);
    return $messages;
  }
}

First save the messages from the session, then you can delete them out of the session so they don’t persist past the one request.

Here is how I set the proper success or error message in the login function:

public function doLogin($username, $password) {
  ...
  if ( $username == $user->username && $password == $user->password ) {
      $_SESSION['logged_in'] = true;
      $this->addMessage('You are now logged in.', 'success');
  } else {
     $_SESSION['logged_in'] = false;
      $this->addMessage('We were unable to log you in.', 'error');
  }

  return $this->isLoggedIn();
}

I’m using smarty templating for PHP; here is how I get messages into my layout template:

class Application {
  ...
  public function showPage() {
    ...
    $smarty->assign('messages', $this->getMessages());
  }
  ...
}
VN:F [1.9.3_1094]
Rating: 9.7/10 (3 votes cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Retweet
 
Comments Off

Posted in PHP

 

Linux Timeline

29 Aug

Linux Journal has a Linux Timeline starting from August 1991, when Linus Torvalds announced he was doing a free unix clone, up to February 2002.

There are lots of entries, the first few are nice. I was curious what’s been happening since 2002?

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Retweet
 
Comments Off

Posted in Open Source

 

Selling a Book Online

29 Aug

Interesting evalution of Aaron Wall’s seobook.com promotional blog. Problogger.com’s Darren Rowse has a great write-up about selling a product via a blog.

Darren’s apparent success has given us new insight using Aaron’s popular seobook.com blog as a case study.

Some of the topics include analysis of the “creating a common enemy” tactic, building up and knocking down objections with an FAQ, and promoting via an affiliate program.

read more | digg story

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Retweet
 
Comments Off

Posted in Marketing

 

GMail Shortcoming(s)

29 Aug

I recently switched from Yahoo mail to Gmail, because of Yahoo’s 15 filter limit, and their weak spam filtering.

One pitfall I cannot seem to get around with gMail is where my new emails are…

Yes. I know they are in the Inbox.

Because of it’s threaded nature, which sounds like a great idea…I cannot find which emails are new.

The threads do not move up to the top of the inbox when a new email is sent to a thread. It remains in the timeline where ever the original email was, thus over time resulting in new emails on page 2.

If I am not using this gMail properly, somebody please set me straight.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Retweet
 
Comments Off

Posted in Advocacy

 

Google Earth Bomber

28 Aug

Google Earth Bomber Found…

This is rather lucky…a person was looking up his address in Google Earth, and found that the satellite photo used was taken right as a bomber was flying over his house.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Retweet
 
1 Comment

Posted in Humor

 

Free Link Friday

26 Aug

I liked the idea of Free Links Friday from Jason Murphy’s idea, and decided to do the same on my blog.

I’ll provide a link with a one sentence description (written by you)…just let me know the domain name and the sentence.

I’ll have this posted tomorrow on my blog at: www.chovy.com

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Retweet
 
Comments Off

Posted in Marketing