« first day (1745 days earlier)      last day (3200 days later) » 

4:15 AM
hi i have this piece of code
char [] vowels = {'a', 'e', 'i', 'o', 'u' };

and i want to get the length of the vowels array so im trying to use but i am getting an error saying that cannot find symbol
for (int i = 0; i < vowels.length(); i++)
 
it's just vowels.length
 
.length
Yeah
 
'length' is an attribute ; not a method
 
Is it best to create an uri with URI uri = new URI("https://www.google.com/"); or URI uri = URI.create("https://www.google.com/");?
 
4:52 AM
Solved: Difference is how it handles exceptions
 
Pfft... the phone app for the weather from the swedish institute of weather was broken yesterday and displayed the temperature as 'null' XD
Morning
 
Pretty punny since zero is noll in swedish
 
ha
They need to add some exception handling to change that to 'N/A'
 
And we're having the coldest summer in a hundred years so it's funny because summer == null ;P
@UnknownOctopus Or just fix the code :P
 
5:03 AM
@JohnSnow Yeah, but in case of further problems
 
Wow a null temperature, How cold is that ?
 
No weather today
come back tomorrow ;P
 
Walks outside and it's just a black hole
 
Venta black
 
I can still remember that Gangnam Style on youtube went to an error bcuz of the number of views
 
5:07 AM
XD
 
@deadlydragon00 Really?
 
yeah , they fix it already
 
oh god
i just looked, its over 2 billion views
 
I think it was when it passed the one billion views that it broke.
I suppose youtube never was designed to have the entire world watching one single video ;P
well... Western world
I'm pretty sure it can handle 7billion views by now though
 
maybe
 
5:20 AM
@JohnSnow I feel as if that's a challenge
 
can any one tell me how to consume .net web service in java?
 
0
Q: Consume .NET web services in Java

GatesI have created .NET web services. I want to run it on a remote server and have the Java Applications (clients) contact the server for data. How should I implement the Server such that the Clients can make use of the org.apache.xmlrpc.client.XmlRpcClient package? I just want the clients to genera...

 
5:35 AM
@UnknownOctopus XD
Find something funny and make it go viral ;P
@Edge Are you refering to SOAP?
 
yes
 
@JohnSnow Or get a vpn and glue down your f5 key
 
@JohnSnow
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client client = dcf.createClient("echo.wsdl");
Object[] res = client.invoke("echo", "test echo");
System.out.println("Echo response: " + res[0]);
trying this code but am getting Error dcf.creatClient
 
5:49 AM
It's late, i think i'm gonna go to bed. Night'
 
6:27 AM
Night!
and heya everyone else..
 
6:39 AM
Morning @ita! :)
 
Morning!
 
7:19 AM
hi everybody
 
Hi.
 
hello
 
morn
 
morn
 
7:32 AM
Morning
 
morning
 
8:04 AM
greetings
 
8:42 AM
I hate having to ask SO question >_< and I think I might have to
 
@JohnSnow SO ?
 
^
 
[so]
^ chat markdown is overpowered
@JohnSnow what's the problem?
 
@Vogel612 ohh .... make scence
 
8:43 AM
@Vogel612 It's a node issue
Which is not a fun thing to ask about
 
I love issues
 
ohmigawd js aaaaahhhhhh ~runs away with arms in the air
 
I don't love the ones that don't make sense
I'm gonna test it again to see if it's a bugg
 
I meant the KoRn album :D
 
I'm not much into korn
 
8:49 AM
it burns in your throat, right?
 
I love them ;D or system is really nice too or Iron maiden ,Manowar,Hammerfall , Sabaton, Rammstein , Majesty :D
powerwolf!!
 
Yup, I can replicate it, sigh
 
how minimal is the repro?
 
9:10 AM
@JohnSnow You still haven't given me a reproducible testcase.
You keep hitting me with fake pseudo code, that's not very helpful.
 
@MadaraUchiha I am about to
 
o/
 
\o
 
hey guys need some designing help
I have a class Message
 
No, we don't.
 
9:15 AM
Now I am using aspects to capture some method signatures
 
don't you have a whiteboard or something?
 
which might containeither Message or List<Message> or Map etc
 
if there's an "either" your design is fundamentally broken
clean up
 
hmm its legacy code
 
throw it away and start over
 
9:16 AM
i am just writing a layer of monitoring on top of it
i wish i could man
 
wishing is no use, make it happen
just do it
 
wow unihedron you are so smart
 
"JUST DO IT!!!!!" - Shia LaBoef, 2015
I probably got the name wrong.
 
