« first day (1623 days earlier)      last day (3336 days later) » 

10:03 AM
1 message moved to JavaScript
 
good afternoon
 
'Afternoon!
in The SO Tavern (Free Snacks), 20 mins ago, by Unihedro
I made a codewars.com account.
in The SO Tavern (Free Snacks), 19 mins ago, by Unihedro
It had me specify "Clan", so out of lack of identities, I wrote "Stack Exchange".
 
XD
 
It's not like anyone else did. xD
 
wtf???
"following code does not execute properly. Try to figure out why."
~press submit
 
10:09 AM
Syntax error. xD
 
"There were some errors in your code"
 
It has two captchas which requires you to fix code, much like how Lichess has a checkmate-in-one captcha.
 
and what errors?? genius...
 
Mine was a missing semicolon.
 
I got the double multiplication one..
 
10:10 AM
rofl
 
T.T
"Correct this code, so that the greet function returns the expected value."
AND WHAT THE **** IS THE EXPECTED VALUE???
 
I got that one too. Just invert those two variables. I went the hip way and used %2$s and %1$s.
You should be able to infer with the pattern "Hi name, my name is yourName".
 
lel..
well it depends on who greets whom
 
The easier challenges are really easy. xD
 
If I want to find the greeting yourName has to give to name, it were correct..
 
10:15 AM
That would be hell of an unmaintainable greeter class if you publish that in a library. xD
Hiya @Sam!
 
Sam
Hey @Uni!
 
Go approve some enrolment invitations to our chess team on lichess :p
 
Sam
Aye, sir.
 
 KeyboardFire - doorknob
 sethdj - seth
 Unknown008 - jerry
 HumanGuy0 - mooseman
 
Sam
Btw, (not sure sure if you already know) but message posting and editing are tied to the same rate limiting function, rather than being throttled individually.
 
10:19 AM
=javadoc StringBuffer#append
 
Sam
(Just thought you may need to know for JCE or something.)
 
@Sam That's correct! It's also limited to per-domain throttling, i.e. all rooms in chat.SE extends
system-generated messages also adds to the bar (like moving messages to trash)
 
Sam
@Unihedro Who's anaveragehuman?
Cool, how'd you figure it out?
 
Experimentation :p
 
@Unihedro Hi
 
10:22 AM
in Ruby :: Sometimes on rails, 10 mins ago, by Caprica Six
@Unihedro Registered; need 1 more to execute
 
Sam
ofc
 
^ someone help add another vote
@AniketDeshmukh Hi.
 
in Ruby :: Sometimes on rails, 9 secs ago, by Caprica Six
@Vogel612 Registered; need 1 more to execute
 
I'm currently #structuredprocrastinating by completing code challenges on codewars.com. :p
 
I want to know how i convert applet to jnpl ?
 
10:23 AM
\o/
!!>var o = 0; (x => x+=(o++))(3);o
 
@Unihedro reminds me of myself
 
@Vogel612 hehe :P
!!> "hello world"
 
@Unihedro whr r u from ?
 
NOOOO! Why is my chalk white?!
 
dammit I need notepapers.
 
10:32 AM
@Unihedro too far from me
 
What's the conventional method to convert char[] to String nowadays?
 
ASR
create a new string by passing char[] array or we can use valueOf()
 
String characterToString = Character.toString('c'); right
 
Do JVM makes java slow..?
 
@anonxss No it makes it work.
If you enjoy bithacking for performance, Java might not be your language.
 
10:40 AM
yea is surely makes it works but like other languages, it is comparatively slow
though i prefer java over any other language
 
@AniketDeshmukh eeeek
@anonxss no, quite the contrary
 
eeeek means @Vogel612
 
anyways, anybody has worked over Clojure ?
 
the JVM just needs warmup time to get the optimizations in place
@AniketDeshmukh It's an expression of disgust..
 
10:43 AM
@anonxss What about it?
@Gemtastic Java has performance-beneficial bithacking, under abstractions in the source code that gets compiled to hacky opcodes. I'm mostly referring to Unsafe and UnsafeValues here.
 
@Unihedro Of course it does, but it doesn't change the fact that there are other languages more suitable for bithacking for performance.
 
Note that bithacking does not make your Java program run faster most of the time, because they get executed the same ways - it's always the algorithm that matters.
@Gemtastic Can you name one? I'm curious. :p
 
As far as I've been told, C and C++ are better than java if you care about performance optimizations, but I don't have any experience with other languages. Java is a language where the JVM is a feature. If you don't want the JVM to work its magic, you should choose another language.
 
Unless you're a Jedi, the Java code you write will be faster than the C++ code you write.
Jul 31 '14 at 19:49, by Kylar
but here's the problem: it takes a master C or C++ program to make things faster than java
 
@Unihedro Doesn't change the fact that if you indeed are a jedi, you achieve better performance hacking in other languages than Java. If the JVM isn't powerful enough for you, don't use Java. I never said that the JVM wasn't fast or bad in any way
For the average spaghetti-monkey Java is great.
 
10:50 AM
See JVM makes our ByteCode run and also enhance the portability of the code. But is it possible that we compromise on portabilty and make bytecode run..JVM free
 
@anonxss come again?
 
@anonxss Do you realize that java is code that instructs the JVM in how to write programs?
 
=javadoc Arrays#fill
Dammit OakBot is down //cc @Michael
 
JVM is written on C. Right ?
 
no
HotSpot is written in C.
 
fge
10:53 AM
@Unihedro that's an exaggeration; even a moderately good C programmer will write fast programs
 
@fge That moderately good C programmer will write an equally, and probably even faster, program in Java.
 
fge
Disagree, sorry
 
i read that JVM is written in C
 
The performance benefit from using C-base language has diminishing returns and will not exceed that of using the Java language until you hit the capabilities of Java.
@anonxss Burn whatever tutorial that says it.
 
fge
Well, again, I do C, so I know a little what I'm talking about ;)
 
fge
@anonxss only the core is written in C
Then you should know
 
okk.. thanks @fge
 
fge
In its domain, nothing beats C
Except handcrafted assembly :p
 
@fge Of course.
Java is of a lower domain than C, but it's still faster.
Within its domain, that is; And the domain of concern here is of the average one, so. :p
 
This song is absolutely amazing
I have to find the time to watch this anime
 
11:01 AM
\o/ great!
It's awesome, actually. xD
 
@Unihedro I think it was @fge who recommended it from this room
 
11:12 AM
Not my taste of song :P
 
@Gemtastic What kind of songs do you like? :)
 
Well, it varies a lot actually. Power metal, darkwave, synth-pop, bit-pop...
 
