« first day (1846 days earlier)      last day (3109 days later) » 
03:00 - 16:0016:00 - 00:00

4:00 PM
Wow, sounds like my job
We're porting apps from WAS to JBoss, and lots of them need code updates
it's my first week on the job as well
and I still can't even look at code
 
fge
Wat?
<-- has been at his job since April now
 
Was referring to @Ballbreaker
 
hi... I have a question related to multi threading. anyone ?
 
fge
@RishabhGour don't ask to ask, just ask
 
Off to work. Bye Java!
 
4:08 PM
If I make a multi threaded program in Java ... can multiple threads of that program run on different cores of the cpu at the same time ?
 
fge
That depends on the OS but with any decent OS the answer is yes
(and JVM implementation; same thing)
 
but how can this be possible ? A thread is a part of a process, so it is like running the same process on different cores at the same time.
 
fge
A thread is nothing more but a process scheduled by the OS, ultimately; the difference between bona fide processes and "threads" is the amount of resources they have in common
@RishabhGour see what I just said
There was a time when threads were treated as peculiar entities by the OS scheduler and even the JVM itself; but nowadays this is not the case anymore
User space scheduling is a thing of the past
 
ok.. so that means a multi threaded process can take advantage of a multi core cpu.
thanks for the help... :)
 
fge
No problem
 
4:24 PM
Home at last! Today's loot! A scala book! :D
 
O.o
Hooray for fragments of knowledge!
 
fge
Scala?
 
They're doing scala at my current job. Since the resource is available...
 
@fge do you like scala?
 
