« first day (1713 days earlier)      last day (3223 days later) » 

3:06 PM
java related question!
 
@Kobit We created a standalone jar in our non-Docker build process which was for dockerisation just put into the VM and started
 
in a test, how do we capture what's coming out of a slf4j logger?
 
I think there's an option that you can set to also print slf4j to System.out
 
@Tavo Couldn't you write a custom appender and make slf4j use it?
 
Or that.
 
3:08 PM
@Nexion I want to validate what's being logged in the test
@wonderb0lt no way. Would be great, but that would take me a week of arguing
I'm talking more in the line of ArgumentCaptor
 
Then you're probably going to have to write an adaptor or something.
 
@Nexion (sadface)
 
0
A: What is the best way to unit-test SLF4J log messages?

Kevin WelkerSimilar to @Zsolt, you can mock log4j Appender and set it on the Logger, then verify calls to Appender.doAppend(). This allows you to test without having to modify the real code.

 
Change System.out to your like and capture slf4j output there?
@Dustiny I think I'll just be me and play no mind games and be done with it
 
@wonderb0lt Yeah that's smart, I wasn't really trying to say 'play mind games' per se
But yeah just go with being yourself
 
3:14 PM
Oh yeah, your date is tonight, aint it?
 
Mine, or wonder's?
Mine's on Saturday with the sexy italian xD
 
ALERT Gem is watching you.
 
All the pretty boy dev's have dates =(
foreveralone.jpg
Ugh. Captain All-Comment is at it again...
 
That Mrs. Nexion will come around the corner when you least expect it!
 
> pretty boy
 
3:20 PM
From a .jar?
How do I generate an .app file for OS X?
I seriously cant find a working tutorial lol
 
@uni you should have taken my vote seriously :P
 
Jar Bundler doesn't exist any more.
 
about ROs
am I the only one that receives job offers for a lot less than what I make?
recruiters...
 
FINALLY
I MADE IT MATE
 
3:29 PM
@Tavo I guess you just give off that air of incompetence ;) lol jk
<3
 
@Gemtastic made room owner! grats
=P read that wrong
 
yeah because it really doesn't matter if I'm RO :)
 
I made it guys.
Finally lol
What is the linux equivalent for .exe and .jar?
*.exe and .app
 
@Dustiny maybe, but I'm not going anywhere if they pay me less :P
 
@HassanAlthaf This makes less sense than Windows.
 
3:37 PM
lol
 
@Tavo Haha yah no doubt, well when me and Gem make our own very successful business you can co-own it with us
 
@HassanAlthaf "A file which is executable" and ".jar"
 
i meant .exe and .app
lol
 
An executable file
$ echo "int main() {return 0;}" > test.c && gcc test.c && file a.out
 
3:39 PM
> a.out: ELF 64-bit LSB executable, x86-64, [...]
 
will .exe/.app work
 
@wonderb0lt You're answering unanswerable questions again
 
@Unihedron Sorry
 
no I'm not criticising
 
3:40 PM
Oh.
So you have to make .elf files yeah?
 
@HassanAlthaf this will be the last warning from my side..
We're not a help-desk
 
@HassanAlthaf There's a lot of resources on cross-compiling your application across multiple OS
 
@Vogel612 And you have the staff now
 
If you have questions, first ask google
 
wink
 
3:40 PM
@Vogel612 I did go through google..
 
quietly walks back to work
 
and if that doesn't help you, tell us why
 
Its like.
.sh files work, .exe files work with wine
.python files and loads of other extensions
 
@HassanAlthaf shell scripts are no executables
 
There's no "linux equivalent for .exe files" because you can run .exe files on Linux.
 
3:41 PM
Backs away from Vogel winding up the ban hammer =P
 
If I can't see from how you ask, whether you searched on google, I will no more give you the benefit of the doubt
 
@HassanAlthaf There is no such thing as .python
 
I meant .py
lol
 
@Unihedron If you can/are allowed to use wine, yes.
 
@wonderb0lt Or mono. Or any application layer really.
 
3:42 PM
But, without any application layer,
How do you do it?
 
You don't.
 
@Unihedron Fair enough
 
Learn to use a computer.
 
Hhahahahaha
 
