« first day (1538 days earlier)      last day (1701 days later) » 

5:00 PM
let's see
pulling now
(lag on the notifications is great)
 
Sam
suspense
Looks good.
 
ok, it seems my bot joined the room
so that's progress
switching to other account
 
Sam
:D
Which room is it in?
 
Sam
\o/
 
5:05 PM
hum, seems to be "working" with my bot account, not with main
checking a few more things
 
Sam
@gunr2171 huh?
 
drats, you don't have the power to make my bot talk in that room, right?
it only has 1 rep
 
Sam
Erm, nope.
 
what about this room?
 
Sam
I do in mine and Uni's room though.
But.
 
5:07 PM
it will be for about 5 minutes
 
Sam
The account has to have 20+ rep to grant that priv.
 
drats
hum. i'll try my main account again
it seems that if i use my bot, it gets to posting a message just fine (and then does nothing becuase it can't)
but if i use my main account, i get the same "can't parse as integer" as before
looking more into it
 
Sam
Btw, atm CE.Net doesn't support multiple Client instances.
 
i know, i'm only running it one at a time
 
Sam
K
@gunr2171 Ok, that's weird.
Have you actually managed to successfully login to your main account via your SE creds?
 
5:10 PM
yes, let me try again
man, it takes a long time to login
 
Sam
yeah
 
so yeah, i can manually do it
let me try again
 
@gunr2171 Yeah, that's why it takes so long to start up SmokeDetector
 
so...when is google login going to be supported?
 
in Charcoal HQ on The Stack Exchange Network Chat, Dec 29 '14 at 15:26, by FOX 9000
Time to load files: 0.00399994850159
Time to log in to chat.SE: 31.7880001068
Time to log in to chat.MSE: 32.3040001392
Time to fetch room Charcoal HQ: 0.0
Time to fetch room Tavern on the Meta: 0.0
Time to fetch Bayesian room: 0.0
Time to send startup messages: 0.000999927520752
 
Sam
5:13 PM
@gunr2171 Erm, well there aren't any FRs for that.
(Yet...)
 
hum, when i get to HandlePrompt with main account, it returns with the first if statement
 
Sam
Right. Which means there isn't a prompt.
 
drats, i'm still getting the original parsing error...
 
Sam
Which also means, the content of postRes should be MSE's homepage.
 
let me check that
postRes is an HttpWebResponse, how do I look at the contents of it?
never mind, got it
i think
 
Sam
5:17 PM
Use RequestManager.GetResponseContent()
 
page title is Confirm Your New Account
well.....
what?
 
Sam
Oh.
And the Uri?
 
The ResponseUri from res?
in HandlePrompt?
 
Sam
Yep.
 
it's really long
(too long to post)
uhhh
 
Sam
5:20 PM
o_o
 
open that yourself, i'll delete it in a sec
 
Sam
Can I get a webview of the content of res in HandlePrompt?
K, got it.
 
webview?
 
Sam
For example. Fire up fiddler then look for the request from line 133, and then check the "Webview" tab.
Or, if you don't have fiddler.
 
i don't think i have fiddler
 
Sam
5:23 PM
Save the contents of res to a html file, open it, and then take a screen shot.
Actually.
It'll be easier/best if you just post the raw content.
 
i have the contents of resContent from HandlePrompt
 
Sam
Can I have a look?
 
(expires in 10 minutes)
 
Sam
thanks
 
Pastebin sucks.
 
5:26 PM
now this is weird, i don't have this issue when using my main account normally
@Unihedro meh, i'm indifferent
unless you have something better
 
Sam
@gunr2171 Ah, I've seen this before.
 
@gunr2171 To begin with, they have an utterly ridiculous API - You can only fetch 20 times from the same IP in 24 hours.
 
Sam
Gimmeh a sec and I'll commit another patch.
 
And you can only upload 20 pastes thru the pastebin API onto an account unless it's premium.
 
thanks sam!
 
Sam
5:28 PM
No prob ;)
 
ah, I see. well I only use it once per 3 months, so not the biggest deal for me
 
Plus, if I try to create a Pastebin with syntax highlighting, it always fails for me.
 
To add, they have a terrible interface - sites that have you decide what syntax highlighting to use in 201[45]? Are you kidding me?
hastebin.com finds the perfect syntax coloring instantly. The interface is simple and the API is simple - /raw and you get the plain text. It expires automatically, and you never have to do anything like giving your email to a web service.
 