My intelligence is irrelevant, it's your goal to write the best code for your clients.
@Vogel612 "90% of internet quotes are falsely attributed." - Unihedron
 
"Just do it!" - Nike
 
9:28 AM
"mrmmmlrlmrlmrlmrlmr" - murkey
 
Is there a person which is experienced with lambda and passing method names as arguments ?
private void doActionWithCommands(Consumer<StateCommand> methodName) <-- how can i check if methodName is a part of the interface StateCommand ?
 
Hey all ;) is there a way to listen if a window of another application is clicked without JNI?
 
Ah, i was doing first StateCommand.class but methodName.getClass() gives a better way
just got that idea ^^
boo, it gives Consumer
 
@KarelG: I have no idea what you're asking for, and your monologue is quite confusing.
 
@Juce propagate the focus event...
@KarelG that's because of generics type erasure
also you don't pass methodNames but Consumer instances when calling that method
If you don't get "Unchecked Cast" warnings you should be good to go. If you do get them... well tough luck
 
9:41 AM
pasted code for that java code
is there really not a way to verify the passed Consumer instance ? (that you can use .accept() on the instances given in the loop
 
this isn't the lounge
 
the check is not required it seems. OK ... Now i can life further
 
@KarelG dude... you're trying to verify generics...
wtf is wrong?
 
correction: i'm not using generics. I have already defined the type
if i didn't have defined it, then it would be awkward to verify that yes.
 
@Prismatic No it isn't. Lounge talk is forbidden here.
 
9:52 AM
@KarelG yea because the part in the pointy braces is totally not Generics.....
 
@Vogel612 pointy braces = {} or <> ?
 
@Unihedron The generic braces confused me <>
 
@Prismatic Yep, those are the Java diamond operators for generic inference.
 
@KarelG the earlier is curly braces.
 
Our generic braces are different from the Lounge's generic braces. And ours are cooler.
 
9:59 AM
also IIRC lounge doesn't use inferring, but is explicit.
Lounge<C++> < Lounge<>
 
@Unihedron Oh yeah? Can you do magic template meta programming with your cooler braces?
 
That's useless.
 
gasp
Well I wouldn't call it useless. Its pretty scary and ugly though.
 
no it's neither scary nor ugly
 
I find TMP both scary and ugly. Kudos to those who are good at it
 
10:05 AM
TMP is useless for the majority of cases it's used in, where it's needlessly complicating simple problems and obfuscating simple logic by virtue of ... I don't know.
Actually there's a rather nice CR answer that solves 99 bottles of beer with TMP
15
A: Printing lyrics of 99 Bottles of Beer

Jerry CoffinThis seems like a place that template meta programming would be useful (after all, we don't want to waste precious run-time in a program that's likely to execute this often). #include <iostream> template<int N> struct song { inline static void sing() { std::cout << N << " bottles of...

ARRGHHHH!!!!
 
I used to think that, and used polymorphism a lot more earlier because of how strange templates seemed to me. But I've been using them more recently
 
WHO THE HECK HAD THE INCREDIBLE IDEA TO SEND A CHECKBOX'S "TRUE" AS "on"????!?!?!?!?!
/rant...
 
your previous project developer
Perform a voodoo ritual on them.
 
@Unihedron i complain upon this discrimination. there are female programmers as well !
 
10:11 AM
@KarelG Although, Vogel has previously referred to their previous project developer as "he", so I'm not really in the wrongs here...
 
i'm not a regular here :o
// goes back to JavaScript
 
@Unihedron lots of different he's actually
 
...
 
the git blame regularly gets me about 9 different, distinctly male names
 
that's... not pleasing
 
10:22 AM
guys? :D is there a way to use a java changeEvent with 2 variables
 
 
2 hours later…
12:45 PM
soo really dead chat D:
all live is gone
 
s/v/f
 
hehe
 
Stadtverkehrsgesellschaft mbH Frankfurt Oder
first google result lol
 
@alovaros try again with "man sed -i"
 
Auftrag: Menschenraub: Entführungen von Westberlinern und
 
12:50 PM
wtf???
 
ahh
root/postlfs.in
 
wtf
 
looks better xD
 
@alovaros wants to kidnap berliners
 
hmm yummy, berliners
 
12:53 PM
@Vogel612 thanks now I'm hungry :c
 
it's all @wonderb0lt's fault
 
why you do this to me @wonderb0lt
QQ
 
I'm sorry ;_;
 
shame on you
 
1:32 PM
Asking a question today went better than expected.
Only one downvote
 
@JohnSnow And 8 upvotes :)
 
eventually you won't get anymore downvotes :P
 
