|IRC Nick||Time (GMT-7)||Message|
i have a question
|neilg_||07:12||What's your question?|
|Taleb||08:12||yes i want to use the HTTPService srv
i included them into the project
and i want an example to upload a file (sample)
should i create an instance from BasicService ?
or use the UploadQueue instance ?
and where is the upload function ?
|taxilian||08:12||Taleb: that stuff is all on the experimental side, but I think it works more or less
(just got up)
|taxilian||09:12||Taleb: this should get you started; I'm still doing initial testing, so you'd be the first besides me to use this code. https://gist.github.com/751687
The ProxyHandler will eventually get improved and dropped into FireBreath as a default handler that you can use but it needs to be converted to use the BrowserStreams code instead of libcurl/openssl
add_firebreath_library(curl) and add_firebreath_library(openssl) in your cmakelists.txt is needed for this to work; on windows that *should* use git to pull down the curl and openssl windows static binaries from my github repo
iaincollins: you may also find that interesting, since I think you and I discussed that once
|Taleb||09:12||thx taxilian, it seems important example about upload ..
i will check and test it and come back again ..
|taxilian||09:12||Taleb: you want specifically to upload files?
that's the UploadClient class, and I don't have an example of using that right now that I can share
what I sent you was an example of using HTTPService (I realize the project is named poorly) which is the web server
|Rayappan||09:12||taxillian, I am working on a mac plugin.. I use cocoa event and core graphics.. may I know where I can start my drawing..Just to fill the background of the plugin with a color..
which class which function..can you pls give a quick advice
|Taleb||09:12||question to Taxilian
where to put these classes in my project ?
|Rayappan_||09:12||taxillian..may I know you did anser my question.. my machine crashed ..I might missed ur reply could you pls paste it again ..|
|neilg_||09:12||<taxilian> Taleb: this should get you started; I'm still doing initial testing, so you'd be the first besides me to use this code. https://gist.github.com/751687
<taxilian> The ProxyHandler will eventually get improved and dropped into FireBreath as a default handler that you can use but it needs to be converted to use the BrowserStreams code instead of libcurl/openssl
<taxilian> add_firebreath_library(curl) and add_firebreath_library(openssl) in your cmakelists.txt is needed for this to work; on windows that *should* use git to pull down the curl and openssl windows static binaries from my github repo
|taxilian||10:12||good old timezones... I slept in, feel like the morning is half over, and get to work at just before 9am (hardly anyone else here)|
|taxilian||10:12||hmm. I am giving some serious consideration to eliminating JSAPISecure and just building the functionality into JSAPIAuto
then if you don't care you just don't use the extra functionality
|Rayappan_||11:12||hi taxillian.. I did build the media player example.. but it did not work when I added a mov file path..
|taxilian||11:12||Rayappan_: yeah, I actually don't know anything about the BasicMediaPlayer example. not a clue how it works or what it can do|
|Rayappan_||11:12||ok no prob...
Anyway I will be adding some sample, when I am done with my mac plugins..
|Rayappan_||11:12||Already built a desktop sharing plugin using firebreath.. and it works graet :)|
|taxilian||11:12||awesome! glad to hear it!|
|taxilian||11:12||what was the hardest thing for you to figure out when you started using FireBreath?|
|Rayappan_||11:12||I love the js interaction using FB... its just a cake walk..I was in darkness for 1 week with the mozilla documentation .. god bless you guys!'|
|taxilian||11:12||yeah, I really think that's the place where FB shines the most|
|Rayappan_||11:12||oh hardest thing is ... I want to undestand how the drawing is done on mac plugins...I need to get a starting point|
|taxilian||11:12||thanks for the feedback... amackera is working on improving those docs; I think that'll always be a difficult point, but we really need to get as much info as possible posted. Please consider helping to update the wiki if you have info that should be there|
|Rayappan_||11:12||Since I have to use cocoa framework(core graphics).. I would like to understand ow we trasfer the events which come on a .cpp file to a .m file where I hope to do the cocoa drawings...|
|taxilian||11:12||well, if you wanted to you could actually make a .m version of your plugin class; the easiest way to transfer them would just be to create another class to handle that stuff, instantiate it in your plugin class, and then send all MacEventCocoa/MacEventCarbon events to a handler on that object|
|Rayappan_||11:12||Yes I will definitly do.. I am not a mac developer.. just started with it 2 months back.. my experience is in Windows development..But I will definitly add some sample or small getting started in mac development in a windows developer's erspective|
|taxilian||11:12||you can unwrap them inside that object
unfortunately I'm not either, which is why I can't provide many details =]
|Rayappan_||11:12||yes what you said is conceptually correct...on my other plugin, I used a .c file to export some functions that made the bridge between .cpp and .m|
|taxilian||15:12||anyone know how to make a function pointer to a const function?|
|kalev||16:12||taxilian: do you mean a function pointer to call a const method on an object?|
|taxilian||16:12||kalev: yes, but I did finally figure it out
I'm refactoring to make as many of the methods const as can be made so
it's taking a bit of time =]
|kalev||16:12||sounds great :)|
|taxilian||16:12||I've been doing some reading and noticing some things that need to be fixed. There will be some breaking changes because of this in 1.4, but I think they'll not be too hard to fix
|kalev||16:12||I personally don't mind changes, as long as Firebreath gets better as a result|
|taxilian||16:12||oh, it will
I don't think there even are any lines in JSAPIAuto that haven't changed... this will be a pretty major commit
I'd really appreciate a code review from anyone willing to do so
hoping to have at least a test commit before I leave Facebook, but I'm running out of time
|kylehuff||16:12||if by "code review" you want me to open up the source and confirm I still have no idea what the hell is going on, I can do that.. =c )|
might be a good excercise in figuring out what is going on =]
|kylehuff||16:12||every day I am a little "less lost" when it comes to C, but that is not true for most C++ concepts like templates|
|taxilian||16:12||I can recommend some good books, if you'd like
however, most of this isn't template related
I have a bit of that to refactor as well, but I'm putting it off for now
|kalev||16:12||if you seriously want someone to review it, then I suggest breaking the huge commit into smaller, more digestable pieces|
|taxilian||16:12||I really wish I could :-/ This one won't break down
there might have been some little things when I first started that I could have done seperate, but it's snowballed...
|kalev||16:12||allright, it's bed time in this part of the world|
|taxilian||16:12||the really fun parts are the ones where I say "This should be possible to make const", and then find out 20 minutes later that making that const breaks something elsewhere and there really was a good reason not to have it const because it's non-trivial to fix, so....|
|Jshanab_away||20:12||Good evening everyone|
how's it going?
|Jshanab_away||20:12||Pretty good, just thought,id better try out the android irc while I wait for dinner
I still need to get back into the plugin ang figure out a faster way to draw images on the screen
Morning? Where are you? (not in utah anymore?)
|taxilian||20:12||I'm in San Francisco Airport at the moment
but it's morning somewhere
|Jshanab_away||20:12||Cool, I trust finals went well|
|taxilian||21:12||so far so good; nothing worse than a B+ in the 3 classes that I've gotten grades for so far
still two that I haven't gotten results back for yet
|Jshanab_away||21:12||Well, garganian pizza has arrived, ttyl|
|FB_GitHubBot||21:12||FireBreath: master Richard Bateman * c05a179 (31 files in 5 dirs): Major JSAPI refactor eliminates JSAPISecure and adds SecurityZone ... - http://bit.ly/fZki4Q|