« first day (1551 days earlier)      last day (3393 days later) » 

6:00 PM
Programming in spring is just like riding a bicycle, except that the bicycle is on fire, and you're on fire, and everything is on fire and you're in hell.
5
 
@Kylar It's only like that when you don't know what you're doing. I much prefer to code servlets without any frameworks
 
I wish I could hang up that message.
And put it in a frame.
 
@Gemtastic I'll take your word for that. I don't think people still use servlets though :)
@Unihedro Time for a 3D Printer so you can make your own wall hangings.
 
fge
@Gemtastic you should learn JAX-RS
 
@Kylar Well, as far as I know they do O.o
 
6:03 PM
nope
 
fge
Or, well, JSR 203, and I can teach you :p
 
@fge I'll get tot hat when I'm not stressed for time
 
Flash FTW
 
Flash >:>
 
Now named ActionScript
 
6:03 PM
I'll take your word for it again. All the biggest-scale companies don't use it, unless it's for enterprise stuff.
 
Because Adobe just had to buy it.
 
fge
<-- goes back to improving his grappa debugger
 
HTML5 interactive stuff is cool too. But the typing and development cycle is ridiculous.
typing as in types, not to type
 
hi everyone
 
hello user
 
fge
6:09 PM
@BenjaminGruenbaum when you have some idle time I'll have something to discuss with you
 
Uh oh.
grabs chair and quickly bakes popcorn
 
Four worst words in the English Language: "We need to talk."
 
lol
 
LOL I liked the dry humor, it took a while to get through but it was funny :D
 
6:15 PM
幽默是英文的不同。
 
同意
 
I'm glad you agree.
 
:D
Have a good day bye bye!
 
Night!
 
