« first day (1541 days earlier)      last day (3412 days later) » 

11:00 AM
@Gemtastic Fixed the issue
 
@ItachiUchiha norepro
 
I will push the new code, once @Vogel612 is done, then you can git pull on your project :)
 
I'll check against it on my machine ;)
 
@Vogel612 Wait, lemme commit few changes to my repo. Can you clone my repo and check?
 
already kinda done
I added your repo as additional remote to my WC
 
11:02 AM
gimme a sec
 
btw. @Gemtastic you just need to create bot.properties if you want to run Junior itself.
the testclient creates their own BotConfig from code.
 
@Vogel612 I didn't create anything :P
 
exactly
 
She is running the test client
 
check the Main-class
 
11:04 AM
renamed: src/main/java/de/vogel612/testclient_javabot/client/fxml/ChatRender.fxml -> src/main/resources/fxml/ChatRender.fxml
renamed: src/main/java/de/vogel612/testclient_javabot/client/style/darkTheme.css -> src/main/resources/style/darkTheme.css
renamed: src/main/java/de/vogel612/testclient_javabot/client/style/style.css -> src/main/resources/style/style.css
Renamed ???
 
ya
git renamed is the same as moved
 
Shouldn't it be deleted and added ?
 
git is more intelligent than that ;)
 
back from shower
Do I pull it now?
 
internally it's the same anyway. git just detects it's a move from the contents
 
11:07 AM
@Gemtastic not yet
also I think it would be easier if you created your own fork...
because right now Ita has to give you write-access
if you want to push that is
 
@Vogel612 Pull :)
 
I'm fine with having to be granted access from Ita
 
@ItachiUchiha running over eclipse gives the stacktrace I already posted earlier
running from CLI with mvn clean compile package exec:java gives the ClassNotFoundError you posted
but it loads the FXML correctly.
also: indentation and lambda changes are still waiting before I'd merge ;)
 
11:22 AM
@Vogel612 Well, lemme know when I can pull :)
 
ita made some changes.
they seem to partly fix the problem
 
@Vogel612 Gem still won't be able to run the project
 
correct..
 
Well I have an idea, just let her add the groovy dependency in the pom for the time being
So that she can atleast run the project :P
 
:)
 
11:28 AM
@gem you can pull and tweak the code till Vogel finds some fix
 
ok
is the pull the same as for my own project?
 
Didn't get you
 
hmm... running from eclipse I still get this error..
 
How do I pull from this project?
 
kilometers deep into Swing and JavaFX..
@Gemtastic you have added ita's repo as repo to your working copy?
 
11:30 AM
yes?
 
@gem Fork my repo :)
 
How do I do that?
 
@Vogel612 which issue?
 
Forked. Do I just git pull *url* now?
 
38 mins ago, by Vogel612
SCHWERWIEGEND: Exception in creating JavaFX thread
java.lang.RuntimeException: A bound value cannot be set.
	at javafx.beans.property.DoublePropertyBase.set(Unknown Source)
	at javafx.scene.control.ScrollPane.setVvalue(Unknown Source)
	at com.sun.javafx.scene.control.skin.ScrollPaneSkin.updatePosY(Unknown Source)
	at com.sun.javafx.scene.control.skin.ScrollPaneSkin.access$2500(Unknown Source)
	at com.sun.javafx.scene.control.skin.ScrollPaneSkin$5.invalidated(Unknown Sourc
e)
Schwerwiegend translates to severe btw.
 
11:32 AM
@Gemtastic git clone your url
@Vogel612 Works for me in eclipse as well :)
 
Well, now I can see the GUI at least
but I still get an error
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException
	at com.gmail.inverseconduit.commands.sets.CoreBotCommands.createGroovyCommands(CoreBotCommands.java:38)
	at com.gmail.inverseconduit.commands.sets.CoreBotCommands.<init>(CoreBotCommands.java:22)
	at de.vogel612.testclient_javabot.TestProgram.<init>(TestProgram.java:36)
	at de.vogel612.testclient_javabot.Main.main(Main.java:26)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.control.CompilationFailedException
 
