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

8:01 PM
Another test
 
Doesn't work first time :(
@SimonAndréForsberg Familiar with error 415?
 
8:21 PM
Fix perhaps
 
Now went to error 400
 
@skiwi 415? What error 415?
@TCGChatBot of course you can :)
 
The 415 is gone @SimonAndréForsberg
but
 
what's error 400 then?
 
do I need to register a json-to-object mappng then?
It's syntactically invalid request
 
8:25 PM
new ObjectMapper().readValue(json, MyResultType.class);
 
huh?
What about this?
@RequestMapping(value = "/payload", method = RequestMethod.POST, headers = "X-Github-Event=ping")
@ResponseBody
public void ping(final @RequestBody PingEvent pingEvent) {
    Store.INSTANCE.getChatBot().postMessage("Ping: " + pingEvent.getZen());
}
Isn't that what @RequestBody is supposed to do?
together with the object
 
Umm, feels like we're talking about different things...
oh wait...
perhaps Spring has something built-in there
Don't know how @RequestBody works
 
I thought you had used that before :)
 
I've used Jackson for JSON stuff, and I've used Spring for web stuff, I don't think I have used the combination of them :)
or... have I?
Wait a minute...
Nope, I have used something similar, but not JSON
	@RequestMapping(value = "/search")
	public String search(Model model, SearchParameters search, @RequestParam(required=false) String result, @RequestParam(required=false) String tags,
			@RequestParam(required=false) String use_before, @RequestParam(required=false) String use_after, HttpServletRequest request) {
		...
SearchParameters search
SearchParameters is my own class
 
you didn't specify anythign extra?
 
8:34 PM
but it's injecting get-parameters into my SearchParameters class, not JSON
from what I can see, you're doing it correct
 
@SimonAndréForsberg Do I need to annotate it on the JSON side on class level?
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
   <property name="messageConverters">
       <list>
           <ref bean="jsonConverter" />
       </list>
   </property>
</bean>
 
@skiwi I don't think you need to annotate anything on the JSON side
 
I see this somewhere on SO
 
What's the exact error you're getting?
 
It was a 400
gonna retry now
 
8:37 PM
and what's a 400 ?
 
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jsonConverter' is defined
 
HTTP Status 400 or what?
 
Incorrect syntax
yes HTTP 400
SIlly me
 
And when/how did you achieve that error?
 
I should copy all code ;)
By sending this:
{
  "zen": "Speak like a human.",
  "hook": {
    "url": "https://api.github.com/repos/skiwi2/TestRepo/hooks/2865069",
    "test_url": "https://api.github.com/repos/skiwi2/TestRepo/hooks/2865069/test",
    "id": 2865069,
    "name": "web",
    "active": true,
    "events": [
      "*"
    ],
    "config": {
      "secret": "",
      "url": "http://IDONOTWANTTOBEDDOSED.com:8080/GithubHookSEChatService/hooks/github/payload",
      "content_type": "json",
      "insecure_ssl": "0"
    },
    "last_response": {
Well, that's what the post hook sends
I do hope it will throw exceptions if I have a mismatch in my JSON mapping
It doesn't seem to hit the Spring MVC end of the server
It probably hits somewhere, but not on an useful point
 
8:45 PM
@skiwi yes, it should do that
 
@SimonAndréForsberg ^^
 
@SimonAndréForsberg Most 400 issues actually do point out to the conversion itself
any clue how to make it log it?
 
@Phrancis Did you change them just now?
@skiwi not sure, no. Unfortunately
 
@SimonAndréForsberg I can also just embed objects in a json object, right?
public class PingEvent {
    @JsonProperty
    private String zen;

    @JsonProperty
    private Hook hook;

    @JsonProperty("hook_id")
    private long hookId;

    public String getZen() {
        return zen;
    }

    public Hook getHook() {
        return hook;
    }

    public long getHookId() {
        return hookId;
    }
}
 
9:00 PM
@skiwi yup
 
Then argh why is it not working?! Ragee
 
Ping: Speak like a human.
 
Oh shit!
So it really doesn't log if you made a mistake...
 
[skiwi2/TestRepo] skiwi2 pushed commit 0738aa841c to master
Updated gitignore.
[skiwi2/TestRepo] skiwi2 pushed commit aabfd0fa85 to master
Test.
[skiwi2/TestRepo] skiwi2 pushed commit db12ddc5f6 to master
Test 2.
[skiwi2/TestRepo] skiwi2 pushed commit 476833b08e to master
It is working!
 
@SimonAndréForsberg ^
 
9:06 PM
@SimonAndréForsberg I'm not sure what you are asking... from the looks of it, the nameserver change I queued a bit ago is completed... not sure where to go from here (I suck at this web server stuff, can you tell?)
 
Woohoo!
 
@Phrancis I think we just have to wait for now. If I know the DNS system correctly, these changes take a while
 
OK... how will we find out when it is done?
 
Ping: Encourage flow.
[skiwi2/GithubHookSEChatService] skiwi2 pushed commit ad24cdee2c to master
Added Github Ping and Push event support.
 
9:11 PM
Goodnight, I can finally call it a day now.
 
@Phrancis When you visit cardshifter.com it will look differently
@skiwi Good work. I hope I can set it up on my server tomorrow
 
@SimonAndréForsberg I better hope so too!
 
@SimonAndréForsberg like this?
 
@Phrancis Bingo!
The DNS still haven't updated for me but I guess it's just a matter of time :)
@Phrancis Feel free to register on the site and I'll give you some more privileges :)
 
Hmm... how do I go about doing that? I tried using my Wordpress login for my other site but it is not working... I don't see a link to register
 
9:25 PM
@Phrancis try now. Apparently the checkbox 'anyone can register' have to be checked :)
@skiwi @DaggNabbit and others might want to sign up as well for an account on the wordpress site: zomis.net/cardshifter.com/wp-login.php?action=register
 
OK
 
@SimonAndréForsberg I am looking at this now... trying to figure out why the server is in Orlando FL and the nameservers are in Sweden
 
@DaggNabbit Because I'm using a Swedish service that has a free DNS server. And my Swedish webhosting company has their servers in U.S.
 
OK Simon I did just waiting for confirmation email now, for some reason it seems to be taking a while
 
@DaggNabbit Having fun with network-tools.com ? :)
@Phrancis checked your spam folder?
 