fge
@Unihedron no, I quite dislike it in fact
(note that I say "dislike" -- I don't say that it sucks :p)
 
4:31 PM
OMG he said it didn't suck! :O
Amazing!
 
amazingkaglazing
 
fge
I rarely say of anything that it sucks, except when I have a good reason to do so
And arguments, too
(I want to find an idea of a project to do in Haskell :/)
 
4:50 PM
I wonder if there's anyway to sort of like "fake" a session flush, or perform a read of the data to see if the version has changed.. Anyone know if this is possible
I'll obviously check the docs, but in case anyone knows off the top of their head
 
fge
For unit testing?
And what sort of session?
 
Ahh for you're favourite, a hibernate session lol
 
fge
Well, is that object mockable?
 
I run into my issue on the flush of the session. I'm not sure actually
 
fge
Code?
 
4:54 PM
Heh, I blew the mind of one of my classmates with my subresource handling in my REST API XD
The rest of the project is inconsistent shit though, but at least it shone some light on one person
 
fge
At least you know it's inconsistent
That's a start
 
Because of glassfish issues I couldn't even check my REST API out >_>
 
fge
JAX-RS?
 
woo, finally figured out how to run a local JBoss EAP instance and deploy via Eclipse
 
@fge Of course
 
5:03 PM
I don't know if I can do remote debugging though
 
But it's JPA that's being an arse
 
fge
YAY; project COMPLETE
(from the client's standpoint)
 
woot
shots are in order
 
congratulations!
 
fge
I did say from the client's standpoint; from my point of view there's a s*load of stuff left to do :p
 
fge
As always, Mr Goetz has engaging discussions
 
6:23 PM
http://www.commitstrip.com/en/2015/11/12/pay-to-pitch-to-randoms-the-next-big-idea/
CommitStrip
Pay to pitch to randoms, the next big idea!
CommitStrip
1447352405
 
woo, got Eclipse's debugger to connect to JBoss
double woo, got granted a few more privileges that I need
still don't have SVN
 
6:48 PM
@ShotgunNinja They will upgrade you to "big boy" status soon enough!
I fixed my issue.. woo.. lol
It's ... somewhat pretty I guess.. Mostly just a pain in my bunghole
 
7:06 PM
...
 
I can finally access the system for testing and ticket reporting
and the knowledgebase
but not freaking SVN
 
@Unihedron Care for details?
 
@Ballbreaker that Hibernate thing?
 
@Vogel612 Haha yeah.. not the pain thing
The method call is on a 2-minute timer.. so basically I do a session flush after each existing record is updated in the code, if a stalestateexception is thrown then it backs out and rollsback.. Then once the next two minutes passes and it gets called again, it goes back in and fixes the one entry
When I think about it, I don't think I could really fix it any other way.. so whatevs
The database is probably a good candidate for my issue too I think.. I don't know if it's capable of rolling back INSERT operations
I'll leave my question open until monday, if I don't get a better solution I'll self-answer
 
fge
Bwaahahaa
"I saw [...] that you’re an expert with SonarQube" <-- how on Earth did the chap deduce that? Me, an expert?
 
7:22 PM
@fge I remember seeing a correlation graph between expertise and # of complaints
(jk)
 
fge
Well, I did complain a lot about the lack of documentation of their API, that's a given
 
Haha yeah, to be fair that's all I've seen you complain about for SonarQube
 
doing a youtube series on building a chess engine in Java incase anyones interested: youtube.com/channel/UCwfB9D8Q4DtyMr2POU9yGNQ
curious if folks use Eclipse or IntelliJ
 
Eclipse at work, but I use IntelliJ for Android (or have recently), and it's not too shabby. I don't really have any preference towards either currently
 
I kinda like IntelliJ for the feature set, but I'm (unfortunately) way more used to Eclipse.
 
fge
7:30 PM
@Ballbreaker unfortunately, it's experience
I wish it weren't
 
@AmirAfghani Try both, see which one you like more. This stuff is all personal preference IMO
 
Switched to IntelliJ for personal convenience, university has eclipse installed though
so at University it's eclipse (Mars that is)
 
I like Mars, it's way more stable than the old versions I was using (Juno at my last job, Indigo in college)
 
i prefer IntelliJ, I was mostly curious about what other folks liked
 
then again, saying Eclipse Mars is more stable than Juno is like saying that burnt food tastes better than rotten food.
 
7:39 PM
@ShotgunNinja Well, it's probably better for you at least lol
 
fge
@AmirAfghani as far as I'm concerned I'm a convinced IDEA user -- to the point of sometimes being a zealot about it, really
 
@fge Wouldn't have guessed you were a zealot for anything.. ;)
@fge Throw some advantages over eclipse my way, I'm legitimately curious
 
fge
Well, I see no advantages to it; but then I've been using IDEA exclusively for too many years; Eclipse may have caught up in some aspects but I'm not interested anymore
 
For me the thing is that everything I'm looking at uses Eclipse-centric instructions.
Eclipse plugins, Eclipse project settings, directions for setting things up in Eclipse, etc.
 
fge
The things that I like about IDEA are its inspections, refactoring capabilities and intentions
They are, as far as I recall, way above any other IDEs
 
7:52 PM
Oh yeah, no doubt; it's far superior for actually writing code
 
fge
And also its seamless import of projects regardless of the SCM/build system you use
 
Yeah, but I'd rather take broken setup instructions for Eclipse that barely work over a complete lack of setup instructions for IDEA, but that's just because I'm currently fighting with project setup.
 
8:12 PM
Does any one know. I have a program that checks prime numbers in a range but How do I have it check if their is a 6 in the integer?
Should I put in a String and do a for loop that checks for a 6 or is there a way to do it with int??
 
convert to string, then .contains("6")
No need for a for loop
 
Thank you
lol works but just "2" shows up, wierd
well kinda works
 
Ahh right, .contains might show the position where it shows up?
Let me actually look at docs, I just went off memory
 
Let me try something, and if doesnt work Ill have ya look
 
Wait wtf, 2 comes up? lmao
It should be a boolean
 
8:22 PM
ya, Output is all good, but that "2"
 
@Tarson I don't understand. yourString.contains("6") returns a 2?
or your entire code returns a 2
 
I enter 6, but that first number it outputs is a 2 then all the primes with a 6 output fine
 
fge
Good, I am allowed to (re)document all my code
A long, but necessary task
 
@Tarson Without looking at your code, I have no idea what your saying l,ol
 
https://docs.google.com/a/nscsd.org/document/d/1g7LCSORCNItRXu7u5BknKXfufrhNIbbMesxadvSWp28/edit?usp=sharing
https://docs.google.com/a/nscsd.org/document/d/13xhZqmFjsAR6G90vgfBNb4WDlqOa36ElGPWCHUaixCA/edit?usp=sharing
 
8:30 PM
crap, anyone know how to add a certificate file to the Maven keystore on windows?
 
Maven should use the java keystore IIRC...
so.. business as usual :D
 
ok, that's fine then
 
fge
Well, I guess you can tell the JRE to use another keystore; how? Good question
 
wait shit
LOL these arnt putting out primes now
 
Quick question: why "Hello\nWorld".replaceAll("\n", "\\\\n"); translates to: Hello\nWorld? But "Hello\nWorld".replaceAll("\n", "\\n"); outputs into : HellonWorld ?
 
8:36 PM
well, if I just do keytool -alias (whatever) -import -file (path)... does that add to whatever the default Java keystore is?
I can't try it and find out since I don't have access to the thing I need the cert for anyway
 
Yeaaaaa, I got it!
 
Hahaha awesome
I was out havin a smoke lol
 
8:54 PM
@Ballbreaker I was too but inside I have a Vuse
 
Ahhh right on
I'm all about dat extra rat poison myself
Lol jk. But seriously, I like the buzz off real smokes more
I'm probably addicted to like 50 other chemicals ontop of nicotine lol
 
jesus
I only have a Vuse for going to the casino, I don't smoke tho daily
 
Ahhh, yeah if I started smoking off an e-cig things would probably be different
 
They should expand this chat room for android too
 
It would be too much
Also as far as I remember, it's the only exclusive Java chat room, where there is an exclusive android room (which overlaps Java sometimes)
 
9:05 PM
It bring in more people that know java
They locked the android chat
 
@Tarson It would also bring in a lot of noobs asking annoying questions that a good 3/4 of the people wouldn't be able to answer
I'm all for helpin a rookie out, but if barely anyone in here knows the answer because its Android API then .. meh lol
All the android experts are in the android room
@Tarson Ahh yeah, see I bet it's because they had too many annoying questions lol
 
I've tried multiple times for a request but nothing
 
Yeah, I'm unsure of their rules on allowing users in
 
oh. this is the room for experts lol.
I'm leaving then
 
I'm imagining it's probably based along the lines of "Have they answered x amount of questions, have they got y amoun tof rep"
@Sqeezer I'm not an expert
 
9:11 PM
@Ballbreaker BTW who and how do they make chatrooms on Stackoverflow?
 
OMG gonna make a new one "Google: Android Chat Room" were theres no invintations
Can't was a error saving/creating. Stackoverflow chats broke
 
It's possibly because there is an android room already
 
Nah, I selected option does not relate
 
Well there's this room too

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
So there is a room already for uninvited android
 
9:19 PM
oh shit, that works too
 
 
2 hours later…
11:26 PM
@Sqeezer because you wrote the code to do that
 
03:00 - 16:0016:00 - 00:00

« first day (1846 days earlier)      last day (3109 days later) »