yes
add this to your pom.xml
<dependency>
    	<groupId>org.codehaus.groovy</groupId>
    	<artifactId>groovy-all</artifactId>
    	<version>2.4.0-beta-3</version>
</dependency>
add it just below

               <dependency>
			<groupId>com.gmail.inverseconduit</groupId>
			<artifactId>javabot</artifactId>
			<version>0.0.1</version>
		</dependency>
 
Now I don't get any errors, yay!
How do I push to this fork? is it just git push *url*?
 
First make changes :P
make changes to style.css inside src/main/resources
 
Who are you to dictate where I make the changes to my fork! ;P
(I'm just kidding)
 
11:45 AM
@Gemtastic got this fixed...
but I need to merge it to javabot...
so Ita's fix is okay.
@ItachiUchiha that version is the problem actually
after changing it to 2.3.9 in javabot pom.xml it works
on a related note I fixed the tests....
 
@Vogel612 Do you prefer eclipse auto - indentation?
 
somewhat
@Unihedro when you find the time, please review github.com/Vincentyification/JavaBot/pull/32
 
kk, just came home
 
12:14 PM
@Vogel612 Pushed, please review :)
 
yes I saw... I got a webhook ;)
 
@Ita, so how do I push to that fork then?
 
@ItachiUchiha um... the problem with running from eclipse remains.
I can circumvent that by having it run via maven, though..
Jan 11, 2015 1:16:43 PM de.vogel612.testclient_javabot.client.ClientGui$1$1 run
SCHWERWIEGEND: Exception in creating JavaFX thread
java.lang.RuntimeException: A bound value cannot be set.
	at javafx.beans.property.DoublePropertyBase.set(Unknown Source)
	at javafx.scene.control.ScrollPane.setVvalue(Unknown Source)
	at com.sun.javafx.scene.control.skin.ScrollPaneSkin.updatePosY(Unknown Source)
	at com.sun.javafx.scene.control.skin.ScrollPaneSkin.access$2500(Unknown Source)
	at com.sun.javafx.scene.control.skin.ScrollPaneSkin$5.invalidated(Unknown Sourc
damn you maven
okay now I get that error whenever
okaaaay what the actual flying ***
 
12:35 PM
The error has nine lines. Nine is divisible by three. Three is related to triangles, and triangles relate to illuminati. Illuminati confirmed.
 
fge
12:59 PM
Moo
@Gemtastic I see that you are at work... Pity, I'd have liked to ask you something
 
@fge At work?
 
fge
@Gemtastic I'd have liked if you could have a go at a CSS for my app which looks... Bare
 
Well I can have a look at it but I dunno what you want it to do
 
fge
@Gemtastic OK, let me show you
 
Step one to a good design is to make a good structure
Then you use the CSS to style the structure. It's pretty much just adding a spot of paint to your build
 
fge
1:06 PM
@Gemtastic pbrd.co/1AKWz4v
This is how it looks currently
 
The only thing I react to as is is the big X symbol
It looks like a termination button
 
fge
@Gemtastic it's the "hey, there's an error" symbol of Alerts in openfx-dialogs
 
Yeah, but it's located in a weird place
 
fge
I also have a layout problem with the Alert
By the way, do you know of a program which can "spy" on JavaFX elements the same way as you can spy the DOM using, say, Firebug, or Chrom{e,ium}'s dev tools?
Ohwell, I think I'll just use ControlsFX and be done with it
Its widgets are much nicer
 
any android geek here ?
 
1:18 PM
Yes
does this room have any specific rules other than the general ones ??
 
Not as far as I know
 
Ok..
Just one doubt ..Why is this isn't in Gallery mode ??
 
@Outofmemory Why would it?
 
I have seen some rooms in gallery mode So as to prevent Help vampires .. Was just curious
 
@Outofmemory If there are help vampires, room owners can kick them out.
 
fge
1:23 PM
Uhm, and what is a "help vampire"?
 
@Outofmemory It wasn't coined in Stack Exchange
 
Isn't that hurting to newbies ;) ?
Yeah I know that...
 
fge
@Outofmemory ah, I see
Well, anyway -- I have to code :p
 
@SecondRikudo i just provided the link
 
1:25 PM
@Outofmemory Let me guess... The help vampire room?
 
@Outofmemory No, it's hurtful for help vampires
 

Smart Developers' Lab

Try to stick to English, Post your Query elaborate as best as ...
 
That's the original link
 
^^ LOL help vamp room becomes "Don't be a HELP-VAMP"
 
fge
@Gemtastic as to my "problem", well... I suck at making GUIs and it shows, and as I have zero knowledge I don't really know what to ask either
I'll keep on developing in the meanwhile...
 
1:26 PM
@fge I'm not exactly a GUI genius either, I've only made two :P
@Outofmemory Newbies are welcome, but there's a difference 'tween a newbie and a help-vampire
 
Help vamp example: "How to I build a forum?" "What is hosting?" "Can you help me get hosting?" "Hey @Gem can you help me get hosting?"
 
A newbie does not know anything he tries and then asks a question and becomes a help vampire
 
Incorrect
 
Please correct me then :)
 
