« first day (94 days earlier)      last day (237 days later) » 

4:35 PM
sets up lab to begin experimenting
 
Sam
:D
 
Welcome back to the machine!
cough
 
Sam
Automated message?
 
BTW, I was thinking of something totally different earlier.
Nah, I just had to post something random to track the request it does, too lazy to look up my cheat sheet.
 
Sam
Oh kk.
 
4:39 PM
text1
text2
 
Sam
is still waiting for VS to load...
 
409 Conflict: You can perform this action again in 2 seconds
 
Sam
Yep.
The strange thing is I have to get the response via the exception object.
For example...
try
{
    // Try to get data...
}
catch (WebException ex)
{
    // If the status code == 409.
    var res = ex.Response;
}
 
lol, c#
we're using apache library, so whatever happens, it comes back as response string, except they have a small flag to tell whether it's XML, HTML, or TXT, etc.
I think MX is also supported, but I might be wrong.
 
Sam
Nice.
I have to make all the requests from scratch. :/
 
4:48 PM
The thing about Java is that JSON support is not native, and we went with a poor library.
 
Sam
Aww.
(Same in C#)
 
Oh.
~I'm not alone
 
Sam
I have to use a lib for JSON as well; thankfully it has Linq support.
So it's not too painful ;)
 
Well... At least you have Linq. :p
 
Sam
:D
Wait, Java doesn't have Linq? :O
 
Sam
O_O
 
This entire "for the sake of not allowing the developers to do anything stupid" rule even extends such that in order to only post a web request thru Apache HTTP library, you have to do this:
 
Sam
> No var-Keyword for infering local types (like in C#). Example:
SomeNamespace.ClassWithReallyLongNameAndTypeParameter<org.omg.CosNaming.NamingContextExtPackage> foo = new SomeNamespace.ClassWithReallyLongNameAndTypeParameter<org.omg.CosNaming.NamingContextExtPackage>();
:O
I feel for ya.
 
Request req = new HttpPost();
Map<String, String> params = new HashMap<String, String>();
params.put("text", text);
params.put("fkey", fkey);
req.setParameters(params);
The actual beef:
... new HttpPost();
...
... "text", text
... "fkey", fkey
...
 
Sam
So you don't have object initialisers either?
 
4:56 PM
Nope.
Well, since we're using guava, we can make a one-liner, but it's not helping.
 
Sam
The horror.
 
I guess:
Request req = new HttpPost();
req.setParameters(new ImmutableMap.Builder().put("text", text).put("fkey", fkey).build());
And now to separate the onion from the beef:
... new HttpPost();
... "text", text .. "fkey", fkey ..
 
Sam
What's with all the "..."'s?
 
That's the notation for "blah".
As you can see, whenever you do something in Java while it's simpler compared to other languages in that a lot is handed to you by the Java API or from libraries, the syntactic sugar is incredibly stupid.
 
Sam
lol. I knew that. I thought it might've been syntax or something.
I see.
 
5:01 PM
8 mins ago, by Sam
> No var-Keyword for infering local types (like in C#). Example:
SomeNamespace.ClassWithReallyLongNameAndTypeParameter<org.omg.CosNaming.NamingContextExtPackage> foo = new SomeNamespace.ClassWithReallyLongNameAndTypeParameter<org.omg.CosNaming.NamingContextExtPackage>();
This gets exponentially worse when you nest stuff.
 
Sam
That's just sad.
 
Map<ImmutableKey<Number>, ? extends Collection<? super Vault>> map;
And most syntax highlighters in Java IDEs don't help with nested stuff, so you just have to deal with stuff like that.
 
Sam
o_o
 
> Backbase sucks because
Oh really, this subject could take a whole new wiki by itself.
 
Sam
lol
 
5:07 PM
30 mins ago, by Unihedro
BTW, I was thinking of something totally different earlier.
Back to this.
 
Sam
Yeah, I meant to ask about that.
 
Should we possibly put together an unofficial documentation for how to programmatically use this chat somewhere?
 
Sam
Yes, I think that would be good idea.
 
Action -> HTTP process, ChatExchange code demo, CE.Net code demo, etc.
 
Sam
Sounds good.
Sorry, brb (packing stuff, etc).
 
5:09 PM
Ok!
 
5:33 PM
message
 
message
 
Sam
phew Almost finished...
Sorry, about that. I had to help out in preparation for tomorrow. ;)
 
No worries, good preparation is important :)
 
Sam
:)
So, as you were saying...
 
