« first day (3048 days earlier)      last day (2117 days later) » 

00:00
"Some men see things as they are and say why ... I dream things that never were and say why not." -George Bernard Shaw (source)
 
3 hours later…
03:04
morn
morn
 
2 hours later…
04:46
morn
morn
05:01
@Michael Hi
 
1 hour later…
06:04
Good morning
Good morning.
06:25
Good morning
Good morning.
In this code snippet,
2179
A: How do I read / convert an InputStream into a String in Java?

Pavel RepinHere's a way using only the standard Java library (note that the stream is not closed, your mileage may vary). static String convertStreamToString(java.io.InputStream is) { java.util.Scanner s = new java.util.Scanner(is).useDelimiter("\\A"); return s.hasNext() ? s.next() : ""; } I lear...

what is the use of the delimiter "\\A"???
/javadoc Scanner#useDelimiter
2
@gaurav It's in the answer...
in this case we separate tokens using "beginning of the input boundary" (\A)
As for the why:
thus giving us only one token for the entire contents of the stream.
Zoe
Zoe
06:34
@geisterfurz007 the first Sunday after the first full moon after the 2019 spring equinox after the 2019 state of the union speech before the annual Wall Face Palming event on the beaches of California
Zoe
Zoe
@geisterfurz007 it lands on the mythical Unicorn day.
:p
Y'know, the day between Mythical Day and Pony Day
@Zoe it lands on the mythical Unicorn day.
Zoe
Zoe
@geisterfurz007 -1, plagiarism. :p
06:47
@geisterfurz007 no prob.. here is a pic for curiosity
mornign
Oh it's Nan San Moon!
Is the account still live?
Zoe
Zoe
@geisterfurz007 probably
That's at least the third time he's done that. Copied a bit (or everything) from an existing answer and posts it without any further comment.
I wrote a comment the first time I saw it and had it happen twice after. Once on a question I asked and apparently now on an answer.
Morning Suraj and thanks :)
posted on February 26, 2019