@Outofmemory No not really. The official definition of help vamps are the ones which asks questions greedily in attempt to drain everyone's attention with no effort or demand on their own.
In the same parent tree of a Troll.
@Outofmemory We aren't in gallery mode because we can safely ignore them anyway, it's not like we're very crowded and talkative to such that the lurking vampires are able to sabotage a conversation.
room mode changed to Gallery: anyone may enter, but only approved users can talk
room mode changed to Public: anyone may enter and talk
 
1:31 PM
This was my experience with the Android Room where I tried and asked whether I am right or wrong and then they told me a help vampire...I was a newbie..
Anyways I am going Off topic Sorry for your interruption ....
 
@Outofmemory Which Android room? The one that never discusses about android?
 
@Outofmemory Well, how did you put your question?
 

Android

Sometimes we even talk about Android. Please read the rules (r...
 
@Outofmemory That's a room to post comics and cat pictures. To ask for Android help, go to this one:

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
 
I have 3 screens

Screen A -> Screen B -> Screen C

If I press back from Screen C I should come from Screen B and then if i press back from Screen B I should come back to Screen A and if i press back from there I should come out ???

Is this possible ?

My Efforts
I used the public void onBackPressed() and fired an intent that would load screen B from Screen C and So On.. but that is not working

Am I doing it the right way ?
This was my question
My only question was .. Am I right or wrong ??
If someone would have told that I am wrong ..,I would have walked away and tried something else
 
1:38 PM
@Vogel612 you get the error with maven as well ?
@Gemtastic You push to your own repo, once you are satisfied with the changes, create a PR :)
 
Sorry I am going off topic ..
 
