« first day (61 days earlier)      last day (270 days later) » 

9:53 AM
room topic changed to Room for Uni and Inf: ... and whoever that comes across this room. Nothing much really have to happen around here, it's like another hideout or something. Enjoy your stay! OK, bye! [excuses] [waffles]
room topic changed to Room for Uni and Inf: ... and whoever that comes across this room. Nothing much really have to happen around here, it's like another hideout or something. Enjoy your stay! OK, bye! [excuses] [friends] [unicorns] [waffles]
 
 
7 hours later…
4:32 PM
lalalalala
Cool, star limits only applies per-room!
 
Nice, congrats!
 
Thanks!
One of my selfies I wrote today were also well-received... over 100 rep :D
 
on SO, I'm going to work on that regex golf and see if I have better luck
 
Sam
5:14 PM
YES! Finally, my DSL link is back up! :D
 
Yay!
 
Sam
@Unihedron Nice :D
 
Yay! Welcome aboard!
 
Sam
Thx, I just hope it stays up.
 
:S
I'm opting out from the tavern for the rest of the night, I'm going to sleep soon. :o
 
Sam
5:17 PM
Kk ;)
Since I couldn't debug CE.Net, I polished up Rain-Generator instead. frantically starts debugging CE.Net
 
:O
:D
 
Sam
I also had some time to quickly write up a CE.Net example project.
 
I also drafted a bit of how easy I want JCE to be useable when I was at school wondering what to do with my life.
Since it's Java and OOP and all...
 
Sam
:D
 
Agent agent =
ChatExchange.getFactory().initializeAgent(/* these parameters are:
  async, login (null for only listener), IServiceProviders (plugins and hacks) */
  false, () -> {super.email = email;
         super.password = password; }, null);
final Reciever<MentionedMessage> r = new SimpleFilterReciever(MentionedMessage.class);
MentionedMessage next;
while (next = r.readFromChat(agent)) {
    // handle the message somehow
    agent.sendMessage("hi " + r.getUser().getDisplayName());
}
Or something...
The second parameter looks surprisingly like a json (intentionally), but it's actually a java8 lambda
 
Sam
5:34 PM
Nice, pretends to understand :)
 
It's supposed to look like pseudocode :( but eh
It does hide a lot, which I like :P
 
Sam
It does kinda look complex. But hey, it's not finished yet ;)
 
;P
 
Sam
I'll post a little example snippet...
var client = new Client("some-email@address.com", "MySuperStr0ngPa55word");

var sandbox = client.JoinRoom("http://chat.meta.stackexchange.com/rooms/651/sandbox");

var myMessage = sandbox.PostMessage("Hello world!");

sandbox.NewMessage += message => Console.WriteLine("Author: " + message.AuthorName + "\nMessage: " + message.Content + "\n");
 
Cool! => is lambda?
 
Sam
5:38 PM
Yep, it's just easier to subscribe to the event.
 
Awesome!
Mine is 4 lines too, except I've decided not to handle the events with lambdas.
 
Sam
Ok, so how do you then?
 
final Reciever<MentionedMessage> r = new SimpleFilterReciever(MentionedMessage.class);
MentionedMessage next;
while (next = r.readFromChat(agent)) {
    // handle the message somehow
    agent.sendMessage("hi " + r.getUser().getDisplayName());
}
You make a Filter (named "reciever") if you want to, which allows you to use readFromChat(), which waits for the queue to fill up.
Then you eh... Write code. :P
 
Sam
Ah, I see.
Which chat events do you plan to wrap?
 
All, but I'm not going to do it eager like I planned; The classes will never be loaded until they're needed.
 
Sam
5:44 PM
Probably best, since there's like ~30 diff events ;)
Oh, speaking of which...
I've just noticed that there's two message flagging events.
MessageFlagged = 9,
[...]
ModeratorFlag = 12
 
I don't think either is called when you don't have enough rep to see them.
So for "12", you'd only see if you're a moderator.
And for "9", you'd only get that event if viewing as a 10ker.
 
Sam
That makes sense.
 
But I'll make them too.
'Cuz a moderator might use my chat app. :D
 
Sam
But I suppose that means you'd need to be able to raise mods flags though.
:D
 
Oh?
 
Sam
5:48 PM
Exactly...
 
Mod flags, starring and browsing history of a message are unlocked at 20 rep.
You get a feedback response for flagging a message which shows you the box, but it doesn't do it to other non-10kers.
Same for mod flags - it doesn't show up for non-moderators, only to other moderators.
 
Sam
@Unihedron "Mod flags" as in the normal chat flag?
 
"flag for moderator"
actually, both "flag for moderator" and "spam/offensive" flags..
 
Sam
... in chat?
 
I've never tried it out, but on my bot account when < 20 rep, you can't star messages, and history isn't enabled.
in the chat interface, it is enabled on the public full transcript.
 