3:43 PM
I have never used Linux.
That doesn't mean I cannot use a computer.
 
Isn't one of the major benefits of writing a program in java is that you DON'T have to compile it for different platforms?
Just run the jar
 
but the questions you ask are quite the indicator..
 
@Hassan Neither python files, nor shell scripts nor exes are executable files on Linux. They are run by another program which in turn is executable.
(Disclaimer: I'm not 100% sure on what wine exactly does)
 
That didn't make sense to me. :/
Wine enables .exe files to be run on linux I believe after a bit of googling
I have only used linux commandline on my server. -.-
 
You give the python file to the python interpreter who someone compiled for your OS and architecture
 
3:44 PM
"a bit of" is an understatement because your summary misses reality.
Python is a script language. By having a python interpreter, it is ran.
 
You can compile it I believe?
 
@HassanAlthaf In an alternate universe where python is a compiled language, sure.
Better luck next life.
 
@HassanAlthaf To Python bytecode which still is not executable without the Python VM
 
see jython...
 
@wonderb0lt that's not really compilation
 
3:45 PM
I don't know about Python much.. a website said about it..
 
then
 
@Unihedron Yeaaah right
 
Hello
 
I'm off then, got loads of work to do.
 
how would you claim you know how a computer works?
 
3:46 PM
lol
 
Even my cat is smarter than you are
 
i dont necessarily need to prove that I know how a computer works..
 
grabs popcorn
 
Oh no you don't.
 
I have an List<Object[]> that I want to convert into Object[][], I did : colisData.toArray(new Object[colisData.size()][]) and it works
 
3:46 PM
@HassanAlthaf friendly reminder... go to work
 
Now I have a List<ArrayList<Object>>
 
Uni's the stronger one.
 
do you know how I can convert it ?
 
@Aymenworks ummm general rule is don't mess with data types, stick with it and use it like a list
 
3:47 PM
@Aymenworks that's kinda the way around around
 
I don't have the choice ^^
 
I feel old
 
@Aymenworks - what do you gain from standard lists that you can't do with ArrayLists?
 
what speaks against using Object[][] results = list.toArray(new Object[][]{});
 
is definitely not becoming a programming teenage prodigy anymore
 
3:48 PM
@Nexion The model of my JTable need an Object[][]
 
I don't think "new Object[][]" is proper syntax either
 
@Aymenworks Create the 2d array, iterate over the inner list and assign the result of inner.toArray manually?
 
6 messages moved to Trash
that's simpler than I thought..
 
^ lol
[18:18] <@Evropi> also lol, 'maid cafe' was the last thing I expected to see on an oh-so-serious website like stack exchange
[18:19] <Unihedron> "chat"
[18:19] <@Evropi> the level of english is still impeccable even though it's a live chat system gasp emoticon
[18:19] <@Evropi> I wonder how they keep their community at such a high level
[18:19] <Unihedron> I wonder too
[18:20] <@Evropi> maybe it's just the highly curated nature of the site
[18:20] <Unihedron> It's unreal now that you talk about it
food for thought
sometimes I wonder how SE even keeps up its reputation when we have ridiculous users like who just left
 
@Aymenworks iterate through each Object[] in your <List>, then create a new Object[] array, then append objectInList.toArray() to your Object[]
Bah, wonder beat me to it and i didnt see it
 
3:51 PM
fastest gun this side of the rhine
 
@Aymenworks: Are you on Java 8? Streams can solve this eaily without going through the above intermediate steps.
 
@wonderb0lt hahahahahaha ... oh wait you were serious?? :)
 
@Vogel612 I just wanted to say something silly :D
 
@wonderb0lt Just use your headstart to get a manager position so you can let Uni do all the work, then steal the credit
whistles and twiddles thumbs
 
I'm not deaf, and I'm not transparent either.
 
3:54 PM
is still wondering how old Uni really is
 
Isn't it on his profile?
 
I don't know. The last time I converted my age to the Earth solar year system was when it was my birthday celebrated in the MSE tavern.
@wonderb0lt I'd like you to look it up and tell me because I don't know either.
 
@Unihedron It isn't. Huh, you must've said it some time because I can remember
 
Search feature disagrees with you. :P
 
shrugs
Maybe I mistook you for another Java God who is about half my age
 
