Sunday, January 10, 2010

sweetlilmre's tips to make your dev life suck less, part #1

Disclaimer: The title might suggest that I invented or this originated this stuff in some way. I certain DID NOT :) Just some good reading I have done lately. And thanks to JonH for some of the links and discussion.

Dependency Injection:

JonH (a mate of mine from work) and I have been having some very interesting chats on Dependency Injection, Inversion of Control and other bits and pieces.


What this had made me realize is that there are some very simple development concepts (dressed up in frightening terms like Dependency Injection!) that really make your life easier if you practice them. Some of this stuff you pick up as a dev as you go along but formalizing the concept as soon as possible is only going to help you.

So start off by reading this:

http://stackoverflow.com/questions/130794/what-is-dependency-injection

Then ask yourself if you understand what Design by Contract means and how using interfaces applies and to and works with DI to make your life easier. Then have a look at this:

http://googletesting.blogspot.com/2008/07/how-to-think-about-new-operator-with.html

Which gives a nice round off to the DI discussion. This also seems like a great blog to follow generally.

This is all building up to unit testing and mocking, but we'll get to that later :)

-(e)

Sunday, November 22, 2009

Under the radar

I bought myself one of these little toys: USB LED Message Board
Disgusted with the app that came with it (can you spell CPU hog?) I reverse engineered the app and have posted source code to talk to it here.

This is written in C#, if you are one of those "I'm too hardcore to code in C#" people, you should be hardcore enough to translate it into C/C++... :)

In other news I have been working furiously with the Vice dev team (what a great bunch!) to get the SDL dingo port ready as an official port from the next (2.2) release. Hopefully we'll make it.
(Big shout-out to Nojoopa for all his help)

As far as the zipit goes, not to much to tell. Once the building is complete on the house and I can move back into my study, I'll get hacking on it again.

-(e)

Monday, September 21, 2009

Slackness

Well yes, very slack am I. But I've been really busy in the background!!

Anyway lame excuses aside, I have a fullspeed port of Vice working on the Dingoo and am working with the Vice devs to integrate support into the main Vice tree, which is nice.

I see that much has been happening on the Zipit front! Hopefully Aliosa27 will get hold of me and I can merge his/her (?) work into the SVN tree. Come on people, get onto the #zipit channel on freenode so that we can co-ordinate all of this! :)

Again apologies for all the slackness, RL has me by the curlies.
-(e)

Tuesday, September 8, 2009

Just managed to get an alpha port of Vice (the C64 emulator) onto the Dingoo A320.
I am awaiting news approval on gp32x.com but you can get it to try it out: here.

I have managed to fix a few more issues with it since the alpha release and hope to have a beta shortly. MarbleMadness at 50fps with sound (sometimes :)) ROCKS!
-(e)

Friday, July 3, 2009

kexec

Well wadda know! Suddenly kexec is working.
I have a feeling this has something to do the the IRQ cleanup I sorted out in the main machine file a while back. So great news for kernel testing! It will certainly make my life easier in the future.

This also opens up the way for a small flash based user land that can kexec into a SD based kernel and full userland.

Linux... gotta love it! :)
-(e)

Tuesday, May 26, 2009

WIFI patch seems to fix issues

Well, wouldn't you know it, this patch http://lists.infradead.org/pipermail/libertas-dev/2009-May/002412.html seems to fix the Z2 WIFI driver timeout / failure issues.

Thanks to GPSFan for spotting this.

Now I can stay connected to my AP for hours. Great Success!
In other news, the battery driver is in, along with LED triggers and some other nice bits.
I should have a new kernel and userland up in a short while.

Oh, and if you haven't already, check out the wiki on OpenZipit I've added some info.
-(e)

Monday, April 13, 2009

New OE build!

Please disregard the previous posts about building OE.
I now have a project set up on SF.

Quick start:

  • In a term in your home folder:
svn co https://openzipit.svn.sourceforge.net/svnroot/openzipit/oe
  • Then:
cd oe
  • Then:
make
  • Then:
wait :)

Read the README, it has a lot of important info about building sucessful images!

More soon
-(e)