07:27
Any IntelliJ nerd here?
I need an IntelliJ nerd ._.
you can just ask your question?
That'd be far too simple! I need to express my despair first!
Is there a way to have a structur tool window for the second screen? I have an editor of IntelliJ with one class on my second screen and would like that screen to display the structur tool window for that class on said screen.
I can only seem to detach it from the first and no matter what I try, it will always show the structure of the class which I currently have the editor focused of.
07:42
o/
@geisterfurz007 you can undock it and put as a separate window. But AFAIK it always displays the structure of the code you are working on
Shame, snippingtool it is then :)
Thanks!
change to snip & sketch!
I like the updated version more and more lately
Only, they need to work a bit on the closing behavior
07:52
How can I check if a String has a number in it?
08:23
Dunno if this is rant or qualifies as an answer
@xZ4FiRx What kind of number?
Like the characters '0' through '9'?
morn
morn
/cat
08:35
AWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
yo hansuuuuuuuuuuuuuuuuuuuuuuuuuuu
and geissss
yeaaah
cooooldfiiire
/fatcat
FEED ME!
08:37
xD
fat or pregnant cat? 🤨
8 fireman saved an oversized rat in germany
because it was stuck
@geisterfurz007 In my experience, the tolerance one has towards mistakes diminish with each repetition
And strangely, when others make that same mistake, it is no less frustrating to see others do it
this job is shitty sometimes, I don't sugar-coat it for ya
@KarelG both
:D
08:49
o/
when i do
Integer [] res= Stream.of(c, d)
.flatMapToInt(Arrays::stream).boxed()
.toArray(Integer[]::new);
then i need .toArray(Integer[]::new);
but when i do this:
int [] res= Stream.of(c, d)
.flatMapToInt(Arrays::stream)
.toArray();
I dont need any parameter inside .toArray() , why??
can you try to edit that message to format it appropriately?
(press ctrl+k)
what is the meaning of this :
08:54
wh ywould it need parameters
you are casting it to an array
flatMapToInt(Arrays::stream)
flatMapToInt(a->a*2) vs flatMapToInt(Arrays::stream) what is difference?
Arrays::stream <--- expects primitives
Intstream::of ??
so you have to box it to Integer when resulting into an Integer[] array
.flatMapToInt (IntStream::of)
08:57
the second example does not need it because you already have a "stream of primitives"
@Hans1984 To give a type for the resulting array. Without it, the type is Object[]
Please don't star messages as upvotes :)
Those are not star-worthy
who is staring all of this?
wth
I am sorry mates, i am still learning.
ok , cool
08:58
@Hans1984 You need to get a captain obvious cape D:
I was sure it was you!
j/k ;)
Thanks :)
Was already about to make snarky comments :D
:D
too late!
09:04
trying to figure out compiling errors yourself is probably a hard job for freshman developers stackoverflow.com/questions/54881528/…
im more surprised how they manage to design such weird cases
Class assignments. 100%
@KarelG Yes, but there are two types of people here at my company as well. I for example copy essentially every error message, I cannot make sense of into good ole google. There are other freshmen here, that just run to our lead developer at least twice a day and ask her stuff :)
09:21
a female lead developer? nice.
that is kinda rare at this moment 😐
09:49
I don't really get why
It's not like it's something women can't do
@KarelG There are only 3 employed devs here. One only for SAP who is not really into all the other stuff, one lazy bloke who doesn't get stuff done and her who tries to keep everything that is not SAP together.
She does not have the title of a lead dev but that's essentially how I see it.
more a responsible for the project?
Responsible for essentially anything that is not SAP because noone else does it.
09:55
\o
10:27
o/
\o
10:42
o/
\o
o/
\o
10:47
o/
Enough, kids :)
keedz
11:40
I'm gonna have the "check" for my driver license in about an hour
Please wish me luck
I've been waiting for 2 months, haven't ridden any motorcycle in that timespan :(
good luck
thank your very much
Okay, update on what I asked for yesterday: our currently released version won't work with JDK 11 (no surprises there), and in our current "under development" version, we will need to update a lot of dependencies. I tried using jdeprscan to verify which of our dependencies need updating, but I get a lot of errors related to "can't find item X".
Is this because I use Ivy dependency profiles and it can't deal with that?
I also don't quite know whether to use jdeps or jdeprscan
12:00
Over 450 billion Oreo cookies have been sold worldwide since their debut in 1912. This is enough to reach to the moon and back 5 times. (source)
That is a lot of cookies
that is a lot of "ew" cookies
not a fan of oreos?
yep
i guess its lunch time
ill hunt meself some zebra
brb
12:21
@d0n.key Let us know how it went 😀 Good luck!
12:31
@d0n.key Congrats didn't knew that , donkeys are allowed to drive
@Wietlol Hey I installed the jar file to my project as you previously said. However when I use JavaParser I get:
java.lang.NoClassDefFoundError: com/github/javaparser/JavaParser :o
I tried the first example mentioned in their manual:
https://github.com/javaparser/javaparser/wiki/Manual
how did you "install" the jar?
In Eclipse: Properties -> Java build path -> add external jars
just like any other library?
Yeah. I don't know any other way.
12:36
i refuse to know that particular way
Haha alright, how would you add a jar to a project?
via maven
:)
I don't use maven or gradle :p
if you want it the eclipse way, I cant halp you further
I tried creating a gradle project however it complained about all my imports when I copied over my files >_> I used plugin imports and since they cannot be included in the gradle, I got errors lol
12:42
ofc they can be included in gradle
just not the usual way
How would you go about solving that though?
adding a local dependency
How would I go about scanning my dependencies for Java 11 compatibility?
so instead of searching maven central, it would look for a system path
Like, i could go down the list one at a time and check if there's a new version, but that'd take ages and still probably give issues
12:44
@Nzall Jigsaw specific?
Well the libraries used in Eclipse plugin project is not available to be imported through gradle.
@Wietlol what's Jigsaw?
a Java 8 library should be able to be used in Java 11
jigsaw is a different structure of projects
which is something that got introduced in J9
it is optional for now because non jigsaw projects cannot be used by a jigsaw module (iirc)
It's a project that predates Java 8, probably as old as Java 3
@sockevalley do you have a jar file for the plugins stuff?
@Nzall I sure hope you are not using Java 3 nowadays
12:47
We work with Java 8, but I'm trying to figure out which dependencies use features that have been removed or deprecated between 8 and 11
Like, I heard of jdeps and jdeprscan, but I've tried the latter and couldn't get it to work
@Wietlol yeah, a bunch of local eclipse.jar files. So u mean that I should have imported them through gradle but looked for a system path instead of maven repo?
@Wietlol Thankfully no
@sockevalley yes
im not sure if you can scan your dependencies, I'd just go through the most important ones and see if they are capable to do J11
@Wietlol cheers mate, I am going to try to add all the plugin libraries by hand.
@Wietlol shame
At the very least I know that Cobertura doesn't work
And that we need to update over a thousand boxed type declarations
of the style new Boolean()
etc
13:00
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
I was just done with my first set of tests and wanted to enjoy the feeling of a green CI pipeline!
why no?
oh
And then! They started updating our gitlab!
and then?
NOOOOHOHOHOHOOOOOO!
did your code break?
13:07
NO!
well then why worry?
@Wietlol Added 5 different jars with "compile files(...)" in the gradle file.
Got this error message afterwards lol

