« first day (268 days earlier)      last day (3592 days later) » 

00:48
Duga dead?
 
7 hours later…
08:03
RELOAD!
[retailcoder/Rubberduck] 6 commits. 1 opened issue.
@rolfl Internet dead.
> Last night, my internet completely went down for about 4-5 hours. Because of this, at 00:00 UTC, when Duga normally posts the daily stats, Duga was not able to post any messages. Instead, the database table of the daily stats information was simply reset.

Do not reset the daily stats information unless the messages are posted correctly.
09:00
@Simon, don't forget to fix Facebook Graph 2.0 in Minesweeper for Android!
09:32
@Duga Can't you tell @skiwi or someone else to do that instead?
[Zomis/Calculator] Zomis pushed commit 239fb505 to master: implemented Shunting Yard algorithm to convert into Reverse Polish Notation
[Zomis/Calculator] Zomis pushed commit 13e3e675 to master: fixed function support in ShuntYard algorithm
[Zomis/Calculator] Zomis pushed commit c990a792 to master: small cleanup, added two test cases
 
1 hour later…
10:41
hey
@SimonAndréForsberg No, you have to do that!
@SimonAndréForsberg As for your ? : operator, I would support it by tokenizing the ? and : as operators, and then in the next pass you extract a function token that takes those 3 parts as arguments and ditch the ? : operator tokens
11:11
@SimonAndréForsberg Now I'm not one who would argue against Java easily... But for managing the Duga Web Interface, you have to look at this docs.djangoproject.com/en/1.8/intro/tutorial01 and especially the second part of the tutorial is really really interesting
I'm right now seeing an option where we use the admin interface of Django to maintain our PostgreSQL database, and then @Duga still uses that one in Java, of course
This seems to be so much less work than creating everything by yourself
@skiwi So you're suggesting @Duga should run both a Python webserver and a Java webserver?
@SimonAndréForsberg It is a possibility, if it's possible
I'm generally right now just astonished by how easy it is in Django to create a web interface for something
@skiwi Sure it's possible, but they can't run on the same port, and for me it is out of the question.
I am not planning to read the entire link you sent, what exactly is it by Django that you like? Can you point to a specific piece of it?
@SimonAndréForsberg Not really, it's a short tutorial and I'm just reading it not actually following it
The important part is that you create your Model objects in Python and then Django already generates an interface to add/delete/modify them, and by further customizing that admin interface you can actually create a good GUI
You get something like this for free:
And after some modifications to the admin view:
and are you sure that something like this does not exist for Java/Spring MVC?
11:21
I haven't found it, but I'm not sure
Django provides a full DAO implementation for example, I'm sure they exist for Spring, but it seems complicated to set up already
This is an older post, but gives some information
7
Q: Why doesn't the .NET world have anything like rails/grails/django/roo?

Eric WilsonIt seems to me that rapid-development web platforms are going to radically change the world of web applications. It has been five years since Rails 1.0 was released for Ruby, and since that time we have seen Grails for Groovy, Django for Python, and Roo for Java. But to my knowledge (which is p...

spring.io/guides/tutorials/bookmarks doing it all by yourself is definitely out of the question if I were to code something
[Zomis/Calculator] Zomis pushed commit fc67e984 to master: added calculation using Reverse Polish Notation, and made CalcTest also perform tests using RPN
@skiwi Then don't.
I don't think there's much demand for DWI at this point anyway. I think @Duga can survive just as fine without it.
11:41
I don't see why you dislike Django so much, at least that seems to be the case
I don't dislike Django, I just refuse to have @Duga run both Python and Java at the same time.
btw, you might want to watch this video (from this site)
What's the issue with both Java and Python though? Yes, it probably needs to run on a differenrt port, but apart from that
I'm a bit worried about Spring Roo in that I just don't see it being used anywhere nor even knew it existed
As you often say, "it's ugly".
I've seen the name Spring Roo before.
Managing the database that Duga could use for the web interface by hand is even more ugly
In your opinion, maybe.
Verbose? Sure. Ugly? Not in my opinion.
11:50
Spring Roo indeed offers similar functionality
It still seems to be a hell to setup judging by that video
12:21
I'm not entirely convinced though
Thinking about an inventory management application I want to create myself
As soon as you add logic to your views, then it becomes difficult to work with purely the admin interface
12:39
I could go with using a generic-view for CRUD views, and building my own views with AngularJS and REST API when neccessary
I at least don't want to implement the CRUD view myself the whole time
 
1 hour later…
14:01
hey all
hey @bazola
has anyone ever used JDBM3? github.com/jankotek/JDBM3 i just heard about it today
not sure what I am doing wrong @SimonAndréForsberg but I am getting this with the desktop cardshifter:
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoClassDefFoundError: com/cardshifter/api/incoming/LoginMessage
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:121)
Caused by: java.lang.NoClassDefFoundError: com/cardshifter/api/incoming/LoginMessage
	at com.cardshifter.gdx.screens.ClientScreen.<init>(ClientScreen.java:45)
	at com.cardshifter.gdx.screens.MenuScreen$1.clicked(MenuScreen.java:48)
	at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:89)
