Thursday, December 31, 2009


I've been working real hard over the course of the break trying to get the entire program up to my standards. Debugging and programming is real fun. I find it a lot like solving a puzzle.

With this project, since most of my team members are on their break I've decided to make use of this precious time to work on the project. One major gripe I have is how we've split the work. Personally I find that because of that (I worked on IO_Edit and VEdit), I did not learn much of (for example) IO_Form because I wasn't required to write it. I only understand how it works now because I spent two whole days fixing IO_Form. Well here's a screenshot of the current condition of the program. I know Ljubo knows the program inside and out because he forced himself onto every aspect of the assignment... ah lesson learned, lesson learned :)

Saturday, December 5, 2009

UPdate and references

Jon Worked on VEdit Today and added some stuff to it. BTW, some references to IO_EDIT:: and IO_VEDIT::

REFERENCES:

ON IO_EDIT:
if(_framed){
val = io_edit(_str, _owner ? _owner->getTop() + _row + 2 : _row + 1,
_owner ? _owner->getLeft()+ _col + 2 : _col + 1, _fieldlen, _maxdatalen, _insertmode, &_offset, &_curpos,0);
}else{
val = io_edit(_str, _owner ? _owner->getTop() + _row : _row,
_owner ? _owner->getLeft() + _col : _col, _fieldlen, _maxdatalen, _insertmode, &_offset, &_curpos,0);
}
return val;

IRC CONVO:
from what I've seen of _Validate
canton: I commited my changes to io_vedit(), so take a look
ok thanks
it points to a validator function
and that function can be anything as long as it takes a void pointer and a IO_Form reference
thanks northWind
then that function returns a boolean representing whether the data pointed to by the void* was found to be "valid" or not
-->| t0mmyw (n=tom@net1.senecac.on.ca) has joined #seneca
the implementation of this function is left upto whatever class is using IO_Vedit so what it actually is should be of no concern
thats how our IO_Vedit works anyway, if its wrong, somebody please let me know :)
-->| Arlene_Daniel (n=chatzill@net1.senecac.on.ca) has joined #seneca
=-= Arlene_Daniel is now known as adaniel3
thanks that was very clear
canton: I implemented it like that in the code, but I'm not 100% about the 1ist argument for _Validate
canton: any time, sorry for interrupting like that but I figured I could save you a little time
northWind_Tel: you did, thanx

Thursday, December 3, 2009

Meeting today recap:

We had a meeting today with Jonathan, Eric, and Ljubo. We all just worked on Vedit and progress was made:

Worked on Vedit, had some issues with the help (didn't declare it). Works perfectly now. Eric and Jon helped me and when I mean helped me pretty much took over so I give credit to them for this piece of work.

We're goign to meet up on satruday or sunday to continue working on the assignment and prepare for the exam on thursday

c.

Thursday, November 26, 2009

Update on meeting

We had a meeting on Wednesday. We didn't really get much covered as we had to fix a problem, however we've all been working pretty hard individually so we're going to make it for the deadline.

We're going to meet up (some of us) on Saturday to finish up what we have to hand in.

I just started working on the program right now and it seems like it's giving me errors after I updated it. It works fine when i compile it in 'tags' but not in 'trunk'... :(

Tuesday, November 24, 2009

io_edit

Updated io_edit. had trouble for a bit figuring out why i couldn't call owner, turns out io_field had call the header file of io_form.

Saturday, November 21, 2009

btp 300

BTP 300 - Ljubo mentinoed that it was the degree course similar to oop344. I've been working on the workshops and will post the solutions to all of them soon.

I find that oop344 is lacking some of these properties, but then again, I think it's supposed to be more about self-study

Anton

Tuesday, November 17, 2009

Funktion team members

Anton is still in the course

Can't compile

I tried to work on assignment 2. io_menu has a lot of errors, the person who is assigned to the task committed it with errors! You know who you are and I'm calling you out!

Btw. Just j/k, I'm sure this sort of thing happens all the time. And yes I already messaged mr./ms. io_menu about it not compiling

anton

Wednesday, November 11, 2009

IO_edit trublez

Sent this to Jonathan today I'm hitting (naturally) on some rocky road:

Jonathan,

I'm currently having trouble with the bold. For the constructor it states, if it is framed then pass row+1, col+1 to IO_Field. I'm getting errors saying it cannot pass pointer. The other trouble im having is trying to retrieve the value for top in io_frame. As you are aware, top is private :$. so I called the function getTop but I can't do that. We'll talk tomorrow!


//pass to IO_Field Constructor
//if (framed) {
// IO_Field::IO_Field(row+1, col+1);
//}
//else
// IO_Field::IO_Field(row, col);
}

