« first day (1619 days earlier)      last day (3323 days later) » 

10:00 AM
<-- Suffering from headache
 
afk
 
Any soothing sounds for my ears? and head :)
 
fge
@ItachiUchiha try and find "the seduction of Claude Debussy" by The Art Of Noise
 
@fge Any specific track?
 
fge
None are bad
 
10:02 AM
 
@fge @uni On it..
 
Experimental electronic!
 
@deadlydragon00 !!!
 
10:12 AM
hahah
 
Nostalgia. xD
 
lol... out of heap space...
 
fge
<-- needs to find examples of using websockets with Java and JS
 
JS: var ws = new WebSocket(url);
ws.onmessage = function (e) {
  console.log(e.data);
}
 
@fge It's pretty straightforward on JavaScript's side
 
10:17 AM
@deadlydragon00 that takes me back :')
 
No idea how it's done on Java's side
 
Nice to hear
 
Java doesn't natively support websockets. Use the Java-Websockets library or something
 
@Unihedro Very Correct :D
 
TIL correctness can be expressed with "very"
 
10:19 AM
ok "very" :D
 
quite correct
and to top things of: quite very correct
 
Indeedly quite very correct.
 
@Unihedro So much correctness.
 
uniquely right :D
 
... Why do I have the source code of EC server cloned on my phone?
Now I know where all the memory went
 
10:25 AM
Setting Up Android Studio is a night mare :'(
 
Android is a fully hackable system though. I like it!
@deadlydragon00 Bah, use NDK...
 
@Unihedro I dont have time to learn C++ NDK thats why I only use Java ....
 
@deadlydragon00 Why is that? Took me a couple of clicks.
 
meh, C++ is easy
 
I dont know C++ to be honest... hahaha
 
10:28 AM
=(
 
@Unihedro I don't know that command. o_O
 
Hi OakBot, JAVAbot :D
 
I should run Javabot. :p
 
go ahead ;)
 
10:31 AM
I'll host him on my dev environment for a while.
... woot
Maven downloads the world.
 
that's a git output...
 
I used git pull from the last time I used it, which was forever.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: com.google.code.gson:gson

Reason: Invalid JDK version in profile 'doclint-java8-disable': Unbounded range: [1.8, for project com.google.code.gson:gson
 
oh for fu*k's sake
already known issue
we had that before...
we fixed it
 
Workaround?...
 
I checked back, it didn't happen again
we removed the workaround, it's back..
> There the suggested workaround is to fall back to version 2.2.4 until the issue is fixed
 
10:36 AM
kk
 
it's been running just fine since dec. 1st.
 
ugh... Manual, Y U so hard to read >_>
 
they are supposed to be that way ;)
 
Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is available as an early access release (it should be released in 2016)! You should only use Oracle Java 9 if you explicitly need it, because it may contain bugs and it might not include the latest security patches! Also, some Java options were removed in JDK9, so you may encounter issues with various Java apps. More information and installation instructions (Ubuntu / Linux Mint / Debian): webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
Hi, 2016.
 
I just wish I knew how to turn a list into a Result<Record> in jooq :/
 
fge
10:38 AM
@SecondRikudo if you say so :p
 
20 mins ago, by Unihedro
JS: var ws = new WebSocket(url);
ws.onmessage = function (e) {
  console.log(e.data);
}
 
Dammit, ninja'd.
 
Looks pretty straightforward to me ^ :P
@Unihedro Ninja'd by the ninja god. Are really surprised?
 
fge
OK, OK :p
Right now the priority is grappa 1.1.0
 
@SecondRikudo no sherlock
 
10:39 AM
@fge To be fair, that's a bit simplictic
 
fge
Yeah, figured :p
 
var ws = new WebSocket(url);
Creates a websocket object
The websocket implements an EventEmitter
So it has the .addEventListener(event, handler) method
 
fge
Well, I need both, so...
 
The property Uni demonstrated, .onmessage is a simplifieid way to set that handler, but it's not recommended for use.
 
fge
But be sure that I'll pester you if I don't understand something :p
 
