BitShares Forum

Main => General Discussion => Topic started by: xeroc on February 11, 2016, 10:11:22 am

Title: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 11, 2016, 10:11:22 am
Anyone interested in a live (recorded) coding session for the python libraries?

I could show:

* How to interface python with Bitshares
* How to interface with the DEX
* How to get notifications and react on them
* How to construct a basic real-time trading bot ..

What platform would be good to do something like this?
Any preferred time? (I am CET timezone)
Some other stuff you would like to know about the python libraries?

Just my thoughts
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: tonyk on February 11, 2016, 10:28:52 am
Anyone interested in a live (recorded) coding session for the python libraries?

I could show:

* How to interface python with Bitshares
* How to interface with the DEX
* How to get notifications and react on them
* How to construct a basic real-time trading bot ..

What platform would be good to do something like this?
Any preferred time? (I am CET timezone)
Some other stuff you would like to know about the python libraries?

Just my thoughts

I am a fan of your code (you should know it by now, right?)
So any platform/time works for me (as long as I can type, as opposed of speaking)

"Some other stuff you would like to know about the python libraries?"
My question is how one call any other than history and database API's. (network API for example[I think that was the name of it])
The documentation is somewhat lacking for my taste (very novice coder user here)
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: betax on February 11, 2016, 12:08:42 pm
i will be interested, but not next week
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: cube on February 11, 2016, 12:47:53 pm
I am interested.  How is GMT 8am?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: noisy on February 11, 2016, 03:50:39 pm
Anyone interested in a live (recorded)

yes, Yes, YES!

I describe that idea few month ago here - https://bitsharestalk.org/index.php?topic=19625.0

I recommend livecoding.tv. It is good to schedule (on their website) planned stream, to have better attention.

preffered time? For sure - weekend. You should pick time when it's suits you. From where are you from?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: pal on February 11, 2016, 04:20:21 pm
Recorded version would be great!
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: noisy on February 11, 2016, 04:27:25 pm
Recorded version would be great!
livecoding.tv record and store every stream which is minimum 15 minutes long.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Shentist on February 11, 2016, 05:26:28 pm
sounds great!

maybe you can also do a work around on the webwallet?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: noisy on February 13, 2016, 09:41:56 am
@xeroc
any update, plans?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: btswildpig on February 13, 2016, 10:01:45 am
quick question : If you get notification and did not handle it , is there some place like a notification buffer that you can access the notification again ?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 13, 2016, 11:17:29 am
@xeroc
any update, plans?
I am still trying to find a platform that can deal "live" coding with reasonable "lag" .. livecoding.tv didn't work well .

worst case would be that I record something and post it to youtube or so ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 13, 2016, 11:18:08 am
quick question : If you get notification and did not handle it , is there some place like a notification buffer that you can access the notification again ?
no there is not ..
if you don't "register a callback" .. then the notification will be ignored ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: noisy on February 13, 2016, 11:38:01 am
I am still trying to find a platform that can deal "live" coding with reasonable "lag" .. livecoding.tv didn't work well .

I am really surprised. With livecoding.tv I have lag something like 10s, no more. Do you have at least 1-2Mb/s upload?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 13, 2016, 12:04:29 pm
I am still trying to find a platform that can deal "live" coding with reasonable "lag" .. livecoding.tv didn't work well .

I am really surprised. With livecoding.tv I have lag something like 10s, no more. Do you have at least 1-2Mb/s upload?
10 seconds is "normal"?
I though that the technology today should be able to do way better than that ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Akado on February 13, 2016, 01:20:23 pm
There's also twitch, it has a chat, though I don't know if it lags too much
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: betax on February 13, 2016, 01:35:20 pm
@xeroc
any update, plans?
I am still trying to find a platform that can deal "live" coding with reasonable "lag" .. livecoding.tv didn't work well .

worst case would be that I record something and post it to youtube or so ..

Do a recording it will live for ever :)
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 13, 2016, 01:57:34 pm
I think so too .. twitch also has quite some lag ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 16, 2016, 03:01:48 pm
Since I will be in Amsterdam the rest of the week. I will postpone this for a week.
Gonna try to put a couple minutes of tutorial online the week after .. still need to figure how to use the recording app properly, setting up the font size etc ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Thom on February 17, 2016, 12:15:24 am
What about the "Blue Dot" server fuzzy / joeyD setup for this exact purpose?

