Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-01-29

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:37 r618 joined #openframeworks
01:55 ar_tama joined #openframeworks
01:56 ar_tama_ joined #openframeworks
02:08 pizthewiz joined #openframeworks
02:09 cp joined #openframeworks
02:14 billautomata joined #openframeworks
02:26 r618 joined #openframeworks
02:38 wjf joined #openframeworks
02:48 ilbot3 joined #openframeworks
02:48 Topic for #openframeworks is now Welcome :) Site: http://openframeworks.cc/ Logs: http://irclog.perlgeek.de/openframeworks/
03:18 w4ffles joined #openframeworks
03:32 billautomata joined #openframeworks
03:39 pizthewiz joined #openframeworks
03:40 sheva29 joined #openframeworks
03:40 sheva29 Hey admsyn
03:43 admsyn hi sheva29
03:53 sheva29 question for you I'm looking at how to pass a json object to an endpoint on a server. I'm looking at ofxHTTP but the post example works the other way around the website post to the oF app. Is it possible to do the opposite?
03:54 sheva29 I was looking at Baker's examples in the addon but didn't see something I could use
03:54 admsyn so you want to post json from an OF app to some server on the internet?
03:54 admsyn or is the OF app the server?
03:55 sheva29 first one
03:55 sheva29 yeah
03:55 sheva29 it's actually a local server I have
03:56 admsyn there's a few addons in that space, also by cpbaker so there's possibly some examples out there that do exactly what you want
03:56 admsyn there's an ofxJSON for sure
03:56 admsyn and I feel like I've seen an ofxIO
03:56 sheva29 yeah that one I have seen
03:56 sheva29 I have been working with ofxjson
03:56 sheva29 but just parsing stuff and creating my own json
03:58 pizthewiz bakercp's ofxJSON fork is definitely the one to get, it is maintained and runs on Raspberry Pi
03:58 pizthewiz Pretty much if he has a fork of something, I use it ;0)
03:58 admsyn ^
03:58 admsyn is the issue that you're having trouble finding the right incantation to send a post req?
03:59 admsyn JSON shouldn't have anything to do with it, really
03:59 pizthewiz True, it is just the data description.
03:59 pizthewiz I think he has an HTTP addon that wraps something in Poco no?
03:59 pizthewiz Or is that for serving?
03:59 sheva29 I just have no idea. I started looking at ofxhttp but you can do a post from a webserver to the app
04:00 admsyn pizthewiz: yepp that's ofxHTTP (what sheva29 has)
04:00 pizthewiz Bingo ;0)
04:00 admsyn sheva29: there's a PostRequest object, so that's def what you're looking for https://github.com/bakercp/ofxHTTP/blob/maste​r/libs/ofxHTTP/include/ofx/HTTP/PostRequest.h
04:01 pizthewiz The example_basic_client_twitter example might only GET (under the hood).
04:01 admsyn I don't have an IDE in front of me at the moment to feel out how it all comes together, but I'd look for somewhere in the base server that takes a BaseRequest object
04:01 pizthewiz The ofx::HTTP::DefaultClient class seems promising though
04:01 sheva29 sweet!
04:01 sheva29 that's a good start!
04:01 sheva29 yeah pls let me know!
04:02 admsyn ok check out the basic client example https://github.com/bakercp/ofxHTTP/blob/m​aster/example_basic_client/src/ofApp.cpp
04:02 pizthewiz Isn't there a core HTTP addon too, ofHTTP maybe maintained by arturo?
04:02 admsyn he's making a GetRequest and then writing it here https://github.com/bakercp/ofxHTTP/blob/mas​ter/example_basic_client/src/ofApp.cpp#L38
04:02 admsyn so what you want to do should look mostly the same, but with a PostRequest
04:03 wjf joined #openframeworks
04:03 sheva29 awesome! gonna try that and see if the post request method allows me to include th JSON object as data
04:03 admsyn it looks like the way to stick your JSON in there is with postRequest.addFormBuffer(...)
04:03 pizthewiz Fork the ofxHTTP repo and add a POST example ;0)
04:03 admsyn ^
04:04 sheva29 Will do for sure! :)
04:04 pizthewiz Awesome!
04:05 pizthewiz I think he is using ofxHTTP in ofSketch too
04:06 admsyn pizthewiz: pretty sure what you're thinking of is ofxNetwork
04:07 admsyn RE core HTTP addon
04:07 pizthewiz Yeah I think that's the one
04:14 r618 joined #openframeworks
04:41 wjf joined #openframeworks
04:48 qDot_ joined #openframeworks
04:49 admsyn installing gnuradio on osx is real fun I tell you
04:50 admsyn there's fortran going on and shit
04:55 sheva29 hey
04:55 sheva29 iadmsyn
04:55 sheva29 it worked!!
04:55 admsyn yepp
04:55 admsyn cool!
04:56 sheva29 :)
04:56 admsyn good to hear
04:56 sheva29 gonna add it as an example right now
04:56 sheva29 :)
05:12 pizthewiz awesome!
05:34 pizthewiz joined #openframeworks
06:04 r618 joined #openframeworks
06:04 pizthewiz joined #openframeworks
06:08 ar_tama joined #openframeworks
06:33 mhashmi joined #openframeworks
06:44 mhashmi joined #openframeworks
07:21 mhashmi joined #openframeworks
07:51 w4ffles joined #openframeworks
07:52 r618 joined #openframeworks
08:24 mhashmi joined #openframeworks
09:41 r618 joined #openframeworks
11:05 r618 joined #openframeworks
12:21 sh1v joined #openframeworks
12:25 sh1v joined #openframeworks
14:00 bigpet joined #openframeworks
14:34 admsyn joined #openframeworks
14:52 w4ffles joined #openframeworks
15:13 ar_tama joined #openframeworks
15:28 billautomata joined #openframeworks
16:18 w4ffles joined #openframeworks
16:51 marcocanc joined #openframeworks
17:18 pizthewiz joined #openframeworks
17:29 jedahan joined #openframeworks
18:14 pizthewiz joined #openframeworks
18:32 marcocanc joined #openframeworks
18:41 admsyn joined #openframeworks
19:26 jedahan joined #openframeworks
19:34 micr0 joined #openframeworks
19:54 yandil joined #openframeworks
19:55 FergusL_ joined #openframeworks
20:41 debu joined #openframeworks
21:42 micr0 joined #openframeworks
21:56 micr0 joined #openframeworks
22:11 micr0 joined #openframeworks
22:12 jedahan joined #openframeworks
22:13 micr0_ joined #openframeworks
23:12 jedahan joined #openframeworks
23:27 GuidovanPossum joined #openframeworks
23:35 w4ffles joined #openframeworks
23:40 gabrielstuff joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary