« first day (528 days earlier)      last day (3035 days later) » 

12:00 AM
RELOAD!
[Hosch250/Rubberduck] 1 commit. 147 additions.
[Hosch250/VSDiagnostics] 12 commits. 1386 additions. 490 deletions.
[retailcoder/Rubberduck] 2 commits. 153 additions. 53 deletions.
[rubberduck-vba/Rubberduck] 3 opened issues.
[skiwi2/OGNext] 4 commits. 1510 additions. 130 deletions.
[skiwi2/OGNext-Userscript] 2 commits. 5 additions. 10 deletions.
[Vannevelj/VSDiagnostics] 2 opened issues.
[Zomis/Brainduck] 1 issue comment.
[Zomis/Machine-Learning] 7 commits. 138 additions. 13 deletions.
 
12:19 AM
Hey.
 
Hey
How's it going?
 
It's going well; still working on that React chat program. How're you?
 
1:07 AM
Pretty good, tinkering around with arrays
It's not particularly interesting, but gotta learn
public class MultiDimensionalArray {
    /**Prints a 2d array with given rows and columns, with values being a 1-n count of cells*/
    static void twoDimensionalArray(int rows, int cols) {
        int[][] table = new int[rows][cols];
        for (int r = 0; r < rows; r++) {
            for (int c = 0; c < cols; c++) {
                table[r][c] = (r * 4) + c + 1;
                System.out.format("[%d]", r);
                System.out.format("[%d]", c);
                System.out.format(":%d\t", table[r][c]);
MultiDimensionalArray
[0][0]:1	[0][1]:2	[0][2]:3	[0][3]:4
[1][0]:5	[1][1]:6	[1][2]:7	[1][3]:8
[2][0]:9	[2][1]:10	[2][2]:11	[2][3]:12
Kinda boring
 
It looks it.
 
The code in the book is even worse than that, believe it or not
IKR
It is Oracle Press-certified (tm), so I guess they are just keeping it really basic on purpose
 
Maybe they stop keeping it basic later on in the book.
 
I hope so
 
 
2 hours later…
3:19 AM
"I'm murdering VBA" he said. I don't even want to know what names you're using to get these results, @Hosch250! https://t.co/zP2zHFypTI
@Hosch250 there's a special place in hell for all coders that impose this on #VBA maintainers. Good thing it's only test code :-)
@Hosch250 makes me wonder, perhaps we could make these a bit more verbose and include the member name the parameter/variable is under?
 
 
2 hours later…
5:49 AM
@peterlearning24 @Hosch250 it's the Rubberduck 2.0 code inspection docked toolwindow =) Latest release is 1.4.3: http://www.rubberduck-vba.com/
 
6:13 AM
@peterlearning24 @Hosch250 the add-in gets you additional menus - just pick "Code Inspections" from the "Rubberduck" menu to run them :)
 
 
2 hours later…
7:51 AM
@skiwi I think it does drop, but very very very slowly. I think I have realized something that will speed up the training. The problem is because of it being 20 or so hidden nodes in one layer, all of these will have the "bias weight" set to 1 in the beginning, and the sum of the nodes in the previous layer is much larger than 1. So this node is pretty much guaranteed to output a value close to 1, such as 0.99986345745 which is something like my hidden nodes output.
It can be improved by setting the "bias weight" to -n, where n is the number of input nodes. That should make the network train faster, I believe.
Can't wait to test it when I get home from work :)
@Phrancis Then make it harder.
22
Q: A grid and a menu walked into a program

Henrik BohlinA program that creates a grid 10x10 and assigns a random number in each tile. It then asks you if you want to: create a new grid view the current one count how many of each number there are in the grid sum the rows sum the columns exit the program import java.util.Arrays; import java.util.R...

Accomplish something like that ^^ @Phrancis
 
 
2 hours later…
10:09 AM
That could make sense yes @Simon
As much as I like working on it together, I do think that I need to create my own version to fully understand it
The idea is that all nodes of one layer are connected to all nodes of the next layer, right?
With default settings that would give us 1531 * 40 * 20 * 10 * 3 edges, I cannot really believe that the program is actually doing that all given how fast it is
 
 
1 hour later…
11:17 AM
@SimonForsberg What is this line for?
return rand.nextInt(to - from + 1) + from;
I kind of understand what it does, but not why it's there
 
11:35 AM
hey
 
Does + from only apply after the return?
@skiwi Hey! How are you?
 
Tired? :)
@Phrancis It returns an integer in the range of [from, to] (not sure if inclusive or exclusive)
 
I figured exclusive, but may be wrong
 
I don't know at this point of the day ;)
 
@skiwi Huh?
 
11:42 AM
12:42 here
 
12:20 PM
@peterlearning24 @Hosch250 send us an email with the details at contact@rubberduck-vba.com.
 
 
1 hour later…
1:25 PM
My code is compiling My tests are running
@Phrancis random integer in the range from - to, inclusive.
 
@SimonForsberg knees weak, arms are heavy, code compiling, test results making my sweaty i tried
 
@skiwi Guess why I created my own version instead of using a library or something? :)
@skiwi In a feed-forward Neural Network, like mine, yes.
@skiwi Nope. 1531*40 + 40*20 + 20*10 + 10*3 connections. Not the same as 1531 * 40 * 20 * 10 * 3.
 
Ah right, doesn't seem like that many though then
I'm still worried that you are throwing away lots of data if you end up with 3 neurons on the output layer, but it is what you want
 
@Phrancis It applies before the return. rand.nextInt(to - from + 1) only returns an integer from 0 to (to - from), inclusive. So if your range is "from 100 to 200" that part of the code gives "from 0 to 100". That's why you add + from at the end.
@skiwi Sure I'm throwing away data, but I am not interested in using all the data. I will add more outputs later btw, when I get this part to work.
 
Like also recognizing the value?
 
2:09 PM
@SimonForsberg OK makes sense
 
2:37 PM
Hey everyone!
 
hey @Marc-Andre
 
How are you @skiwi ?
 
Pretty decent, you?
 
Pretty good too! Bit tired but somewhat ok
 
Hey @Marc-Andre!
 
2:46 PM
Everyone is tired :P
 
@Phrancis You're getting close to 10k !
 
Yeah!
 
@skiwi We're planning my girlfriend and I to have a kid this year. I don't know how I will get sleep from that point on. I'm already tired :P
 
@Marc-Andre Your life will be over
Nah, just kidding
 
Part of my life will be over, but a brand new chapter will be open :P
3
No more gaming when I want to, no more I sleep when I want
 
2:57 PM
@peterlearning24 @Hosch250 alternatively, describe the problem in a new issue on our GitHub repository: https://github.com/rubberduck-vba/Rubberduck/issues/new
 
 
1 hour later…
4:14 PM
@SimonForsberg Wait... in that article linked yesterday the NN figured out how to reverse user input in BF?
That's pretty damn cool
 
4:31 PM
@skiwi You mean the value such as 'clicked 2' or 'clicked 4'? Yes, of course.
 
@SimonForsberg Yes
 
@skiwi Looks like it, I didn't read the full article.
Soon time to leave work. Just spent about 4 hours on a damn Drools bug...
 
I thought you already left work, but a long day then it seems?
To calculate the Fibonacci Sequence it needs 151900 iterations before it could find a good program ;)
I don't know if that AI uses learning or just trial-and-error though
 
 
1 hour later…
5:40 PM
@skiwi Genetic Algorithms, which is a combination of both.
 
5:56 PM
@SimonForsberg Hmm, ok
I wanted to look at implementing my own NN tonight, but there's some more urgent issues on OGNext right now...
Added a feature, and somehow stuff in the database gets deleted
 
6:37 PM
http://www.commitstrip.com/en/2016/01/12/he-who-dares-wins/
CommitStrip
He who dares, wins
CommitStrip
1452623676
 
 
1 hour later…
7:39 PM
@SimonForsberg How do you log exceptions in @Duga? Only console?
 
@skiwi Duga's chatroom also
 
@SimonForsberg But that's just something you coded into @Duga I guess?
 
I'm having the issue that I believe that I'm logging via grails-app/conf/logback.groovy only to the console, whereas I had expected the exception to pop up somewhere in Tomcat\logs\
 
I think it's logged to a file as well
 
 
2 hours later…
9:40 PM
 
lol
 
Hmm, could be fun to make a TCG mod featuring a plethora in internet memes
It'd have to have a different set of mechanics than the other two though
 
I was planning to release OGNext v0.3 today
Instead I've only created more issues
Well, I did implement the Moon scraping, which is what I had intended
 
And the Moon deleting? ;p
 
I still have no clue how that happened
Haven't been able to reproduce it :|
One obvious way in which it could happen is if the user script sent an empty planet list to the server, but there's no reason why it would do that
 
9:46 PM
So it deleted them from the DB?
Or from some other location?
 
Not fully, it was marked as deleted = TRUE and date_deleted = CURRENT_TIMESTAMP
But that was in the database, yes
 
Odd. Do you even have a class/method that does that? Or do you think Hibernate is acting up?
 