@ItachiUchiha Q_Q But ita that's not what I'm asking
HOW not WHEN :(
 
Have you pushed the code to your own repo?
 
Put it to origin?
So if I do that, then it's the same as with my own?
 
@Gemtastic yes it is, but then your changes have reached the remote repository i.e. github
 
1:42 PM
@Outofmemory First thing: You need to show the actual code that's relevant to your question, if you haven't actually tried it then people won't bother. The effort lies in trying it yourself first.
 
@ItachiUchiha when running from eclipse, yes
when running from CLI, no
 
@ItachiUchiha I understand what pushing it will do, I was just curious as to how it's done
 
@Vogel612 I guess you should try installing efxclipse plugin
 
it is afaik..
I can open fxml's in scene builder using context menu
but I'll check
it definitely is installed
 
Strange!
@Vogel612 Do you have any commands for Junior which may have multiple lines? O_o
 
1:46 PM
@ItachiUchiha load, eval
possibly also execute java at a later point in time
 
Ahh..
 
latest commit also works in eclipse!
getting "A bound value cannot be set" when posting a message
 
No Runtime Exception?
 
it is a RuntimeException..
gui looks strange
 
Only if I could reproduced
 
1:52 PM
also messages are overlaying...
 
@Vogel612 wtf is that. I didn't make that mess ;)
Is the GUI similar with maven build?
 
Junior smashed You on the face
 
yes. exactly the same for that matter.
totally.
I suspect it might have to do with the scrollbar.
 
First world GUI development problems
I'm definitely going to use OpenGL for my chat client now
 
1:54 PM
your call..
 
Eek! I cannot use null as a method name.
 
also the caret in the input box is not moving
@Unihedro try _null
 
[cannot reproduce even with maven exec:java]
 
fge
0
Q: Is there a way to easily stub only a given set of methods?

fgeI make my first attempt at developing a GUI app (using JavaFX with JDK 8u25 from Oracle) and I want this application tested. After some trial and error I came up with this basic design which kind of resembles MVP: I use FXML; the generated "controller" (as JavaFX calls it; it really isn't one ...

 
@ItachiUchiha still the same... stacktrace as follows: hastebin.com/qajudituke.avrasm
aaand eclipse is at fault
 
2:04 PM
@fge Isn't that a better question for CR?
 
@Gemtastic no
it's asking for code to be written.
or rather, asking for simple writing of tests
 
fge
What @Vogel612 says
 
I see
 
fge
But I guess I'll go with the "controller" implementing the "view"... Right now I really have too many classes
 
Never mind me
My brain is injecting things into the text that aren't there >_>
 
2:06 PM
@Vogel612 This seems to the binding issue
 
IntelliJ is so beautiful.
 
fge
@Unihedro seriously, you should consider getting away from those dark themes, I'm not joking; it's been proven that in the long term they are bad for your eyesight
 
@fge Eh, but white hurts the eyes.
 
fge
@Unihedro no it doesn't ;)
Not when you live under the sun like humans do :p
 
2:25 PM
@fge Nah, that's impossible. I stay in my apartment most of the time, and even the sun doesn't hit here because our buildings are so packed, another apartment is just about three meters (about ten foot) away from my window.
 
Good morning, Java!
 
Morning, @Michael!
 
@fge Eh, I thought it was the other way around...
 
Yeah, me too...
 
Do you know about Flux?
And hey @Uni :)
 
fge
2:29 PM
@Michael you end up with oversensitive retinas and light variations eventually "kill" your light receptors because of that
Well, anyway, that's not the question
 
@fge But even "black" on a monitor emits light.
 
fge
I've just discovered that there was a difference between doReturn(something).when(mock).someMethod() and when(mock.someMethod()). thenReturn(something)
I didn't know there would be one...
 
If you're staring at a screen for hours on end, I think a darker theme would be better for you.
 
fge
@Michael well, that's not my experience
 
@fge Yeah.
 
2:30 PM
@fge Yep.
 
fge
So both of you knew? Why didn't you tell me? :p
(anyway, it does matter if your "mock" is a spy)
 
I always forget what the difference is...I just keep rearranging the pieces until they work... >.> xD
@fge Why do you want the controller to implement the view? o_O
 
@fge I thought you would had known, it's printed in the manual... :p
 
@Vogel612 which Java version are you using?
 
1.8...
 
2:37 PM
and then?
1.8_?
 
fge
@Michael the thing is, a JavaFX controller is not a "controller" in the MVC sense
 
@ItachiUchiha I might or might not have removed that part...
cough
 
java -version
 
nothing..
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
 
b132
 
2:42 PM
@fge What is it, then?
 
fge
2:54 PM
@Michael a "thing" which receives events and does... Whatever you want
You may, or not, integrate the model in it, you may, or not, make it the presenter as well...
That's up to the GUI programmer to decide, really
Anyway, I've found "my" design and it works pretty well
 
Receives GUI events? Like "button X was clicked"?
 
fge
Yes
gist.github.com/fge/552fe4b1f0f959620e82 <-- here is how I test file loading (if successful)
 
Uhh...you do know what class you're using...right?
 
fge
@Michael what do you mean?
 
@fge final File file = mock(File.class);
 
fge
3:01 PM
@Michael like I have a choice! It's what JavaFX's FileChooser returns :(
@Michael needless to say, I'd like to have a file chooser widget of the 21st century
But I'm no good at developing widgets at all
 
I don't think you need to mock File.
 
fge
Maybe not but it Works For Me(tm), and I like to mock File anyway :p
 
You only need to mock an object if you want one of its methods to act differently, or return a specific vaule.
 
Mockingfile
 
fge
I know that...
 
3:03 PM
You should be able to just say: final File file = new File("");
 
fge
I know
 
When why are you mocking it?
 
fge
Frankly, that's a minor concern before "having the GUI totally testable
And like I say, I mock File all the time, so I might as well go all the way :p
 
lol xD
 
3:07 PM
wut
 
fge
3:19 PM
@Michael but needless to say, I just java.nio.file for the really important stuff, so if I can't read the file because of permission problems, I get an AccessDeniedException and not a FileNotFoundException :p
Fortunately, File has .toPath()
 
@fge Indeed.
 
fge
It's its only "saving grace" :p
 
@Vogel612 1.8.0-b132 <----- Here is the problem. javafx-jira.kenai.com/browse/RT-35554 was fixed in update 6/20. Whenever someone will try to set/reset the vvalue, it will throw this error because vvalue is bind in here
 
fge
<-- wants a file choosing dialog returning a Path :(
 
@ItachiUchiha wow.
 
fge
3:33 PM
Hmm, ControlsFX' breadcrum widgets are excellent
 
Yeah they are :)
 
@Gemtastic I'd say this guy is pretty brave then. xD
 
fge
OK, must design TreeView
I wonder whether ControlsFX has better widgets for trees
 
@ItachiUchiha problem remains with 1.8.0_25-b18?
 
3:48 PM
@Michael indeed
 
fge
4:12 PM
Has anyone ever tested the ability of fxml to create several controller classes from a single file?
 
@Vogel612 wtf? I am creating a soft fix on another branch just for testing purpose. Can you test it for me, as I am not able to reproduce the error on my machine
 
@ItachiUchiha umm.. the jira link requires auth.
 
Yeah it is free to sign up, anyways can you test it for me? I am pushing the changes on new branch
 
sure thing
 
fge
4:21 PM
(OK, so I guess no one did)
 
@fge Nope.
 
fge
I have a TextArea resize problem :/
 
what's it doing, what's it supposed to do and what does the FXML look like?
 
fge
@Gemtastic OK, first the fxml: gist.github.com/fge/82127d035145dc1d159d
The window when I initially launch it: pbrd.co/1DyglRR
Then I maximize it and unmaximize it, this is what it becomes: pbrd.co/1Dygsga
 
4:39 PM
Are you sure it isn't the splitpane that does that?
 
fge
@Gemtastic then why is the TreeView unaffected?
(OK, granted, there are no elements into it at the moment
 
My guess is that it doesn't resize because it's not being affected by the size changes, however, the one containing the text area is
But I'm just guessing
Based upon that when you resize upper left corner has the origo
Try to rezise it until the text area container is getting in on its area
 
fge
Uh, not sure what you mean
What it appears to me is that if I resize manually, it seems to retain the size it had when maximized
And I have added elements into the tree; the TreeView is still unaffected :/
Hmmm, that's strange
 
resize it as small as you can. What happens to treeview then
 
fge
Now I don't have scrollbars? What the...
Still unaffected!
 
4:51 PM
shrugs
 
fge
I guess it's my size specs which are not OK
But the heck if I know how to fix them
 
In scene builder there's a layout tab
 
fge
Yeah, I know
And I don't understand even 2% of what it says
:p
 
Well... I'm so bad at helping >_>
 
fge
Helping requires practice ;)
 
4:56 PM
Helping requires mastery and sufficient understanding of the core concept.
 
I copied your code
and it works wonderfully for me O.o
 
@Vogel612 any updates?
 
fge
@Gemtastic no scrollbars on resizing then?
Maybe that's just the Linux implementation...
 
@fge I think I might have misunderstood the issue
I resized the window
not the splitpanes.
 

« first day (1541 days earlier)      last day (3412 days later) »