[twitter-dev] New Twitter VB.NET 2005 Source Code

2010-01-16 Thread catcalls
Yeah, I developed an OAUTH app using VB.NET.

For the OAUTH process I used a library recommended to me from this
group. It's pretty good.

The website for my app source code is www.twitterdesktop.net

Even though there are binaries on this site - it would help if you
downloaded the binaries from www.download.com!

Search for CYK Desktop.

There is the simple HCI version of CYK Desktop. This version was
designed with Human Computer Interaction in mind and is really easy to
use.

Then, there is the advanced version of CYK Desktop which takes over
the desktop! It's a pretty cool feature.

There are some problems that can arrise with the advanced version.

1. Firewalls need to accept the dumpurge.exe before logging into CYK
Desktop Advanced.
2. On Vista / Windows 7 - UAC (User Account Control) needs to be
turned OFF before logging in.

The source code is for CYK Desktop advanced. They are pretty similar
under the hood (the different versions).

Okies, what I would LOVE is some feedback on my program in this thread
by EVERY ONE!!!

I recommend downloading the simple version to test because it does not
hijack the desktop. But, if you are technically minded - and want your
mind blown - download the advanced version!

Love in - peace out - Catcalls


[twitter-dev] How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

This is really bugging me now!

So far I've tried the following;

post_data = status=Hi carla

or

post_data=status='hi carla'

or

post_data=status=Hi%20Carla

Nothing works!

What is required to post spaces to twitter?


[twitter-dev] Re: BOJAN RAJKOVIC - Your DLL is not working!

2009-08-13 Thread catcalls

Since it is his library I am using which needs a fix. I am asking him
two things;

1. Is this a known error in 0.1
2. When will 0,3 turn into a working version.

So, what was your input again?

On Aug 13, 9:23 pm, Andrew Badera and...@badera.us wrote:
 On Thu, Aug 13, 2009 at 4:21 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  Hey dude,

  I'm using version 0.1 of your DLL because 0.3 did not compile in
  VS2005. So, I try posting an update to twitter using spaces replaced
  with + signs as the standard RFC compliant way of making a POST and
  I've got everyting working because it posts updates without spaces you
  see - only I get a 401 Unauthorised when I use spaces. I've tried a
  hell of a lot of different methods to make a post with spaces - all
  fail. So, what gives with your DLL? When are you going to release
  something what works?

 Wow, when did this turn into BOJAN RAJKOVIC's personal line?

 There are plenty of .NET libraries out there. Check out LinqToTwitter.

 By the way, when it's free, you're definitely getting what you pay for.

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)


[twitter-dev] Re: BOJAN RAJKOVIC - Your DLL is not working!

2009-08-13 Thread catcalls


Furthermore - I have wrote an entire program with full Twitter
Interfacing from Searching to Following to Finally Updating and now I
find I cannot post spaces with the library.

I cannot rewrite my entire code base because you suggest LINQ2Twitter.

I am using this guys library and he really needs to get it sorted for
me and the rest of his user base.

Basically, my only work around is to replace spaces with an underscore
_

That works.

But it looks like garbage.


[twitter-dev] Re: BOJAN RAJKOVIC - Your DLL is not working!

2009-08-13 Thread catcalls

Dim post_data As String = TextBox1.Text
Dim url As String = http://twitter.com/statuses/
update.xml?status=  post_data

Dim xml As String = oauth.WebRequest(RequestMethod.POST,
url, String.Empty)

This is my code.

I'll try URL Encoding the string next. Thanks for the suggestion.

On Aug 13, 9:53 pm, Andrew Badera and...@badera.us wrote:
 Perhaps you need to reconsider your design abstractions -- you should
 be able to virtually plug and play. You should have an assembly
 sitting between your app and the Twitter library, if you're using
 third party, and use your intermediary assembly as an adapter or
 facade. That makes it a lot simpler to swap the library on the
 backend. You can also use interfaces for this sort of purpose; I
 prefer the separate assembly because it reduces regression testing
 needs when you make changes later. Single-purpose-ish principle.

 Have you tried encoding the spaces before sending them into his library?

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



 On Thu, Aug 13, 2009 at 4:50 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  Furthermore - I have wrote an entire program with full Twitter
  Interfacing from Searching to Following to Finally Updating and now I
  find I cannot post spaces with the library.

  I cannot rewrite my entire code base because you suggest LINQ2Twitter.

  I am using this guys library and he really needs to get it sorted for
  me and the rest of his user base.

  Basically, my only work around is to replace spaces with an underscore
  _

  That works.

  But it looks like garbage.


[twitter-dev] Re: BOJAN RAJKOVIC - Your DLL is not working!

2009-08-13 Thread catcalls

Yeah - after much searching I discovered the URL encoding for space is
%2B - but this still did not work.

I really think there is a problem with oauth.WebRequest() in the DLL?

I know there is a Twitter Interface but there is no documentation on
how to use it either (that Rackovic wrote)