void IO_Edit::display() const {
int Top;
Top = _owner->getTop()+0;

}

Sunday, November 8, 2009

IO_Edit

November 8, 2009

Updated everything onto the repository. Now I'm trying to code

IO Edit PseudoCode:

Create an array of 'maxdatalen + 1 chars' and set IO_Field::_data to point to it

Constructor:

+ "row", "col", and "frameChars" pass directly to the Frames class "top" "left" and "framechars". pass width of (fieldlen + 2) and height of (fieldlen + 3)
+ pass to IO_Field constructor. if framed false: row and col. if framed true: row+1 and col+1

Destructor:

+ if object is marked to be dynamic (it should unless i did the 2nd type of constructor) delete[] character content of data in IO_Field

Display():

+ if IO_Edit is framed call IO_Frame display(). Use: _owner->getTop(), _owner->getLeft() as topOffset and leftOffset arguments.
+ call ciol's io_display() function passing getRow() and getCol() and fieldlen from IO_Field and IO_Edit, respectively

Edit():

+ call ciol's io_edit with corresponding data from IO_Edits attributes
+ ignore Owner argument
+ return value returned by ciol's io_edit

Editable():

+return true;

Set():

+copy incoming str into _data (in IO_Field) up to 'maxdatalen' characters (note: if using strncpy() make sure string is null terminated)

Issue Solved

I had redefined the defaults in the .h and .cpp files.

it should look like this in the .cpp file

IO_Edit::IO_Edit(char* str, int row, int col, int fieldlen,
int maxdatalen, int* insertmode,
bool framed, const char* frameChars)

Issue

I'm getting this error:

rror C2572: 'IO_Edit::IO_Edit' : redefinition of default parameter : parameter 7
1> c:\users\koko\documents\oop344 assignment 2. antons repository\trunk\prj\io_edit.h(12) : see declaration of 'IO_Edit::IO_Edit'

hrmph

it's the consturctor of the class. but ehy?

Friday, October 30, 2009

Open source is communism

Why does that sound so bad? I have read the manifesto and it's pretty good! (for the record I am not a communist though)

Anyways I attended the Open Source Symposium at Seneca today and it was an eye opening experience. There were members from all over the continent speaking about their experience on their open source project. The most interesting speaker was Khalid Baheyeldin. His lecture was on 'Open Source: For fun and for Profit'. Obviously being a student I cannot help but be interested in working anywhere other than in a lousy cubicle! (I still believe in the american dream, even in the age of obama socialism!).

Essentially to earn an income from open source (and this also goes with what Dru Lavigne spoke about) you're going to have to pay your dues. Meaning to spend a year or two volunteering hours on an open source project you're passionate (to gain reputation). An interesting point to note is that you won't gain as much reputation if you did the same for proprietary software (such as if you worked at microsoft on some program) unless you've made the program yourself. Dru pointed out that you've known you made it when work starts finding you, and that you've really made it when you start rejecting work for other more interesting work.

There are a lot of people looking for freelancers, drupal.org has forums with people looking to contract. Also another enlightening moment was when the speakers mentioned that the community needs marketers, designers, and writers. So it's not just coders that are involved in it.

One thing I found surprising was that there were no speakers on open hardware. My passion is in electronics and I would love to meet and learn from people in that side of the community/industry.

Thursday, October 29, 2009

FUNK TEAM IRC MEETING

Recap of todays meeting:

Todo list:

1. get rid of dirs
2. select a ciol lib
3. add/modify/committ my assigned classes
4. create main
5. project file test and committ
6. Upadte repo
7. lubo - assign classes with complete description in wiki
8. fardad - update code and check it

