@SimonAndréForsberg Without XML you're mostly purely working with annotations, except I believe that you need to create an XML to indicate that you are not using XML
> There's really nothing to refactor. The DataGridView handles pretty much everything automagically once the control is constructed. It's not testable though, and I still don't understand why I don't have to sync up the List of items like I do with the TodoSettingsView, but..... if it ain't broke, Don't fix it.
> Obsolete issue. Pull Request #142 changes the ConfigurationLoader into an IConfigurationService that gets injected in a manner similar to what is described for Configuration in this issue.
List<String> content = new ArrayList<>();
while (true) {
Optional<String> peekedLine = lineReader.peekLine();
if (!peekedLine.isPresent() || peekedLine.get().equals("START")) {
return new InfiniteLogEntry(content);
}
content.add(lineReader.readNextLine());
}
The new version surely is better... can we also say it is perfect?
List<String> content = new ArrayList<>();
while (lineReader.nextLineMatches(line -> !line.equals("START"))) {
content.add(lineReader.readNextLine());
}
return new InfiniteLogEntry(content);
> Refactored the LineReader interface: - Renamed readLine() to readNextLine() - Removed peekLine() method - readNextLine() throws NoSuchElementException rather than NoMoreInputException - Added hasNextLine() and nextLineMatches(Predicate<String>) methods - Removed static conditionalLineReader method and unit tests.
So, @SimonAndréForsberg, what url would I need to put in the webhook payload to add my VBEX repo to Duga? It's VBA stuff, so I'd like to post that stuff to our VBA room too.
@Vogel612 I'm looking through the JavaBot repo trying to figure out how I can integrate it into @Duga. Where do I specify the StackExchange username and password and stuff?
The bot.properties file must contain following property configurations:
TRIGGER={ExampleTrigger}
LOGIN-EMAIL={Stackexchange login email}
PASSWORD={Stackexchange login password}
@Vogel612 as in... chat.stackoverflow.com ? I don't think that's supported currently, but I think it should be. You should probably create a github issue about that.
@Vogel612 ok, thanks. Could you explain just a bit about how the TRIGGER stuff works? I mean... it needs to start listening for triggers in some room first, right?
btw: Does JavaBot support chat.stackexchange? or just chat.stackoverflow?
16-Jan-2015 14:00:56.248 INFO [pool-1-thread-1] com.skiwi.githubhooksechatservice.chatbot.StackExchangeChatBot.lambda$new$6 Request to /user
16-Jan-2015 14:16:17.502 SEVERE [http-nio-80-exec-6] com.skiwi.githubhooksechatservice.mvc.controllers.GithubHookController.handleException exception
org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded' not supported
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(AbstractMessageConverterMethodArgumentResolv…
/**
* Pattern that checks if a string matches the following:
* - starts with a [
* - followed by one or more word characters
* - followed by a ]
* - followed by a space
* - followed by one or more of:
* - word character
* - a dot (.)
* - parentheses
* - followed by a space
* - followed by a dash (-)
* - followed by a space
* - ending with zero or more characters, that are also captured as the 1st capture group
I mean the getNumberOfSpaces method
It currently throws a checked exception, which is a huge pain
I want to count the number of spaces in some conditions, but the trick is that the condition may not be satisfied, in which case I don't know what to return
@Marc-Andre Whenever you're around I had a quick question. Will your web application store the HTML header (meta tags and such) in a separate file as well? If so, do you expect any SEO impact at all?
say i have a square divided into 9 sections, each has an index between 0,0 and 2,2, and i want to rotate the thing 90 degrees, is there a mathematical formula for that? 0,0 is going to become 0,2 for example, and 0,1 is going to become 1,2, and 2,2 is going to become 2,0, etc
@Phrancis It doesn't matter how we store the html rendered will be the same. Thymelead (the view engine) will build a complete html file. If you to have special header for certain page it is easily achievable though
I have installed the full Google Code Prettify prettify-4-Mar-2013.tar.bz2 found here and hosting my own JavaScript/CSS works fine with the templates provided:
<head>
<title>Google Code Prettify testing</title>
<link href="google-code-prettify/src/prettify.css" type="text/css" rel="style...
I'd like to offer our syntax highlighter library highlight.js for using on the Stack Exchange sites. I am perfectly aware that you already have one in place and there was a similar discussion a while ago, so the burden is on me to explain why you might want to even bother :-)
What's in it for St...