On Aug 13, 9:55 pm, catcalls g.obrzut3...@ntlworld.com wrote:
             Dim post_data As String = TextBox1.Text
             Dim url As String = http://twitter.com/statuses/
 update.xml?status=  post_data

             Dim xml As String = oauth.WebRequest(RequestMethod.POST,
 url, String.Empty)

 This is my code.

 I'll try URL Encoding the string next. Thanks for the suggestion.

 On Aug 13, 9:53 pm, Andrew Badera and...@badera.us wrote:



  Perhaps you need to reconsider your design abstractions -- you should
  be able to virtually plug and play. You should have an assembly
  sitting between your app and the Twitter library, if you're using
  third party, and use your intermediary assembly as an adapter or
  facade. That makes it a lot simpler to swap the library on the
  backend. You can also use interfaces for this sort of purpose; I
  prefer the separate assembly because it reduces regression testing
  needs when you make changes later. Single-purpose-ish principle.

  Have you tried encoding the spaces before sending them into his library?

  ∞ Andy Badera
  ∞ This email is: [ ] bloggable [x] ask first [ ] private
  ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

  On Thu, Aug 13, 2009 at 4:50 PM, catcallsg.obrzut3...@ntlworld.com wrote:

   Furthermore - I have wrote an entire program with full Twitter
   Interfacing from Searching to Following to Finally Updating and now I
   find I cannot post spaces with the library.

   I cannot rewrite my entire code base because you suggest LINQ2Twitter.

   I am using this guys library and he really needs to get it sorted for
   me and the rest of his user base.

   Basically, my only work around is to replace spaces with an underscore
   _

   That works.

   But it looks like garbage.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Hi Bojan Rajkovic,

When I tried using 0.3 DLL it stated a file was missing. Fox
something?

Perhaps it's a vs2008 only DLL? What do you think?

Also, I am using 0.1 DLL which works perfectly except it does not post
spaces - I get a 401 unauthorised.

I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() with
the URL.

I've tried a + and %2B and the only way to seperate words that works
is using a _

And that looks terrible!

So, is it a known issue in 0.1 that you cannot post spaces with
WebRequest?

I am getting authenticated fine. AND can post Hi to Twitter. Only one
word without spaces works tho - if I use a space or the URLEncoded
version of + or + itself it fails.

Any ideas because I am stumped?

On Aug 13, 10:18 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
 On Thu, Aug 13, 2009 at 4:17 PM, catcalls g.obrzut3...@ntlworld.com wrote:

   BOJAN RAJKOVIC

  Yeah, this is the guy. He is a member here. He'll prolly tell me to
  use the updated version of his DLL but sadly the updated version does
  not work as far as I can tell.

  So, I am using version 0.1 of his Twitter OAuth DLL. Which sucks to be
  honest. I wish I had the time to rewrite the code in VB.NET but I got
  stuck on creating correct nonces.

 As I recall, you're the gentleman who had trouble following my workflow
 instructions, so I'm not much inclined to help you anyway, less so after
 this little rant.

 I somehow don't think this is my OAuth library's fault, considering that it
 takes input from your implementation and doesn't really do any processing
 short of signing it. If your input is invalid, the signing won't work.
 The 0.3 version of the OAuth library works just fine. Please don't blame my
 code for your own mistakes, and if you have problems, file an issue on
 Google Code or send me an e-mail, instead of berating my code in public.

 OAuth trunk seems to work though, I'm able to get an access token from
 Twitter. I am able to properly sign a GET request and fetch it (I tried with
 the user timeline from statuses) from the C# REPL on Mono.

 If you want to get more information out of the library, try setting
 .Debugging to true on the OAuth object, you should get a lot of output on
 the command line or in Visual Studio's debugging window.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Yeah - but to clarify - A URLEncoded + (which is a space in RFC POST)
is %2B - so that was my point.

Don't try and correct me - I am an expert coder.

On Aug 13, 10:39 pm, Peter Denton petermden...@gmail.com wrote:
 just to clarify, so someone doesn't happen upon this thread and start using
 %2B for spaces.

 a space is %20



 On Thu, Aug 13, 2009 at 2:33 PM, catcalls g.obrzut3...@ntlworld.com wrote:

  Hi Bojan Rajkovic,

  When I tried using 0.3 DLL it stated a file was missing. Fox
  something?

  Perhaps it's a vs2008 only DLL? What do you think?

  Also, I am using 0.1 DLL which works perfectly except it does not post
  spaces - I get a 401 unauthorised.

  I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() with
  the URL.

  I've tried a + and %2B and the only way to seperate words that works
  is using a _

  And that looks terrible!

  So, is it a known issue in 0.1 that you cannot post spaces with
  WebRequest?

  I am getting authenticated fine. AND can post Hi to Twitter. Only one
  word without spaces works tho - if I use a space or the URLEncoded
  version of + or + itself it fails.

  Any ideas because I am stumped?

  On Aug 13, 10:18 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
   On Thu, Aug 13, 2009 at 4:17 PM, catcalls g.obrzut3...@ntlworld.com
  wrote:

 BOJAN RAJKOVIC

Yeah, this is the guy. He is a member here. He'll prolly tell me to
use the updated version of his DLL but sadly the updated version does
not work as far as I can tell.

So, I am using version 0.1 of his Twitter OAuth DLL. Which sucks to be
honest. I wish I had the time to rewrite the code in VB.NET but I got
stuck on creating correct nonces.

   As I recall, you're the gentleman who had trouble following my workflow
   instructions, so I'm not much inclined to help you anyway, less so after
   this little rant.

   I somehow don't think this is my OAuth library's fault, considering that
  it
   takes input from your implementation and doesn't really do any processing
   short of signing it. If your input is invalid, the signing won't work.
   The 0.3 version of the OAuth library works just fine. Please don't blame
  my
   code for your own mistakes, and if you have problems, file an issue on
   Google Code or send me an e-mail, instead of berating my code in public.

   OAuth trunk seems to work though, I'm able to get an access token from
   Twitter. I am able to properly sign a GET request and fetch it (I tried
  with
   the user timeline from statuses) from the C# REPL on Mono.

   If you want to get more information out of the library, try setting
   .Debugging to true on the OAuth object, you should get a lot of output on
   the command line or in Visual Studio's debugging window.