I have something that potentially could do it, but it shouldn't
When a player sends a list of planets, then I update those in the database (or create if needed), then after that I get the set of planets of that player, subtract the planets that player just sent, and delete the ones that are remaining
That is, players in OGame can delete planets, and then those will not appear in the planet list anymore, so needed a bit to delete those
So if the user script would send only one planet, then all the other ones would be deleted
But, planets from different players also got deleted at the same time...
(For moons it is exactly the same story)
For one player even all his planets were deleted, which just shouldn't be happening
 
Weird
Have you thought of creating logging/audit triggers on your database tables?
 
10:44 PM
Got something to say about how Rubberduck 2.0 inspections work? Now's your chance! #OSS #CodeReview #CSharp https://twitter.com/StackCodeReview/status/687010932615155712
 
11:11 PM
Yep @Phrancis wondering how it is done in industry though
 
It's not very difficult, really.
0
Q: Postgresql 9.2 trigger to log changes to data in another table

user1044111I have several tables and want to log when changes are made to them, what the change was and who made the change. Postgresql 9.2 CREATE TABLE unitsref ( unitsrefid serial primary key, units varchar, unitname varchar, inuse boolean, systemuse varchar, keynotes integer, linkid integer ); Is the ...

 
11:32 PM
Is it a common practice?
 
Yeah, depends on how "important" the data is, but yes it's quite common in business/industry
It does make for a bit of additional data stored for each row, especially if you include audits for all write operations (although for inserts it doesn't achieve as much)
But, unless you're churning terabytes of data, it's not going to be enough to really hurt
 
Monking @skiwi and @Phrancis!
 
Hey @SirPython!
 
How're you doing?
 
Been laughing at doge memes off and on today to keep myself from dying of boredom, so, overall pretty good. How are you?
 
11:39 PM
Hah! Doing well myself, thanks.
 
2 hours ago, by Phrancis
user image
 
@Phrancis How about a Doge Deck for Cardshifter? ;)
 
@skiwi :
> Auditing values as JSON

For PostgreSQL 9.2, or 9.1 with the fantastic json_91 addon, you can log the old and new values in the table as structured json instead of flat text, giving you much more power to query your audit history. Just change the types of v_old_data, v_new_data, original_data and new_data from TEXT to json, then replace ROW(OLD.*) and ROW(NEW.*) with row_to_json(OLD) and row_to_json(NEW) respectively.
Might be interested in that^
2 hours ago, by Phrancis
Hmm, could be fun to make a TCG mod featuring a plethora in internet memes
I do want to get back into the more creative design part of the Cardshifter game, I'm really not very good at this web stuff, other than putting content and CSS in websites
Hopefully in the coming months I'll learn enough Java to where I can maybe write some Java/Groovy code also for the game, ultimately
 
200_success vs. janos: 16021 diff. Year: -749. Quarter: -749. Month: -749. Week: -388. Day: -198.
Loki Astari vs. Simon Forsberg: 2493 diff. Year: -173. Quarter: -173. Month: -173. Week: -148. Day: -50.
Mat's Mug vs. Simon Forsberg: 3402 diff. Year: +116. Quarter: +116. Month: +116. Week: -57. Day: -25.
200_success vs. rolfl: 6842 diff. Year: +6. Quarter: +6. Month: +6. Week: -73. Day: -33.
 
@SirPython can I run something by you?
 
11:51 PM
Sure thing!
 
OK. So I need to make a nice landing page for Cardshifter, you probably heard @Marc-Andre and I discuss before the holidays
My dilemma is whether this should go into the HTML-Client repo, or into the .io repo (the original Java webapp site)
I'd like to, eventually, factor out the Java app and hopefully have everything related to the website & web client in one repo (maybe)
 
Maybe, but it feels to me that the client and the website are different.
One is a website that is meant to display various information about Cardshifter, and one is for actually playing the game.
 
Ah, right
 
I don't know much about how to organize code, but it seems to that the point of these two repos differ too much for them to be together.
 
Fair point
 
11:55 PM
Have you run this by the others, too?
 
I do like how the main site is templated, I just don't like that the Java webapp is so cutting edge that only Tomcat 8+ supports it (and, it feels kind of slow (and overkill) to display simple static pages)
 
What is the Java webapp?
 
It assembles different chunks of HTML together at runtime
 
Whoa, I didn't even know we had this.
 
Which is great, except I'd like to use something that is more widely supported, like some JavaScript probably
 
11:58 PM
I think React's components would be good for that.
But I'm not quite sure, as I don't fully understand what it is to do.
 
I assume one library or another makes it pretty easy to inject/assemble chunks of HTML together right?
 
Yes.
 
If you look here you'll see it's broken down into sections, so if you update the header or whatever, it's updated on all pages: github.com/Cardshifter/cardshifter.github.io/tree/master/io.web/…
 

« first day (528 days earlier)      last day (3035 days later) »