they look so evil X(
 
Even without the hidden meaning of the lyrics in the song, it's pretty awesome
@Sword They're the same person.
 
She looks so evil
 
11:15 AM
Yuno Gasai
 
in Off the record on The Stack Exchange Network Chat, yesterday, by Donald.McLean
The music library I have has stuff contributed by five different people, so it has a huge range of style and genre. I've found that there's at least a few songs I like from pretty much every genre. Even country and heavy metal.
 
The most insane anime character I've yet to see.
 
I like this song: youtu.be/Av04XfLtAcU
But I can't say I like vocaloid in general
 
Vocaloid music is underrated.
 
Some songs are great
 
11:17 AM
@Gemtastic listen to the one I linked abvoe (DEAD END)
 
but as a general thing I don't like vocaloid
 
In general Mirai Nikki has some of the finest music in the anime world.
 
I listened to it. It's an ok song, but I rather listen to this: youtu.be/zg79C7XM1Xs
 
:[
 
Death note has ok music too
 
11:19 AM
Not second to even Attack on Titan and Tsubasa Chronicles which were amazing
Mirai Nikki itself is an amazing series on its own
 
I don't know what kind of anime I like ano more, my taste has become really boring now that I'm an adult :/
 
@Gemtastic Mirai Nikki has it all. Romance, Horror, Action, Drama
 
I like anime, but I've never had the time to watch a lot of them :p
 
It hard to not find something you like about it.
 
I'm not a big fan of horror any more and from what I've heard of it, it doesn't sound to my taste. I have low tolerance for stupidity in whatever I watch.
It's not enjoyable for me to watch stupid people do stupid things that would never happen if it weren't for the plot demanded it.
 
11:29 AM
@Gemtastic There's very little stupidity in it
But if you appreciate well researched anime, you'd love both Zankyou no Terror (definitely!) and maybe Aldnoah.Zero
 
Here's my notebook. OOPS! I slipped on a turtle and now I'm motorboating this random busty girl I've never met in the groin... (I know that's more of an ecchi storyline but most shounen have some ecchi in it :/ )
 
@Gemtastic Meh, adulthood is more taboo than actual mind cocooning.
 
@Gemtastic Yeah, that doesn't happen in Mirai Nikki.
 
@Unihedro Taboo? In what sense?
 
I don't know. It's hard to say. My judgement is irrelevant.
 
11:30 AM
Overly attached gf are on the same level to me. Probably hits too close to home I guess...
@Unihedro You say the weirdest things sometimes. :P
I like wierd
 
I like humor than randomness. :p
in Teenage Programmers Chatroom, 58 secs ago, by its_notjack
DISCLAIMER: Idon'tknowhowregexesworkIwasjusttryingtodoonebecauseIthoughtitwouldbefunpleasedo‌​n'tkillmeuni
 
@Sword ... what about it?
 
nothing..
 
@Gemtastic To be fair, they explained it very nicely. And the girl is mentally damaged.
 
11:37 AM
@SecondRikudo Still not fun to watch :P
 
@Gemtastic Don't judge until you watched ^_^
 
Disliked the video, thanks
 
Althoguh, like I said, I think you'd like Zankyou no Terror
 
@SecondRikudo No but I don't feel like spending time I could be coding on it
 
I love the a = b = value; assignments :p
 
fge
11:52 AM
@SecondRikudo sadly, Origa is dead :(
 
@fge Yeah :(
 
12:16 PM
hi, I was searching the web like crazy, is it possible somehow to get the total amount of RAM trough applet?
 
@ZetCoby Nope.
 
how about with a webstart?
 
fge
You can't do that in an OS independent way
And why do you want that information anyway?
 
to adjust the software before the install
 
fge
Uh?
 
12:24 PM
what if i use getOperatingSystemMXBean
locally it works just fine
 
fge
No idea, never used it
 
@Gemtastic Ergo Proxy, Serial Experiments Lain,hm.... maybe Eureka 7, maybe Casshern Sins
^^ recommendations for weird
 
also I need to optimize that prime calculations for that beta kata
 
I earned the privilege to build katas.
 
12:33 PM
gj..
 
inb4 the most difficult challenge ever muahahahaha :D
JKing.
Coming soon: Questions Quality Evaluator for Stack Exchange Frontpage Questions
Where you're given the question title and body and have to guess its' score, probably. xD
 
isn't that already existing?
 
Wait, really?
 
there even is a github page and scorings for it..
that being said, that sensei is a real jerk for skipping 3 mil. primes calculated by a stream to get 10-..
 
@Vogel612 seen some of them :P
 
12:40 PM
hmm.. okay
how did you find them?
 
Who hasn't watch Ergo Proxy?
 
loads and loads of people...
mostly those that don't like anime ;)
 
I hasn't.
 
Well, I refer to people who knows and like it
I don't know any anime lover who hasn't heard of it at least, though some may not have watched it. It's one of those things everyone watches in this anime circle at least
this.animeCricle = sweden;
 
1:00 PM
Hmm.. setting a button's onaction was harder than I thought...
 
@Gemtastic I haven't..
still on dbz
and parallel to it I am watching Hellsing Ultimate
 
@ItachiUchiha well, then it's not so strange, if you aren't even done with dbz ;P
 
Morning, Java!
 
Morning!
 
OakBot Online.
 
1:11 PM
Don't know why it died that time.
 
@Ita if I've put and ID:ed a button in the FXML and added it to the controller, can I set its onActionEvent like this?:
button.setOnAction((ActionEvent e) -> {
// Do stuff
});
 
@Michael hello :)
 
@fahdijbeli Hello!
 
With lambda forms in Java8, does regex replacements supports callbacks now?
 
1:27 PM
@Gemtastic This is my third time, watching the 9 season long series from episode 1 ;)
@Gemtastic yes, you can add that in the intialize()
 
fge
@Unihedro what do you mean?
 
!!help
@CapricaSix is broken. :P
in JavaScript, 5 secs ago, by Unihedro
!!> "How can mirrors be real if our eyes aren't real".replace(/(?:^| )[a-z]/g, function ($0) { return $0.toUpperCase(); });
in JavaScript, 5 secs ago, by Caprica Six
@Unihedro "How Can Mirrors Be Real If Our Eyes Aren't Real"
 
@ItachiUchiha Well, I want the action of the button to be set through a method in the call. If method x i called, button prints x, if method y is called, it prints y
 
I didn't get you
You want the button's action to call either X() or Y() and that is to be decided on runtime?
 
what the fuck
Oracle says, "Figure it out, you mongrel"
what's the arrow token mean?
 
1:40 PM
@DonLarynx It is part of the syntax.
input, arrow, method body for the lambda expression.
For example, () -> {}, the simplest lambda expression.
OMG you're using Windows
 
@ItachiUchiha Yes :)
 
