« first day (1499 days earlier)      last day (3440 days later) » 

1:39 PM
hello
Huh!! now I have to intercept
Hai!! I am a newly born bot
 
You're doing it wrong. You should make it say "Hello World".
I added the tags: and removed:
 
Hello World
 
I added the tags: and removed:
 
Thats cool
 
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 
1:44 PM
I have to intercept the messages. The first thing that comes to my mind is Mutation Observers, but There must be something simpler
 
@Michael java.foo.Bar: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
@Michael [tag:final class] java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
What do you think about using tags to show what kind of class a class is, @Vogel612?
 
Why not make "final" separate from the entire thing?
 
@Michael it's an interesting idea..
 
You can't extend a final class.
 
1:46 PM
@Unihedron that makes... no sense..
since javadoc doesn't show variables / fields anyways..
 
Hmm.
 
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
I guess we could separate them
I just want to use tags to make them stand out
 
Yeah, cool idea!
 
It doesn't make sense to actually put SO tags there, you know?
 
1:48 PM
Oooo
 
ohh noes
 
@Michael [tag:*final*] java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 
##javadoc:Stack
 
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 
1:49 PM
No, surround the tag with the formatting code.
 
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 
@Unihedron java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
@Unihedron java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 
Cool
 
@Unihedron java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 
Off to Eclipse! xD
 
1:52 PM
@Unihedron java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 
I kinda like putting "final" in italics better myself. What about you?
 
I don't know.
 
I can't think of the name of an enum class.
 
What do you mean?
constant?
 
An enum that's part of the JDK
I can't think of one
 
2:00 PM
Calendar?
Oh, the Character class has a nested UnicodeScript enum.
And ProcessBuilder has a nested class called Redirect, which contains a nested Type enum.
 
The new date/time API has some too.
 
Then there's DefaultEncoding
and Locale
 
I found some (thanks to doing a file search xD)
Locale?
 
Locale.EN_US
 
No, that's a regular class.
 
2:02 PM
..
 
Locale's been around since the beginning, it can't be an enum.
 
hello test
grr, mutation handler not triggered
 
in Room for Uni and Inf on Meta Stack Exchange Chat, 16 hours ago, by Sam
Plan D. My rate limiting methods suck, let the user handle it.
 
what was that
 
@Michael TimeUnit
 
2:10 PM
You realize that sending a message with a post request returns the ID and timestamp, right?
 
who me?
*~JavaBot, at...
... your...
 
yeah
 
...r...
...v...
......
 
I have seen that in the response body.
 
**shutdown
 
2:12 PM
@Vogel612 Thanks :)
 
??
 
I forgot an if-condition.,.
 
Did you use StringUtils.abbreviate?
 
~JavaBot, at your service
 
2:12 PM
sorry
 
@Unihedron we got something like that??
 
@Vogel612 apache
dependency of guava I think
 
nope I didn't...
 
awww
 
**javadoc:LinkedHashMap
 
2:13 PM
LOL
 
damned be you!
**javadoc:TimeUnit
conflict... really??
**javadoc:TimeUnit
 
gg
 
okay... backing off... 20 secs no nothing..
**javadoc:TimeUnit
 
.
oh no,
 
!!>"Hello World"
 
2:17 PM
@Unihedron "Hello World"
 
!!>"@Michael @Vogel612 @Michael @Vogel612 @Michael @Vogel612"
 
@Unihedron "@Michael @Vogel612 @Michael @Vogel612 @Michael @Vogel612"
 
~JavaBot, at your service
**javadoc:TimeUnit
@Vogel612 java.util.concurrent.TimeUnit: A TimeUnit represents time durations at a given unit of granularity and provides utility methods to convert across units, and to perform timing and delay operations in these units. A TimeUnit does not maintain time...
... information, but only helps organize and use time representations that may be maintained separately across various contexts. A nanosecond is defined as one thousandth of a microsecond, a microsecond as one thousandth of a millisecond, a millisecond as one thousandth of a second, a minute as sixty seconds, an hour as sixty minutes, and a day as twenty four hours.
that's more like it ;)
**eval:javaBot.broadcast("muhahaha");
muhahaha
no result
 
MUHAHAHA
 
interesting..
 
2:21 PM
@Vogel612 Awesome :D
 
