Project Timer Mac version

The project timer I made a bit ago now has a Mac version available. I also updated the Windows version a little bit. I hope it’s useful!

Downloads

flash_timer-mac-0.1.zip
flash_timer-win-0.1.zip

Let me know what bugs you find, how to duplicate them, etc. Also any additional features you can think of that I may never get to. Thanks!

Flash Project Timer

A project timer is something I have been needing. I have trouble keeping track of hours for projects I have. I usually don’t worry about time traking for my personal projects, which is good because if I thought about all the time I’ve spent (wasted), I might take up a new hobby. But for contract work and for projects at mediaRAIN, I need to keep track of time I spend on each project. I always forget to write something down at the end of the day, and usually can’t remember how long I’ve spent anyway. So, I made a project timer. It actually is built in Macromedia Flash, and made into a nice executable using mProjector. I have yet to start using it for my projects, but it seems to be working pretty well. I thought I would share it in case anyone else needed something like this. It only works on Windows right now, but mProjector can make executables for Mac, so I’ll look at doing a Mac version soon. I used to have a screenshot of the app here. However, it’s flash, so why don’t I just put the swf up? Pretty small, unobtrusive, and hopefully usable. To use, click on the world icon, enter in a new project, hit enter, and then click the green play button to start timing. You can add as many projects as needed and choose them from the drop down that appears when you click the world icon. The timer also minimizes to the system tray. You can make it stay on top of all applications from the right click menu, as well as close it down from there. It doesn’t use the registry or create any files of it’s own. It only uses the Flash SharedObject (which is basically a cookie for Flash). Also, if it works the way it should, you can look at a projects total time, the time for the current day, current week, current month, or even a custom time period. When you click custom, it will ask you for a start day. You can also put in an end day by adding a dash and another full date (e.g. “14/11/2005-18/11/2005”). You may download the following: flash_timer-mac-0.1.zip flash_timer-win-0.1.zip Hope it helps!

ooCommerce Help

We are calling for developers who would like to join in on a fun object oriented PHP 5 ecommerce project entitle ooCommerce. Please email me or leave a comment if you would like to be a developer on this project or help in any way. The project is hosted at SourceForge and currently only has downloads for the template system it will be using, Arras Template. Arras Template has a website at www.arrastemplate.org. We (actually just myself right now) hope for this to be a good learning experience for others and are blogging about our design decisions how we are putting it together along the way. This way it can be more of a case study in progress for others to learn in a more of hands-on way about object oriented programming. Anyone is invited to help out, whether they know object oriented programming or not. If OOP isn’t a strong point, then you can just help coding (with guidance if desired). If it is a strong point, then you can help in the design process as well and post some blog posts too. I can do the design, database, classes, and all, but it would be a better project with more minds at work on it. It will also be finished sometime this century. Thank you for your help.

ooCommerce is Official

ooCommerce is now an offical project of Sourceforge. You will not find much there right now, but I did add Arras to the files/downloads area. We will soon get an ooCommerce website up, possibly a wiki, and start documenting our work. An Arras website is also being set up in a similar fashion.

ooCommerce – A Deeper Look, More Decisions

We’ve broken down our system down into some general parts already. Now it’s time to make some decisions on more specific pieces of ooCommerce and break the system down into some main objects.

What’s in our Model

Well, first off, we know we need a database to store all of our store’s data. We’ll put off the database schema for now. But what we do need to decide is what database to use. And if we want to support several databases (which we do), what should we do to abstract the databases so that we use the same API no matter which database we use.

There are a few object-oriented options out there. My favorite is Creole, a PHP 5 database abstraction layer which has a nice interface. There is also PEAR’s DB which I’ve actually never used and have heard good things about. The good things about these are that they’re already built and they are actively developed which means others are fixing the bugs and adding features so we don’t have to. However, they are large, and the API of Creole is more of what Java programmers are use to and not what PHP developers are use to. We could also create our own object oriented abstraction layer. It would be smaller and use the API we want. Much more simple code. What do you think we should do?