Sam
5:53 PM
Oh, I've just noticed. facepalm
You don't happen to know what ev11 is (FileAdded)?
 
upload pic?
never tried
ok, lemme try this...
first, websockets..
 
Sam
loads console
Ok, ready.
 
> "XMLHttpRequest cannot load http://chat.stackoverflow.com/chats/774/events. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://chat.meta.stackexchange.com' is therefore not allowed access. "
 
Sam
$.post('http://chat.meta.stackexchange.com/chats/774/events', 'since=0&mode=Events&msgCount=1&fkey=' + fkey().fkey).success(function (o)
{
    $.post('http://chat.meta.stackexchange.com/ws-auth', 'roomid=774&fkey=' + fkey().fkey).success(function(oo)
    {
        var ws = new WebSocket(oo.url + '?l=' + o.time);
        ws.onmessage = function (e)
        {
            console.log(e.data);
        };
    });
});
^ try that (seasoned with C# conventions).
 
@Unihedron Yeah, CORS can be annoying sometimes.
 
5:58 PM
Great, it works now, that was weird
cat pic incoming...
 
@Unihedron You were trying to access chat.SO from chat.MSE.
 
... Oh.
LOL
negative, ev11 absent
 
Sam
Same here.
 
maybe it's feeds?
 
Sam
FeedTicker = 22
^ I thought that was for feeds.
 
6:00 PM
that's ticker
 
Sam
Oh.
 
Unihedron has made a change to the feeds posted into this room
 
Any time now...
 
posted on November 10, 2014 by Artist

Not much going on at the moment other than my first world problem of doctor.biopsy(run); causing leg.skin(); to return a null, and while (healing){      if (skin == null){          body.move(false);          ass.fatten();      } } And then body.status(); throws a PainfulException

 
Sam
Side note: user_ID can be negative (kinda obvious, I guess).
 
6:03 PM
ev1...
 
Sam
... same.
 
Sam
Wow, never knew that.
 
Maybe ev11 is for moderators.
 
Sam
I only knew community = -1, feeds = -2.
 
6:04 PM
Sharing files or something
 
Sam
Maybe we should poke shog ;)
 
Ohhhhh
Hmm, maybe :P
user image
3
 
Sam
Still cute.
/// <summary>
/// Still have no idea what this is...
/// </summary>
DebugMessage = 7,
 
:P
Maybe we gotta throw a POST request on a /debug socket to enable debugging?
 
Sam
I've already tried :/
 
6:12 PM
HOLD ON ONE SEC
 
Sam
Hiya @Inf
 
Triple slashes for commenting?!
 
Sam
:O
 
Hiya @Inf
OMG
 
Hiya @Sam and @Uni
 
6:12 PM
@Unihedron That's for documentation comments. Regular comments are two slashes.
@InfiniteRecursion Hiya!
 
Sam
Yeah, it's the xml code commenting syntax.
 
Hiya @ProgramFOX
 
oh I see... thanks
 
Sam
We've also got /* blah blah blah */ for multi line commenting.
 
C-style
in java documentation comments are /** like these */
/**
 * Don't ask me how this
 * method works.
 * I don't know either.
 */
 
Sam
6:15 PM
So how do you mark what the method returns/throws/etc. ?
 
HTML and annotations
 
/**
*@params blah 1 - type
* @returns blah blah blah
*/
 
/**
 * @param x
 *   Integer, a point on x axis.
 * @param y
 *   Integer, a point on y axis
 * @returns
 *   the corresponding value
 * @throws IllegalArgumentException when negative values are used.
 */
 
Sam
I see.
 
There's also some annotations like @see java.util.HashMap.
It adds a link.
And the popular @author...
^ simple docs
Actually, I never got around to fixing that comment block..
:(
Night!
 
6:18 PM
You never hide your email
Delete the image...it has ur email
 
That and programfoxrules@gmail.com I don't mind recieving mail from.
 
Night!
 
My "important mail" is somewhere important :D
 
And yes, in case someone is wondering, that programfoxrules email is an actual thing.
 
Fine then :)
Good night
 
6:19 PM
Thanks! Enjoy your day.
 
Sam
Sorry, link died, again.
Oh, night!
 
 
2 hours later…
Sam
8:00 PM
Fffffffffffiiiiiiiiiiiiiiiiiiiinnnnnnnnnnnnnnnnnnaaaaaaaaaaaaaaaalllllllllllllll‌​llllllllyyyyyyyyyyyyy!!!!!!!!!!!!!!!!!
I can get the websocket auth url.
 
This is a test message posted using ChatExchange.Net.
2
 
Sam
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Test message
 
Sam
8:21 PM
@Gham Ping edit
 
9:12 PM
For matt ing test.
 
 
1 hour later…
Sam
10:18 PM
Yay, message editing and deleting methods work :D
 
Sam
10:31 PM
 

« first day (61 days earlier)      last day (270 days later) »