and what is the condition on which you decide the call?
 
a method in the class
 
Why can't an if() satisfy your need?
 
fge
1:58 PM
yawn
 
to define a target name space in xsd we must labled it with an URI just a convention is not site ?
 
@ItachiUchiha Because it matters what is calling the controller
If it's the vehicle it will wants a) if it's the customer, it wants B)
 
and how do you determine whether it is a vehicle or a customer?
is that a field on the view?
 
It's due to which method in the controller is being called
There's a method for setting the controller to comply with customer and there's a method for vehicle.
 
@Gemtastic Can you link me to the class?
 
2:04 PM
what the button does is that it either sends you back to a view of the customer or of the vehicle.
Wait
That's the controller
I merged it to display either from a car perspective or a customer perspective
 
and what are the methods we are talking about?
 
When it's the vehicle it calls for setCar() and setOwner()
As it is now, I get a null on line 131
and 151 if it's from the car
I want the back button to load either the car or the customer depending on which of those two methods were called.
 
why have you placed button.setOnAction() inside a method?
always place all ui related event-listeners in intialize.
Ahh.. now I get your problem
Aren't their any fields on the UI which stores this information?
 
Not really, but if that's what it takes to have a button shift onaction I'd be willing to do it :P
Sorry for the XY problem
 
@Gemtastic A button should perform just one function :P
+ I am not really sure why the null
 
2:16 PM
I'm not sure either. It kinda feels like it's on par with this bug:
http://stackoverflow.com/q/29404677/3763850
I don't know if it's jooq or FX causing it... but it happens at runtime
 
It must be a race condition
There is no other way this can happen
I would definitely want to see this problem happening
Does the problem still exist?
 
Yes, just change my code from this.variable to variable and it will NPE
In both cases I am using a Jooq record in something that involves a FX element
shifting this.customer to customer in the button body won't do any difference though, I still get a NPE on backBtn.setOnAction()
 
fge
@Gemtastic whereand when is this loadFoo() method called?
My guess here is good old reordering happening
 
It's in another controller and is called when you click a button on that view
@fge That might be possible, the other controller is instanced before the ownershipController
This and statistics is all I have left and the application is done. I could just make the ownership two different controllers and views, but it felt unnecessary...
 
fge
<-- watching a video on Alain Aspect's EPR experiments
 
2:30 PM
Ok, enough sidetracking.
~status="work";
 
@Gemtastic Doesn't have the DB :P
 
DB? O.o
What does the DB have to do with anything? This is an instanced record existing in the java memory
 
Oooo.. link for repo?
 
I just updated it
everything should work apart from the main method; I put a fake password there
In my version it has a hashed pw
 
posted on April 03, 2015 by Nick Griffith

In today’s day and age of software development, there’s no excuse for not putting your source code under some form of source control. Source control (also known as “revision” or “version” control) is primarily used to make developing software in a team less of a nightmare.  And when you’re working with a team, the source control repository … Conti

 
2:40 PM
That all-in-caps title enlarged by the feeds actually made me jump.
 