10:40 AM
(Because if you want to attach two handlers, you can't easily do it)
@fge Sure
 
@Unihedro do you know any cheap VPS plan?
 
@deadlydragon00 Atlantis
Wait, "atlantic"
It's not reliable though, in uptime and support, but it sure is cheap
 
Thanks
 
$0.99 per month
256MB 1 vCPU 10GB SSD
@SecondRikudo recommended a great plan some time back, I haven't tried it out yet but I'll use it when I switch.
 
@Unihedro The VPS Nodes one?
 
10:44 AM
:D cool
 
probably
 
2048 MB RAM
2048 MB vSwap RAM
100 GB SSD/RAID 10
3000 GB Bandwidth
4 CPU Core / 100%
$5/mo
 
Exception in thread "main" java.nio.file.NoSuchFileException: bot.properties
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
 
2 messages moved from JavaScript
 
And service warrant for uptime, iirc
java.lang.NumberFormatException: For input string: "1 139"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.valueOf(Integer.java:766)
        at com.gmail.inverseconduit.BotConfig.<init>(BotConfig.java:49)
        at com.gmail.inverseconduit.Main.loadConfig(Main.java:91)
        at com.gmail.inverseconduit.Main.main(Main.java:39)
I'm an idiot.
Uh oh.
 
10:49 AM
pfft
 
Wait, wrong password. xD
 
Fuck it. I'm going to implement a JavaScript object serializer on my own from POJOs
A library is supposed to help me, not hold me down
 
That's the spirit!
grabs popcorn
 
K
 
11:01 AM
soo.. javabot running now?
 
Negative
 
ASR
one statement throws multiple exceptions at a time?
 
@ASR Not possible
 
@ASR suppress
 
though the definition can state that
 
ASR
11:03 AM
@ItachiUchiha ok thank you
 
I can't get the properties file right.
 
no spaces?
like... whatsoever?
 
ASR
like writing multiple catches for single statement we can avoid exceptions right?
 
LOGIN-EMAIL=bot0@unihedro.com
PASSWORD=Javascript sucks
TRIGGER=!!
ROOMS=1,139
... right?
 
no... props are case-sensitive
 
11:04 AM
@ASR Didn't get you.
 
They're in caps in the source code
 
carp..
 
...
Can I have your template with the email and password erased?
 
trigger should be optional btw.
I am not @home right now..
 
That's fine
I'll figure it out.
 
ASR
11:05 AM
@ItachiUchiha is it better to write multiple catches for handling exceptions for a try block?
 
bbl meal
 
@ASR Yes it is..
 
ASR
@ItachiUchiha thank you, Have you ever heard of Liferay?
 
What will someInt.toString() return? What will someBoolean.toString()?
 
Nope
 
11:07 AM
@SecondRikudo depends. with primitives you'll get a compilation error.
 
ASR
@ItachiUchiha ok,
 
other than that it should be equal to String.valueOf(...); (aside from the npe thing)
 
@SecondRikudo use Integer.toString(someInt) and Boolean.toString(boolean)
 
@Unihedro Actually, String.valueOf(object) works well for me
 
@Unihedro ^^^^
 
11:15 AM
That auto-boxes your primitive int and boolean to Integer and Boolean.
 
String.valueOf() is the best :D
 
25 secs ago, by Unihedro
That auto-boxes your primitive int and boolean to Integer and Boolean.
 
@Unihedro I don't care.
 
K
 
I don't know what they'll be to begin with, so it's going to be placed in an Object type variable anyway
 
11:16 AM
so much unclear garbage in the triage queue..
 
@Vogel612 Geez. I just flagged 6 posts in the helper queue as VLQ. You have no idea.
 
sometimes it's incredibly hard to decide in the Triage queue, because I'm lacking domain knowledge
 
ASR
is it better to use Integer i; instead of int i ?
 
@ASR depends on what you need
Judging from the problem you have no idea what Integer i; does, so just use int i
 
e.g. if a laravel question is written coherently and has a clear problem statement I usually just give it a Looks Ok
 
ASR
11:18 AM
@Unihedro yes
@Unihedro I know, but I dnt know when to use which
 
if you know the difference, you should also know when to use which
 
@ASR Integer is an object. It is frequently used in dimensions of bounds and when reference types are needed.
It's perfectly fine if you understood figuratively slightly less than from a calculus book, so just ignore all of it and use int.
 
Probably most commonly used when you need to store an integer in a collection
 
ASR
@Unihedro :) ok, thank you
 
@kiheru Yeah, as Integer can be a dimension, but int cannot.
 
11:23 AM
Now for a very fun part of trying to get all cars by a certain brand, when the car and brand table have no knowledge of each other :D
 
~JavaBot at your service
 
Imposter!
At least I got the settings right this time.
 
yaay to that
 
ASR
@Unihedro where can I find the tutorials to get grip on baiscs
?
 
ASR
11:27 AM
@Unihedro ok ty
 
^^ Highly recommended. It's more a book than your usual tutorial, so it does not really stop at the basics
 
Herro verery1
someone coddin' with maven and aspecj>
?
 
!!help
 
@Unihedro help command: Get additional info about a command of your choice, syntax:!!help [commandName]
 
!!listcommands
 
