[twitter-dev] Re: Twitter Developer Nest: London - Live Stream Tomorrow

2009-03-24 Thread Jonathan Markwell

Full details of the live stream now available at:

http://twitterdevelopernest.com/2009/03/london-launch-live-video-stream/

Jon.

On Mon, Mar 23, 2009 at 7:26 PM, Jonathan Markwell
j.l.markw...@inuda.com wrote:
 Hi Everyone,

 We're going to try and live stream the massively over subscribed
 Twitter Developer Nest event tomorrow evening from London, UK.  Please
 keep an eye on http://twitter.com/devnest for a link from around 18:30
 GMT tomorrow.

 We'll be using the tag #devnest throughout the evening. If you'd like
 to put a question forward for @dougw, who will be participating via
 video link, please use the tag #devnestQ

 I include the full schedule below. We hope to be releasing details of
 the next event in the next few days, it will likely be at the end of
 April.

 Best,

 @JonMarkwell

 -

 6 - SCHEDULE

 -

 18:45 Welcome

 18:50 Nick Halstead (@nickhalstead) - http://tweetmeme.com

 19:10 Sam Sethi (@ssethi) - http://twitblogs.com

 19:30 Doug Williams (@dougw) - http://twitter.com - Twitter API QA

 20:00 Break - Networking

 20:25 Graeme Sutherland (@grasuth) - http://nodestone.com - You Are a Neuron

 20:40 Show  Tell - Tell us something interesting in 140 seconds or
 less. Open participation, sign up on evening.

 21:00 Close

 -

 --
 Jonathan Markwell
 Engineer | Founder | Connector

 Inuda Innovations Ltd, Brighton, UK

 Web application development  support
 Twitter  Facebook integration specialists
 http://inuda.com

 Providing a nice place to work in the heart of Brighton - http://theskiff.org

 Helping people make a difference with technology  - http://inuda.org

 Measuring your brand's visibility on the social web - http://HowSociable.com

 mob: 07766 021 485 | tel: 01273 704 549 | fax: 01273 376 953
 skype: jlmarkwell | twitter: http://twitter.com/JonMarkwell




-- 
Jonathan Markwell
Engineer | Founder | Connector

Inuda Innovations Ltd, Brighton, UK

Web application development  support
Twitter  Facebook integration specialists
http://inuda.com

Providing a nice place to work in the heart of Brighton - http://theskiff.org

Helping people make a difference with technology  - http://inuda.org

Measuring your brand's visibility on the social web - http://HowSociable.com

mob: 07766 021 485 | tel: 01273 704 549 | fax: 01273 376 953
skype: jlmarkwell | twitter: http://twitter.com/JonMarkwell


[twitter-dev] Re: Freelance Twitter API Dev directory?

2009-03-24 Thread webjay

Please also include me:

Twitter id:webjay
Company:webcom.dk
Email:ja...@webcom.dk


[twitter-dev] How do I create a search engine

2009-03-24 Thread Faisal Ahmed

Hey how do I create a search engine like this http://www.twitterjobsearch.com/
that searches twitter ?


[twitter-dev] Re: Background Image Problem

2009-03-24 Thread Clint Shryock
care to be more specific?

On Mon, Mar 23, 2009 at 3:16 PM, ctmtcolumbus whe...@ctmt.com wrote:


 I am also having the same problem. Did anyone else get this fixed?



[twitter-dev] Re: Profile Images with no file extension

2009-03-24 Thread Matthias Bauer

On 23.03.2009 15:17, Shannon Whitley wrote:
 I just discovered that there are profile images with no file
 extension.  This is an example:

 http://s3.amazonaws.com/twitter_production/profile_images/70479542/eliteblogger_logo


 Is this something that we should expect?  I have been using the
 extension to determine the content-type.

Why don't you use the Content-type to determine the content-type?

S3 correctly sends a Content-type: image/png header.

-Matt


[twitter-dev] Re: What is 140 characters?

2009-03-24 Thread Craig Hockenberry

Any news from the Service Team? I'd really like to get the counters
right in an upcoming release...

-ch