[twitter-dev] Can someone suggest a VB.NET Twitter API Interface that works?

2009-08-13 Thread catcalls

Hi,

I've been using a free Twitter API Interface that was coded in C# and
I imported the DLL and it was working fine until I discovered I cannot
post spaces to twitter updates! I mean, WHAT!?

So, I have basically coded this application with full interaction with
this DLL and wasted the past three days of my time because the
original coder was too lazy to get it to work for his clients.

So, can someone recommend a library that they used and was really
pleased with - I don't mind paying a small fee for something that
actually works you see.

I have a complete app coded that just needs the API Interface to work.
I tried rewriting some OAuth code but kept getting nonce errors so I
gave up. I might go back to that again though if this request fails as
a last resort.

I now understand the API authentication procedure a lot more now - and
remember the mistakes I was making previously. I might be able to
actually code a working class in VB.nET now with my expanded knowledge
of the OAuth authentication procedure.

But, in the meantime, any one know of a good API for VB.NET to use in
the form of a DLL that is Open Source too? This is because I'd really
like to take a look at working OAuth/Twitter API code in visual
basic .net 2005.

Thank you in advance.

catcalls


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls


No, I'm trying to encode a RFC POST request space which is a +.

Stop trying to be clever, it's making you look like an idiot.

On Aug 13, 10:43 pm, Andrew Badera and...@badera.us wrote:
 But you're trying to encode a SPACE not a + Mr. Expert Coder.

 You've got to be a troll.

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



 On Thu, Aug 13, 2009 at 5:41 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  Yeah - but to clarify - A URLEncoded + (which is a space in RFC POST)
  is %2B - so that was my point.

  Don't try and correct me - I am an expert coder.

  On Aug 13, 10:39 pm, Peter Denton petermden...@gmail.com wrote:
  just to clarify, so someone doesn't happen upon this thread and start using
  %2B for spaces.

  a space is %20

  On Thu, Aug 13, 2009 at 2:33 PM, catcalls g.obrzut3...@ntlworld.com 
  wrote:

   Hi Bojan Rajkovic,

   When I tried using 0.3 DLL it stated a file was missing. Fox
   something?

   Perhaps it's a vs2008 only DLL? What do you think?

   Also, I am using 0.1 DLL which works perfectly except it does not post
   spaces - I get a 401 unauthorised.

   I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() with
   the URL.

   I've tried a + and %2B and the only way to seperate words that works
   is using a _

   And that looks terrible!

   So, is it a known issue in 0.1 that you cannot post spaces with
   WebRequest?

   I am getting authenticated fine. AND can post Hi to Twitter. Only one
   word without spaces works tho - if I use a space or the URLEncoded
   version of + or + itself it fails.

   Any ideas because I am stumped?

   On Aug 13, 10:18 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
On Thu, Aug 13, 2009 at 4:17 PM, catcalls g.obrzut3...@ntlworld.com
   wrote:

  BOJAN RAJKOVIC

 Yeah, this is the guy. He is a member here. He'll prolly tell me to
 use the updated version of his DLL but sadly the updated version does
 not work as far as I can tell.

 So, I am using version 0.1 of his Twitter OAuth DLL. Which sucks to 
 be
 honest. I wish I had the time to rewrite the code in VB.NET but I got
 stuck on creating correct nonces.

As I recall, you're the gentleman who had trouble following my workflow
instructions, so I'm not much inclined to help you anyway, less so 
after
this little rant.

I somehow don't think this is my OAuth library's fault, considering 
that
   it
takes input from your implementation and doesn't really do any 
processing
short of signing it. If your input is invalid, the signing won't work.
The 0.3 version of the OAuth library works just fine. Please don't 
blame
   my
code for your own mistakes, and if you have problems, file an issue on
Google Code or send me an e-mail, instead of berating my code in 
public.

OAuth trunk seems to work though, I'm able to get an access token from
Twitter. I am able to properly sign a GET request and fetch it (I tried
   with
the user timeline from statuses) from the C# REPL on Mono.

If you want to get more information out of the library, try setting
.Debugging to true on the OAuth object, you should get a lot of output 
on
the command line or in Visual Studio's debugging window.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

What are you blathering about now? I've checked the DLL routines,
there are no built in encoding features.

And as for VB.NET - you have to do it manually like I did with %2B
because only ASP.NET has URLEncode.