9:30 PM
Yeah it's not there either
 
@SimonAndréForsberg no, just using dig and whois
 
hello gentlemen
 
Hey there
 
Orlando is probably one of the worst places to host a server I can think of
 
@Phrancis I modified your password to be your username backwards in lowercase letters, I'd recommend changing it when you've logged in ;)
@DaggNabbit It's been working so far :)
 
9:40 PM
@SimonAndréForsberg done and thank you :)
We need more comments on this if possible: www2.zomis.net/tcg-creation/105/logos-version-2
I think branding is important and a good logo is key
 
@SimonAndréForsberg that's good, was just surprised to that it was there. You usually see them in places that are more geologically stable.
 
9:57 PM
on this wordpress site, all of the links take me to www.zomis.com/cardshifter.net/something
there's a problem with the vhost config or something?
s/cardshifter.net/cardshifter.com
 
@DaggNabbit Ah, I'll fix that
@DaggNabbit Just a messup with the wordpress configuration
I hope that's better now
Unfortunately my DNS is not updated so the new URL isn't working completely for me
Bad bad DNS, no donut for you!
 
@SimonAndréForsberg yeah that fixed it
 
@Phrancis You want to be responsible for the Wordpress site?
@DaggNabbit I think my DNS server isn't in sync with the other DNS servers out there...
Can you send that link to my DNS server as well?
 
10:15 PM
If that's OK with everyone else; I haven't contributed that much yet, it would give me something to do
 
All in favor be quiet!
Seems like everyone agrees ;)
 
go for it. Give me something to do though dammit haha
 
@DanPantry what time zone are you in? Also, do you own a deck of poker cards?
 
@Phrancis: I own a deck of MTG cards. several
GMT + 1
 
@DanPantry this is probably your first seeing this chart
 
10:24 PM
indeed
 
GMT +1 meaning it is 00:25 right now?
 
oh shit have the clocks gone back
I don't even know
no gmt + 1 is 23:25
(which is my time)
 