On Mar 6, 12:18 pm, Alex Payne a...@twitter.com wrote:
 I'm taking this email to our Service Team, the folks who work on the
 back-end of the service. The whole message body changing as it moves
 from cache to backing store thing is totally unacceptable. Answers
 soon.

 On Fri, Mar 6, 2009 at 09:43, Craig Hockenberry



 craig.hockenbe...@gmail.com wrote:

  Some discussion about this thread popped up on Twitter yesterday:

  http://groups.google.com/group/twitter-development-talk/browse_thread/
  thread/44be91d5ec5850fa

  Alex states that it's 140 bytes per tweet. So, of course, Loren
  Brichter and I tried to prove that. With the following results:

  1) 140 characters that including ones that include HTML entities:
  http://twitter.com/gnitset/status/1286202252

  At the time of posting, this tweet showed up on the site and in feeds
  with all 140 characters. After a few hours, the  was converted to
  lt;, increasing the count per character from one to four bytes and
  decreasing the tweet length from 140 characters to 69. (You can see
  this truncation at the end of the tweet: the  is from lt;)

  Presumably, this happens as tweets in the memcache are written though
  to the backing store.

  I also see a lot of Twitter clients that don't realize how special the
  lt; and gt; entities are. It took me a LONG time to figure out what
  was going on here.

  2) 140 Unicode _multi-byte_ characters: http://twitter.com/atebits/
  status/1286199010

  What's curious is that Loren's example with 140 characters uses the
  Unicode 27A1 glyph. It uses 3 bytes in UTF-8. Why didn't it get
  truncated? This seems to contradict Alex's statement in the thread
  mentioned above.

  As people start to use things like Emoji, tinyarro.ws and generally
  figure out that Unicode (UTF-8) is a valid type of data on Twitter,
  our clients should adapt and display more accurate characters
  remaining counts. I can count bytes instead of characters, but I'm
  not sure if I should or not.

  No one likes a truncated tweet: we need an explicit statement on how
  to count and submit multi-byte characters and entities.

  -ch

 --
 Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x


[twitter-dev] Twitter4r (add friend problem)

2009-03-24 Thread Gaston Ramos

Hi all, I'm working on a project and I'm using Twitter4R library, 
I'm trying this:

twitter = Twitter::Client.new(:login = 'some_user',
  :password = 'sompass')

twitter.friend(:add, 'other_user')

and I get this error:

/usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.0/lib/twitter/client/base.rb:34:in
`raise_rest_error': Bad Request (Twitter::RESTError)
from
/usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.0/lib/twitter/client/base.rb:39:in
`handle_rest_response'
from
/usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.0/lib/twitter/client/base.rb:13:in
`http_connect'
from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
from
/usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.0/lib/twitter/client/base.rb:9:in
`http_connect'
from
/usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.0/lib/twitter/client/friendship.rb:32:in
`friend'
from twitter4r-add-friend.rb:12

Is this error related with that?:

http://code.google.com/p/twitter-api/issues/detail?id=354

Versions:

Linux Debian 2.6.22-1-k7 #1 SMP Mon Jul 23 14:02:09 UTC 2007 i686 GNU/Linux
ruby 1.8.6 (2008-03-03 patchlevel 114) [i486-linux]
twitter4r (0.3.0)

Regards.
-- 
Es imposible afinar un l\xE1piz con una cuchilla desafilada. Es igualmente 
in\xFAtil tratar de hacerlo con diez.
  (Edsger Dijkstra)


+-+
Gastón Ramos
http://gastonramos.com.ar/
GNU/Linux Counter user #450312
Always code as if the person who will maintain your code
is a violent psychopath who knows where you live.

  (Alan Braggins)


+-+
Gast\xF3n Ramos
http://gastonramos.com.ar/
GNU/Linux Counter user #450312


[twitter-dev] Re: How do I create a search engine

2009-03-24 Thread Dossy Shiobara


And a full tube of Make My Logo Bigger cream:

http://makemylogobiggercream.com/


On 3/24/09 9:31 AM, Andrew Badera wrote:

Magic.



On Tue, Mar 24, 2009 at 5:58 AM, Faisal Ahmed fais...@gmail.com
mailto:fais...@gmail.com wrote:


Hey how do I create a search engine like this
http://www.twitterjobsearch.com/
that searches twitter ?





--
Dossy Shiobara  | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)


[twitter-dev] Re: Handling deleted messages when caching locally

2009-03-24 Thread Abraham Williams
I've added a feature request that I see as being able to fix this:
http://code.google.com/p/twitter-api/issues/list?thanks=379

It would be a call to return a list of all status ids for a user.

On Tue, Mar 24, 2009 at 08:51, JakeS jakesteven...@gmail.com wrote:


 My application caches the user's timelines locally, fetching only new
 items using the since_id parameter (so it can be nice to twitter's
 servers).

 However, I'm getting some complaints from users who delete items using
 the website.  The items remain in my application's cache.  Of course
 it seems perfectly logical to me.  If they clear their cache, the full
 list is fetched again and the deleted items are gone.

 Anyone have any ideas on a better way to handle this situation?  Is
 there some way to fetch a list of deleted status ids?




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Chicago Illinois United States.


[twitter-dev] OAuth log in/out behavior

2009-03-24 Thread Chad Etzel

I have been encountering this scenario lately (especially with testing
OAuth apps with test accounts).

Say I am logged into the twitter website under my normal @jazzychad
account.  I use the site and navigate around, etc..

Now I open another tab and go to log into an OAuth enabed site. I
click the link to authenticate. The authentication page knows I am
already logged into the main twitter website as @jazzychad, but I want
to authenticate using my separate test account instead.  I click the
link to let me authenticate as somebody else, type in my user/pass and
click Allow.  I am taken back to the OAuth app and I'm now
authenticated.

Now I go back to my twitter website tab and click to go somewhere
else.  Instead of going to my desired page, I find I am now logged out
and presented with the Login screen.  Obviously this is happening
because I authenticated with another account during my OAuth trip.  I
am wondering if this is something that can be avoided, or if this is a
scenario that would affect so few users that it's not really worth
worrying about and will just cause a minor annoyance for those
actively using multiple accounts

-Chad


[twitter-dev] Re: Invalid oAuth Request

2009-03-24 Thread Pankaj Jain

Yeah Jamie, anything is possible.  I've beat my head against a brick
wall quite a few times dealing with OAuth  Twitter.  A small Perl
script I wrote was working perfectly and suddenly it stopped.  it's
now giving me a 401, just like you when nothing has changed.  I
suspect, Twitter is still making changes somewhere up in the cloud and
it's causing periodic weirdness and breaking perfectly working
code.  Try the GET like Abraham said.

On Mar 23, 4:51 am, Abraham Williams 4bra...@gmail.com wrote:
 Just for kicks try a GET instead of a POST.

 On Sun, Mar 22, 2009 at 15:18, Jamie Rumbelow ja...@jamierumbelow.netwrote:





  Can anyone give me a hand?

  Jamie Rumbelow Designer / Developer / Writer / Speaker
 http://www.jamierumbelow.net| +44 (0)7956 363875 | jamie (at)
  jamierumbelow
  (dot) net

  -Original Message-
  From: twitter-development-talk@googlegroups.com
  [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Cameron
  Kaiser
  Sent: 21 March 2009 20:27
  To: twitter-development-talk@googlegroups.com
  Subject: [twitter-dev] Re: Invalid oAuth Request

   I'm having a little trouble with oAuth - I'm getting an Invalid OAuth
   Request with a HTTP 401. I'm sure the signature is correct, and all
   I'm trying to do is get a request token. Has anyone had this problem
   before and if so how did you fix it?

  Code and/or output is always helpful.

  --
   personal:
 http://www.cameronkaiser.com/
  --
   Cameron Kaiser * Floodgap Systems *www.floodgap.com*
  ckai...@floodgap.com
  -- If there was a hole, I would jump into it. -- Gackt Camui
  --
  No virus found in this incoming message.
  Checked by AVG -www.avg.com
  Version: 8.0.238 / Virus Database: 270.11.20/2013 - Release Date: 03/20/09
  19:01:00

 --
 Abraham Williams |http://the.hackerconundrum.com
 Web608 | Community Evangelist |http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Madison Wisconsin United States.


[twitter-dev] Whitelisting with multiple IPs

2009-03-24 Thread bbc

Hi, right now our website needs multiple web servers, so we went ahead
and requested whitelisting for multiple IPs. But my question is, is
that 2 limit per IP or it's aggregated per website even if it runs
on multiple servers (IPs). Thanks in advance


[twitter-dev] Re: Whitelisting with multiple IPs

2009-03-24 Thread Doug Williams
Rate limiting is IP specific. Therefore, you should find that you have 2
calls per individual IP.

Thanks,
Doug Williams
Twitter API Support
http://twitter.com/dougw


On Tue, Mar 24, 2009 at 3:15 PM, bbc beier...@gmail.com wrote:


 Hi, right now our website needs multiple web servers, so we went ahead
 and requested whitelisting for multiple IPs. But my question is, is
 that 2 limit per IP or it's aggregated per website even if it runs
 on multiple servers (IPs). Thanks in advance



[twitter-dev] Posts from HootSuite not displaying in Search timeline

2009-03-24 Thread Paul

I am one of the developers of HootSuite and if you take for example
the user: stejules, in his main timeline:
http://twitter.com/stejules
there are many posts that have originated from the web app HootSuite,
however, those posts are not displaying when you search
'from:stejules':
http://search.twitter.com/search?q=from%3Astejules+
None of the posts from HootSuite appear in the Search timeline. I am
curious as to what is happening here, as this is probably not the only
user that this occurs with.

Thanks in advance,
Paul


[twitter-dev] Re: Posts from HootSuite not displaying in Search timeline

2009-03-24 Thread Chad Etzel

Looking at the Search Results, the most recent tweet was 23 days ago.
This suggests that it's not HootSuite's problem, but that his account
was probably flagged and is currently being prevented from being added
to the search index.

*I do not work for or speak for twitter, but this sort of situation
has popped up before, so I'm speaking on experience.  Best bet is to
have the user send supp...@twitter.com an email asking why he's not
listed in search results and if they could please re-instate him.

-Chad

On Tue, Mar 24, 2009 at 3:41 PM, Paul paul...@gmail.com wrote:

 I am one of the developers of HootSuite and if you take for example
 the user: stejules, in his main timeline:
 http://twitter.com/stejules
 there are many posts that have originated from the web app HootSuite,
 however, those posts are not displaying when you search
 'from:stejules':
 http://search.twitter.com/search?q=from%3Astejules+
 None of the posts from HootSuite appear in the Search timeline. I am
 curious as to what is happening here, as this is probably not the only
 user that this occurs with.

 Thanks in advance,
 Paul



[twitter-dev] 400 Bad Request from Twitter Search Feed

2009-03-24 Thread Abava

I am getting 400 Bad Request from Twitter Search Feed while loading it
via Google Ajax Feed API. Actually it looks like each second request
is finished with 400 code


[twitter-dev] Re: Posts from HootSuite not displaying in Search timeline

2009-03-24 Thread Paul

Ah, good to know.
Thanks for pointing that out. I will keep an eye out to ensure it is
not occurring with other users.

Paul

On Mar 24, 1:09 pm, Chad Etzel jazzyc...@gmail.com wrote:
 Looking at the Search Results, the most recent tweet was 23 days ago.
 This suggests that it's not HootSuite's problem, but that his account
 was probably flagged and is currently being prevented from being added
 to the search index.

 *I do not work for or speak for twitter, but this sort of situation
 has popped up before, so I'm speaking on experience.  Best bet is to
 have the user send supp...@twitter.com an email asking why he's not
 listed in search results and if they could please re-instate him.

 -Chad

 On Tue, Mar 24, 2009 at 3:41 PM, Paul paul...@gmail.com wrote:

  I am one of the developers of HootSuite and if you take for example
  the user: stejules, in his main timeline:
 http://twitter.com/stejules
  there are many posts that have originated from the web app HootSuite,
  however, those posts are not displaying when you search
  'from:stejules':
 http://search.twitter.com/search?q=from%3Astejules+
  None of the posts from HootSuite appear in the Search timeline. I am
  curious as to what is happening here, as this is probably not the only
  user that this occurs with.

  Thanks in advance,
  Paul


[twitter-dev] Re: Whitelisting with multiple IPs

2009-03-24 Thread bbc

Thanks for the quick answer. One more question, our service
(HootSuite.com) allow users to check their friends timelines, replies,
DMs... since all of these are authenticated requests, what we've been
assuming (and it seems have been working that way) was that, the first
100 requests uses the user's limit, and if it goes over 100, it'll
start using our web server's limit. Is this actually the way Twitter
API is supposed to work? and in the future as well?

Thanks again!

On Mar 24, 12:27 pm, Doug Williams d...@twitter.com wrote:
 Rate limiting is IP specific. Therefore, you should find that you have 2
 calls per individual IP.

 Thanks,
 Doug Williams
 Twitter API Supporthttp://twitter.com/dougw



 On Tue, Mar 24, 2009 at 3:15 PM, bbc beier...@gmail.com wrote:

  Hi, right now our website needs multiple web servers, so we went ahead
  and requested whitelisting for multiple IPs. But my question is, is
  that 2 limit per IP or it's aggregated per website even if it runs
  on multiple servers (IPs). Thanks in advance- Hide quoted text -

 - Show quoted text -


[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-24 Thread Sam Sethi


Twitter would be better off supporting gdata queries

Thanks in advance

Sam

W: www.twitblogs.com/ssethi
M: +44 7985 705075

Sent from my iPhone

On 23 Mar 2009, at 18:40, Alex Payne a...@twitter.com wrote:



Thanks for the feedback.

On Sun, Mar 22, 2009 at 20:46, Zac Bowling zbowl...@gmail.com wrote:


If it was built and twitter charged something similar to the rate  
that
Amazon's SimpleDB charges for processing power required to preform  
the

query, I would gladly pay.


Zac Bowling


On Sun, Mar 22, 2009 at 7:14 PM, Zac Bowling zbowl...@gmail.com  
wrote:
There was the one I mentioned in my first email that was a bridge  
with

MSSQL (Tweet-SQL) but that is nothing more then a bunch of managed
(written in c#) stored procedure calls for MSSQL 2005 which maybe  
what

you are thinking of. That's not really anything close to what I'm
looking for.

It doesn't even have to be SQL like but just a some kind of  
structured

query language for twitter. That would be awesome.


Zac Bowling




On Sun, Mar 22, 2009 at 4:49 PM, Abraham Williams  
4bra...@gmail.com wrote:
I'm positive that a third party was providing a tql api for their  
database
of tweets and that it was announced on this list but now  
searching returns

nothing. Does anybody else remember this? Maybe it was a dream...

On Sun, Mar 22, 2009 at 15:28, Zac Bowling zbowl...@gmail.com  
wrote:


I would love it if Twitter would develop an equivalent to  
Facebook's

FQL, Yahoo's YQL, Amazon's SimpleDB, or Google's GQL (used for app
engine data storage).

Basically an abstracted SQL-like query engine for doing queries  
and
getting back data the data you want using virtual tables of  
different

data twitter serves up.

You could do something basic like:

SELECT StatusID, UserID, Text FROM StatusUpdates as S
WHERE
  S.UserID in (SELECT UserID FROM SocialGraph WHERE  
FollowerUseringID

= MYUSERID) and
  S.StatusID  LASTID
ORDER BY S.StatusID DESC
LIMIT 200

to get a basic user's following timeline or whatever. From there  
you

can build on from that and get a bit more complex.

It could even build on from just query syntax to modify and  
destructive

calls.

Maybe something like:
DELETE FROM StatusUpdates WHERE StatusID = 200102;

or:
INSERT INTO StatusUpdates(text,replyToStatusID,replyToUserID)  
VALUES

('@johnsmith hello',123601020,235133);

or:
UPDATE StatusUpdates SET favorite = TRUE WHERE StatusID =  
123601020;


You could do it where you do an HTTP get/post with a query like  
above
to twitter's rest api, and the results could come back as JSON  
or XML

or whatever.

Some concepts like this could be done in a local side wrapper  
(like
I've seen a SQL bridge for MSSQL for twitter on here a while  
back) but
it would be awesome if these were processed twitter server side.  
If

done right, it can save on overhead on both twitter and from the
client side.

Like in one case I have where I'm hitting the following  
timeline, I'm

missing something out of the user structure that you get back from
that, so I turn around and do another user call on user for each  
tweet
to get that data. Half the data I get back in both cases don't  
use on
both calls but it would be awesome to be able to get that data  
in one

call.

A lot to consider around optimization and limits and a bit of  
work to

build it but I think something like that would be really useful.


Zac




--
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison WI United States.








--
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-24 Thread John Kalucki

With a relational streaming database, you can perform relational (SQL)
queries on the public timeline or the datamining feed and get real-
time results. This isn't exactly what you are looking for, but it
might meet your needs.

I know the folks at www.sqlstream.com have set this up. I'm sure that
other vendors such as Coral8 and Streambase could also do the same.

-John


On Mar 22, 1:28 pm, Zac Bowling zbowl...@gmail.com wrote:
 I would love it if Twitter would develop an equivalent to Facebook's
 FQL, Yahoo's YQL, Amazon's SimpleDB, or Google's GQL (used for app
 engine data storage).

 Basically an abstracted SQL-like query engine for doing queries and
 getting back data the data you want using virtual tables of different
 data twitter serves up.

 You could do something basic like:

 SELECT StatusID, UserID, Text FROM StatusUpdates as S
 WHERE
    S.UserID in (SELECT UserID FROM SocialGraph WHERE FollowerUseringID
 = MYUSERID) and
    S.StatusID  LASTID
 ORDER BY S.StatusID DESC
 LIMIT 200

 to get a basic user's following timeline or whatever. From there you
 can build on from that and get a bit more complex.

 It could even build on from just query syntax to modify and destructive calls.

 Maybe something like:
 DELETE FROM StatusUpdates WHERE StatusID = 200102;

 or:
 INSERT INTO StatusUpdates(text,replyToStatusID,replyToUserID) VALUES
 ('@johnsmith hello',123601020,235133);

 or:
 UPDATE StatusUpdates SET favorite = TRUE WHERE StatusID = 123601020;

 You could do it where you do an HTTP get/post with a query like above
 to twitter's rest api, and the results could come back as JSON or XML
 or whatever.

 Some concepts like this could be done in a local side wrapper (like
 I've seen a SQL bridge for MSSQL for twitter on here a while back) but
 it would be awesome if these were processed twitter server side. If
 done right, it can save on overhead on both twitter and from the
 client side.

 Like in one case I have where I'm hitting the following timeline, I'm
 missing something out of the user structure that you get back from
 that, so I turn around and do another user call on user for each tweet
 to get that data. Half the data I get back in both cases don't use on
 both calls but it would be awesome to be able to get that data in one
 call.

 A lot to consider around optimization and limits and a bit of work to
 build it but I think something like that would be really useful.

 Zac


[twitter-dev] Re: Handling deleted messages when caching locally

2009-03-24 Thread JakeS

That might work, but then I'd have to loop through every status id I
have in my cache and see if it exists in the list.  It'd be a lot
simpler to get a list of deleted items (since XX) and simply remove
them from my cache.

If there's no existing way to handle it.

On Mar 24, 12:28 pm, Abraham Williams 4bra...@gmail.com wrote:
 I've added a feature request that I see as being able to fix 
 this:http://code.google.com/p/twitter-api/issues/list?thanks=379

 It would be a call to return a list of all status ids for a user.

 On Tue, Mar 24, 2009 at 08:51, JakeS jakesteven...@gmail.com wrote:

  My application caches the user's timelines locally, fetching only new
  items using the since_id parameter (so it can be nice to twitter's
  servers).

  However, I'm getting some complaints from users who delete items using
  the website.  The items remain in my application's cache.  Of course
  it seems perfectly logical to me.  If they clear their cache, the full
  list is fetched again and the deleted items are gone.

  Anyone have any ideas on a better way to handle this situation?  Is
  there some way to fetch a list of deleted status ids?

 --
 Abraham Williams |http://the.hackerconundrum.com
 Web608 | Community Evangelist |http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Chicago Illinois United States.


[twitter-dev] a Python api redialer

2009-03-24 Thread ptone

So we all know that twitter can get over capacity at times.  I
wanted a way to work around that, but also to be reasonably gentle on
the server.

This meta-wrapper will try 3 times to do the api call before giving
up.  Its sort of rough and could be fleshed out with some custom
exceptions etc.

It is designed to be used with http://mike.verdone.ca/twitter/

if the following gets munged, it can also be viewed here for a time:
http://dpaste.com/18789/

If you are not using it in a class - remove the reference to self.

You call it use it basically like this:

from twitter.api import Twitter, TwitterError
twitter = Twitter('name','pw')
json = self.api_repeater(self.twitter.users.show,user_id=userid)




def api_repeater(self,api_call,**kwargs):

repeat a call to the twitter api when their servers are busy

tries = 0
while True:
try:
return api_call(**kwargs)
except TwitterError, e:
error_s = str(e.args[0]).split(':', 1)[1]
#print error_s
try:
error_dict = json.loads(error_s)
err = error_dict['error']
except:
err = str(e.args[0])
if 'Twitter is over capacity' in err:
if tries  3:
raise RuntimeError Twitter too busy
err = 'Twitter is over capacity. ' + str (tries)
tries =+ 1
print err
time.sleep(1)
else:
raise
except:
print sys.exc_info()[0]
raise



[twitter-dev] Re: a Python api redialer

2009-03-24 Thread Cameron Kaiser

 This meta-wrapper will try 3 times to do the api call before giving
 up.  Its sort of rough and could be fleshed out with some custom
 exceptions etc.

You might also consider something like an exponential backoff instead of
sleeping a second each time.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Von Herzen, moge es wieder zu Herzen gehen. -- Beethoven ---


[twitter-dev] Re: What is 140 characters?

2009-03-24 Thread Alex Payne

Unfortunately, nothing definitive. We're still looking into this.

On Tue, Mar 24, 2009 at 07:56, Craig Hockenberry
craig.hockenbe...@gmail.com wrote:

 Any news from the Service Team? I'd really like to get the counters
 right in an upcoming release...

 -ch

 On Mar 6, 12:18 pm, Alex Payne a...@twitter.com wrote:
 I'm taking this email to our Service Team, the folks who work on the
 back-end of the service. The whole message body changing as it moves
 from cache to backing store thing is totally unacceptable. Answers
 soon.

 On Fri, Mar 6, 2009 at 09:43, Craig Hockenberry



 craig.hockenbe...@gmail.com wrote:

  Some discussion about this thread popped up on Twitter yesterday:

  http://groups.google.com/group/twitter-development-talk/browse_thread/
  thread/44be91d5ec5850fa

  Alex states that it's 140 bytes per tweet. So, of course, Loren
  Brichter and I tried to prove that. With the following results:

  1) 140 characters that including ones that include HTML entities:
  http://twitter.com/gnitset/status/1286202252

  At the time of posting, this tweet showed up on the site and in feeds
  with all 140 characters. After a few hours, the  was converted to
  lt;, increasing the count per character from one to four bytes and
  decreasing the tweet length from 140 characters to 69. (You can see
  this truncation at the end of the tweet: the  is from lt;)

  Presumably, this happens as tweets in the memcache are written though
  to the backing store.

  I also see a lot of Twitter clients that don't realize how special the
  lt; and gt; entities are. It took me a LONG time to figure out what
  was going on here.

  2) 140 Unicode _multi-byte_ characters: http://twitter.com/atebits/
  status/1286199010

  What's curious is that Loren's example with 140 characters uses the
  Unicode 27A1 glyph. It uses 3 bytes in UTF-8. Why didn't it get
  truncated? This seems to contradict Alex's statement in the thread
  mentioned above.

  As people start to use things like Emoji, tinyarro.ws and generally
  figure out that Unicode (UTF-8) is a valid type of data on Twitter,
  our clients should adapt and display more accurate characters
  remaining counts. I can count bytes instead of characters, but I'm
  not sure if I should or not.

  No one likes a truncated tweet: we need an explicit statement on how
  to count and submit multi-byte characters and entities.

  -ch

 --
 Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x




-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Re: Handling deleted messages when caching locally

2009-03-24 Thread Bill Robertson

I would like to see an event query.

Request: user id, since (date only)
Response:
  notification if user's profile has changed
  id's of deleted messages (in timeline, not just owned by user)
  ids or details of new followers for user
  ids of lost followers for user
  ids of details or new followings for user
  is of lost followings for user


[twitter-dev] A question about updating status

2009-03-24 Thread rahulj18

Hi,

I am new at twitter API and using one the PHP APIs I managed to update
my status but I had a question how can I change the following text:

less than 5 seconds ago from web
to
less than 5 seconds ago from SomewhereElse


I have seen other people doing this.

Could you please help me out.

Cheers
Rahul


[twitter-dev] Re: A question about updating status

2009-03-24 Thread Cameron Kaiser

 Hi,
 
 I am new at twitter API and using one the PHP APIs I managed to update
 my status but I had a question how can I change the following text:
 
 less than 5 seconds ago from web
 to
 less than 5 seconds ago from SomewhereElse

http://apiwiki.twitter.com/FAQ#HowdoIget%E2%80%9CfromMyApp%E2%80%9DappendedtoupdatessentfrommyAPIapplication


-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Shell scripting: the ultimate open source software. 


[twitter-dev] Someone resurrected the Gigantor profile image bug

2009-03-24 Thread atebits

Is it my imagination, or are some profile images not being scaled down
properly (again)?

Example: http://twitter.com/stealing_second
http://s3.amazonaws.com/twitter_production/profile_images/109230522/twitter_normal.jpg
- 466x371px...

I'll also take this time to request some scrubbing of existing humungo
profile images.

Thanks,
Loren