On Aug 13, 10:44 pm, Andrew Badera and...@badera.us wrote:
 PS you know there are builtin encoding functions, right?

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



 On Thu, Aug 13, 2009 at 5:43 PM, Andrew Baderaand...@badera.us wrote:
  But you're trying to encode a SPACE not a + Mr. Expert Coder.

  You've got to be a troll.

  ∞ Andy Badera
  ∞ This email is: [ ] bloggable [x] ask first [ ] private
  ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

  On Thu, Aug 13, 2009 at 5:41 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  Yeah - but to clarify - A URLEncoded + (which is a space in RFC POST)
  is %2B - so that was my point.

  Don't try and correct me - I am an expert coder.

  On Aug 13, 10:39 pm, Peter Denton petermden...@gmail.com wrote:
  just to clarify, so someone doesn't happen upon this thread and start 
  using
  %2B for spaces.

  a space is %20

  On Thu, Aug 13, 2009 at 2:33 PM, catcalls g.obrzut3...@ntlworld.com 
  wrote:

   Hi Bojan Rajkovic,

   When I tried using 0.3 DLL it stated a file was missing. Fox
   something?

   Perhaps it's a vs2008 only DLL? What do you think?

   Also, I am using 0.1 DLL which works perfectly except it does not post
   spaces - I get a 401 unauthorised.

   I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() with
   the URL.

   I've tried a + and %2B and the only way to seperate words that works
   is using a _

   And that looks terrible!

   So, is it a known issue in 0.1 that you cannot post spaces with
   WebRequest?

   I am getting authenticated fine. AND can post Hi to Twitter. Only one
   word without spaces works tho - if I use a space or the URLEncoded
   version of + or + itself it fails.

   Any ideas because I am stumped?

   On Aug 13, 10:18 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
On Thu, Aug 13, 2009 at 4:17 PM, catcalls g.obrzut3...@ntlworld.com
   wrote:

  BOJAN RAJKOVIC

 Yeah, this is the guy. He is a member here. He'll prolly tell me to
 use the updated version of his DLL but sadly the updated version 
 does
 not work as far as I can tell.

 So, I am using version 0.1 of his Twitter OAuth DLL. Which sucks to 
 be
 honest. I wish I had the time to rewrite the code in VB.NET but I 
 got
 stuck on creating correct nonces.

As I recall, you're the gentleman who had trouble following my 
workflow
instructions, so I'm not much inclined to help you anyway, less so 
after
this little rant.

I somehow don't think this is my OAuth library's fault, considering 
that
   it
takes input from your implementation and doesn't really do any 
processing
short of signing it. If your input is invalid, the signing won't work.
The 0.3 version of the OAuth library works just fine. Please don't 
blame
   my
code for your own mistakes, and if you have problems, file an issue on
Google Code or send me an e-mail, instead of berating my code in 
public.

OAuth trunk seems to work though, I'm able to get an access token from
Twitter. I am able to properly sign a GET request and fetch it (I 
tried
   with
the user timeline from statuses) from the C# REPL on Mono.

If you want to get more information out of the library, try setting
.Debugging to true on the OAuth object, you should get a lot of 
output on
the command line or in Visual Studio's debugging window.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

OK - if you're the heroin here tell me where it is located.

And if you state system.web.httputility I'm gonna smack you.

On Aug 13, 10:52 pm, Andrew Badera and...@badera.us wrote:
 .NET has UrlEncode() fool, and numerous other character set
 manipulation functions.

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



 On Thu, Aug 13, 2009 at 5:50 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  What are you blathering about now? I've checked the DLL routines,
  there are no built in encoding features.

  And as for VB.NET - you have to do it manually like I did with %2B
  because only ASP.NET has URLEncode.

  On Aug 13, 10:44 pm, Andrew Badera and...@badera.us wrote:
  PS you know there are builtin encoding functions, right?

  ∞ Andy Badera
  ∞ This email is: [ ] bloggable [x] ask first [ ] private
  ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

  On Thu, Aug 13, 2009 at 5:43 PM, Andrew Baderaand...@badera.us wrote:
   But you're trying to encode a SPACE not a + Mr. Expert Coder.

   You've got to be a troll.

   ∞ Andy Badera
   ∞ This email is: [ ] bloggable [x] ask first [ ] private
   ∞ Google 
   me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

   On Thu, Aug 13, 2009 at 5:41 PM, catcallsg.obrzut3...@ntlworld.com 
   wrote:

   Yeah - but to clarify - A URLEncoded + (which is a space in RFC POST)
   is %2B - so that was my point.

   Don't try and correct me - I am an expert coder.

   On Aug 13, 10:39 pm, Peter Denton petermden...@gmail.com wrote:
   just to clarify, so someone doesn't happen upon this thread and start 
   using
   %2B for spaces.

   a space is %20

   On Thu, Aug 13, 2009 at 2:33 PM, catcalls g.obrzut3...@ntlworld.com 
   wrote:

Hi Bojan Rajkovic,

When I tried using 0.3 DLL it stated a file was missing. Fox
something?

Perhaps it's a vs2008 only DLL? What do you think?

Also, I am using 0.1 DLL which works perfectly except it does not 
post
spaces - I get a 401 unauthorised.

I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() with
the URL.

I've tried a + and %2B and the only way to seperate words that works
is using a _

And that looks terrible!

So, is it a known issue in 0.1 that you cannot post spaces with
WebRequest?

I am getting authenticated fine. AND can post Hi to Twitter. Only one
word without spaces works tho - if I use a space or the URLEncoded
version of + or + itself it fails.

Any ideas because I am stumped?

On Aug 13, 10:18 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
 On Thu, Aug 13, 2009 at 4:17 PM, catcalls 
 g.obrzut3...@ntlworld.com