14:23
@bazola run mvn install on the "main" Cardshifter project
@bazola Never heard about that, looks interesting at the least
@bazola Last commit: Looooooong ago. A lot of TODO stuff listed. No maven repository. :(
i wonder if it is more reliable to use a library like that then just writing things to disk yourself manually?
Info: Using recursive deserialization for class com.cardshifter.api.config.DeckConfig
Info: Using recursive deserialization for class com.cardshifter.api.outgoing.CardInfoMessage
Info: Using recursive deserialization for class com.cardshifter.api.outgoing.CardInfoMessage
Info: Using recursive deserialization for class com.cardshifter.api.outgoing.CardInfoMessage
Info: Using recursive deserialization for class com.cardshifter.api.outgoing.CardInfoMessage
Info: Using recursive deserialization for class com.cardshifter.api.outgoing.CardInfoMessage
im also getting all of these errors
this is the next version of that jbdm3 library github.com/jankotek/mapdb
/**
 * Functional stuff. Tuples, function, callback methods etc..
 *
 * @author Jan Kotek
 */
public final class Fun {
as a former dwarf fortress player, i didn't know quite what to expect from a class named Fun
@bazola what library? you mean the JDBM3? Sure it can be, but there are other libraries you can use that can be even better.
the Comparator problems are something Eclipse-specific.
@bazola now that looks a lot more updated.
14:40
Client: Received: com.cardshifter.api.outgoing.NewGameMessage@6603ee8a
Client: WARNING: Unable to handle com.cardshifter.api.outgoing.WaitMessage@7e905bed of type class com.cardshifter.api.outgoing.WaitMessage
Info: bytes received 19638
is it the server that is not compatible? the server is not crashing even though the client is
@bazola that's only a warning and no error at all
@bazola if you are trying to connect to your old server, then that can be a problem yes.
i guess i thought it was compatible hehe
14:54
maybe i'm just having a slow day, but can't i run the cardshifter server from inside of eclipse? it is complaining about the security manager
@bazola yeah, that's a common thing... (I'm getting a bit sick of that security manager sometimes)... I know @skiwi documented how to do it somewhere.
I always comment out the System.exit line in the main class on the Server, but avoid commiting it ;)
@bazola Should be possible to get it running correctly by adding these parameters to the Java VM: -Djava.security.manager -Djava.security.policy==cardshifter-server-0.5.policy
(whereever that file is located, and whatever it is named)
@SimonAndréForsberg ah, right, thanks
@SimonAndréForsberg nice tip :)
sweet, finally got done with the cleaning-mavening-gradleing dance and got it up and running. compiling the html now to test that. do you want me to test the iOS version @SimonAndréForsberg or are there not enough changes for that to break?
15:17
@bazola don't think it should break but feel free to try it
15:37
seems like animations are running really slowly in the browser
@bazola yes, I have also noticed that. I think there are many reasons why that is happening. overall, I think a big problem is that there is no feedback for when a command is sent to the server.
15:55
also, the iOS version is crashing
it happens immediately at startup
16:20
this is awesome picascii.com
@skiwi Around?
Just wanted to ask, is jQuery the way to go to read JSON file(s) In native (non-HTML) JavaScript?
Something like jQuery.getJSON() I'm guessing. Am I thinking along the right lines?
16:39
[Cardshifter/Cardshifter] Phrancis pushed commit 67f47e6d to js-json-test: Create card-data.json
@bazola Then you gotta update your command line settings (just as in some of the examples on the repo), because Eclipse runs it with no arguments by default
That security manager is a hell to work with, but the only way to secure your program from doing stuff you don't want
@sᴉɔuɐɹɥԀ Am now
@sᴉɔuɐɹɥԀ Yep, that's a good way
16:56
@bazola you gotta provide a more detailed explanation or stacktrace than that if you need assistance...
@sᴉɔuɐɹɥԀ jQuery? Where did that come from?
@SimonAndréForsberg Just been reading about JSON, seems like jQuery comes up a lot... Is there some other/better way?
@sᴉɔuɐɹɥԀ You need to understand that jQuery is simply an abstraction layer above normal JavaScript, there's nothing jQuery can do, but JavaScript doesn't
(Actually it's a little bit more sophisticated as jQuery actually fixes bugs in browsers, thus giving you real platform independence)
@sᴉɔuɐɹɥԀ In Cardshifter we will not use jQuery. The beauty of JSON is that it is short for JavaScript Object Notation. You don't need to "load" JSON. JSON is native to JavaScript.
But if you're going to do AJAX requests, then jQuery is better than JavaScript imo
Sounds good, I'll keep that in mind
You don't do var obj = loadJSON("{ a: 42, b: { c: d } }");
You do var obj = { a: 42, b: { c: d } };
Frameworks like AngularJS, ReactJS, etc. often come with their own 'http' implementation, so you don't call $.getJSON but instead $http.getJSON as example
@SimonAndréForsberg But that JSON needs to come from an url
Now, being that the "logic" won't be part of any web page, would HTTP call make any sense?
17:03
@skiwi Why does it need to come from an url?
Hey I wrote this for testing, let me know if it makes any sense so far?
@SimonAndréForsberg Because @sᴉɔuɐɹɥԀ said he wanted to read JSON from a file
{
    [entity] : {
        "name" : "Spareparts",
        "flavor" : "Cobbled together from whatever was lying around at the time.",
        "values" : {
            "sickness" : 0,
            "attack" : 0,
            "scrap" : 3,
            "manaCost" : 0
        },
        "apply" : {
            "apply:creature" : "Mech",
            "apply:health" : 1,
            "apply:noAttack" : 1
        }
    },
    [entity] : {
        "name" : "Longshot",
        "flavor" : "Eyes and reflexes augmented for maximum deadliness.",
@sᴉɔuɐɹɥԀ Another tip, run your code through a linter if you're not sure, something like JSON lint must exist
Dinner now
@skiwi If the JSON data was in the same "PhrancisGame.js" file that would be fine also, if it's less complicated
17:05
@skiwi Still doesn't need to come from an URL. Can include a file, and that file itself can be pure JS. No need to make it more complicated than that.
function loadCardLibrary() {
	var cardLibrary = {
		/* all cards in JSON format here */
	};
}
^^ Would something like this actually work, in its own separate JS module?
@sᴉɔuɐɹɥԀ s/[entity] :/entity :/
@sᴉɔuɐɹɥԀ yes
(i.e. it shouldn't be [entity] : , it should be entity : - skip the bracets.
entity then, and not "entity" right?
yes
@sᴉɔuɐɹɥԀ the "apply" things can be significantly modified in this case. I don't think those will/should remain like that.
OK. And for the "apply" stuff, I'm guessing it would be possible from there to call to another module that has functions that represent each effect?
17:14
yes. there is a whole world of possibilities for that
Sweet, OK, I think it's starting to sink in
entity : {
    "name" : "Longshot",
    "flavor" : "Eyes and reflexes augmented for maximum deadliness.",
    "values" : {
        "DENY_COUNTERATTACK" : 1,
        "manaCost" : 3,
        "attack" : 3
    },
    [
        applyCreature("Bio"),
        applyHealth(1)
    ]
},
@Simon Would something along ^^ those lines resemble a bit more what we could shoot for?
(syntax is probably wrong but I'm sure you get the idea)
@sᴉɔuɐɹɥԀ sure, that's entirely possible.
@SimonAndréForsberg i still haven't figured out a good way to get stack traces for iOS, working on it now
\[[**Cardshifter/Cardshifter**](https://github.com/Cardshifter/Cardshifter)\] [**Phrancis**](https://github.com/Phrancis) pushed commit [**1e83176e**](https://github.com/Cardshifter/Cardshifter/commit/1e83176e77cbbc6f3ced50938f9c3ae96d26a84c) to [**js-json-test**](https://github.com/Cardshifter/Cardshifter/tree/js-json-test): Update card-data.json

Added example cards
Anyone know why Github is highlighting all this stuff in red?
17:26
@sᴉɔuɐɹɥԀ that might actually be a syntax check with highlightning
OK. It looks like JSON might expect pretty much everything to be wrapped in double-quotes, let me smoke some documentation
yes, it does.
name the file card-data.js instead
and use JavaScript syntax.
17:46
@sᴉɔuɐɹɥԀ Never used it myself but this exist for JS in Eclipse : eclipse.org/webtools/jsdt
17:59
@SimonAndréForsberg As in, use quotes only for string data?
@sᴉɔuɐɹɥԀ yup
each of the red [ should be something: [
OK. Being that what is between square braces is in an array, I don't think I would need to terminate statements with ; for each call... right?
@sᴉɔuɐɹɥԀ That's valid for a JS file though, not for JSON
A valid JS file can be perfectly fine, it's what I use for my js-effects cardloader as well
18:14
@SimonAndréForsberg well this is all i have been able to get so far:
13:13:16.180 [DEBUG] [org.gradle.api.Task] Launching app...
13:13:16.180 [DEBUG] [org.gradle.api.Task] App Path: /private/var/mobile/Containers/Bundle/Application/1989CBB8-F6D8-45E6-A1B1-A485585BF80D/IOSLauncher.app
13:13:17.901 [QUIET] [system.out] java.lang.NoSuchFieldError: org.robovm.rt.bro.Bro.IS_32BIT
13:13:17.904 [QUIET] [system.out] 	at org.robovm.objc.ObjCRuntime.isStret(ObjCRuntime.java)
13:13:17.905 [QUIET] [system.out] 	at org.robovm.objc.ObjCRuntime.bind(ObjCRuntime.java)
13:13:17.905 [QUIET] [system.out] 	at org.robovm.apple.uikit.UIApplication.<clinit>(UIApplication.java)
actually i also just found this:
	[11381] <Warning>: Got a connection, launched process /private/var/mobile/Containers/Bundle/Application/1989CBB8-F6D8-45E6-A1B1-A485585BF80D/IOSLauncher.app (pid = 11382).
Apr 27 13:13:17 bazolaipod locationd[3883] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Apr 27 13:13:17 bazolaipod com.apple.debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-320.2.89
	[11381] <Warning>: 1 +0.000000 sec [2c75/1107]: error: ::read ( -1, 0x9069ec, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
function loadCardLibrary() {
    var cardLibrary = {
        entity: {
            name: "Spareparts",
            flavor: "Cobbled together from whatever was lying around at the time.",
            values: {
                sickness: 0,
                attack: 0,
                scrap: 3,
                manaCost: 0
            },
            apply: [
                applyCreature("Mech"),
                applyHealth(1),
                applyNoAttack(true)
            ]
        },
        entity: {
Does this look OK? ^^
@sᴉɔuɐɹɥԀ I think you are missing a list there
What do you mean?
@sᴉɔuɐɹɥԀ I'll try to explain in a simpler form
You are having...
var cardLibrary = {entity: entityObj, entity: entityObj2, entity: entityObj3};
All you are doing is redefining cardLibrary.entity
What you want it:
var cardLibrary = {entities: [entity: entityObj, entity: entityObj2, entity: entityObj3]};
Then you have a list of entity: entityObj objects
If that makes sense
Yes, I see. Does each entity have to a have a distinct name/identifier?
18:27
@sᴉɔuɐɹɥԀ If they are in a list, then no
You don't need to list entity: { } every time though
@bazola don't know a solution to that.
entities [
  {
    name: "hello",
    id: 1
  },
  {
    name: "world",
    id: 2
  }
],
@skiwi Like that? ^^
@SimonAndréForsberg i managed to get some logging going but it only really works from inside the IOSLauncher file
Apr 27 13:30:40 bazolaipod IOSLauncher[11439] <Warning>: HERE IS MY LOG
Apr 27 13:30:40 bazolaipod com.apple.xpc.launchd[1] (UIKitApplication:com.cardshifter.gdx.IOSLauncher[0xa880][11439]) <Warning>: Service exited with abnormal code: 1
Apr 27 13:30:40 bazolaipod SpringBoard[42] <Warning>: Application 'UIKitApplication:com.cardshifter.gdx.IOSLauncher[0xa880]' exited voluntarily.
Apr 27 13:30:40 bazolaipod assertiond[57] <Warning>: Could not set priority of <BKNewProcess: 0x1759a3f0; com.cardshifter.gdx.IOSLauncher; pid: 11439; hostpid: -1> to 2, priority: No such process
@sᴉɔuɐɹɥԀ Except you forgot the : after entities
But yes, like that
Whoops, good catch
18:47
function loadCardLibrary() {
    var cardLibrary = {
        entities: [
            {
                name: "Spareparts",
                flavor: "Cobbled together from whatever was lying around at the time.",
                values: {
                    sickness: 0,
                    attack: 0,
                    scrap: 3,
                    manaCost: 0
                },
                apply: [
                    applyCreature("Mech"),
                    applyHealth(1),
                    applyNoAttack(true)
@skiwi Look better now? ^^
@sᴉɔuɐɹɥԀ Looks good ;)
The weird part is the cardLibrary = {} you post there is actually valid Python code
In Python variable = {key1: value1, key2: value2, key3: value3} is a dictionary (also called a map)
and variable = [value1, value2, value3] is a list
Though Python has also the following forms...
variable = {value1, value2, value3} is a set
variable = (value1, value2, value3) is a triple consisting of those three elements
triple? is that like a tuple with 3 elements?
\[[**Cardshifter/Cardshifter**](https://github.com/Cardshifter/Cardshifter)\] [**Phrancis**](https://github.com/Phrancis) pushed commit [**1a704791**](https://github.com/Cardshifter/Cardshifter/commit/1a70479192fa90bf8768fb4334215714f2304859) to [**js-json-test**](https://github.com/Cardshifter/Cardshifter/tree/js-json-test): Update and rename card-data.json to card-data.js

Changed to JavaScript file, wrapped JSON data into a function, and adapted syntax to JS syntax instead of pure JSON.
19:02
@Duga Why do you keep making my commit messages so ugly? I haven't used a carriage return or line feed!
@bazola Yep
@sᴉɔuɐɹɥԀ But GitHub via web did!
@skiwi what is the syntax for accessing each element?
So, now I'm guessing I could just do something like this from another JS module: var cardLibrary = loadCardLibrary(); console.log(cardLibrary); ?
19:50
@bazola variable[]
@sᴉɔuɐɹɥԀ If it's included before that file, then yep ;)
hm, odd.
var data1d = {
    data: [
        "foo",
        "bar"
    ]
};

var data2d = {
    data: [
        {
            word: "foo",
            number: 1
        },
        {
            word: "bar",
            number: 2
        }
    ]
};

var data3d = {
    data: [
        {
            word: "foo",
            numbers: [1,2,3]
        },
        {
            word: "bar",
            numbers: [4,5,6]
        }
    ]
};

console.log(data1d);
console.log(data2d);
console.log(data3d);
> { data: [ 'foo', 'bar' ] }
{ data: [ { word: 'foo', number: 1 }, { word: 'bar', number: 2 } ] }
{ data: [ { word: 'foo', numbers: [Object] }, { word: 'bar', numbers: [Object] } ]
Why does data3d print the inner list as numbers: [Object] ??
Instead of, what I would expect, a list numbers: [1,2,3]
@skiwi python seems to have lots of nice features
@sᴉɔuɐɹɥԀ Because it contains lots of objects there
@bazola Yeah, it's not bad at all!
@skiwi OK. I'm guessing it won't hurt anything in practice, as in, what is actually passed is the list of numbers, as an Object. Just not printing the list to console?
@sᴉɔuɐɹɥԀ Your numbers are down at data3d.data[0].numbers and data3d.data[1].numbers
20:16
OK perfect
21:02
@sᴉɔuɐɹɥԀ almost, but not quite. You need to import the JS first, and then call the method.
What's the best way to do that? i.e., without using jQuery or whatever, just native JS?
According to MDN, import "is not implemented in any browsers natively at this point."
21:28
Would something like document.write be OK to use, or is that more for an HTML context?
21:59
hey :D
hey!
TTGH, see you in a bit maybe
hey @Marc-Andre
Hey @bazola!
having a good monday?
22:08
it was ok ! I've been able to fix some issue at work in one day, so it was nice. And you ?
not as productive as I would like. i wanted to add some major features to my game today but I have not had nearly enough time, and now the day is almost over. but maybe tomorrow
@sᴉɔuɐɹɥԀ in Cardshifter, we're using Nashorn script engine which supports 'import' stuff
@sᴉɔuɐɹɥԀ why would you print anything at all? document.write is purely for HTML context.
22:37
@SimonAndréForsberg Yeah figured, thanks for confirming
@SimonAndréForsberg OK, could I fairly easily leverage that then and use it in the JS files I'm working on?
@sᴉɔuɐɹɥԀ yes
Can you point me to some directions, possibly how you have used it already in the project?
don't think I have used it myself yet...
23:03
I might keep it in a single JS file for the time being, until it can actually work, which may be a while :)
23:45
Loki Astari vs. Simon André Forsberg: 4094 diff. Year: -1672. Quarter: -373. Month: -373. Week: -70. Day: +10.
200_success vs. rolfl: 159 diff. Year: -547. Quarter: -390. Month: -390. Week: -196. Day: -130.

« first day (268 days earlier)      last day (3592 days later) »