Our Big Blue Button Server for Desktop Sharing, Webcams and Pdf/Powerpoint presentations.
http://109.239.48.104/

That URL is currently dead, but this is the exact use case why fuzzy set this up. I don't think anyone has used it yet.

I'm interested in this - thx for making the time to put it together xeroc.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 18, 2016, 09:02:01 am
What about the "Blue Dot" server fuzzy / joeyD setup for this exact purpose?

Our Big Blue Button Server for Desktop Sharing, Webcams and Pdf/Powerpoint presentations.
http://109.239.48.104/

That URL is currently dead, but this is the exact use case why fuzzy set this up. I don't think anyone has used it yet.

I'm interested in this - thx for making the time to put it together xeroc.
What needs to be done so that I can take a look next week? @fuzzy?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Thom on February 28, 2016, 07:04:26 pm
I sent JoeyD a PM a day or  ago but he hasn't gotten back to me yet. Fuzzy said he's the guy that can make it happen, but he has some physical health limitations.

Have you had the time to capture a recording yet xeroc? The python trading bot would be an excellent example. Too bad we won't have that before tomorrow's liquidity event.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on February 29, 2016, 10:50:02 am
So .. I just tested Google Hangouts together with JonnyBitcoin and Ihashfury and that tool seems to do the trick quite nicely ..
I do understand that most chinese people might not be able to join this up .. but it might be possible to record the session so we can later share it somewhere else ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: betax on February 29, 2016, 11:58:22 am
your recording should saved to youtube afterwards https://www.youtube.com/watch?v=ohlHn6Kt5YM&feature=youtu.be
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Jansky on February 29, 2016, 03:56:21 pm
this would be very useful.  This platform is constantly changing, and I (and probably others) have not had time to keep up with the ever-changing ways to interact with the platform programmatically.  will the recording be posted here?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Thom on February 29, 2016, 05:41:15 pm
I've used g.hangouts before, I'm not a big fan. However, I do know it's possible to record the sessions on it, as I see plenty of them on youtube.

If it meets your needs xeroc I say go for it & make it happen with g.hangouts, then post the video where ever it's convenient for you & post a link t it here.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: cylonmaker2053 on February 29, 2016, 10:33:19 pm
yes, absolutely, i'm interested! Depending on date/time, i may have to refer to the recorded version. I'm interested in python interfaces with Bitshares and the DEX; especially interested in trade bots!
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: unreadPostsSinceLastVisit on February 29, 2016, 11:41:44 pm
I'd watch and try to absorb what I can.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Shentist on March 01, 2016, 06:20:11 am
is the time and date for this set?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 03, 2016, 12:55:05 pm
Please cast a vote for your preferred time:

http://doodle.com/poll/aubci33caqemad23