wrote:

   BOJAN RAJKOVIC

  Yeah, this is the guy. He is a member here. He'll prolly tell me 
  to
  use the updated version of his DLL but sadly the updated version 
  does
  not work as far as I can tell.

  So, I am using version 0.1 of his Twitter OAuth DLL. Which sucks 
  to be
  honest. I wish I had the time to rewrite the code in VB.NET but 
  I got
  stuck on creating correct nonces.

 As I recall, you're the gentleman who had trouble following my 
 workflow
 instructions, so I'm not much inclined to help you anyway, less so 
 after
 this little rant.

 I somehow don't think this is my OAuth library's fault, 
 considering that
it
 takes input from your implementation and doesn't really do any 
 processing
 short of signing it. If your input is invalid, the signing won't 
 work.
 The 0.3 version of the OAuth library works just fine. Please don't 
 blame
my
 code for your own mistakes, and if you have problems, file an 
 issue on
 Google Code or send me an e-mail, instead of berating my code in 
 public.

 OAuth trunk seems to work though, I'm able to get an access token 
 from
 Twitter. I am able to properly sign a GET request and fetch it (I 
 tried
with
 the user timeline from statuses) from the C# REPL on Mono.

 If you want to get more information out of the library, try setting
 .Debugging to true on the OAuth object, you should get a lot of 
 output on
 the command line or in Visual Studio's debugging window.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Bojan,

This is a problem. I cannot find the URLEncoding feature.

Basically, I have declared OAuth.Twitter as Oauth2 and use
OAuth.GetAuthorisationLink() etc... to authorise so that object is
authorised. BUT - OAuth.Twitter has no URLEncoding feature that I can
find?

Neither can I locate URLEncode in OAuth class - I just tried declaring
it in VB.NET 2005 and I tried OAuth.RequestMethod and others and could
not locate any URLEncode method?

On Aug 13, 10:50 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
 On Thu, Aug 13, 2009 at 5:33 PM, catcalls g.obrzut3...@ntlworld.com wrote:

  Hi Bojan Rajkovic,

  When I tried using 0.3 DLL it stated a file was missing. Fox
  something?

  Perhaps it's a vs2008 only DLL? What do you think?

 You're probably missing log4net. If you'd read the error message, you could
 have figured this out on your own.







  Also, I am using 0.1 DLL which works perfectly except it does not post
  spaces - I get a 401 unauthorised.

  I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() with
  the URL.

  I've tried a + and %2B and the only way to seperate words that works
  is using a _

  And that looks terrible!

  So, is it a known issue in 0.1 that you cannot post spaces with
  WebRequest?

  I am getting authenticated fine. AND can post Hi to Twitter. Only one
  word without spaces works tho - if I use a space or the URLEncoded
  version of + or + itself it fails.

  Any ideas because I am stumped?

 Have you tried encoding the status using the OAuth library's UrlEncode?
 OAuth's URL encoding is a little different from RFC encoding, so the library
 has a special UrlEncode method.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Yeah, accept that you've been smacked. VB.NET for Windows Forms has no
HTTPUtility.URLEncode - it's purely ASP.NET. Dumbass troll.

On Aug 13, 10:54 pm, Andrew Badera and...@badera.us wrote:
 For general encoding, yes, HttpUtility, or Server.

 And Boijan pointed out the OAuth UrlEncode function as well for your
 specific problem as well.

 Smack me? Feel free, c'mon over!

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



 On Thu, Aug 13, 2009 at 5:53 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  OK - if you're the heroin here tell me where it is located.

  And if you state system.web.httputility I'm gonna smack you.

  On Aug 13, 10:52 pm, Andrew Badera and...@badera.us wrote:
  .NET has UrlEncode() fool, and numerous other character set
  manipulation functions.

  ∞ Andy Badera
  ∞ This email is: [ ] bloggable [x] ask first [ ] private
  ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

  On Thu, Aug 13, 2009 at 5:50 PM, catcallsg.obrzut3...@ntlworld.com wrote:

   What are you blathering about now? I've checked the DLL routines,
   there are no built in encoding features.

   And as for VB.NET - you have to do it manually like I did with %2B
   because only ASP.NET has URLEncode.

   On Aug 13, 10:44 pm, Andrew Badera and...@badera.us wrote:
   PS you know there are builtin encoding functions, right?

   ∞ Andy Badera
   ∞ This email is: [ ] bloggable [x] ask first [ ] private
   ∞ Google 
   me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

   On Thu, Aug 13, 2009 at 5:43 PM, Andrew Baderaand...@badera.us wrote:
But you're trying to encode a SPACE not a + Mr. Expert Coder.

You've got to be a troll.

∞ Andy Badera
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google 
me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

On Thu, Aug 13, 2009 at 5:41 PM, catcallsg.obrzut3...@ntlworld.com 
wrote:

Yeah - but to clarify - A URLEncoded + (which is a space in RFC POST)
is %2B - so that was my point.

Don't try and correct me - I am an expert coder.

On Aug 13, 10:39 pm, Peter Denton petermden...@gmail.com wrote:
just to clarify, so someone doesn't happen upon this thread and 
start using
%2B for spaces.

a space is %20