I'm still having trouble getting my head around this calculation, the only difference is that now min value is 1.46 and max value is -1.46. @Kylar I'm thinking all I need to do is change my calibration factor for the new values which would be 2.92, (1.46 - (-1.46) and my MAX_PITCH should be 180
 
6:19 PM
CalibrationFct=61.64 then?
 
can you elaborate?
 
and then pitch = (pitch + 1.46)
(will make pitch 0-2.92)
180/2.92=61.64
so each 1 unit of pitch = 61.64 degrees
so your degrees =
(readPitchFromDevice+1.46) * CalibrationFct
 
fge
@Gemtastic if you are interested I can give you a rundown of a classical project layout; it seems you have had a lot of trouble because of that yesterday
 
That will still give you a negative degree if you go below -1.46, and > 180 if you go above 1.46, but that's OK
 
okay I think I get you now, I'll try that cheers.
I always seem to over think things
-1.46 is the max pitch though
and 1.46 is the min pitch
 
6:23 PM
anyone got an example project online of using maven assembly in multi module projects?
 
so should be the other way around?
 
@BrianJ -1.46 is above your head? 180 degrees?
 
@Kylar yeah your right, -1.46 is above head and 1.46 is resting
 
if that's the case, then do (pitch - 1.46)*-1
do a subtraction then invert the sign
 
if which is the case? -1.46 above head?
 
6:29 PM
Yes
degrees = (-1*(pitchReadFromDevice - 1.46) * CalibrationFct
 
Okay so the implementation will be as follows then? @Kylar:


degrees = (-1*(pitchReadFromDevice - 1.46) * CalibrationFct (calib factor being 61.64)
@Kylar converted to my application, the code would be as follows, just testing now:

                  double degreeOutput;

                degreeOutput = (-1*(e.Pitch - PITCH_MIN) * CALLIBRATION_FACTOR);

                degreeOfAbductionTbx.Text = "Degree: " + degreeOutput;
 
That looks reasonable
 
6:44 PM
http://www.commitstrip.com/en/2015/01/21/google-spends-a-few-billion-dollars-settles-in-space/
CommitStrip - Blog relating the daily life of web agencies developers
Google spends a few billion dollars, settles in space
CommitStrip
1421865701
 
@fge I think I get the project layout now, but I still don't fully understand the components in spring or how spring ties them together.
 
fge
In this respect i can't help you
 
yeah :/
 
fge
Ohwell, if you still have problems I can try and help
And who knows, I'll probably learn a thing or two
But if you wish to do that --> provide information :p
 
@Kylar just tested, so its showing 180 at the bottom of the movement and 0 at the top, which is the reverse of what I'm looking for, To reverse this I changed the calc to + PITCH_MIN and removed -1* this should work I'm thinking?
 
fge
7:07 PM
wonders why on Earth GUI elements of JavaFX are so unintuitive to manipulate
 
7:24 PM
@BrianJ then something is wrong. If -1.46 is above your head, then:
-1.46 - 1.46 = -2.92
-2.92*-1 = 2.92
and 2.92*61.64 = 180
and if 1.46 is resting:
1.46-1.46=0
0*-1=0, and 0* 61.61 = 0 degrees
Either your calculation is wrong or your pitch measurements are wrong
 
fge
7:37 PM
Big, very big difference between AutoCloseable and Closeable; do you know it? :p
(question to the room)
 
Hey guys :)
 
Hello Booty
 
fge
2
A: try-with-resources where to wrap stream with InputStreamReader?

fge Which means the InputStreamReader is never closed Eh? In your code it is... And it will certainly handle the .close() of your resource stream as well. As @SotiriosDelimanolis mentions however you can declare more than one resource in the "resource block" of a try-with-resources statement. ...

This can be interesting!
 
Got told off by my class today..they were trying to get the OOP module/assignments/exam deferred to next semester but I just had to butt in and say, 'I did this', 'I did that'...there are 3 groups and I am the only person that has done anything...1 has done nothing literatll
oops pressed enter by mistake! one has done nothing literally..the other only a few lines of code even though there was a UML and testing table that didn't really need the programming done to do it
of course, I have been crash learning for the past week, worried about not passing the module, not sleeping and making lots of effort...my other 2 group members lack brain cells so I'm having to do it all...now I get chided for trying to get it done on time by people who like to complain all the time and not do any work :os
 
fge
8:02 PM
@BootyBump just get the job done; it may turn out to be socially frustrating but you'll have learned from it and honed your skills
 
yes I know..my only goal is getting the grade to get into the last year...I don't care to make friends, most of them are 18-21 and highly disruptive to the point of ridiculousness
 
fge
Well, you may think so, but you know, this room is not the place where you lay your social worries/unwariness
If on the other hand you have actual Java problems then help can be provided :p
 
8:22 PM
lol I was just expressing frustrations and didn't actually need any help regarding social worries..Thanks for clearing that up. I will bear that in mind and perhaps mention it also next time when I see people talk off topic (as I have seen in the past few days) ;o)
 
fge
8:33 PM
Yeah, offtopic is too frequent here, I'll grant you this
Anyway, here is something to gnash your teeth on...
0
Q: Is there an easier (lighter) way to center text in a "zone" with JavaFX 8?

fgeSo, first things first, I have achieved what I wanted, and that is, display some amount of text in the center of a "zone". Screenshot (upper right corner): Now, the problem I have is how I achieved this... This is the FXML extract for the whole tab: <Tab text="Statistics" closable="false"> <

 
8:45 PM
Ahh, I love it when my code just works on the first try ^^
 
fge
@Gemtastic sure, it's nice; now, is it tested? Do you understand why it works? :p
If some code I write works on the first try and I haven't gone through a "TDD cycle", personally, I'm getting worried :p
 
Now I not only have a repository of wares, I have a map for the categories which I can iterate through to create the navbar for the wares ^^
@fge Well, I don't really know how to do the testing. It's kinda plain Java so it should work.
Only kinda since it's still using Jackson and JSON
 
fge
Uhwell, go buy the book I told @Unihedro to buy
Especially since you are only getting used to just "producing code"
This book will help you a lot
As to Jackson, don't worry, it's pretty solid
 
But it's nice that the content of my JSON now is connected to the back-end so that I won't have to touch the code to enter new categories or wares, I only need to modify the JSON :3
 
fge
Uhm
No, don't modify the JSON
Modify the list of POJOs
And then write the JSON of that modified list
Ah, uh, wait
It depends on your update cycle
 
8:53 PM
No, the POJO already has a category entry, I meant that I can make new categories as you add wares in the JSON
You just write a new name in "category" : "Category name"
I just wonder if I should remove the HashMap and make it a plain array instead >_>
I dremt about doing that and it seems simpler.
 
fge
Not sure about the intent; code?
 
Meh, if you don't get it it's no biggie
It's working nice and smooth
You can give your opinion on it when I'm done ;)
 
9:13 PM
@Kylar figured it out in the end, my pitch readings were in reverse order.
 
fge
@Gemtastic it may be when it starts to fail and you don't understand why ;) Code, please :p
 
@fge Wait a bit, I haven't implemented it into my application code fully yet (I tested it in a separate project)
 
fge
That is a reason more WHY you should show the code now and not later, when you try and integrate it and it "doesn't work"
You understand what I say, right? ;)
 
Yes, but now I understand what the code does
 
fge
Fine, then show what you have done
I don't ask that you do this out of the blue, you know
 
9:25 PM
It's true though that I'll probably have to rewrite the ProductRepository later as I'm currently still kinda follows my teacher's approach with one list for all products.
Where as my final project will iterate through the objects of a certain category when you click that category...
It's really simple code though, you needen't look at it. If I fail with that I should just resign as a programmer :P
 
fge
You say that but who knows
Just show the code
I may have some useful hints for you ;)
Not to boast but I'm a pretty good core Java programmer now
 
