tag:blogger.com,1999:blog-59637158639554957742024-02-19T16:40:08.291-08:00Compiler Funk Sessionacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.comBlogger23125tag:blogger.com,1999:blog-5963715863955495774.post-77072250351508063992010-01-07T01:03:00.000-08:002010-01-07T01:20:14.792-08:00Final Stretch<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieg84xhtWPWnQolLOqr3tX3q12mlFiMZ49sQsO36mGHQ2NGlS0X4BrNbKcxhsFPls7sw2fFYNZe1E_33mM6nqagiJBLJFFjVKrEt9mxojF06JEWsalJTiIpRnUYURhUbBrsH4Ip3Vml71t/s1600-h/Wordtalk%231.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 400px; height: 262px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieg84xhtWPWnQolLOqr3tX3q12mlFiMZ49sQsO36mGHQ2NGlS0X4BrNbKcxhsFPls7sw2fFYNZe1E_33mM6nqagiJBLJFFjVKrEt9mxojF06JEWsalJTiIpRnUYURhUbBrsH4Ip3Vml71t/s400/Wordtalk%231.jpg" alt="" id="BLOGGER_PHOTO_ID_5423925082270144162" border="0" /></a>Ljubo and I were working with CloudScorpion and Northwind at Tel4040.<br /><br />It was exciting to see our progress during the last week before the release of Wordtalk. Unfortunately, our manpower was quite limited (Essentially Ljubo and I in person, and Jonathan on irc).<br /><br />We wanted to hammer out good code, but with simplicity in mind since most of our group members who wrote the classes (they did finish it, but it was left to us to debug<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ6iKcXov0zIZ2HPf_omGb00WPKpS03fxL4O15KRlwHzoONN0bnY1SrIXNdzmTcd7XBZQz4hbP6R_PCscwddQBSKo_IEXOpPTHPqhUyg3B73QExHJHPl3yXO4mEMprE7TquYC8wiWVBX1k/s1600-h/Wordtalk%232.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 261px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ6iKcXov0zIZ2HPf_omGb00WPKpS03fxL4O15KRlwHzoONN0bnY1SrIXNdzmTcd7XBZQz4hbP6R_PCscwddQBSKo_IEXOpPTHPqhUyg3B73QExHJHPl3yXO4mEMprE7TquYC8wiWVBX1k/s400/Wordtalk%232.jpg" alt="" id="BLOGGER_PHOTO_ID_5423925034050704770" border="0" /></a>/test it), we did what we could.<br /><br />One very valuable lesson I learned was that written code (and compiled without errors) does not mean the work is done. That is usually 40% of the work. Getting it to funktion with the other classes and then the entire program is the 60%.<br /><br />Overall I loved oop344. I learned a lot about code and what to expect from my fellow programmers. I'll defintely be wise in hiring programmers a few years from now.<br /><br />this is how WordTalk looks like at this point. the rest is pretty much up to ljubo to work on (saving and adding the form to the file)acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-12722080633490687632009-12-31T13:22:00.000-08:002009-12-31T13:33:09.282-08:00<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiasOXPBkE1nqUbAePW4HYL-TLUqauE5PvqQulQO-k3QjvrPjrGHKPSx5kIbFadhemh4B18zk-fZmaGryxK-i3w5OQc4a8vApmGCQxeq04aZjqUCHaDVJeJ5jZqJnreXdcKpwVPOQd0v-Dm/s1600-h/WordtalkScreenShot.gif"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 237px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiasOXPBkE1nqUbAePW4HYL-TLUqauE5PvqQulQO-k3QjvrPjrGHKPSx5kIbFadhemh4B18zk-fZmaGryxK-i3w5OQc4a8vApmGCQxeq04aZjqUCHaDVJeJ5jZqJnreXdcKpwVPOQd0v-Dm/s320/WordtalkScreenShot.gif" alt="" id="BLOGGER_PHOTO_ID_5421516087509797154" border="0" /></a><br />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.<br /><br />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 :)acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-64670530186001859622009-12-05T22:39:00.000-08:002009-12-05T22:40:12.051-08:00UPdate and referencesJon Worked on VEdit Today and added some stuff to it. BTW, some references to IO_EDIT:: and IO_VEDIT::<br /><br />REFERENCES:<br /><br />ON IO_EDIT:<br /> if(_framed){<br /> val = io_edit(_str, _owner ? _owner->getTop() + _row + 2 : _row + 1,<br /> _owner ? _owner->getLeft()+ _col + 2 : _col + 1, _fieldlen, _maxdatalen, _insertmode, &_offset, &_curpos,0);<br /> }else{<br /> val = io_edit(_str, _owner ? _owner->getTop() + _row : _row,<br /> _owner ? _owner->getLeft() + _col : _col, _fieldlen, _maxdatalen, _insertmode, &_offset, &_curpos,0);<br /> }<br /> return val;<br /><br />IRC CONVO:<br /> <northwind_tel> from what I've seen of _Validate<br /> <mr_88> canton: I commited my changes to io_vedit(), so take a look<br /> <canton> ok thanks<br /> <northwind_tel> it points to a validator function<br /> <northwind_tel> and that function can be anything as long as it takes a void pointer and a IO_Form reference<br /> <mr_88> thanks northWind<br /> <northwind_tel> then that function returns a boolean representing whether the data pointed to by the void* was found to be "valid" or not<br /> -->| t0mmyw (n=tom@net1.senecac.on.ca) has joined #seneca<br /> <northwind_tel> the implementation of this function is left upto whatever class is using IO_Vedit so what it actually is should be of no concern<br /> <northwind_tel> thats how our IO_Vedit works anyway, if its wrong, somebody please let me know :)<br /> -->| Arlene_Daniel (n=chatzill@net1.senecac.on.ca) has joined #seneca<br /> =-= Arlene_Daniel is now known as adaniel3<br /> <canton> thanks that was very clear<br /> <mr_88> canton: I implemented it like that in the code, but I'm not 100% about the 1ist argument for _Validate<br /> <northwind_tel> canton: any time, sorry for interrupting like that but I figured I could save you a little time<br /> <mr_88> northWind_Tel: you did, thanxacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-26384820165037060402009-12-03T15:28:00.000-08:002009-12-03T15:30:02.204-08:00Meeting today recap:We had a meeting today with Jonathan, Eric, and Ljubo. We all just worked on Vedit and progress was made:<br /><br />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.<br /><br />We're goign to meet up on satruday or sunday to continue working on the assignment and prepare for the exam on thursday<br /><br />c.acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-6374321047928380852009-11-26T19:43:00.000-08:002009-11-26T19:46:15.457-08:00Update on meetingWe 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.<br /><br />We're going to meet up (some of us) on Saturday to finish up what we have to hand in.<br /><br />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'... :(acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-33804268451813996852009-11-24T13:46:00.000-08:002009-11-24T13:47:34.379-08:00io_editUpdated 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.acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-24027280103090993762009-11-21T00:16:00.000-08:002009-11-21T00:18:50.384-08:00btp 300BTP 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.<br /><br />I find that oop344 is lacking some of these properties, but then again, I think it's supposed to be more about self-study<br /><br />Antonacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-78595193942912610322009-11-17T21:37:00.001-08:002009-11-17T21:37:44.156-08:00Funktion team membersAnton is still in the courseacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-57352144060112846632009-11-17T17:43:00.000-08:002009-11-17T17:47:01.825-08:00Can't compileI 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!<br /><br />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<br /><br />antonacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-79391680848523740112009-11-11T22:12:00.000-08:002009-11-11T22:13:35.620-08:00IO_edit trublezSent this to Jonathan today I'm hitting (naturally) on some rocky road:<br /><br />Jonathan,<br /><br />I'm currently having trouble with the <b>bold</b>. 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!<br /><br /><br /> //pass to IO_Field Constructor<br /> //if (framed) {<br /> // <b> IO_Field::IO_Field(row+1, col+1);</b><br /> //}<br /> //else<br /> // IO_Field::IO_Field(row, col);<br /> }<br /> <br /> void IO_Edit::display() const {<br /> int Top;<br /> <b>Top = _owner->getTop()+0;</b><br /> <br /> }acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-15726386681466872472009-11-08T18:40:00.001-08:002009-11-08T18:40:25.053-08:00IO_EditNovember 8, 2009<br /><br />Updated everything onto the repository. Now I'm trying to code<br /><br />IO Edit PseudoCode:<br /><br />Create an array of 'maxdatalen + 1 chars' and set IO_Field::_data to point to it<br /><br />Constructor: <br /><br />+ "row", "col", and "frameChars" pass directly to the Frames class "top" "left" and "framechars". pass width of (fieldlen + 2) and height of (fieldlen + 3)<br />+ pass to IO_Field constructor. if framed false: row and col. if framed true: row+1 and col+1 <br /><br />Destructor:<br /><br />+ 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<br /><br />Display():<br /><br />+ if IO_Edit is framed call IO_Frame display(). Use: _owner->getTop(), _owner->getLeft() as topOffset and leftOffset arguments.<br />+ call ciol's io_display() function passing getRow() and getCol() and fieldlen from IO_Field and IO_Edit, respectively<br /><br />Edit():<br /><br />+ call ciol's io_edit with corresponding data from IO_Edits attributes<br />+ ignore Owner argument<br />+ return value returned by ciol's io_edit<br /><br />Editable():<br /><br />+return true;<br /><br />Set():<br /><br />+copy incoming str into _data (in IO_Field) up to 'maxdatalen' characters (note: if using strncpy() make sure string is null terminated)acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-39623595562536424182009-11-08T16:48:00.001-08:002009-11-08T16:48:44.903-08:00Issue SolvedI had redefined the defaults in the .h and .cpp files.<br /><br />it should look like this in the .cpp file<br /><br />IO_Edit::IO_Edit(char* str, int row, int col, int fieldlen,<br /> int maxdatalen, int* insertmode,<br /> bool framed, const char* frameChars)acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-79760186953016562092009-11-08T16:47:00.001-08:002009-11-08T16:47:24.663-08:00IssueI'm getting this error:<br /><br />rror C2572: 'IO_Edit::IO_Edit' : redefinition of default parameter : parameter 7<br />1> c:\users\koko\documents\oop344 assignment 2. antons repository\trunk\prj\io_edit.h(12) : see declaration of 'IO_Edit::IO_Edit'<br /><br />hrmph<br /><br />it's the consturctor of the class. but ehy?acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-70572914499179567652009-10-30T20:53:00.000-07:002009-10-30T21:20:55.667-07:00Open source is communismWhy does that sound so bad? I have read the manifesto and it's pretty good! (for the record I am not a communist though)<br /><br />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 <a class="userLink" href="http://fsoss.senecac.on.ca/2009/user/79">Khalid Baheyeldin</a>. 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!).<br /><br />Essentially to earn an income from open source (and this also goes with what <a href="http://fsoss.senecac.on.ca/2009/user/95">Dru Lavigne</a> 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. <br /><br />There are a lot of people looking for freelancers, <a href="drupal.org">drupal.org</a> 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.<br /><br />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.acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-91997941927856522742009-10-29T16:41:00.000-07:002009-10-29T16:57:28.095-07:00FUNK TEAM IRC MEETINGRecap of todays meeting:<br /><br />Todo list:<br /><br />1. get rid of dirs<br />2. select a ciol lib<br />3. add/modify/committ my assigned classes<br />4. create main<br />5. project file test and committ<br />6. Upadte repo<br />7. lubo - assign classes with complete description in wiki<br />8. fardad - update code and check it<br /><br />NEVER COMMIT A CODE THAT IS NOT BUILDABLE<br /><br />more on the team gameplan later...acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-39012976894831018252009-10-29T16:12:00.000-07:002009-10-29T16:14:24.497-07:00On Tuesday we had a meeting with the Fardad. 45 minutes turned into 2 hours :$. This is what we covered:<br /><br />1. Fixing up the repository for a14<br />2. handing out passwords<br />3. Tasks for next meeting: each person 'co' the repository onto their own computer<br />4. someone on the team build the prog.acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-16022444015605018042009-10-16T01:14:00.000-07:002009-10-16T01:15:04.301-07:00tacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-38036549368058724382009-10-04T15:46:00.001-07:002009-10-04T15:46:21.100-07:00figured out how to append. Has to deal with strcpy and a temp. On to the next one!acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-32231699540141514062009-10-02T12:40:00.001-07:002009-10-02T12:40:51.282-07:00having trouble appending. .. toggling insert mode. bah. gonna leave it alone for now.acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-56804399024041673472009-10-01T23:06:00.000-07:002009-10-02T11:24:04.058-07:00Serving a Slice of Open SourceI'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.<br /><br />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<a href="http://www.arduino.cc/"> arduino</a>. In short, it's a tiny computer you can program and have it do neat things like controlling a<a href="http://www.instructables.com/id/Ard-e-The-robot-with-an-Arduino-as-a-brain/"> robot</a>. 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 <a href="http://www.bakertweet.com/">BakerTweet</a> or the <a href="http://mini-itx.com/85636421">OpenBook</a> . In conclusion, OpenHardware is an <a href="http://74.125.93.132/search?q=cache:MmL8emfNSt0J:antipastohw.blogspot.com/2009/03/introducing-open-source-hardware.html+liquidware+antipasto+40+model&cd=1&hl=en&ct=clnk&gl=ca&client=firefox-a">entirely different animal</a> compared to OpenSoftware due to the fact that in OpenSoftware all you need is a computer and time.<br /><br />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.<br /><br />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 <span style="font-weight: bold; font-style: italic;">accurately</span> record the power of your punches. The Tarq has the elements of the <a href="http://www.impacttrainingsystems.com/HitMaster.html">Hitmaster</a> and the <a href="http://www.goherman.com/">GoHerman!.</a> 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 <span style="font-weight: bold;">boring</span>.<br /><br />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 <a href="http://www.tinaja.com/glib/casagpat.pdf">empty promises</a>. 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 <a href="http://johnnylee.net/projects/wii/">(>'.')></a>.<br /><br />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 <a href="http://www.420magazine.com/gallery/data/502/medium/Purple_Kush_16.jpg">this</a> either.<br /><br />..getting kinda hungry now ;).<br /><br />- A.C.acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-60785215222042217172009-09-30T13:39:00.000-07:002009-09-30T13:50:27.037-07:00finishing up io.editcase DEL_KEY:<br /> for(i= *offset + *curpos; str[i];i++) {<br /> str[i] = str[i+1];<br /> }<br /> break;<br /><br /><br />wow... lol.<br /><br />How to look at this assignment:<br /><br />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 workacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-2230293577228891242009-09-28T20:52:00.000-07:002009-09-28T20:53:16.715-07:00<h3><span class="mw-headline">int io_getch(void)</span></h3>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.<br /><br />... hrmm..acfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0tag:blogger.com,1999:blog-5963715863955495774.post-85375859749840411672009-09-19T12:21:00.001-07:002009-09-19T12:21:25.922-07:00NEW<br /><br />- ACFUNKTRONacfunktronhttp://www.blogger.com/profile/00158178738210339570noreply@blogger.com0