On Thu, Aug 13, 2009 at 2:33 PM, catcalls 
g.obrzut3...@ntlworld.com wrote:

 Hi Bojan Rajkovic,

 When I tried using 0.3 DLL it stated a file was missing. Fox
 something?

 Perhaps it's a vs2008 only DLL? What do you think?

 Also, I am using 0.1 DLL which works perfectly except it does not 
 post
 spaces - I get a 401 unauthorised.

 I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() 
 with
 the URL.

 I've tried a + and %2B and the only way to seperate words that 
 works
 is using a _

 And that looks terrible!

 So, is it a known issue in 0.1 that you cannot post spaces with
 WebRequest?

 I am getting authenticated fine. AND can post Hi to Twitter. Only 
 one
 word without spaces works tho - if I use a space or the URLEncoded
 version of + or + itself it fails.

 Any ideas because I am stumped?

 On Aug 13, 10:18 pm, Bojan Rajkovic severedcr...@gmail.com 
 wrote:
  On Thu, Aug 13, 2009 at 4:17 PM, catcalls 
  g.obrzut3...@ntlworld.com
 wrote:

    BOJAN RAJKOVIC

   Yeah, this is the guy. He is a member here. He'll prolly tell 
   me to
   use the updated version of his DLL but sadly the updated 
   version does
   not work as far as I can tell.

   So, I am using version 0.1 of his Twitter OAuth DLL. Which 
   sucks to be
   honest. I wish I had the time to rewrite the code in VB.NET 
   but I got
   stuck on creating correct nonces.

  As I recall, you're the gentleman who had trouble following my 
  workflow
  instructions, so I'm not much inclined to help you anyway, less 
  so after
  this little rant.

  I somehow don't think this is my OAuth library's fault, 
  considering that
 it
  takes input from your implementation and doesn't really do any 
  processing
  short of signing it. If your input is invalid, the signing 
  won't work.
  The 0.3 version of the OAuth library works just fine. Please 
  don't blame
 my
  code for your own mistakes, and if you have problems, file an 
  issue on
  Google Code or send me an e-mail, instead of berating my code 
  in public.

  OAuth trunk seems to work though, I'm able to get an access 
  token from
  Twitter. I am able to properly sign a GET request and fetch it 
  (I tried
 with
  the user timeline from statuses) from the C# REPL on Mono.

  If you want to get more information out of the library, try 
  setting

[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Server is purely ASP.NET - What the hell are you on?

On Aug 13, 10:59 pm, Andrew Badera and...@badera.us wrote:
 Like I said, or Server buddy.

 Keep digging that hole. Thanks for all the laughs!

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



 On Thu, Aug 13, 2009 at 5:58 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  Yeah, accept that you've been smacked. VB.NET for Windows Forms has no
  HTTPUtility.URLEncode - it's purely ASP.NET. Dumbass troll.

  On Aug 13, 10:54 pm, Andrew Badera and...@badera.us wrote:
  For general encoding, yes, HttpUtility, or Server.

  And Boijan pointed out the OAuth UrlEncode function as well for your
  specific problem as well.

  Smack me? Feel free, c'mon over!

  ∞ Andy Badera
  ∞ This email is: [ ] bloggable [x] ask first [ ] private
  ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

  On Thu, Aug 13, 2009 at 5:53 PM, catcallsg.obrzut3...@ntlworld.com wrote:

   OK - if you're the heroin here tell me where it is located.

   And if you state system.web.httputility I'm gonna smack you.

   On Aug 13, 10:52 pm, Andrew Badera and...@badera.us wrote:
   .NET has UrlEncode() fool, and numerous other character set
   manipulation functions.

   ∞ Andy Badera
   ∞ This email is: [ ] bloggable [x] ask first [ ] private
   ∞ Google 
   me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

   On Thu, Aug 13, 2009 at 5:50 PM, catcallsg.obrzut3...@ntlworld.com 
   wrote:

What are you blathering about now? I've checked the DLL routines,
there are no built in encoding features.

And as for VB.NET - you have to do it manually like I did with %2B
because only ASP.NET has URLEncode.

On Aug 13, 10:44 pm, Andrew Badera and...@badera.us wrote:
PS you know there are builtin encoding functions, right?

∞ Andy Badera
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google 
me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

On Thu, Aug 13, 2009 at 5:43 PM, Andrew Baderaand...@badera.us 
wrote:
 But you're trying to encode a SPACE not a + Mr. Expert Coder.

 You've got to be a troll.

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google 
 me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)

 On Thu, Aug 13, 2009 at 5:41 PM, 
 catcallsg.obrzut3...@ntlworld.com wrote:

 Yeah - but to clarify - A URLEncoded + (which is a space in RFC 
 POST)
 is %2B - so that was my point.

 Don't try and correct me - I am an expert coder.

 On Aug 13, 10:39 pm, Peter Denton petermden...@gmail.com wrote:
 just to clarify, so someone doesn't happen upon this thread and 
 start using
 %2B for spaces.

 a space is %20

 On Thu, Aug 13, 2009 at 2:33 PM, catcalls 
 g.obrzut3...@ntlworld.com wrote:

  Hi Bojan Rajkovic,

  When I tried using 0.3 DLL it stated a file was missing. Fox
  something?

  Perhaps it's a vs2008 only DLL? What do you think?

  Also, I am using 0.1 DLL which works perfectly except it does 
  not post
  spaces - I get a 401 unauthorised.

  I declare Oauth.Twitter as oauth2 then use oauth2.WebRequest() 
  with
  the URL.

  I've tried a + and %2B and the only way to seperate words that 
  works
  is using a _

  And that looks terrible!

  So, is it a known issue in 0.1 that you cannot post spaces with
  WebRequest?

  I am getting authenticated fine. AND can post Hi to Twitter. 
  Only one
  word without spaces works tho - if I use a space or the 
  URLEncoded
  version of + or + itself it fails.

  Any ideas because I am stumped?

  On Aug 13, 10:18 pm, Bojan Rajkovic severedcr...@gmail.com 
  wrote:
   On Thu, Aug 13, 2009 at 4:17 PM, catcalls 
   g.obrzut3...@ntlworld.com
  wrote:

 BOJAN RAJKOVIC