yup :)
Though I got the downvote before I made the edit about what happens when I debugged :P
I really hope they make a flag for potential circle patterns. It's annoying to find out that suddenly your modules won't have loaded :/
 
34
A: anti-if campaign

Robert C. MartinIn Java it's easy to use enums as polymorphic anti-if agents. public class AntiIf { public enum WidgetTypes { Type1 { public void doSomething() { //... }}, Type2 { public void doSomething() { //... }}, Type3 { public void doSomething() ...

Can have some information on this answer...
What mean "Type1 { " or type2
 
What?
 
1:48 PM
@MirkoCianfarani Look up enum syntax.
 
I want to avoid if but how can I apply the method.... @Unihedron
Thx for suggest @wonderb0lt
 
randomUniPings++;
 
Try to use English.
 
you can teach where I went wrong without insult @Unihedron
 
@MirkoCianfarani I'm not insulting you, so try not to infer that.
 
1:57 PM
I rather use normal-ifs , Enum makes the code a bit longer and guess what you will end-up messing some details. Finally logic failed
 
Using enums for the sole reason to avoid control statements are like overtying your shoes.
The second part of the metaphor is redacted so you don't complain about insulting statements.
 
Has anyone ever configured a Hadoop cluster?
 
not me
 
Well this [link enum vs if](http://stackoverflow.com/questions/1750435/comparing-java-enum-members-or-equals) solve the doubt.
Excuse @Unihedron , if only my fault that I not understant that was one inference (infer)
 
randomUniPings++;
 
2:13 PM
@wonderb0lt System.out.println("The value is "+Integer.toString(randomUniPings.getValue()));
 
The value is 9223372036854775807
 
XD ,You are marking all?
 
3:04 PM
@MirkoCianfarani yea... stop pinging random people ... it's not nice and won't get you help anyways
especially not if you behave like a prick about criticism towards the premise of your question
 
@MirkoCianfarani btw. that answer is kinda outdated....
that doesn't make it wrong per se, but it can be significantly improved with the changes in java8
also this isn't about "if vs enum" it's about "switch case vs enum behaviour"
which is a horse of different color
 
does this looks right for you guys ?

sessions.stream()
.filter(session -> Objects.equals(session.getUserProperties().get("companyId"), event.getCompanyId()))
.forEach(session -> Common.sendMarketPrice(session, event.getMarketPrice()));
 
"The problem is not the 'if' statement, it is the programmers who write bad code"
 
@alovaros yes, why should it be wrong?
assuming event is effectively final, getUserProperties is guaranteed to not return null and sessions doesn't contain null values ....
 
3:10 PM
@Vogel612 I took it from an tutorial but many methods seems to be wrong like Common ...
 
that's not a method you know?
 
nope ._.
 
java != c#
 
I know o:
 
Common is a class that exposes a static metod sendMarketPrice
 
3:14 PM
so this damn tutorial don't show Common or sendMarketPrice ... just in this and another statment but both won't work ._. I have the feeling it's just bad
 
don't work is ... waaay too unspecific for anybody here to help you, you know?
 
yeah :D it's just not compilable for sure Common is undefined
 
that is somewhat unsurprising T.T
 
haha jeah I'm sorry :D
 
> "I'll just always return 20 or 19, then it'll work" - My Colleague, just now
 
3:26 PM
... lol :D
 
I just echoed that back and everybody in the room burst out laughing....
 
haha xD
 
xD
 
4:24 PM
Hello!
LOLZ
 
yo
what's up
what's going
I know me is going at home ;P ... bad english have a nice day @all
 
5:22 PM
How can someone have 500k rep and not know how to ask an on topic question?
 
because typical?
 
Funny thing is that it's a pretty basic RTFM thing too
Oh well, people probably think that of my questions too...
 
@JohnSnow definitely not of the latest one...
 
(but I'm not at 500k rep ;P )
 
else you'd not have gotten that many upvotes in short time
anyways, heading home
 
5:34 PM
@Vogel612 Well, it kinda is a RTFM kinda question. If you look at the answer, it's right there in the documentation >_>
I'm glad I could write a good question though.
 
http://www.commitstrip.com/en/2015/08/03/a-very-common-coders-youthful-mistake/
CommitStrip - Blog relating the daily life of web agencies developers
A Very Common Coder’s Youthful Mistake
CommitStrip
1438623142
 
What's annoying though is when someone answers and they're kinda right but not quite
I've read up on things now that I know what's wrong.
Oh wow, my question's got 114 views already :O
 
Does anyone use Liquibase?
 
6:01 PM
I know
 
It's minor details in the flow of what's happening I mind
 

« first day (1745 days earlier)      last day (3200 days later) »