« first day (22 days earlier)      last day (3539 days later) » 
00:00 - 20:0020:00 - 00:00

12:02 AM
@DaggNabbit I just found a way to dynamically quantize a musician's recorded MIDI performance with Reason... pretty badass
Instead of doing a commit quantize, I cut out some of the different grooves (piano part), make a tightly quantized copy in a separate lane, and get the groove from that generic, even velocity clip like so:
Then the sliders can be used to adjust dynamically exactly how much the original performance is affected by the quantize
 
12:30 AM
@Phrancis Got any idea for what we can put up on our URL until the game is more playable?
 
Yeah I was thinking of a blog-like page where we post updates about recent developments, once or twice a week
And an about page that gives details about the project, maybe with a link to github and the q&a
I picture the scope of it to be, for the time being, something we might link to on The 2nd Monitor on occasion and word-of-mouth
Post to our Facebook/Twitter perhaps, etc.
 
I like that idea @Phrancis
Sounds like a simple Wordpress installation could do that job. (Even though it is )
Can you set that up or you want any help?
 
I made our psychoproductions.net with Wordpress.org and I thought it was lovely, even for PHP. Guess they have a couple guys that know how to write PHP there
The only thing I would need help with is getting the URL tied to your server and Wordpress installed, I can handle it from there
 
Yeah, Wordpress is one of the few good things that PHP has brought to the world
Are you able to change the DNS for the domain?
 
Let's find out
 
12:49 AM
I hope you are able to
Otherwise there's not much I can do directly
 
@netfirms SRSLY???
 
Internet security at it's very best :)
 
Can you think of a way I can give you the PW in private @SimonAndréForsberg
 
12:56 AM
@Phrancis Email? Although I don't need the PW necessarily, all that's needed is to change where the domain is pointing.
But if you want me to do it, I can. I think you have my gmail already
 
Let me just look into that
 
If you can change the DNS to either A-type to 66.7.200.105 or CNAME to www.zomis.net I'll take it from there
also, you can send screenshots if you need assistance
 
Looks like the web service I need to confirm the URL on is down right now :(
Ironic isn't it
 
1:02 AM
alright, I'm afraid I can't help you with that one ^^
 
I feel sure the DNS can be changed, however I can't do it until I confirm it, which I can't do until the fudging service works again
I'll try again in a bit
I'll have a quick smoke while it finally stopped storming
 
1:29 AM
Alright @Phrancis, I'll go to bed now. Once the DNS is switched there should be a brand new Wordpress site at that URL, we can start filling it with some content tomorrow
Night
 
@Phrancis hmm that's pretty cool, never seen that done before
 
@DaggNabbit of course, my luck, the artist used irregular metrics in the bridge and now I have to find a workaround...
 
 
3 hours later…
4:24 AM
This song is about to drive me out of my mind -.-
 
 
2 hours later…
6:24 AM
@DaggNabbit ... if you get bored ... this: youtube.com/watch?v=JvUMV1N7eGM
 
 
2 hours later…
8:30 AM
@Phrancis what... the... fuck
 
 
1 hour later…
9:51 AM
Monking
Massachuuuuuuuusets *singing*
Makkakoko *singing*
URL - Q&A - Github
5
 
11:01 AM
Monking!
 
11:11 AM
@SimonAndréForsberg Still some things to fix, then I can git it
 
Monking @skiwi. I'm working on some merging and cleaning up of git branches right now
 
You woke me up! with that
for some reason the ping sound was on again
Would you mind making your own TCG ChatBot (or alike) which runs from your server?
so we don't share our account details
 
@skiwi I think I can do that, I just need some source code to run
 
Yeah well... You'll need to make sure you have an account using SE OpenID that can manually log into chat and talk
then it'll work
 
Well that's not a big problem
 
11:23 AM
Depending on how easy everything goes, I might manage to get a test client up before 2pm = Formula 1 time
Do you know how to figure out catalina home @SimonAndréForsberg?
 
@skiwi I think so. It's been a while since I deployed anything to my server though
You figure it out by testing a couple of alternatives and seeing what works ;)
 
Should be like here? C:\apache-tomcat-8.0.9
in my case
 
Try it ^^
I wonder: Does Tomcat support Java 8?
 