11:41 AM
> Supported commands:
- listCommands: show this command listing
- test:
- help: Get help for a specific command
- null:
- timer: Schedule Timers for your personal use.
- about:
- summon:
- tell: tell another user something or invoke a command
- eval: GroovyScript evaluation
- load:
- unsummon:
- javadoc: search javadocs for a specific Type or Method
- shutdown: Shuts down the bot
 
hrmph... FIXME: exclude null command (which is a listener used for javadoc)
!!help timer
 
@Vogel612 Schedule Timers for your personal use. Syntax: timer delay(in minutes) (optional message). You can also abort timers by calling timer abort timernumber
 
FFS, I feel like an idiot
 
!!timer delay 0.5 hi
 
@Unihedro Command does not match the syntax: timer delay(in minutes) (optional message). You can also abort timers by calling timer abort timernumber
 
11:47 AM
!!timer 0.5 hi
 
@Unihedro Requested delay was not a number :(
 
hmmm that message needs to be improved, ya...
 
!!timer 0 hi
 
@Unihedro successfully scheduled timer #1
@Unihedro hi
 
I'm bashing my head against the library to create JSON strings for a week, and I've implemented my own within the hour
 
11:47 AM
!!timer 5 wash dishes
 
@Unihedro Command does not match the syntax: timer delay(in minutes) (optional message). You can also abort timers by calling timer abort timernumber
 
... What.
!!timer 5 wash_dishes
 
@Unihedro successfully scheduled timer #2
 
!!timer 5 "wash dishes"
 
@Vogel612 Command does not match the syntax: timer delay(in minutes) (optional message). You can also abort timers by calling timer abort timernumber
 
11:48 AM
crap
 
System.out.println(new JSObject(new HashMap<JSString, JSSerializable>(){{
    put(new JSString("foo"), new JSArray(Arrays.asList(new JSString("foo"), new JSValue(42))));
    put(new JSString("bar"), new JSValue(5));
    put(new JSString("fn"), new JSValue("function() { console.log(42); }"));
}}));
{"foo":["foo",42],"fn":function() { console.log(42); },"bar":5}
 
I'll just... open a ticket there.
 
@SecondRikudo ......
 
@Unihedro Problem? :)
 
no problemo
 
fge
11:48 AM
@SecondRikudo org.json?
Don't use that
 
@fge It's a custom object
 
1 min ago, by Second Rikudo
I'm bashing my head against the library to create JSON strings for a week, and I've implemented my own within the hour
 
fge
Gee
 
org.json doesn't support functions
 
fge
Had you asked me I'd have shown you how to do it with Jackson
But OK
I am too busy
 
11:51 AM
@fge This solution is not set in stone, and it's behind a layer of abstraction
I'll be glad if you can sit with me sometime and show me how it's done with Jackson.
It's just that I'm sitting on this problem for way too long, I have to move on.
 
fge
Well fine, but then I need to know more about the environment
Are you free in, say, 90 minutes,
s/,$/?/
 
@Unihedro wash_dishes
 
fge
Then let's do it then
 
@Nordehinu Thanks!
 
fge
11:53 AM
(in a hangout, preferrably)
 
@fge Sure
 
fge
Ah, so, specs of my machine...
8 GiB RAM, 8-core (4 * 2) i7-3615QM, 512 GiB SSD, puny GPU but I don't care
 
@Unihedro ^
 
@SecondRikudo ?
 
Mar 25 at 13:47, by Unihedro
What are your computer specs?
 
11:55 AM
\o/
Thanks!
 
fge
<-- will change machine some time soon
I Want Power(tm) (in my hardware)
 
hi
I'm getting a JsonMappingException when mapping my JSON file to the POJO class
using Jackson
0
Q: JsonMappingException at starting element of JSON file using Jackson API

Brian JI'm using the Jackson API to parse in a JSON file and map to objects, but when runtime error is thrown at the "location" element of the JSON file. The error thrown is a JsonMappingException, Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: C:\Users\Brian\De...

 
fge
12:13 PM
@BrianJ oh, come on
"Can not deserialize instance of java.lang.String out of START_OBJECT"
Isn't that obvious what is happening?
 
@fge I added the location getter/setter as a result of getting these errors in relation to "location" , yes I understand that it can't deserialize an object to a String
 
@fge mic first...
 
But this is the first error I was getting
 
when I didn't specify Location as a field in the POJO
 
fge
12:16 PM
@Unihedro no :p
I need to settle in Spain first
 
You're relocating for your job?
 
I thought you were going to Brazil :O
 
so I removed the Location field and I get the following error when parsing: " Unrecognized field "location" (class gmit.Location), not marked as ignorable"
 