3:57 PM
@wonderb0lt I know multiple people have referenced his age, but not sure if he has himself
@Unihedron I'm kidding I would never do that <3
 
@wonderb0lt Hey watch it, I'm not a Java god. :P
 
The Java police will come and get me for my false representation then?
 
@Unihedron as soon as you're worshipped you're either god or demon
 
@Unihedron Is it deliberate the Markdown isn't working on your HP?
 
hmm you have a point
 
4:01 PM
Home at last!
 
although if "goddess" is a word, how do you name female demons?
forget it
@wonderb0lt Hmm.
 
@Unihedron Also: GET http://www.mawersoft.co.uk/fourohfour.html net::ERR_TOO_MANY_REDIRECTS
 
aww, really?
 
Yus
 
ok
I'm logging into my domain registrar and changing unihedro.com to point to eternalmoonwalk.com
2
until I bother fixing my site [read: never]
 
4:08 PM
@Tavo Do you let them know how much you make?
 
o/
 
\o/
 
\o/
.|
/\
:D
 
Looks like one of these "sawing a box with a person in it" magic tricks went wrong
 
4:21 PM
Yass
:P
 
/HHTP 304
/http 304
 
@Vogel612 HTTP 304 (Not Modified): The 304 (Not Modified) status code indicates that a conditional GET or HEAD request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition evaluated to false. In other words, there is no need for the server to transfer a representation of the target resource because the request indicates that the client, which made the request conditional, already ...
has a valid representation; the server is therefore redirecting the client to make use of that stored representation as if it were the payload of a 200 (OK) response. (1/5)
 
/http 1
 
@Unihedron Status code not recognized.
 
/http 42
 
4:23 PM
/http 418
 
@Unihedron Status code not recognized.
@wonderb0lt Status code not recognized.
 
/http 418
 