Probably because the original quote they are referring to was in all caps
 
where timeCounter is a Label
 
@Unihedro that sounds nice
 
MICROSOFT IS MAKING THEIR STUPID OS OPEN SOURCE
SAVE US
 
2:49 PM
if the engineers won't, someone has to
 
@DonLarynx You're passing an invalid value.
=javadoc Label#setAlignment
 
Which one do you mean? (type the number)
1. javafx.scene.control.Label#setAlignment(Pos)
2. java.awt.Label#setAlignment(int)
 
2
 
@Unihedro void setAlignment(int alignment): Sets the alignment for this label to the specified alignment. Possible values are Label.LEFT, Label.RIGHT, and Label.CENTER.
 
I'm not sure why though. AWT code has always been magically failing.
 
2:53 PM
@OakBot 2
 
@gem Any idea why mvn compile deletes everything from table package?
 
@DonLarynx Type =help to see all my commands.
 
racist
 
@DonLarynx :O
 
@ItachiUchiha Because jooq generates them from the db
If you don't have the tables in your db it can't generate any classes
 
2:54 PM
23 mins ago, by ItachiUchiha
@Gemtastic Doesn't have the DB :P
 
@Unihedro Label.RIGHT worked
 
gr8
 
and so did Label.LEFT
 
For the same reason... DON'T PUT ANY CLASSES IN THE JOOQ GENERATED FOLDERS. I made that mistake.. twice Q_Q
 
but SwingConstants doesn't work on Labels, probably because it's awt and not swing
 
2:55 PM
@ItachiUchiha In resources it has the schema for the tables
I don't know how to include the db in the project yet apart from the schema :(
 
@Gemtastic there should be a build step that runs it.
 
@SecondRikudo I have no idea how that's done because... well, none of you has told me how to and thus, noone has :P
 
I'm sure maven can do that
 
wow, this is just like any other open source project. :P
It is a PITA to start this
 
Still netbeans?
 
3:02 PM
@SecondRikudo It probably can, I just have no idea how.
I know how to get jooq to generate the classes for you, in netbeans that happens on its own.
 
@gem where is the name of the DB?
 
@ItachiUchiha Every Service has it
 
@ItachiUchiha In the POM
 
Because I couldn't figure how to make one connection >_>
 
@Gemtastic Have a look at my PR
(Even if you don't merge it)
 
3:03 PM
And yes, it's also in the POM
@SecondRikudo I will when I'm done
 
It should give you an idea how DI works.
 
I'm gonna submit it as is though.
But that doesn't mean I'm not gonna learn
 
@Gemtastic I argue that looking at it and understanding it now will take maybe 30 minutes (especially since I'm here to accept questions), and it will benefit how you work for the rest of the way.
 
 private final String dbusername = "postgres";
 private final String dbpassword = "gcvmgfjvjhv";
 private final String url = "jdbc:postgresql:postgres";
 
@SecondRikudo I don't doubt that at all
 
3:05 PM
^^ inside every Service class???????????????????????
 
@SecondRikudo But as I said... I only have the statistics left
 
You got to be kidding me
 
@ItachiUchiha Yes. Sadly I'm not
 
@Gemtastic Well then, go go go
 
@SecondRikudo I suppose I'll have to make my controller into two then... since I can't get the button to switch method
 
3:07 PM
@gem a hangout would be faster than me running this app :P
 
@ItachiUchiha probably :P
But I don't know how to set one up
 
OH
So that's how you make a hangout!
TIL
 
@ItachiUchiha I don't even know how to get to that page
 
@Gemtastic plus.google.com
 
3:15 PM
Well, I do now since I saw the URL
 
^^ that,..
 
3:39 PM
java needs friend classes
NOW
 
It has :P
 
My only option is to make a class C containing class A and class B and then make the data that I need access to in both classes have class C scope
good or good?
 
class C scope?
 
@DonLarynx That's not a good question to answer.
 
@Unihedro Have a wrapper class C containing class A and class B?
class C would have the data that both A and B need
 
3:48 PM
5 mins ago, by Don Larynx
good or good?
 
if(true)
else if(true)
 

« first day (1623 days earlier)      last day (3336 days later) »