@Michael it's an evil hack right now, though..
aaand I think there is a possible infinite loop in there..
 
Should probably still place a limit of, like, 5 posts so the bot doesn't spam.
 
I just throw away stuff if it's getting longer than two messages now..
also I made some "workaround" for Response 409..
 
Oh?
 
2:23 PM
could use a little more random backof..
I just enqueue a Future with 5 seconds delay..
**shutdown
~going down
 
Why not "read more"?
>>javadoc:TimeUnit
@Unihedron java.util.concurrent.TimeUnit: A TimeUnit represents time durations at a given unit of granularity and provides utility methods to convert across units, and to... Read more: >>javadoc:TimeUnit 2
 
>>javadoc:TimeUnit 2
for the javadoc this might make sense..
but it's not helpful for messages in general
think: >>eval:"Random overly large result, which repeats" * 300
and now make that run something "read more"
 
@Unihedron Because the class name at the beginning of the message is a link...xD
 
@Michael xD
 
Oohh nevermind. I see what you're saying.
 
2:31 PM
It might be interesting to implement that into javadoc directly, though..
 
hmm...
 
3:13 PM
 
interesting..
 
~JavaBot, at your service
##javadoc:String
~response
@Michael java.lang.String: The String class represents character strings. All string literals in Java programs, such as "abc", are implemented as instances of this class.
~going down
 
so... we can set up CI and remote server by wednesday in a state it's going to work, right?
 
~JavaBot, at your service
##javadoc:java.io.StringBufferInputStream
@Unihedron Yeah.
 
\o/
 
3:20 PM
##shutdown
I don't think it likes deleted messages, @Vogel612
 
??
ehh??
in what way?
 
Nov 23, 2014 10:19:43 AM com.gmail.inverseconduit.bot.Program lambda$0
SEVERE: Exception in querying thread: String input must not be null
java.lang.IllegalArgumentException: String input must not be null
	at org.jsoup.helper.Validate.notNull(Validate.java:26)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:24)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:40)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:55)
	at org.jsoup.parser.Parser.parse(Parser.java:90)
 
ohh that one..
I think I already fixed that one,too..
 
~JavaBot, at your service
##javadoc:java.io.StringBufferInputStream
@Michael ---java.io.StringBufferInputStream: ---Deprecated.� This class does not properly convert characters into bytes. As of JDK�1.1, the preferred way to create a stream from a string is via the StringReader class.
~response
~response
 
-- java.io.StringBufferInputStream:--- Deprecated.� This class does not properly convert characters into bytes. As of JDK�1.1, the preferred way to create a stream from a string is via the StringReader class.
 
3:26 PM
~response
 
aww.
 
##javadoc:SuppressWarnings
##javadoc:Deprecated
@Michael java.lang.Deprecated: A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists. Compilers warn when a deprecated program element is used or overridden in non-deprecated code.
 
stuff: qeuhet
 
Pushed my latest stuff to my 15 and created PR...
 
##shutdown
~going down
Apparently, it doesn't like  
~JavaBot, at your service
~going down
Ugh. xD
More
text
spamming more messages
 
3:33 PM
me...
you coul...
 
so it ignores the shutdown command
 
use te stuff I commited..
or pushed...
or whatever.
 
Oh, I haven't pulled. Thanks lol
 
it's not merged yet, though..
 
Ugh, I have a "dirty index" for some reason. :(
Oh ok.
 
3:38 PM
did you just pull straight down??
 
Yeah
 
I changed the "if null" check in the InputStream a bit..
 
I'll take a look at it in a minute
 
~JavaBot, at your service
 
3:50 PM
JavaBot do you know mutation observers?
 
##javabot:java.io.StringBufferInputStream
...
Oh, whoops
##javadoc:java.io.StringBufferInputStream
@Michael java.io.StringBufferInputStream: Deprecated.� This class does not properly convert characters into bytes. As of JDK�1.1, the preferred way to create a stream from a string is via the StringReader class.
 
@argentum47 That's Javascript.
 
:gehehe I know
.
..
..
 
@Vogel What character encoding is used to write the JSON requests?
 
3:59 PM
utf-8
not sure
 
Are you @Vogel, @argentum47?
 
you don't have to accept my answer
 
Sorry, I didn't mean to be rude. I thought maybe you might be @Vogel's bot account or something.
 
oh no, its was nothing rude.
 
Ok. :)
Are you seeing those question mark characters, @argentum47?
##javadoc:StringBufferinputstream
I'm wondering if there is a character encoding issues somewhere.
 