It would be cool if it worked in one try
Hmm
24-Aug-2014 13:32:24.111 SEVERE [http-apr-8080-exec-12] org.apache.catalina.core.StandardContext.loadOnStartup Servlet /GithubHookSEChatService threw load() exception
 org.springframework.beans.NotWritablePropertyException: Invalid property 'rootUrl' of bean class [com.skiwi.githubhooksechatservice.mvc.configuration.Configuration]: Bean property 'rootUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 
Alright @skiwi, I've merged branches and updated master now. Currently we only have the master branch.
 
11:35 AM
Huh?
wait
you merged the core-game-improvements already?
 
Well it doesn't hurt, but that wasn't actually my plan as I'm not done with it
The individual changes didn't eem to have broken anything though
 
Oh
well, I think you might still be able to work on it
 
I have it locally, so I will probably just push it again then to remote
 
I don't know what happens if you push it, perhaps it will create a new branch again on the github remote
 
11:37 AM
I guess so
lunch and Formula 1 now :)
 
need to figure out autowired after that
 
11:50 AM
good morning
 
@Phrancis yes, I'm 19, I turn 20 in December :-)
 
12:35 PM
@SimonAndréForsberg is that what that giant ball of light in the sky is
 
@DaggNabbit It's a monking, yes.
 
go away monking, you're hurting my eyes
 
> Action Used! com.cardshifter.core.Card@47f37ef1 with action {Action Use on card com.cardshifter.core.Card@47f37ef1}
2
Ladies and gentlemen, we have events
 
woohoo
 
 
1 hour later…
1:55 PM
Where'smy people?
 
@skiwi define 'your people'
 
@SimonAndréForsberg People that were active here an hour ago :)
do you perhaps know why autowiring is being a bitch?
I have:
<bean id="configuration" class="com.skiwi.githubhooksechatservice.mvc.configuration.Configuration">
    <property name="rootUrl" value="${env.rootUrl}"/>
    <property name="chatUrl" value="${env.chatUrl}"/>
    <property name="botEmail" value="${env.botEmail}"/>
    <property name="botPassword" value="${env.botPassword}"/>
    <property name="roomId" value="${env.roomId}"/>
</bean>
and
public class StackExchangeChatBot implements ChatBot {
    private final MechanizeAgent agent;

    @Autowired
    private Configuration configuration;
that should work, right?
 
@skiwi that depends, does it work?
 
nope
it's configured as a bean, so it should be instantiated imo
another point, what is the preferred way to do logging inside Tomcat?
ah I think I need to specify that my init-script should have lower priority
 
@skiwi log4j
 
2:11 PM
does it automatically go into Tomcat then?
and I think I might not've been scanning the directory where the bean aws located
hm not the issue
 
what exactly is it that is not working?
 
the bean is not being injected via @AutoWired
 
so it's null?
 
yep
I can request an autowired variable in the constructor of another object, right?
 
I assume you have read this?
100
Q: How does autowiring work in spring?

BlankmanI'm a little confused as to how the IOC works in spring. Say I have a service class called UserServiceImpl that implements UserService interface. How would this be auto-wired? And in my Controllers action, how would I instantiate an instance of this service? Would I just do: UserService user...

@skiwi I wouldn't do that. I think the constructor is called first, the autowiring applied later
you might be able to autowire a parameter to the constructor though
 
2:17 PM
Yeah... Except that it's not a @Service as it gets instantiated in the XML config
 
perhaps something like public StackExchangeChatBot(@Autowired Configuration config)
 
actually
that class has nothign to do with it I just noticed
I might see the issue
This is bad behaviour
I autowire in my StackExchangeChatBot
but it's not under MVC at all
so the configuration should be passed as a regular parameter into taht
 
sounds like it, yes
 
This makes more sense:
public class StartupBean {
    @Autowired
    private Configuration configuration;

    public void start() {
        new Thread(() -> {
            ChatBot chatBot = new StackExchangeChatBot(configuration);
            Store.INSTANCE.setChatBot(chatBot);
            chatBot.start();
        }).start();
    }
}
or does it hmmm I'm thinking
 
as long as the start method is called somehow...
 
2:20 PM
it's not really a bean, is it?
or is it if I deploy it inside Spring MVC
 
doesn't seem to have been set as such
shouldn't ChatBot be in charge of it's own thread?
 
I think it is a bean/service after all
No, because the chatbot needs to operate asynchronously from the deploying
 
It should work now
 
Where have I heard that before...?
 
2:23 PM
but it doesn't
maybe in your own mind? :)
My configuration bean is being loaded
but I seem to not be able to grab it
This concept looks valid?
/**
 *
 * @author Frank van Heeswijk
 */
