#garfield Logs

Dec 07 2011

#garfield Calendar


00:00 rue_house you good to code for a bit?
00:00 rue_house ah
00:00 rue_house ok
00:01 rue_house so, there is a object that holds the file content, called an accumulator
00:01 Morzan_ ok
00:01 rue_house from there, there are 'filters' that plug in to do the io from that content
00:01 rue_house so, for example, there is a pluggable filter to display the content as text
00:02 Morzan_ sounds usefull
00:02 rue_house there is a filter to provide network access to the accumulator to other editors
00:02 rue_house there is a filter for modification of the content via the keyboard
00:02 rue_house there is a filter to save the contents of the accumulator as text to a file
00:02 rue_house etc etc, sound logical?
00:03 Morzan_ yup
00:03 rue_house the neat things about this, is by changing the filters, you can do soemthing like have a hex editor instead of a text editor
00:03 rue_house OR a really complex filter, for maybe modifying complex files
00:04 rue_house like one that would let you edit the ID3 tags in an mp3 file
00:04 Morzan_ ok
00:04 rue_house so, to provide the concurrency, and other neat functions, there is a 'prop' system
00:05 Morzan_ or one to use it as .png editor
00:05 rue_house like stage props
00:05 rue_house props are things like cursors, or syntax hilighting
00:05 rue_house less hilighting and more bookmarks and cursors
00:05 rue_house they are also a shared data source
00:06 rue_house thats the basic premis
00:06 Morzan_ ok
00:06 rue_house the props are used so that everyone can see the cursors etc that everyone else is using
00:07 rue_house I'm just trying to rebuild the code now
00:07 Morzan_ so the accumulator runs on a server, and the filters run on a client and contact it?
00:07 rue_house the idea is that the server is a running editor
00:07 zhanx i need ice stat
00:07 rue_house and the server role gets passed around and clients join/quit
00:08 zhanx the moron my unit sent over to help me left my frezzer open
00:08 rue_house zhanx, clean up the blood when your done
00:08 rue_house ?
00:08 zhanx yea dont want to slip in it
00:08 zhanx my machine takes ice to keep my leg from swelling
00:09 rue_house ah, hmm
00:10 Morzan_ do you have a working version?
00:10 rue_house no, there was a port of the dos 'conio.h" for linux that dosn't work anymore, but I have a new library I created that uses escape codes
00:11 rue_house the library I interfaced it to I wrote in c++
00:11 rue_house so I'm just changing that over to C
00:11 rue_house want to help me C some c++?
00:11 rue_house for a bit
00:12 Morzan_ I was thinking we could use the old version to work on the new version, but I guess not
00:12 Morzan_ sure I could do that
00:12 rue_house I have a text document that tells me what order to get things working (dependency wise)
00:12 rue_house http://ideone.com/J01rk
00:13 rue_house want to un-object the functions for me?
00:13 rue_house leave the 'this' in
00:14 Morzan_ ok
00:15 rue_house the creator and destroyer become VIFInit and VIFFini respectivly
00:15 Morzan_ globals?
00:15 rue_house no
00:15 rue_house 1 sec
00:16 rue_house I redid its header file
00:16 rue_house void VIFInit ( VIF_t * this);
00:16 rue_house void VIFCursorPos ( VIF_t * this, XDim_t X, YDim_t Y );
00:16 rue_house void VIFWriteText ( VIF_t * this, char * text );
00:16 rue_house void VIFWriteText ( VIF_t * this, char * text, char * properties);
00:16 rue_house void VIFBufferText( VIF_t * this, char * text, char * properties);
00:16 rue_house void VIFGetBuffer ( VIF_t * this, char * text, char * properties, long int N);
00:16 rue_house void VIFBufferPos ( VIF_t * this, XDim_t X, YDim_t Y );
00:16 rue_house void VIFReDraw ( VIF_t * this );
00:16 rue_house void VIFFini ( VIF_t * this);
00:21 Morzan_ so this is a pointer to a struct of type VIF_t
00:21 rue_house yes, I think it might all just work
00:22 rue_house this->bla will still be relivent
00:22 Morzan_ will this.value = value work like normal
00:23 rue_house no, not . cause its a pointer
00:23 rue_house hmm
00:23 Morzan_ ah
00:23 rue_house I see I didn't use this. or this-> in the code
00:23 rue_house so all the internal variables need this-> added to them
00:23 rue_house :/
00:23 Morzan_ what are the mebers of type VIF_t
00:24 rue_house http://ideone.com/awCIu
00:24 rue_house I suppose you dont need a long integer for the height of a screen in text lines, but I dont see any reason to apply silly limits to the program
00:25 rue_house if someone has a screen with over 32767 lines of text, I dont see why they shouldn't be able to use it
00:27 Morzan_ yup
00:28 rue_house http://ideone.com/09kmq <-- thats the test program converted, I think its right
00:31 rue_house hah, the accumulator is in C++ too, haha
00:32 Morzan_ so I might just use (* this).value instead of this->value
00:33 rue_house intersting, why do you like to do it that way?
00:33 Morzan_ I like .
00:33 rue_house :0
00:33 rue_house er :)
00:33 rue_house shift key is still stickey
00:33 rue_house sure, have at it
00:39 rue_house oh my luck, I'v already converted this next one...
00:56 rue_house or not, there are a lot of version differences in the functions
00:59 Morzan_ I think this should be done now
00:59 rue_house ok
00:59 rue_house http://ideone.com/ ?
00:59 zhanx rue_house: got anything like this http://search.digikey.com/us/en/products/1639780000/281-1041-ND/263646
00:59 Morzan_ probably the easiest way for me to send it over is if you go on skype I can fileshare it over
01:00 rue_house zhanx, kinda...
01:00 rue_house Morzan_, why not just use ideone to post it?
01:01 Morzan_ http://ideone.com/AOVXA
01:02 rue_house sweet!
01:02 rue_house if your up for a few mins and maybe I can show you it work
01:03 Morzan_ I think I need to head to bed
01:03 rue_house ok, gnight
01:03 Morzan_ 'ngiht
01:04 rue_house zippo:/files/programming/c/CES/4THver/tests/02accumulator# ./acc_test
01:04 rue_house The origional size reports as: -1216687344
01:04 rue_house Segmentation fault
01:05 rue_house more work for me on that one!
01:05 rue_house oooh I forgot to init it
01:05 rue_house hehe
01:06 rue_house oo I tink that worked
01:09 rue_house yay, it did work!
01:09 rue_house ok I converted one of the libraries
01:09 rue_house now, how are we doing with that VIF