well, while sam is making a code fix, does someone want to find me 5 posts that need editing on MSE? That way I can get my bot to 11 rep
 
11? You need 20
 
5:30 PM
oh, forgot
10 posts then
 
Why not burninate a tag on SO?
Then you get affiliation bonus.
 
at 1000 rep
i thougt
 
During more than 1 year on MSE, I just edited 38 posts. It's going to be difficult to find 10 posts with deserve editing in that case.
 
@ProgramFOX IT'S NOT TRUE
 
@gunr2171 No, 200
 
5:31 PM
@gunr2171 no, 200
 
AH, MY MEMORIES!!
 
@bjb568 Then y u mislead answerers?
 
just 100 edits
 
@ProgramFOX Hat.
 
5:32 PM
^ well, that's a lot of edits to do before sam finishing his patch
 
Given that I'm a freshman in highschool, did you really think I'm a parent of a preteen?
 
So... you think it wouldn't be a good question if you told you knew those languages?
@bjb568 Of course not. But you could have a nephew.
 
@bjb568 The "top" answer on that post sucks though. I can't believe it has 8 upvotes.
 
@ProgramFOX Nah, that'll wait another couple years.
@Unihedro agree
With all this rep, I'm going to DV!
feels good to have done something positive for the community
 
It's still going to be a top answer after you downvote.
 
5:34 PM
Yeah.
Hmm, just forbid it, and they will be immensely interested in the topic. — Per Alexandersson 6 hours ago
:P
 
:P
 
Have him check out Programming Puzzles & Code Golf too! No reason why programming can't be fun as well. ;) — Doorknob 冰 16 hours ago
hehe :P
 
Sam
@Unihedro :O bookmarked!
(few more mins till I'm done)
 
that's fine
woot, first suggested edit!
9 more to go!
 
inb4 rejected
 
5:42 PM
: (
 
So my WPF application crashes when I select rows in a DataGrid and click on them... WHAT?
The reason is probably that there should be hyperlinks inside but they don't show up. ugh
 
Sam
Wth?
 
Debugging fun: find out why the hyperlinks are empty.
oh, Hyperlink.NavigateUri should be a Uri, I passed a string...
(don't know if that's the reason, but anyway)
 
ffffffffffffffffffffffffffffffffffffffffffffffffffff
made the suggested edits as the main account
 
awww
 
Sam
5:50 PM
facepalm
I know.
 
well, it was only 2
 
Sam
Post an answer in the sandbox. And who knows, maybe you'll get an UV.
 
oh yeah, might try that in a bit
though in a bit i'm going to have to leave. i just woke up and i need to start my day
 
Changed string into Uri, hyperlinks still don't show up :/
 
Sam
@gunr2171 kk, np.
 
5:54 PM
ok, now an edit as the bot
 
eh, some of the data I have to put in the hyperlink is null
Oh, I'm so stupid.
I forgot to set the data to put in the hyperlink. facepalm
 
Sam
@ProgramFOX It happens to all of us. ;)
 
ok, well i'm out for now. I might be back on later. Thanks again @sam for your help!
 
Sam
Ok, cya!
 
6:04 PM
Cya!
 
Sam
Anytime ;)
I'll hopefully have the patch ready in 30-60 mins-ish.
 
6:15 PM
Hi,again
 
Sam
Hiya!
 
Hi!
 
guys, I am tryin to download a .mp3 file by webClient in c#
 
Sam
Right.
Anything going wrong?
 
this is the link when you click you can download but
when c# webclient tries to dowloaddata or downloadfile
it downloads a html file
 
Sam
6:18 PM
I see.
 
What can I do @Sam ? I think it is because of the methods that webClient uses.
 
Sam
No, it's the url you're using.
To download the .mp3 file you need the direct url to the file.
 
oh, how can I get it? the nearest url to the file is it.
 
Sam
Well, I've just tried that. And I'm not getting anything.
Then again, the link you posted isn't working either.
 
oh I see, because of the ' " ' character in the end. this must be working: g11.youtubeinmp3.com/download/grabber/…
 
Sam
6:24 PM
Hmm, still nothing.
 
yes, I've just noticed, interesting. Maybe it is about cookies or referrers.
 
Sam
Maybe.
In that case you'll need to create the request from scratch.
brb
Ok, I'm back.
 
Sam
@KeremZaman So, how did you originally get that url?
@ProgramFOX thx.
 
@Sam to make clear things, you can look at hear: youtubeinmp3.com/api
 