Oh. I forgot to factor in US daylight saving time
 
^^
am british
 
@DanPantry GMT +1 is my timezone! I think you're GMT +0. Although there's the DST to consider which makes it another +1
 
10:25 PM
18:25 here
GMT -5 with DST
 
@SimonAndréForsberg GMT +1 according to my google-fu = wwp.greenwichmeantime.co.uk/time-zone/gmt-plus-1
but yes you are right I am GMT, but DST is active
 
So it really would be 17:25 in true GMT -5
 
I work 8 until 4.30 most days
as an FYI
any time after that i'm basically free as I have no life or girlfriend or irl commitments because 9
19
 
@DanPantry I separate DST from GMT. Whenever I say a timezone, I never factor in DST.
 
I'll keep that in mind :P
 
10:28 PM
Perhaps it's just me though
there's gotta be a SE site where one could ask that
 
I need someone to help running test games with me here and there, all you would need is a web cam and a deck of regular poker cards
@SimonAndréForsberg maybe UX...?
I would try Google first though ;p
 
I have a webcam although unfortunately no deck of poker cards
I can grab a set when I get paid on wednesday, I need to head into town anyway
thursday at the latest, depends if work lets me get that piercing after all
 
@Phrancis I'm thinking perhaps English.SE, as it's a question about language usage more or less
English.SE is probably not the best fit though
 
@DanPantry cool let me know if you do.
 
@Phrancis I hope we'll be able to have a client up and working with that test game within 6-8 1-2 weeks.
 
10:33 PM
I was thinking UX... like "I am making an application that needs to display GMT time to the user, but not sure if it would be best to factor in DST or not. Any recommendation one way or another?"
 
@Phrancis I added an answer here: www2.zomis.net/tcg-creation/105/logos-version-2
@Phrancis I was thinking English.SE like "When I state my time zone to someone else, should I factor in DST?"
 
Sure
 
10:52 PM
@SimonAndréForsberg if the names for zones weren't so localized, I could use for example EDT when it's daylight savings time and EST when it's not, and people in the US would know what I mean. Problem is, internationally EST is ambiguous... here it's GMT-5, but Australia has an EST that's UTC+10.
maybe GMT-5 on DST could be written like GMT-5+1 ... yuck
 
Nice Simon
I now officially have a GitHub account
2
@DaggNabbit I found out what's wrong with this stupid piano part... it has way too much feel... I'm going to need to scrub it by hand :(
 
11:14 PM
@Phrancis Yay!
 
It seems like the musician was either nervous or overly excited (both of which could be due to inexperience recording in a studio) and all notes are slightly ahead of the click track so my quantization is having a rough time
 
quantization?
 
Quantization is where you take a MIDI performance (meaning you record notes, timing & velocity, as opposed to audio) from a musician, and then normalize the timing to its closest value, for example 16th notes, to varying degrees. If I used 100% degree any note that's less than 50 cents of 1/16th would be rounded down to 1/16th, and any 51+ would be rounded up to 2/16th
This illustrates my problem, where you see all of the notes are a bit "early" compared to the grid (the click track), some are early enough where they get quantized down to the pervious mark, making the track sound very sloppy
 
11:37 PM
Ah
so you'll have to edit the MIDI
 
Yeah. I could apply a commit to move all notes slightly to the right, but noticing inconsistency in how early (and sometimes a bit late) the performance is... it feels dirty
 
btw, there's a C# language and even F#... I wonder when there'll be an Am7 language
 
LMAO
 
I gotta post that in the 2nd monitor as well :P
 
So in order not to do the artist a disfavor, I'm scrubbing it by hand. Next time I'll charge extra for that
 
11:41 PM
Ah
you definitely should ^^
extra work = extra pay :)
 
Yeah I'll talk to my studio guy about this
They work with a lot of local "start-up" bands, and most of the time the artist will want us to write music for them based on original records of vocals, guitar etc... This is the first we've been asked to take a performance, and clean it up so it works with the song...
get a session musician next time and save me 6-8 hours of work
I'm about halfway through it... need a cigarette and a beer before I torture myself through any more of this.
 
11:59 PM
Well, back to it
 
00:00 - 20:0020:00 - 00:00

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