4:02 PM
@Michael this one has
 
Yeah, I see two of them.
##javadoc:StringBufferinputstream
@Michael java.io.StringBufferInputStream: Deprecated.� This class does not properly convert characters into bytes. As of JDK�1.1, the preferred way to create a stream from a string is via the StringReader class.
There are &nbsp entities in the HTML I am parsing. But those should be converted to normal space characters.
 
maybe they are getting converted to U+ something like charecters
 
That's what I'm thinking.
 
or maybe not
 
And if the JSON request the bot is sending is not encoded in UTF-8, that might be why the question marks are appearing.
 
4:04 PM
yeah that might be
you could set it in the request headers
 
I don't know too much about that part of the codebase, unfortunately.
 
##javaboc:map
##javadoc:hashmap
##javadoc:map
@Michael java.util.Map: An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value.
 
this one is clean
 
Most of them are.
That's the only class I've had this problem with.
##javadoc:Elementtype
##javadoc:memorytype
 
4:07 PM
Isn't there a way to set the type in html like <div content charset="utf-8">or maybe substitue them with blank space while parsing
 
@Michael java.lang.management.MemoryType: Types of [memory pools](https://docs.oracle.com/javase/java/lang/management/MemoryPoolMXBean.html "interface in java.lang.management").
##javadoc:RetentionPolicy
##javadoc:RoundingMode
##javadoc:StandardProtocolFamily
@Michael java.net.StandardProtocolFamily: Defines the standard families of communication protocols.
##javadoc:exception
@Michael java.lang.Exception: The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
##javadoc:runtimeexception
@Michael java.lang.RuntimeException: RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.
##javadoc:string
@Michael Which one do you mean?
* javax.print.DocFlavor.STRING
* java.lang.String
##javadoc:java.lang.String
@Michael java.lang.String: The String class represents character strings. All string literals in Java programs, such as "abc", are implemented as instances of this class.
##javadoc:memorytype
 
@Michael IIRC the JSON is written in UTF-8
but I haven't been doing much with special character stuf.f.
we're URL-Encoding the message anyways.
this means you won't be able to send html through the StackExchangeChat
 
4:18 PM
so anything between %26 and %3B == nbsp is substituted with " ".
 
@Vogel612 I understand that. I just don't know why these &nbsp entities are causing trouble. They should be converted to space characters when the HTML is parsed.
 
they are encoded...
this means the & and the ; will be replaced with appropriate representations for POSTing ..
and that will break html probably.
 
We can obtain the Markdown format of a message instead of HTML with a GET request.
That will be present in JCE, but I just thought I'll point that out.
 
sweet
 
##javadoc:java.io.StringBufferInputStream:
@Michael Sorry, I never heard of that class. :(
java.io.StringBufferInputStream
##javadoc:java.io.StringBufferInputStream
@Michael java.io.StringBufferInputStream: Deprecated.� This class does not properly convert characters into bytes. As of JDK�1.1, the preferred way to create a stream from a string is via the StringReader class.
 
4:22 PM
lemme just try for my instance
~JavaBot, at your service
 
@Uni, @Vogel: If you see any other problems, post them here: github.com/Vincentyification/JavaBot/wiki/…
 
**javadoc:java.io.StringBufferInputStream
@Vogel612 java.io.StringBufferInputStream: Deprecated.� This class does not properly convert characters into bytes. As of JDK�1.1, the preferred way to create a stream from a string is via the StringReader class.
 
Still seeing them. :(
 
@Vogel612 java.io.StringBufferInputStream: Deprecated. This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via the StringReader class.
^ taken from my console
 
Does SO Chat support UTF-8?
Maybe it doesn't.
Or maybe it assumes some other character encoding.
 
4:27 PM
it would be interesting to find out what character it actually is, that's breaking it
 
In the head tag there is no <meta charset="utf-8"> so apparently SO doesn't assume utf-8
 
Anything in the HTTP response headers?
 
@Michael Can't we create a colloquial issue ticket?
 
The chat response header has only the id of the message and timestamp. but the request header has application/x-www-form-urlencoded; charset=UTF-8
 
üäö!"§$%&/()=?
looks nice...
 
4:31 PM
@Unihedron I don't know. I thought a wiki page would be good because we can add to it easily.
 
**javadoc:java.lang.management.MemoryType
 
It has a problem when there is a <code> tag inside of a link.
"memory pools" should be in monospace.
 
this looks like an issue in your code..
 
Yeah, it is. xD
I've pushed my changes, @Vogel.
 
hmmm...
you still pushing to Vincentyification/master??
 
4:34 PM
Yes.
Should I not be pushing to that branch?
 
..
..
...
grr
work damn
oopsi, had to observe for subtree
knock
 
@Michael It's easier to spot such "trivial" errors and have the code reviewed on the fly
 
knock
 
given you'd work on your own ...repo and have some peer-checking before you'd "break" the working state on master..
 
@Vogel612 I'd appreciate a code review. :)
 
4:44 PM
hmm...
 
Oh, like make a pull request?
 
yep like make a pull request
 
5:04 PM
@Michael It does work.
See here:
in Sandbox on Meta Stack Exchange Chat, Nov 14 at 11:11, by Sam
gist: 9198621, 2014-02-24 22:28:48Z
var EventType = {
    MessagePosted: 1,
    MessageEdited: 2,
    UserEntered: 3,
    UserLeft: 4,
    RoomNameChanged: 5,
    MessageStarred: 6,
    DebugMessage: 7,
    UserMentioned: 8,
    MessageFlagged: 9,
    MessageDeleted: 10,
    FileAdded: 11,
    ModeratorFlag: 12,
    UserSettingsChanged: 13,
    GlobalNotification: 14,
    AccessLevelChanged: 15,
    UserNotification: 16,
    Invitation: 17,
    MessageReply: 18,
    MessageMovedOut: 19,
    MessageMovedIn: 20,
    TimeBreak: 21,
    FeedTicker: 22,
    UserSuspended: 29,
    UserMerged: 30
};
Those are the event types for the chat BTW.
gist: 9198621, 2014-02-24 22:28:48Z
var EventType = {
    MessagePosted: 1,
    MessageEdited: 2,
    UserEntered: 3,
    UserLeft: 4,
    RoomNameChanged: 5,
    MessageStarred: 6,
    DebugMessage: 7,
    UserMentioned: 8,
    MessageFlagged: 9,
    MessageDeleted: 10,
    FileAdded: 11,
    ModeratorFlag: 12,
    UserSettingsChanged: 13,
    GlobalNotification: 14,
    AccessLevelChanged: 15,
    UserNotification: 16,
    Invitation: 17,
    MessageReply: 18,
    MessageMovedOut: 19,
    MessageMovedIn: 20,
    TimeBreak: 21,
    FeedTicker: 22,
    UserSuspended: 29,
    UserMerged: 30
};
 
@Uni How come I can't one-box this gist, then: gist.github.com/duumiska/bc44865c70e9b2cb4554
 
@Michael hi there, i am the bot
 
@Michael Because 1. It's not a gist syntax for SO, as there's a username in the way. 2. SO only supported gists when the IDs were with denary digits, not hexadecimal.
 
So, how do I do it then??
 
Not on the new gists.
 
5:09 PM
I'm just curious to see whether it adds syntax highlighting.
 
Oh, it doesn;t.
 
how do you make a box
 
Well, your example doesn't have any syntax highlighting.
If you go to the website, it's just black: gist.github.com/joncle/9198621
 
@shortCircuit you paste cool links that are supported
 
5:10 PM
Stack Exchange is a network of question and answer websites on diverse topics in many different fields, each site covering a specific topic, where questions, answers, and users are subject to a reputation award process. The sites are modeled after Stack Overflow, a forum for computer programming questions that was the original site in this network. The reputation system is designed to allow the sites to be self-moderating. == History == In 2008, Jeff Atwood and Joel Spolsky created Stack Overflow, a question-and-answer Web site for computer programming questions, which they described as a...
wikipedia links are one way..
youtube the other..
xkcd is also supported
 
5:32 PM
cool
 

« first day (1499 days earlier)      last day (3440 days later) »