@wonderb0lt HTTP 418 (I'm a teapot): Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.
 
Yay
 
My companies latest project is corrections canada (the prisons). I should program a backdoor into it with my fingerprints...just incase
(kidding mostly)
 
4:28 PM
@Gemtastic only to my trusted ones. But with my experience, they should have a rough idea of how much I make. They are offering me around 30% less of my current salary
 
@Tavo Well, I would probably let them know I earn a lot more than they offer ;P
 
I do. I always have long arguments with them about salary when I look for a new job. They say a 30% increase when changing jobs is not reasonable. I tell them to f**k off then
 
Cheese is the currency in Sweden right? That's a lot of cheese!
 
Though with my current salary most developer jobs would pay loads XD
 
@Tavo I had +25%
so
 
4:30 PM
^ Truck loads of cheese?
 
@Dustiny You're thinking about france
 
@Gemtastic Ahhh very true
 
This is our currency:
 
@Tavo Yeah that's ridiculous. What if you go from working at Joe Shmoe's Indie Dev team to working for Google and spear heading a department or something..
 
This is everyone elses (in Europe) currency:
 
4:32 PM
Unlikely scenario, but still
 
@wonderb0lt Not even close
Well, a lot of european countries have it, but there's a lot that don't
Finland is the only scandinavian one
 
the Euro was probably the worst idea any country could have had in Europe after WWII
Sweden was clever enough not to get in
so was UK, but for the wrong reasons
 
Norway isn't even in the EU
 
The majority of the EU countries have it at least
I just wanted to show you the rad sculpture from my city
 
4:36 PM
@wonderb0lt Just spit that out instead of pulling a lie
 
@Dustiny they will still come with that stupidity
 
@Gemtastic I thought it was recognizable as "not a fact"
 
@wonderb0lt "everyone else" is a huge lie
 
@Gemtastic ban him! :P
 
Shush or YOU'LL taste my banhammer
 
4:38 PM
lol!
 
me is not afraid
 
19 out of 28 EU countries is at least the majority...
 
The next most powerful hammer after Mjölnir
@wonderb0lt Yes, but it's still 9 countries without
Well, 8, minus sweden
 
it was a overgeneralization
 
Gtg lads, \o
 
4:39 PM
watch out for gem, they're running wild with a hammer
 
You knew it wasn't rue no other country but sweden has euro; LIE
 
@wonderb0lt you should know by now how much @Gemtastic hates generalisations
 
@Tavo Fair enough :D
 
@Tavo If it's true you can generalize in some situations, like, generally, people don't like to be killed.
There are exceptions
 
I think like generally: girls have cooties, is pretty accurate
 
4:41 PM
@Dustiny Stop it
 
!!urban cooty
 
@Tavo Cooties Diseases that the opposite sex has that gives you a reason to not be around them. When you get older, cooties becomes known as "STDs."
 
O_o
 
Lets just take the first half of that definition lol
 
Buh-bye
see ya tomorrow
 
4:44 PM
@Gemtastic I don't think anyone could ever take that statement seriously though !
But fine, I'll try to refrain from such nonsense
Cya wonder!
 
does anyone know what version of powermock do I need for junit 4.8.1?
 
@Dustiny No, but I'm sick of the subject. It's not "fun", not when you first made them, not now
When Uni is the most mature person in the channel, something's wrong, age-wise.
 
@Gemtastic I disagree with that. It not a matter of being immature. It's a matter of making jokes that you like or not
and by "like" read "find acceptable" or any other meaning you want to give to it
cracking childish jokes doesn't make anyone immature
or talking about women
 
@Tavo Now that I'm admin I can put a line to the childishness. I tolerate a lot, but it's really just dumb when you talk about cooties.
 
fine. But that doesn't mean people will stop making the jokes
 
4:47 PM
Even as a non RO I may tell anyone to knock it out
 
@Gemtastic I agree
you have the right to tell people to stop
 
HAMMERTIME!
 
Yup
XD
 
and people have the right not to. It's up to you whether you want to enforce it or not
 
Well, if the bot thinks it's hammer time...
 
4:48 PM
It's more a thing of what you find funny than being mature or not
 
with great power...
 
;P
 
@Gemtastic lel
 
And keep in mind, fge didn't like 95% of what was said in here, and he still never banned or kicked anyone.
 
@Dustiny Actually, it's both
 
4:50 PM
Im not saying you have
I just don't understand what else "drawing the line" would mean
 
No but you're saying I'm threatening to ban someone when all I've done is told you to stop making immature jokes
 
@Gemtastic can't see it. Banned by the firewall
@Gemtastic you kind of have...
 
@Tavo No, I told him to stop
 
HAMMERTIME!
 
Okay and I'll try to respect that, but that's like me saying "don't be so mature all the time"
 
4:51 PM
lol
 
And that I didn't think he was funny
@Dustiny I didn't say you couldn't be immature because then you can't be here at all, I just drew a line to it
 
I agree. I'm saying that your statement was "Now that I am an admin I can put a line to the childness"
the only extra thing you have now is ban permission (afaik). Hence...
 
@Tavo Just because I CAN it doesn't mean I will
 
@Gemtastic yup, but that's not what you implied IMHO
 
..but that's still threatening to ban essentially, even if you directly said it or not
 
4:54 PM
Just like any sane person I tell someone to stop when I don't like something, then, just like any sane person, I would discuss it with them (we haven't even gotten this far yet), and if repeatedly trying to talk it out to no avail, I would threaten with the banhammer CLEARLY
 
oh, time to go home
 
@Tavo I'm sorry you missunderstood it that way. I'll try to be clearer that I'm not gonna go on a banning frenzy
 
@Gemtastic with great power... ;)
 
Okay well that's how I misinterpreted it as well, so now things are clear
 
anyway, heading home
have fun guys
and @Dustiny, don't get yourself banned :P
 
4:56 PM
@Tavo Exactly, but you guys are the ones assuming things.
@Tavo You too
 
@Tavo Have a good night, and thanks lol I won't. I'd miss you guys too much
Gem included
 
@Gemtastic I will not carry on with the topic, as we disagree. I'll drop it here which is the mature thing to do ;)
 
Great
 
niters! got a train to catch
 
I'll try not to aggravate you Gem, I'll admit that cooties comment was kind of stirring the pot a little
I respect you as a person, and I'll try to show it more
 
5:01 PM
I respect you too and I have no harsh feelings what so ever
But please... Enough with stuff like cooties. I know you can't stop being immature, but there's got to be a line to it please.
 
Don't worry I will stop, I prefer when we aren't having these back and forths anways
 
what the .... did I miss??
do I need to read up or anything?
 