Sam
6:33 PM
@gunr2171 Ugh, I've been looking though ChatExchange all this time for the exact request I needed to send. But it was actually in a little lib I wrote (FlagExchange.Net) facepalm
@KeremZaman Ok, just looking...
@KeremZaman So then shouldn't you be using this url instead: http://youtubeinmp3.com/fetch/?video=<YouTube Link Here>
 
@Sam yes, I should use that url but it redirects what url I use, can you look at advanced api - plain text section?
 
Sam
Oh I see.
Sure.
@KeremZaman Ok, can you pass me the youtube vid link?
 
Sam
Ok, just a second.
 
Sam
6:59 PM
@KeremZaman Ok, here's the code...
var req = (HttpWebRequest)WebRequest.Create("Your URL");

req.Method = "GET";
req.AllowAutoRedirect = true;

var res = (HttpWebResponse)req.GetResponse();

var dataStream = res.GetResponseStream();
And I've gtg, cya later.
 
oh, thanks you say that I should use webrequest instead of webclient so I can allow autoredirect
 
Sam
7:23 PM
@KeremZaman Yeah, well I wasn't sure if you might need to set the referrer/origin as well, so just to make things easier I used HttpWebResponse.
 
Sam
8:07 PM
@gunr2171 Ok, I've committed another patch.
Well, I'm committing it right now...
Done. \o/
 
8:34 PM
I'm back, trying out your code
 
Sam
Wb.
 
guess what......
still no change
: (
 
Sam
Bah.
 
so why do you think it's wanting me to "create your account"?
 
Sam
Ok, well is the new method prompt handling method called?
@gunr2171 No idea.
 
8:40 PM
HandleConfirmationPrompt is called from the second if statement
 
Sam
But that also happens when you're not affiliated yet.
 
if (postRes.ResponseUri.ToString().StartsWith("http://" + host + "/users/authenticate"))
 
Sam
I mean HandleNewAccountPrompt
 
oh, missed that, let me re-run
 
Sam
k
Wait, you said HandleConfirmationPrompt is being called?!
 
8:43 PM
ok, so yes, HandleNewAccountPrompt is called from that second if statement
i messed up what i said
 
Sam
Oh, ok.
np
 
and I'm breakpointed on it if you need anything from it
 
Sam
And you're still testing this on your main account?
K, thanks.
 
yes, main account
 
Sam
Right.
 
8:44 PM
it seems so far that only the main account has problems
the bot account (while not being able to talk) gets to the talking code just fine
though i have no tested it with this newest code base
 
Sam
Hmm.
 
now so you know, the bot account ONLY has SE OAuth, while my main account has Google (first) and SE (second)
 
Sam
@gunr2171 Well, you'd need to get the response content from line 158 before I can continue debuggin'.
@gunr2171 Same as my main account.
 
the content from:
RequestManager.SendPOSTRequest("https://" + host + "/users/openidconfirm", data, true, referrer, origin);
?
 
Sam
Yeah.
 
8:47 PM
ok, just a sec
 
Sam
K, thx.
 
I'm changing the code to this:
var a = RequestManager.SendPOSTRequest("https://" + host + "/users/openidconfirm", data, true, referrer, origin);
var b = RequestManager.GetResponseContent(a);
 
Sam
Looks good.
 
well....
> Meta Stack Exchange requires cookies for authentication -- are your browser cookies enabled for this domain?
 
Sam
(Just checked, my main account has SE auth first, and then google.)
That's weird.
 
8:49 PM
how can you change the order? or can you?
 
Sam
I'm not sure if you can.
It's probably the cookie issue.
Is that the raw response?
 
that's the value of b from above
just a string
 
Sam
k
 
and this is details on a
 
Sam
Just a sec, I'm gonna check FlagExchange.Net again...
 
8:52 PM
 
Sam
StatusCode: Conflict?!
 
idk
that's why i took a screenshot, sounded interesting
 
Sam
It is indeed.
 
so I have two options I can think of: 1) get my bot up to 20 rep so it can talk in a chat room
2) remove my google login from my main account
 
Sam
Or, wait for me to finally solve this bug. ;)
 
8:56 PM
that too
if you need any more info i'll provide it
 
Sam
Ok, thanks :)
Can you check what's in RequestManager.CookiesToPass please?
 
on my breakpointed var b line?
 
Sam
Yep
 
running......
it's got a count of 2, though i'm not sure how to get the exact list
 
Sam
Ok, well. Erm.
Gimmeh a sec.
 

« first day (1538 days earlier)      last day (1701 days later) »