![]() |
2009-12-16
, 21:42
|
Posts: 486 |
Thanked: 154 times |
Joined on Sep 2009
@ New York City
|
#2
|
![]() |
2009-12-16
, 21:47
|
|
Posts: 11,700 |
Thanked: 10,045 times |
Joined on Jun 2006
@ North Texas, USA
|
#3
|
![]() |
2009-12-16
, 22:18
|
|
Posts: 11,700 |
Thanked: 10,045 times |
Joined on Jun 2006
@ North Texas, USA
|
#4
|
Chunk count = 0 //x Chunk total = 0 //y Capture text content of comment form Trigger POST method of comment form Capture page url after update Create short url of page url via bit.ly Save length of bit.ly url in numeric variable authenticate user in twitter While not end of comment text chunk count = chunk count + 1 parse comment text until chunk is built: chunk max length = 140 - ((bit.ly url + 1) + len("x/y") + 1) // x = chunk number // y = chunk total // chunk needs to take spaces into account-- // break chunks on spaces, never any other character // this means chunks will often be less than 140 characters chunk = x/y + " " + tempchunk + " " +bit.ly.url end parse chunk total = chunk total + 1 delete chunk text from overall comment submit chunk as tweet end while cleanup/close
![]() |
2009-12-23
, 20:23
|
|
Posts: 11,700 |
Thanked: 10,045 times |
Joined on Jun 2006
@ North Texas, USA
|
#5
|
![]() |
2010-02-08
, 01:59
|
|
Posts: 794 |
Thanked: 784 times |
Joined on Sep 2007
@ /Canada/Ontario/GTA
|
#6
|
![]() |
2010-02-08
, 02:44
|
|
Posts: 11,700 |
Thanked: 10,045 times |
Joined on Jun 2006
@ North Texas, USA
|
#7
|
![]() |
2010-02-08
, 02:50
|
|
Posts: 794 |
Thanked: 784 times |
Joined on Sep 2007
@ /Canada/Ontario/GTA
|
#8
|
![]() |
2010-02-08
, 07:54
|
|
Posts: 2,173 |
Thanked: 2,678 times |
Joined on Oct 2009
@ Cornwall, UK
|
#9
|
![]() |
2010-02-08
, 07:56
|
|
Posts: 11,700 |
Thanked: 10,045 times |
Joined on Jun 2006
@ North Texas, USA
|
#10
|
I want to start with a web service since I will need to get up to speed on wsdl, etc, fairly quickly for work. (EDIT: see note below)
I'll sketch out my idea here first because I want to capture thoughts in a place I almost live (
The basic idea of Beaker is a twitter web service that could be integrated into discussion pages. The program would capture lengthy post content, partition it into 2 or more twitter-length chunks that include key metadata and then submit the tweets.
Chunks would be prefixed by "x/y" whereas "x" is the number of the chunk from first to last, and "y" is the total number of chunks. Chunks would be suffixed by a bit.ly url pointing back to the original comment, article, etc.
I'm fairly adept at building logical parsing engines in general so I can model this easily-- but I'm very new to Python and related tools so it will take me a while to get going on implementation. Again, I am not opposed to anyone stepping in for that BUT in a transparent way that will help me (and others) learn.
Later I will write up some pseudo code to get the modeling underway.
EDIT: it occurred to me it makes more sense to do this in javascript I think...
Nokia Developer Champion
Different <> Wrong | Listen - Judgment = Progress | People + Trust = Success
My personal site: http://texrat.net
Last edited by Texrat; 2009-12-16 at 21:40.