An internal error occurred during: "Synchronize Gradle projects with workspace".
java.lang.NoClassDefFoundError: org/eclipse/jdt/core/JavaCore
13:27
@ColdFire I wanted the satisfaction of a green CI pipeline!
well you will get soon enough
13:53
@MadaraUchiha fly travels 0 meters
fly didnt pass the unit tests of flying at extreme speeds, so it wasnt deployed
(am slowpoke)
 
3 hours later…
17:10
~waves
can I pick you folks' brain for a bit?
I'm currently moving a REST application away from running as eclipse plugin onto Tomcat
now there's a literal crapton of dependency injection happening through OSGI declarative services
Vogella?
Haha darnit.
I'm basically looking for the cleanest way to get the application working again without pulling in an OSGI runtime like Knopflerfish
That's over my head mate. I am currently developing a Eclipse plugin. Got some issues when I am trying to compile the Plug-in Dependencies in Gradle.
17:14
I kinda want to avoid completely changing everything about how the dependencies are injecting
I mean... I could of course do that and for 80-90% of cases in that specific application it'd work, but, it's probably quite a pain to set up properly
also quite a hassle so there's that
17:39
How is this gradle syntax wrong?
implementation fileTree(dir: 'C:\\Users\\moiNom\\.p2\\pool\\plugins', include: '*.jar')
Zoe
Zoe
@sockevalley include: ['*.jar']
I think both ways work. The issue is that I include all eclipse plugin dependencies manually. However the progran is missing certain libraries.
NoClassDefFoundError: org/eclipse/core/commands/AbstractHandler
for instance.
so you're developing an eclipse plugin, right?
that seems like something that should be in the eclipse-core bundle...
@Vogel612 Nothing I need to import that is?
if you declared org.eclipse.core.commands in your manifest as an imported package, then it should work, yes
17:54
The thing is I need to use JavaParser. They prefer you use maven or gradle. I choose gradle. So I created a gradle project and inserted all my plugin files there. Unfortunately I miss all eclipse-core bundle that way...
/javadoc PatchMapping
@geisterfurz007 Sorry, I never heard of that class. :(
@Michael FR: If possible: Add Spring docs.
Good evening o/
Zoe
Zoe
FR: If possible: Add all teh docs uwu
@sockevalley this and that are completely disjoint things?
18:04
@Vogel612 What do you mean?
gradle has nothing to do with the bundles you have available
gradle is a build tool
eclipse is your OSGI host
this and that are ... different things
eclipse doesn't even care whether you develop your plugin in gradle, maven, ant or by hand in Notepad++
Zoe
Zoe
or an actually good editor like Vim
/wiki Oxymoron
18:20
@geisterfurz007 Which libraries? There's, like, a zillion Spring projects.
I have no clue about the spring ecosystem but I think springboot would already be a great start :)
18:32
@Vogel612 I understand. I got some feedback from the creators behind Javaparser. They suggested I try one of their sample projects.
 
2 hours later…
20:14
Hi, does anyone know struts 1 here?
I have a question about refresh, redirection in struts
Basically, I have a page and I have a action that gets called onchange of a dropdownlist.
the issue with that is... everytime the action is loaded, some logic is done, then I redirect back to the same page.
it redirects back to the same page/tab but it goes to the first page/tab
instead of the current tab
Is there a way to specify to redirect back to the current tab of the page?
instead of the first tab?
I tried setting forward to go straight to the jsp of the page I want but that seems to break it
21:08
@Euridice01 url fragments
Or you could use query strings, or even cookies
It really depends on how everything else is coded

« first day (3048 days earlier)      last day (2117 days later) »