I was thinking about starting a wiki on Wikia, since coding a knowledge collection software on the cloud would take longer than composing all there is to write.
Yes, unofficial documentation for programmatically using the chat.
 
Sam
5:41 PM
Right. Yeah, I'm up for that :D
 
Wikia is great for hosting documentation online, by the way.
 
Sam
goes to create a wikia account...
 
While you were away I went hathunting, 20 hats now :)
 
Sam
:O
Congrats!
 
I mean, 22
And fge gave a hat pun in compliment
in Java on Stack Overflow Chat, 14 mins ago, by fge
@Unihedro should I say "hats off"?
 
Sam
5:43 PM
:D
Nooooooo!
> ArcticEcho
> Someone already has this username. Try a different one!
 
How about "Sam"?
 
Sam
I doubt that's free...
I'll try anyway.
Yep, in use.
 
Aww.
How about Pham L. Jackson?
 
Sam
LOL
I'll try...
 
Sam
5:46 PM
Well it's free.
 
Christmas is upon us!
 
Sam
excitement
But I'm not sure if I can take it seriously. ;)
 
Sam
Weird.
Ah, come on.
Even ArcticEch0 is taken!
 
Try 4rct1c3ch0.
 
Sam
5:50 PM
Unbelievable...
> Someone already has this username. Try a different one!
 
Wait...
 
Sam
Well both my gaming names are available.
Yesh?
I think I'll just go with echo362.
 
Try Unicode: AƙcticEcho
 
Sam
Nice idea!
 
(You might have a hard time logging in though, searching for the character)
 
Sam
5:54 PM
NP.
> Someone already has this username. Try a different one!
 
......
 
Sam
I know, I'll try the uni char for "o"...
Awesome!
How about: AƙcticEchø
 
I hope it's not taken, seems like Wikia has lots of weird users.
 
Sam
^ that one's free. ;)
 
:D
 
Sam
5:58 PM
Actually.
ArcticEchø is also free :D
(Hopefully I'll only need my email address to login)
 
If ever you need to login just pull up the console and type 'ArcticEch\u2300'.
That would give you with the ø character, I use it to login to sites I use unicode just to mess with the webmasters.
 
Sam
Thanks!
lol
Oh no.
> Oops, this confirmation link doesn't match up with the username you entered. Make sure you're entering the right username.
 
??
 
Sam
I'm guessing something horrible happened with that uni char.
 
How about just "ArcticEchooo"?
 
Sam
6:04 PM
I'll try.
 
I'm going to play in a chess tournament and then sleep when it's over. It's too late to do anything productive for me.
 
Sam
Sure. Have fun!
 
Thanks!
 
Sam
This is crazy.
Woot!
Finally it worked
 
:O
Congrats!
 
Sam
6:10 PM
Thx!
I've now got like 6 account confirmation emails lol
 
LOL
 
6:25 PM
:O The leader has won all games
 
Sam
:O
There, I've added throttle handling to CE.Net, and socket recovery.
 
Very well done!
 
Sam
Time to test it :D
Thanks!
 
Wth? They resigned...
 
Sam
?
But he declined he draw.
 
6:32 PM
The amazing scoreboard breaker
Oh, I meant the person who won all games in the tourney.
 
Sam
Oh.
:O
 
> Your opponent offers a draw
> Black resigned, White is victorious
 
Hallo
 
Hallo
 
Gud bi
 
Sam
6:37 PM
Found a tiny bug with my throttling method...
Take #2...
 
Hallo, again.
 
HALLO
 
Yay, I'm still alive.
HALLO
Now to see how my throttling works...
g
h
j
j
Test
Test
g
d
s
a
sdfyvjshkcgvjchfgvjefhvgjkgvkjzgvjkwheagfvzjwhkgefvzjkwhegvzfjkwahekgvzjfhwgvzjw‌​za
h
d
f
3
4
3
Yay! CE.Net's rate limiting works!
 
Yay!
 
Sam
6:52 PM
Committing now... :D
 

« first day (94 days earlier)      last day (237 days later) »