@Vogel612 No, the topic ends here
 
okay good.
 
I feel like 80% of the time someone returns to this chat they could say "what the .... did I miss??"
 
5:07 PM
Well, meh
 
Doesn't seem like I missed anything
 
Not really. Just people misunderstanding me
Nothing new under the sun
 
Hehe
 
that's what I'm talking about
If I'm good at anything, it's chess
 
Uni I still want to talk chiptunes with you at some point in time
 
5:09 PM
k, night!
 
Have a good one!
 
Alrighty :) We'll get the chance to I'm sure
 
=] Good sleeps!
 
 
2 hours later…
6:46 PM
posted on July 02, 2015 by CommitStrip

Today, Intel is back on CommitStrip! They’re building an interesting plateform for the Internet of Things, with their Edison technology and the Curie module, specifically designed for the creators of devices. Visit the Intel Developer Zone for access to Developer Kits and support, and maybe one of you will finally build this eagerly awaited connected lamp ;).

 
7:05 PM
 
7:31 PM
I like that
I'm always the guy disturbing everybody though if you couldn't tell
 
8:27 PM
oh, I have apparently become a room owner while I was away
 
@kiheru yes, you have
Uni went on a RO cleanup / adding spree and people got caught up in it ...
 
I have been here long, but can't claim to have been a particularly active participant
 
don't ask me... if you don't want to be on the list you can always remove yourself..
 
I don't mind. I'm usually just rather lazy at any administration things
 
well it's a little creeping me out, but.. today I became room owner for two rooms and submitted my nomination for the currently running CR election
 
8:36 PM
Anyone worked with the Mongo Drivers for Java?
i was expecting an ObjectID class in the org.bson.types package
but I don't see it in there...
 
damn docs aren't helping either..
 
9:17 PM
@Vogel612 Moving up in this virtual world Vogel!
 
I have a dumb question, with some legacy jsp scriptlet stuff. Would this be the right room to ask? I'm too embarrassed to make it a formal question so far, but I may have to.
 
yes this is the right room
and no this is not a dumb question @JamesDrinkard
 
Well, my actual question is. I haven't worked with scriptlets in a very long time. I thought sessions were idempotent, but I have some legacy jsp code where I pass a vector collection object to the jsp, but it appears once it's there I can't get it back again, unless I resend it from the jsp. However, my <%session.setAttribute("objName", vectorCollection);%> just returns null in the servlet.
Am I just being stupid here? I don't want to tell you how long I've been messing with this thing.
 
9:32 PM
ermph I feel your pain..
so just to be dead sure: have you doublechecked the "objName"?
 
Yes. I even check the session in eclipse to make sure it's in the session, which it is. It gets to the jsp because it displays, but session.getAttribute is always null back in the servlet. I even enumerate the atttribute names and verify the sessionid and everything looks fine.
This is so archaic it's hard to find info on it. We are even using frames in the app and no framework, not even struts1
 
ermph this reminds me of work...
From what I could understand in the code I am working on, yes, sessions should be idempodent and persistent
There might be something somewhere clearing the session / overwriting the object in unforseen ways.
 
Yes, something is as I can't seem to pull anything back in the session from the jsp.
That is why I checked the session id. Well, I'll drop off and get back to it and see what I can find out. Thanks for chatting.
 
 
1 hour later…
10:50 PM
Hi, I need assistance
If I have two classes, let's say Class Gui and Class EventHandler.

Class Gui has several JButtons and a single JCheckBox, the JCheckBox has an item listener added to it.

Once the state of the JCheckBox changes, I want to change the text shown on the JButtons...

In the event handling class, how would I access the JButtons; (Example: if the JButton in class Gui is called 'south', from class EventHandler how would I access the JButton called south, so I can change it's text...)

Let's suppose I wanted to do something like south.setText("down"); but I can't do that, I'd need to create an Obj
 
11:20 PM
@RamandeepSinghBedi see MVC
don't make a new Gui
pass the Gui into your eventHandler
so when you're making/attaching the event handler from your Gui class
pass (this) as an argument to it
and then in the event handler you would do Gui guiObj = passedInGui
 
11:36 PM
right?
 

« first day (1713 days earlier)      last day (3223 days later) »