fge
@Unihedro yes I am; a lot of things to clear up before that though, I'm not the administrative type at all
@Gemtastic since when is es the TLD for Brazil? :p
 
@fge Since you said so :O
 
fge
12:23 PM
When did I say so?
 
I thought you were learning Portuguese too...
 
fge
Eh?
 
Back when you mentioned you were gonna go on an interview...
 
fge
I have never said that I was, now, have I?
Didn't you mix between Barcelona and Brazil, maybe?
 
Maybe...
I must be since you're not going to brazil
But I know you mentioned Portuguese at some point
 
fge
12:24 PM
I wouldn't anyway; I'm perfectly happy in Europe
Ideally I'd have relocated in the south of Italy, but... :p
I don't recall doing so, no
 
so any advice on what I should do in the above situation? ^^
 
Well, how good that you're not going to south america then XD
 
I hate relocating more than working at home :p
!!help
 
adding the following removed the error:

mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
but I don't think that's the correct solution
 
fge
@BrianJ read again what I said above
18 mins ago, by fge
"Can not deserialize instance of java.lang.String out of START_OBJECT"
 
12:31 PM
((URI) uri).getScheme() always returns without the :// right?
 
18 mins ago, by fge
Isn't that obvious what is happening?
 
fge
THAT is your problem
 
@SecondRikudo Try it
=javadoc URI#getScheme
 
@Unihedro String getScheme(): Returns the scheme component of this URI. (1/3)
 
fge
@SecondRikudo why the cast? What is your uri?
 
12:32 PM
@fge For the sake of example only
 
> The scheme component of a URI, if defined, only contains characters in the alphanum category and in the string "-.+". A scheme always starts with an alpha character.

The scheme component of a URI cannot contain escaped octets, hence this method does not perform any decoding.
 
I have a URI object
 
fge
But yes, that is the URI scheme, as defined by RFC 3986
 
@fge Okay i think I got it, I need to deserialize a type Location not string
because "location" is of type location
so I should have something like this instead?
public Location getLocation() {
return location;
}

public void setLocation(Location location) {
this.location = location;
}
nope that wasn't it either, now I'm getting "Can not deserialize instance of gmit.Location out of START_ARRAY token
at [Source: C:\Users\Brian\Desktop\game.json; line: 3, column: 4] (through reference chain: gmit.Location["location"])"
 
fge
@BrianJ sorry but I really don't have the time to help at the moment
<-- very busy
 
12:37 PM
okay
 
@BrianJ That's self-explanatory
 
okay I understand that there is a type mismatch in the deserialization, but what is a START_ARRAY token?
@Unihedro
 
plz RTFM
 
If you know the error he is getting, than instead of saying "its self explanatory" than just use half of that time and give an example to what causes it?
 
an example would be handy, this stuff is fairly alien to me
 
12:49 PM
you know that JSON has something like... 3 "types"?
namely: Object, Array and ... I think there's three
anyways: an array starts with [ and ends with ]
an object starts with { and ends with }
AFAIK one can nest them.
but that's kinda beside the point
the point is: Location is a single object
an array is multiple objects
 
yeah so I have an array of locations
 
good.
 
then I need to set up an array of locations in my POJO
 
how do you get this to work: Location = Location[]
very well done
also probably all of this was wrong.
because I don't know JSON, really...
but it's in the manual
and you should read it
 
okay I'll try the array first and see
 
12:53 PM
"The problem on all the above is that the Kit is passed correctly from the constructor, but the kit that is actually being bought or level up is a random one (obviously not, but haven't found any evidence yet) and that usually happens after some tries." I can't reproduce the problem by writing test code to plug into your classes. I believe the problem lies somewhere else. For instance, kit.getPersonalDisplay(client) is calling each of manager.getKitBag() from BattleManager.getInstance(), which its source isn't attached. Consider linking all relevant methods used by the code. — Unihedro 1 min ago
Man I've been testing guy's code for an hour just to get a no-repro.
Now to actually do something more productive
@Vogel612 tsk tsk tsk
 
okay so set up the array of Locations in the POGO, but now I'm getting a
"Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: C:\Users\Brian\Desktop\game.json; line: 11, column: 19] (through reference chain: gmit.Location["location"]->Object[][0]->gmit.Location["exit"]->Object[][0])"
 
A variable is String when it should be [Object.
 
^ that
It's... the same problem with a change in the type of JSON you're failing at
 
okay I think its a problem with my exit then
 
that's.... it. Abstract more
 
12:58 PM
because its expecting an array of type exit
so I need to create another POJO of type exit? That's called from location?
 

« first day (1619 days earlier)      last day (3323 days later) »