The session will take no more than 60 minutes and this is what I plan to do (let's see how far we can go):
- running witness-node
- running cli-wallet
- installation of python-graphene
- connecting with cli-wallet and calling methods
- connecting with witness-node and calling method (database api and others)
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: cylonmaker2053 on March 04, 2016, 02:08:39 pm
just voted. any chance we can get into a bot tutorial, as well?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 04, 2016, 02:34:06 pm
just voted. any chance we can get into a bot tutorial, as well?
Eventually .. sure ..
I might need to work on it a little more before that ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 07, 2016, 07:36:26 am
So .. this will be our first Python Live Coding Hangout (on Air) ..

https://plus.google.com/events/ci538l7gkphtt3h7kdj454oe720

Tomorrow, Tue 8 @ 5pm CET(!)

Looking forward to it!
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: dichalcog3nid3 on March 07, 2016, 07:59:56 am
SUPERB!! attending this event. indubitably.

just voted. any chance we can get into a bot tutorial, as well?
  +5%
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: cylonmaker2053 on March 07, 2016, 04:05:51 pm
awesome, i'll try to attend, but look forward to the recorded session if not...
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Shentist on March 08, 2016, 05:37:45 am
@xeroc to bad, it is to early for me, so will you record your session?

Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 08, 2016, 08:56:37 am
@xeroc to bad, it is to early for me, so will you record your session?
That's the plan..
Hangout on Air seems to be integrated into youtube quite nicely .. Let's see
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 08, 2016, 03:46:27 pm
less than 15 minutes till live coding session...

join via: https://hangouts.google.com/call/yknsdkzsivdntlzuo2rnemtnpye
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 08, 2016, 05:38:28 pm
First session with youtube video:
https://bitsharestalk.org/index.php/topic,21816.new.html#new
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: cylonmaker2053 on March 08, 2016, 07:38:31 pm
awesome, thank you so much for doing this and posting on YouTube!
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 09, 2016, 08:20:54 am
awesome, thank you so much for doing this and posting on YouTube!
I enjoyed it my self pretty much :D
Certainly gonna do another one ..
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: cylonmaker2053 on March 09, 2016, 10:35:54 pm
awesome, thank you so much for doing this and posting on YouTube!
I enjoyed it my self pretty much :D
Certainly gonna do another one ..

i tweeted the video ...material like that is an excellent promo for Bitshares, in general. i also targeted the python crowd, since it'd be wonderful to get more programmers into our community.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Thom on March 09, 2016, 11:33:48 pm
Thanks for doing this xeroc, THIS will go a long way to attract devs of all talent levels, but particularly noobs to BitShares.

You my friend, are a powerhouse! Great work!!!

 +5%
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 10, 2016, 09:59:06 am
[BitShares] Python Live Coding Session II

To be discussed this time:

* Trading in the DEX: buy, sell, borrow, getTicker, get orderBooks etc..

Doodle: http://doodle.com/poll/rsikf4rr63p89cqb
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 21, 2016, 07:48:32 am
http://doodle.com/poll/rsikf4rr63p89cqb

It seems no one is interested in learning how to use GrapheneExchange? Or are the dates and times just not working out for you?
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Bhuz on March 21, 2016, 08:16:23 am


http://doodle.com/poll/rsikf4rr63p89cqb

It seems no one is interested in learning how to use GrapheneExchange? Or are the dates and times just not working out for you?

I am totally interested but unfortunately this week could not work for me
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 22, 2016, 07:58:37 am
Next LiveCoding Session will be on Wednesday 23th at
3:00 pm CET
2:00 pm UTC
10:00 am EDT
https://plus.google.com/events/c00c6qjv9gceejpqnftntoqjvb0

@Bhuz: The session will again be recorded so you can watch it any time.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Bhuz on March 22, 2016, 10:44:57 am
Next LiveCoding Session will be on Wednesday 23th at
3:00 pm CET
2:00 pm UTC
10:00 am EDT
https://plus.google.com/events/c00c6qjv9gceejpqnftntoqjvb0

@Bhuz: The session will again be recorded so you can watch it any time.

Thank you!  +5%
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Thom on March 22, 2016, 03:14:13 pm
What if any prerequisites for this upcoming session are necessary or software that should be installed? Could you (or will you before session) post links to the code, such as any python modules you use?

Thx again xeroc for taking the time to do this. I will be there tomorrow bright & early.
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 22, 2016, 03:27:32 pm
What if any prerequisites for this upcoming session are necessary or software that should be installed? Could you (or will you before session) post links to the code, such as any python modules you use?

Thx again xeroc for taking the time to do this. I will be there tomorrow bright & early.
Good point, let me create a new release to have all the new features included ..


// edit:

Else, these things are required:
- a running cli-wallet with a wallet and a funded account imported (import_key <account_name> <active_private_key>)
- the cli-wallet has to expose an RPC API port (best would be to restrict it to localhost) ... http://docs.bitshares.eu/integration/apps/cliwallet.html
- installed graphenelibs version 0.3.5 (new) .. pip upgrade --user graphenelib

That's about it
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: Thom on March 23, 2016, 02:18:24 pm
This is why I dislike google hangouts. I haven't a clue how to link up with the hangout in progress, and the search tools don't help to locate it. Others I've been on in the past required an invite. Since I see none of that discussed here I presume that isn't necessary for this live coding session.

When I click the link I am not connected. Hmmm... ??? :'(
Title: Re: Interest for a Live Coding Session for the Python Libraries?
Post by: xeroc on March 23, 2016, 02:26:49 pm
This is the correct link .. sorry for the hickup
https://hangouts.google.com/call/zgf2orearfhwrnfdxjd5dmdraie