The rest of the model would include the following list of objects, plus maybe a few we havn’t thought of yet:

  • Customer
  • Address Book
  • Address
  • Payment (stored)
  • CustomerGroup
  • Order
  • OrderItem
  • PaymentMethod
  • DeliveryMethod
  • Product
  • ProductReview
  • ProductSpecial
  • Catalog
  • Category
  • ShoppingCart
  • Translator
  • Pages
  • Content
  • Administrator
  • Report

There of course will need to be an object type for each method of payment and other additions like that. But I think we’ve got a pretty good layout here. We may think of other things later, especially when we want to add features.

How Will We Control Our Model

The controller part of our system could be pretty simple, or pretty elaborate. It all depends on what we value the most. If we like simple the best, we can just have a bunch of PHP pages that our use will go to, they will run the code they need to run, using the model objects, and then they will pull in a template and output the results. The URLs for these will be the name of the files, plus any parameters passed in the URL. These will be pretty procedural, although we could make them into classes to keep it object oriented. Another option is to push for search engine optimization by building our system with URLs that represent the page being displayed. If we go simple, we will have a “product.php?id=10” or “product.php?name=james_bond_movie” displaying our products. If we choose the more complex controller we would have “products/james_bond_movie” be our URL, which ranks it higher on the search engines. To do this we would need to use mod_rewrite with Apache and set up our scripts to handle these URLs. But it is very do-able. Do we want full-featured, or do we want simplicity? The value of ooCommerce will be higher with better features to it’s users.

Gotta See The View

There are a million and one template systems out there (I wrote the 1,000,001 template system) and most very similar. Smarty is the most popular it seems. And most are similar to Smarty except less features or slower. I happen to be partial to my templating system, Arras, which is different from most. It is also fast, and small, and fun to use, and easy for designers to do design on. So, I would like to use Arras.

So, what are your thoughts? Please give feedback on the following design decisions. We would love to get input.

  • What database abstraction layer should we use?
  • Any additional classes I forgot in the model?
  • Go for a simpler controller, or nicer URLs?
  • Use Arras for the template system or something else?

ooCommerce – The Overall Picture

So, we’re going to build ooCommerce, an ecommerce solution, an open source one. What pieces are involved? What are the major components of the system? Let’s get this organized using a top down approach.

Every ecommerce system has a few major parts in common. One is the catalog. This is where we can browse and search for the products. Then, we have the shopping cart. This is where we put the products when we want to buy them. We have our checkout, which is the process where we can purchase what is in our shopping cart. And lastly, many systems including ours will have a customer account section, where we can view our past orders and get support. Actually, we are fogetting a major part of the system. The administrative section. This can sometimes be the largest section and will help us organize the catalog, oversee orders, configure the system, and all the other administrative tasks associated with running an ecommerce store. Here are the “main sections.”

Main Ecommerce Sections

We will be storing many of the store’s information in a database. So we will need a database package (when I say package, it might be one class or a group of classes, we can figure out which later). We also want to keep the HTML and style of the site seperate from the code as much as possible so that it can change. This is a very important piece that osCommerce has not done well in. It can be very difficult to reskin osCommerce. So we will have a template package. We want to model an actual store in our code for a simpler and easier to code/understand system. This part will be the model and will be the one to interact with the database. Finally, we need something that takes the pages or actions of our store user, puts together the model information and the templates, and gives it back to our user. This will be our controller. So, we have a model, view, controller system we will be making. It will give us greater flexability. Here are the “MVC sections.”

Model View Controller Sections

The MVC (model, view, controller) sections aren’t different from the main sections described above. Rather, they are another way of looking at our system. We will have a customer class (from the model) used in the admin section, the shopping cart section, the order section, and the customer account section. The main sections above indicate the sections of the website, and the MVC sections indicate the different layers of code we will use in the website.

Right now we haven’t gotten to our classes yet. We’ve just been breaking the system up into smaller pieces. These may be organized into folders of classes or they may just be for our own reference.

We have successfully broken down the system one level. We will look at breaking down the system into small parts next time. We are on our way to a successful ecommerce solution.

« Previous Page — Next Page »