Yeah, this is the guy. He is a member here. He'll prolly 
tell me to
use the updated version of his DLL but sadly the updated 
version does
not work as far as I can tell.

So, I am using version 0.1 of his Twitter OAuth DLL. Which 
sucks to be
honest. I wish I had the time to rewrite the code in 
VB.NET but I got
stuck on creating correct nonces.

   As I recall, you're the gentleman who had trouble following 
   my workflow
   instructions, so I'm not much inclined to help you anyway, 
   less so after
   this little rant.

   I somehow don't think this is my OAuth library's fault, 
   considering that
  it
   takes input from your implementation and doesn't really do 
   any processing
   short of signing it. If your input is invalid, the signing 
   won't work.
   The 0.3 version of the OAuth library works

[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Oh, one last point - URLEncode will only convert the + to %2B - what I
have tried using. So, what the HELL are you talking about?

On Aug 13, 11:03 pm, Andrew Badera and...@badera.us wrote:
 On Thu, Aug 13, 2009 at 6:01 PM, Bojan Rajkovicseveredcr...@gmail.com wrote:
  On Thu, Aug 13, 2009 at 5:54 PM, Andrew Badera and...@badera.us wrote:

  For general encoding, yes, HttpUtility, or Server.

  And Boijan pointed out the OAuth UrlEncode function as well for your
  specific problem as well.

  Smack me? Feel free, c'mon over!

  Hi Andrew,
  Mind if I mail you?
  --Bojan

 Feel free, no need to ask.

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Oh, am I?

I do know about referencing. But, are we really going to include all
the DLL's available just to get YOUR DLL to work?

I think the problem is clear - YOUR work. Not mine.

On Aug 13, 10:59 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
 On Thu, Aug 13, 2009 at 5:58 PM, catcalls g.obrzut3...@ntlworld.com wrote:

  Yeah, accept that you've been smacked. VB.NET for Windows Forms has no
  HTTPUtility.URLEncode - it's purely ASP.NET. Dumbass troll.

 Actually, Andrew's absolutely right, you can use HttpUtility's UrlEncode in
 WinForms. You just need a reference to System.Web.dll. This is not an
 ASP.NET only thing, so it seems to me like you're the dumbass troll who's
 getting smacked.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls
Well, sadly, the OAuth library that Rackovic provided me has no
URLEncode in OAuth.base - I just checked. Strike two - troll.

On Aug 13, 11:05 pm, Andrew Badera and...@badera.us wrote:
 Straight out of OAuthBase and Shannon Whitley's work:

 protected string UrlEncode(string value)
         {
             StringBuilder result = new StringBuilder();

             if (!string.IsNullOrEmpty(value))
             {
                 foreach (char symbol in value)
                 {
                     if (unreservedChars.IndexOf(symbol) != -1)
                     {
                         result.Append(symbol);
                     }
                     else
                     {
                         result.Append('%' +
 String.Format(CultureInfo.InvariantCulture, {0:X2}, (int)symbol));
                     }
                 }
             }

             return result.ToString();
         }

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



 On Thu, Aug 13, 2009 at 3:47 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  This is really bugging me now!

  So far I've tried the following;

  post_data = status=Hi carla

  or

  post_data=status='hi carla'

  or

  post_data=status=Hi%20Carla

  Nothing works!

  What is required to post spaces to twitter?

[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Oh - you really think that, eh? So how does RFC POST work again?

Are you really this thick?

I tried %20 too - it fails. Nothing works because the DLL that
Rackovic wrote is rubbish.

On Aug 13, 11:09 pm, Andrew Badera and...@badera.us wrote:
 On Thu, Aug 13, 2009 at 6:06 PM, catcallsg.obrzut3...@ntlworld.com wrote:

  Oh, one last point - URLEncode will only convert the + to %2B - what I
  have tried using. So, what the HELL are you talking about?

 You're not encoding a +. You're encoding a  .

 Good luck and good evening friend.


[twitter-dev] Re: How to post spaces to twitter from vb.net?

2009-08-13 Thread catcalls

Rajkovic,

That is version 0.3 - I'm using 0.1!

I cannot use 0,3 - as for log4net - isn't that a Linux thing? I'm
coding under Visual Studio in XP.

I googled log4net - and Apache links came up? What the hell?

Also, I tried using Twitter.API.Authentication.GetAccessToken and it
fails.

Then I tried modifying my code further to use
Twitter.API.Authentication.GetAuthorisationLink() and it gives a 401.

So, basically, the DLL version 0.1 should be trashed. I know version
0.3 works like you said but I do not have the files required to use
it.

Overall, this has been a disappointing evening. I've spent the last
three days coding this app using Rajkovic's DLL and got the search to
work, follow to work, and update to work. Then I find I cannot post a
update with spaces!?

I mean, c'mon!

Oh, I also imported system.web and encoded the Hi Carla string with
and without the  + sign. No luck.

So, basically, I'm looking now for a working DLL for Visual Basic Net
2005.

Any suggestions?

On Aug 13, 11:25 pm, Bojan Rajkovic severedcr...@gmail.com wrote:
 On Thu, Aug 13, 2009 at 6:11 PM, catcalls g.obrzut3...@ntlworld.com wrote:

  Oh - you really think that, eh? So how does RFC POST work again?

  Are you really this thick?

  I tried %20 too - it fails. Nothing works because the DLL that
  Rackovic wrote is rubbish.

 If my DLL is rubbish, then how does this work:

 using Twitter.API;
 using OAuth;
 using System;
 using System.Net;
 using System.Security.Cryptography.X509Certificates;

 public class NoCheckCertificatePolicy : ICertificatePolicy
 {
     public bool CheckValidationResult (ServicePoint a, X509Certificate b,
 WebRequest c, int d)
     {
             return true;
     }

 }

 class Test
 {
 static void Main (string[] args)
 {
 ServicePointManager.CertificatePolicy = new NoCheckCertificatePolicy ();
 //Twitter.API.Preferences.Service.SupportsSSL = false;
 Twitter.API.Preferences.Authentication.OAuthAuthorizer = new OAuth.Twitter
 (myConsumerKey, myConsumerSecret);
 Twitter.API.Preferences.Debugging = true;
 Twitter.API.Preferences.Authentication.OAuthAuthorizer.Debugging = true;
 Console.WriteLine
 (Twitter.API.Preferences.Authentication.OAuthAuthorizer.GetAuthorizationLin k
 ());
 string pin = Console.ReadLine ();
 if (Twitter.API.Preferences.Authentication.OAuthAuthorizer.GetAccessToken
 (int.Parse (pin)))
 Twitter.API.REST.Statuses.Update (Testing status updates., 0);

 }
 }

 That produced this tweet without any 
 issues:http://twitter.com/bojanrajkovic/status/3295247812


[twitter-dev] Re: Can someone suggest a VB.NET Twitter API Interface that works?

2009-08-13 Thread catcalls

Oh, the problem is the DLL. I mean, how many ways can you encode a
space?

I can use the DLL to search, follow, and update a single word to my
twitter account - but as soon as I use a space it fails. Believe me,
it's the DLL. Furthermore, the update to the DLL (which he claims
works) does not compile on my machine.

Finally, I am his client, because I am using his wares. If you are
coding for yourself, you do not release it onto the net. You only do
that to get people like me, as clients.

I offer support on all my open source work. I frequently release code
- but the difference is - I test my code before release.

As for your other suggestions - they are BETA - I want something that
actually works and is at least 1.0

On Aug 13, 11:27 pm, Mark Turner m...@amerine.net wrote:
 On Thu, Aug 13, 2009 at 2:48 PM, catcallsg.obrzut3...@ntlworld.com wrote:
  I've been using a free Twitter API Interface that was coded in C# and
  I imported the DLL and it was working fine until I discovered I cannot
  post spaces to twitter updates! I mean, WHAT!?

 I'm willing to bet that the problem is not the DLL.

  So, I have basically coded this application with full interaction with
  this DLL and wasted the past three days of my time because the
  original coder was too lazy to get it to work for his clients.

 Rude. If you got it for free don't complain, nobody works on
 open-source/free libraries for anyone but themselves. The take the
 time out of their day to package it up and put it out there so other
 people can try to save time or headache or use their sweet ass code.
 They don't have to help you in any way, shape or form unless the
 choose to do so.

 And I sincerely doubt he would call you his 'client'.



  So, can someone recommend a library that they used and was really
  pleased with - I don't mind paying a small fee for something that
  actually works you see.

  I have a complete app coded that just needs the API Interface to work.
  I tried rewriting some OAuth code but kept getting nonce errors so I
  gave up. I might go back to that again though if this request fails as
  a last resort.

 A whole four seconds of googling brought up a page full of libraries
 and examples in a large amount of languages including .net ones.

 http://oauth.net/code

 And here is something that look promising:

 Main:http://code.google.com/p/oauth-dot-net/
 Source:http://code.google.com/p/oauth-dot-net/wiki/SourceNotice?tm=4
 Docs:http://lab.madgex.com/oauth-net/gettingatarted01.aspx/
 Demos:http://lab.madgex.com/oauth-net/

 Would you please stop asking for oauth+vb.net help here, its clogging
 up the 7gb that google gives me. Head over tohttp://oauth.netfor
 help.


[twitter-dev] Desperate for Help! Twitter API Blues...

2009-06-25 Thread catcalls

Hi,

http://www.aponetworks.com/dumpurge/index.html

This is a link to the source code so far. It has my Keys / Tokens I
received from Twitter in it.

I customised a C# Class into a VB.NET class of my own. I also imported
the standard C# OAuth DLL into the program to use.

I still get an 401 Unauthorised when using this source code and I am
really unsure why!?

I cannot even view pages that do not require authorisation! Haha.

This sucks - OAuth sucks - How am I supposed to view a simple xml page
on twitter? I have followed all the tutorials to the letter and even
copied loads of custom Twitter API code into my program and it STILL
DOES NOT WORK!

I am going out my box on this one guys. Srsly, some one take a look at
the files and offer some help!