fge
Argh
Why File??
slap
 
Because Kylar :P
And that works
 
fge
Please
Use java.nio.file
Which version of Java is that?
 
9:36 PM
If you pay attention, file is never actually used in the code I gave you
 
fge
(and you don't even use file anyway; just drop that variable entirely)
 
It's a scrap code from when kylar was helping me
It's not the code in my actual app
that's the code from the test app
Or derp app maybe i should say
 
fge
Well, the code looks OK to me, apart from the fact that in the print loop you only use the key; in this case no need to iterate over the entrySet(), just iterate over keys()
 
I only need to iterate over the keys
 
fge
Yes, which is why I said that
 
9:40 PM
Yes, I'm reading poorly
Too into my code to understand anything else XD
 
fge
Another nitpick but an important one: maybe you could make your Product class final and use a @JsonCreator
But that's... Well... My pet peeve (immutable classes)
Other than that, that particular code looks OK
 
The key iteration is only there to double-check that it worked as I expected it to
 
fge
Well, you could use tests for that :p
 
I will however use something similar when I get thymeleaf to iterate through the categories
The idea is to get Thymeleaf to recieve the keyset and print a <li> for every category
And I have yet to decide if I'm actually gonna use the values at all
It could be useable for some stuff
 
fge
10:00 PM
Well, I have an advice for you
Do this lazily
 
Lazily?
 
fge
That is, don't build your Map<String, Product> unless you have to; or any other for that matter. Better yet, use a storage engine to handle that for you, your code will be less complicated
My advice: h2 + jooq
 
The map is <String, Integer>
I'm only gonna use the string I think
 
fge
10:25 PM
Uhm, didn't you say that your project was online somewhere?
I may as well have a look at it, if you don't mind :p
 
It's in a private repository on bitbucket
 
fge
Ah, too bad
 
fge
11:22 PM
I have just received a trace file for me to study... 689742 parse events, depth 166 (!), yet the input is only 13699 chars long
418 rules, 23.76% success rate only
Out of 344781 rule invocations (which is half of the events, exactly, but that's always the case)
 
Sadly I have no idea what that is. Is it related to that book you mentioned?
 
fge
11:51 PM
No, it is related to the grappa debugger I am developing
 
ah
now, let's see if thymeleaf can do what I want it too or if I have to use js
 

« first day (1551 days earlier)      last day (3393 days later) »