NEVER COMMIT A CODE THAT IS NOT BUILDABLE

more on the team gameplan later...
On Tuesday we had a meeting with the Fardad. 45 minutes turned into 2 hours :$. This is what we covered:

1. Fixing up the repository for a14
2. handing out passwords
3. Tasks for next meeting: each person 'co' the repository onto their own computer
4. someone on the team build the prog.

Friday, October 16, 2009

Sunday, October 4, 2009

figured out how to append. Has to deal with strcpy and a temp. On to the next one!

Friday, October 2, 2009

having trouble appending. .. toggling insert mode. bah. gonna leave it alone for now.

Thursday, October 1, 2009

Serving a Slice of Open Source

I've been doing quite a bit of research on open source in the past few months. I've been impressed with it because it follows the philosophy of community and sharing. Something very opposite to the end result of 'practical' capitalism where money and stake is the goal.

Open source Software is especially popular in the internet age because software is easily distributed and because the result is better in most situations (Firefox vs. IE anyone?) especially when 1 billion new users with 3rd world GDP will be going online in the next decade. Hardware on the other hand is a little different because it's harder to implement. It costs money to develop R&D, takes labour and cost to distribute products, costs to manufacture the copies - unlike software. The most popular open source hardware is the arduino. In short, it's a tiny computer you can program and have it do neat things like controlling a robot. However, there really isn't actually a functional purpose to it. The arduino basically is like a linux kernel. You can create a lot of things with it, but unless you have money your special creation is never going to be used by the masses. The closest thing I can think about is the BakerTweet or the OpenBook . In conclusion, OpenHardware is an entirely different animal compared to OpenSoftware due to the fact that in OpenSoftware all you need is a computer and time.

I've been tinkering with the arduino and being the overachiever I am (unfortunately... only when I'm passionate and focused on something lol!) I created something entirely new. It's called the Tarq and am currently creating a website for it.

A short description: A 'sleeve' you attach to a punching bag. On this sleeve are LED's which flash. It will flash in patterns which are actually intructions on what combinations of punches to throw. It also records your reaction time, and hopefully in the future accurately record the power of your punches. The Tarq has the elements of the Hitmaster and the GoHerman!. But those don't tell you what combinations to throw. Anyone who has ever used the punching bag for any other reason than imagining throwing bombs at their boss knows why it can become extremely boring.

Anyways, so what is a boy to do with no cash and no interest in taking a risk with his first marketable, sellable, possible ROI'able (although very niche) creation? Patents cost in the range of $2k - $18k (design vs. utility patent, lawyers, etc.) and don't provide anything but empty promises. Open source would be the best idea. I may not make any money from this, but at the very least it'll be a good portfolio for myself. Kind of like but not remotely close to what this guy has done (>'.')>.

Many individuals who have an 'idea' tend to become paranoid that someone will steal it. The fact is 9/10 inventions don't receive a positive return. Ideas are a dime a dozen, if you have an idea, work on it and turn it into something real. What you learn from that work is everything and more than what you'd learn in school. One persons creativity can only go so far. Innovation expands exponentially when a collective of brains works together on a problem. After spending over 500 hours on the tarq I want to give it away more than ever. If art is what we're creating, why be selfish? Why not share it? Because green is god... and I'm not talking about this either.

..getting kinda hungry now ;).

- A.C.

Wednesday, September 30, 2009

finishing up io.edit

case DEL_KEY:
for(i= *offset + *curpos; str[i];i++) {
str[i] = str[i+1];
}
break;


wow... lol.

How to look at this assignment:

I've been looking at it through a normal text.editor based program. Whereas, if I were to look at it as manipulating the strings (eg. DEL_KEY is just chomping up the string one at a time depending on what value your cursor position is... hope that made sense) then it becomes a lot easier to work

Monday, September 28, 2009

int io_getch(void)

You must use platform specific and unique non-ASCII values for the keys, and then you must use these specific symbolic names in your definitions.

... hrmm..

Saturday, September 19, 2009

NEW

- ACFUNKTRON