public class StackExchangeChatBot implements ChatBot {
    private final MechanizeAgent agent;

    @Autowired
    private Configuration configuration;

    private String chatFKey;

    public StackExchangeChatBot() {
 
Where do you create StackExchangeChatBot ?
 
2:39 PM
@SimonAndréForsberg in the startup bean I've shown above
but now like this:
 
@skiwi are you sure that the startup bean really is executed?
 
public class StartupBean {
    public void start() {
        new Thread(() -> {
            ChatBot chatBot = new StackExchangeChatBot();
            Store.INSTANCE.setChatBot(chatBot);
            chatBot.start();
        }).start();
    }
}
yes
> I AM EXECUTED!
it says
 
put the @Autowired Configuration into the StartupBean and pass it to SEChatBot
 
seems like my other way should also work... but if that works
 
@skiwi not that I see the code for that logging, but I trust you ^^
@skiwi right now the SEChatBot is not managed by Spring, so the @Autowired annotation there helps nada
 
2:41 PM
hmm
if I would let spring manage it as a @Service, then I would neither need the startup bean?
 
@skiwi I think that's correct
 
Ok, if it works then I either fixed my design, or messed it up more.
I blew up something now.
24-Aug-2014 16:43:52.183 SEVERE [http-apr-8080-exec-43] org.springframework.web.servlet.DispatcherServlet.initServletBean Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stackExchangeChatBot' defined in file [C:\Users\Frank\Dropbox\NetbeansProjects\GithubHookSEChatService\build\web\WEB-INF\classes\com\skiwi\githubhooksechatservice\chatbot\StackExchangeChatBot.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.skiwi.githubho
Well... that seems like some circular stuff
I still don't get it though
 
@skiwi How did the constructor of SEChatBot look when you ran that?
 
Simplified version:
@Service
public class StackExchangeChatBot implements ChatBot {
    private final MechanizeAgent agent;

    @Autowired
    private Configuration configuration;

    private String chatFKey;

    public StackExchangeChatBot() {
        System.out.println("from config");
        System.out.println(configuration.getRootUrl());
    }
}
 
@skiwi configuration is null in constructor, if you want that functionality, add a setConfiguration method (I think Spring is able to detect those)
 
2:54 PM
I really need it in the constructor :|
 
use this:
public StackExchangeChatBot(@Autowired Configuration configuration) {
this.configuration = configuration;
...
}
 
ok
that doesn't compile
@Autowired does not watn to be placed on arguments?
I give up and try to work around it
 
strip the @Autowired and just add the argument to the constructor then
I am quite sure that Spring can use autowiring in constructors
17
Q: Anyway to @Autowire a bean that requires constructor arguments?

Eric B.I'm using Spring 3.0.5 and am using @Autowire annotation for my class members as much as possible. One of the beans that I need to autowire requires arguments to its constructor. I've looked through the Spring docs, but cannot seem to find any reference to how to annotate constructor arguments....

 
I'll leave it for now
 
test
 
3:01 PM
hm
@RequestMapping(value = "/say/{text}", method = RequestMethod.GET)
public void say(final @PathVariable("text") String text) {
    System.out.println("say: " + text);
    Store.INSTANCE.getChatBot().postMessage(text);
}
 
Seems to work at least
 
I killed this now
 
So how is it going with that repository?
 
I don't know how I killed it though
need to refactor a few things, should not take long
need to use logging and actually use the configuration file
heh
24-Aug-2014 17:02:44.631 WARNING [http-apr-8080-exec-32] org.springframework.web.servlet.PageNotFound.noHandlerFound No mapping found for HTTP request with URI [/GithubHookSEChatService/bot/say/hi] in DispatcherServlet with name 'dispatcher'
but that is what I specified there
I feel like I'm stupid
 
3:18 PM
test
 
@SimonAndréForsberg Is log4j default in Spring MVC?
 
it might be
 
it doesn't seem to be on the classpath though
 
3:34 PM
test
randomtest
test
 
3:52 PM
test
test
 
If nobody found a solution to the @PathVariable problem, then I'll roll without it :(
It's gonna get on Github either way!
 
4:52 PM
test
I FINALLY WORK!
2
 
Yes!
@SimonAndréForsberg I managed it :)
 
Great @skiwi!
Now where's that repository?
 
wondering if I should fix two more open issues: message length and message throttling
shouldn't be too hard to fix
 
5:20 PM
erm right, I got distracted
I was about to fix that
@SimonAndréForsberg You know what throttling woudl be effective, like every 5 second one message?
or could it live with every 3?
 
@skiwi What throttling? How often to post chat messages? I don't think it matters much
 
It does if someone for example decides to post multiple git commits at once
 
Ah, that's right
 
Also, wondering how to implement that actually
 
Every 5 will work I think
 
5:22 PM
don't know if Java has anything default for that
 
ExecutorService? Thread.sleep?
 
it looks ugly, but may be needed
also figuring out a maximum message length
any clues on that?
 
Nope
500 characters is max length for SE chat
 
thanks, just noticed as well
round numbers... yay
everythign I try to do seems hard :)
 
5:38 PM
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttt
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttt
 
seems to be working so far
 
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​tttttttttttt...
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​ttttttttttt
 
@SimonAndréForsberg You really want to play with it now, don't you? :)
I could put it on github but need to still implement the throttling and write a readme
throttling is going to be a slightly bigger refactoring than to what I was hoping
 
@TCGChatBot Stop spamming!
@skiwi github github github github github github github github
 
Oh great, I need to manually add a remote
I already forgot how to do that
 
5:46 PM
git remote add origin https://github.com/yadayada
 
that's easy
hmm I'm not working in any branch
wtf?
@SimonAndréForsberg You'll need to figure out your own pom for now, if you don't mind
 
that's fine @skiwi
 
you may also upload it if you want or pull request it
I'm going to need it some day for travis-ci
you need to create a file in your cataline_home/lib called githubhooksechatservice-environment.properties
 
Finally :)
 
and there fill in:
env.rootUrl = stackexchange.com
env.chatUrl = chat.stackexchange.com

env.botEmail = ...
env.botPassword = ...

env.roomId = 16134
That should be it
if you have further questions, you're out of luck, because I'm back in 30 minutes :)
and I hope to see something running ;)
 
5:54 PM
Watched, stared, and forked :)
 
Well... that's quick ;)
 
6:27 PM
@skiwi Why you have no POM?
 
back
@SimonAndréForsberg Because I haven't looked into that yet :)
 
So for you it's just a regular project? Without maven?
 
using Ant
but putting Ant files on Github is ugly
wonderin ghow I'll send a multiline string...
 
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 maven.apache.org/maven-v4_0_0.xsd">;
	<modelVersion>4.0.0</modelVersion>
	<groupId>net.zomis</groupId>
	<artifactId>mfestats</artifactId>
	<name>MFEStats</name>
	<packaging>war</packaging>
	<version>1.0.0-BUILD-SNAPSHOT</version>
	<properties>
		<java-version>1.6</java-version>
		<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
^^ That's my POM for my Minesweeper Flags stats web application
 
amistillalive
 
6:31 PM
Hey, wait a minute... why is not the 500 chars limit applied to such code messages?
 
Because it gets autoformatted?
so a similar pom should work then? :)
 
WHY DO I KEEP CLICKING YOUR LOCALHOST LINKS?
 
don't ask me :)
 
Hmm... assuming I want to make a pull request for this back to your project, what groupId should be used for maven?
 
erm
No clue?
com.skiwi?
I suppose
Hoping this works...
public class ThrottlingThreadExecutor extends ThreadPoolExecutor {
    private final int throttleTiming;

    private long lastExecutedTime = 0L;

    public ThrottlingThreadExecutor(final int throttleTiming) {
        super(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>());
        this.throttleTiming = throttleTiming;
    }

    @Override
    protected void beforeExecute(final Thread thread, final Runnable runnable) {
        if (System.currentTimeMillis() < lastExecutedTime + throttleTiming) {
 
6:49 PM
@skiwi The import com.gistlabs.mechanize.impl cannot be resolved
 
Here we go...
 
@skiwi That feels wrong
 
@SimonAndréForsberg Have you tried adding it?
@SimonAndréForsberg Bar a few bugs there
 
That was counting from 1 to 5
 
6:51 PM
<groupId>com.gistlabs</groupId>
<artifactId>mechanize</artifactId>
<version>0.11.0</version>
^^ Added that as a dependency
 
now it works?
oh
you need 2.0.0-RC1 or something like that
 
I think my code didn't throttle anything
 
next test... I think I definitely failed my calculations there
 
6:57 PM
Monking
 
Hey @Phrancis
How are ya?
 
Monking @Phrancis. Good to see you
 
Doing well, how are y'all?
I see you got a bot going, how is that coming along?
 
I'm not very productive today, but quite alright still
@Phrancis How did the DNS stuff go?
 
7:06 PM
My bot is kind of working, but not doing many useful things yet
 
@SimonAndréForsberg it was down all of last night, but I tried again just now and it was back up
 
@Phrancis great
 
I'm so bad in writing readmes: github.com/skiwi2/GithubHookSEChatService
 
@SimonAndréForsberg I'm in the DNS options but don't really know what I'm doing
 
@SimonAndréForsberg Jackson time!
 
7:16 PM
@Phrancis can you show a screenshot?
@skiwi It's about time!
 
Or actually, it's about JSON, but... you get the picture
 
Is there a very short intro to Jackson?
 
@Phrancis Update nameservers
 
I've got no time for extensive stuff :)
 
7:17 PM
 
@skiwi wiki.fasterxml.com/JacksonInFiveMinutes I think you'll understand it simply by the examples
 
Okay
I need to turn a Json response into jackson
 
@skiwi Json response ---> Java class? No problem! What's the JSON you have?
 
I need to annotate them with @JsonProperty only?
It gets interesting with hwo to handle arrays :)
 
@SimonAndréForsberg can you remind me what IP address you wanted me to put there?
 
7:25 PM
Making that JSON object is a hell :P
 
7:35 PM
@SimonAndréForsberg Did you meanwhile manage to get your bot working yet?
 
@Phrancis 66.7.200.105
@skiwi If they have public getters/setters you don't need to annotate anything. Or you could use a @JsonAutoDetect on the class
@skiwi nope, haven't tried that much either. Doing way too many things at once :P
 
(and anyone else that likes rock music)
 
@SimonAndréForsberg But @JsonProperty should also work?
 
@SimonAndréForsberg it's also requiring a secondary nameserver... any idea?
I tried entering the same IP on both but it's not taking it
 
7:39 PM
@Phrancis I don't think you should specify that as nameserver though. I'll try finding the nameserver
 
Ah. ok
 
@JsonProperty("open_issues_count")
private long openIssuesCount;
If you need that ^ you messed something up
 
@Phrancis Try with ns1.loopia.se and ns2.loopia.se
@skiwi messed something up? why?
 
> Nameserver updates successfully queued.
 
7:43 PM
@SimonAndréForsberg If you need a long for the open issues count
 
@skiwi oh, that. I thought you meant open_issues_count vs openIssueCount
 
ah :p
If this works in one go, I'll be amazed
Ah not there yet
any clue how I can send a multiline message to Spring MVC?
 
@skiwi %10 in the HTML GET request?
 
thisismulti-line
 
@Phrancis Now, we wait.
@TCGChatBot No it's not
 
7:49 PM
Hi @Phrancis
 
I could really use to find out how to generate multiline messages now ;)
 
@skiwi What if you don't use a pathvariable but instead use a GET parameter? Such as http://url.com/page?message=parameter%10here
 
It shouldn't matter as far as I know
@Controller
@RequestMapping("/hooks/github")
public class GithubHookController {
    @RequestMapping(value = "/payload", method = RequestMethod.POST, headers = "X-Github-Event=push")
    @ResponseBody
    public void push(final @RequestBody PushEvent pushEvent) {
        pushEvent.getCommits().forEach(commit -> {
            Store.INSTANCE.getChatBot().postMessage("[" + pushEvent.getRepository().getFullName() + "] " + commit.getCommitter().getUsername() + " pushed commit " + commit.getId().substring(0, 10) + " to " + pushEvent.getRef().replace("refs/heads/", "") + System.lineSeparator() + c
If this works ;)
 
test
I can talk over my public IP!
 
Nice @TCGChatBot
Now we got our own @CaptainObvious :D
 
00:00 - 20:0020:00 - 00:00

« first day (22 days earlier)      last day (3539 days later) »