« first day (3013 days earlier)      last day (1918 days later) » 

12:00 AM
"If you can consciously let yourself get taken and see where you go, that's an exercise. That's discipline. To follow the scent. Let yourself go and see what happens, that takes a bit of courage." -Bill Murray (source)
 
 
4 hours later…
3:46 AM
hey
 
 
2 hours later…
Zoe
5:40 AM
Morning
 
Morning.
 
Zoe
@erotavlas everything has bugs xd But unlike Eclipse, IntelliJ usually gets patched if it gets reported and it is a bug and not some weird design choice xd
 
6:15 AM
@Zoe Eclipse will patch bugs if they get reported.
 
mornin
 
The only problem I have with Eclipse is that pressing Ctrl+Space to open the code recommendations thing thing can sometimes cause Eclipse to freeze. But I'm using an old version of Eclipse, so maybe it's patched in the newer versions.
Yeah, I'm running Eclipse Mars
 
6:33 AM
O-O
That was the one I started writing Java in almost 3 years ago.
 
What? I was at college for the last few years, so I didn't use my desktop computer (which was at home) that much.
I started writing Java like six years ago with Eclipse Kepler
 
/wiki Eclipse (IDE)
 
Zoe
@JennaSloan mhm, I stopped believing that after theme issues
 
@Zoe You must've done something wrong then
I just use the default theme
 
6:45 AM
I might give eclipse a shot once I got my new laptop here at work but until then the combination of the 6 year old hardware and eclipse incredibly performance doesn't work for me...
 
Zoe
@JennaSloan no u
 
@Zoe nope, I don't think so.
 
@JennaSloan anything else but the default theme (I usually try to use the dark theme) has design bugs everywhere ranging from buttons over borders to other inputs.
 
@geisterfurz007 Couldn't you just change the colors of the default theme?
 
No clue?
 
6:56 AM
Answer: yes, you could
 
Ok what is it then that causes all the themes that come with eclipse to look like they look (unfinished and unclean) it it was so easy then?
console.log("Something's fucked!!!", response.status, response.statusText, await response.text());
Just found that one in a project and had to laugh.
 
posted on January 22, 2019

 
That is 100% me.
 
Zoe
7:37 AM
XD
 
7:54 AM
morn
 
morn
 
Hi All, anyone here familiar and can help me with log4j2?
 
@VivianLobo Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
Need to write multiple logger files (just 2 to be honest) and it fails to work
 
just define 2 appenders and route to them...
 
8:11 AM
Thanks @Nicktar do I declare 2 loggers in the class?
 
Zoe
No
 
No, in log4j.xml
you don't configure any logging programatically
your program doesn't care where it's logging to, at what lavel or if it's even logging at all
 
8:59 AM
@Zoe what? it works on my machine
is there anyone having knowledge in ML?
(sorta serious question)
 
@Wietlol ML as in machine learning?
 
ye
 
kind of
 
i need to have 2 things
1, image recognition
take an image, find it on the screen with a certain % tolerance and give me the coordinates (position)
2, text recognition
read text on a certain location
it is a special font, so I would need to train it with some sample images and the outcome it should be... or something like that
its quite an easy font, but doing it myself will be a horror because of zooming
scaling?
thinging
 
9:42 AM
preferably in Jaba
 
Anyone knows why maven clean in intelliJ, issues the following WARNINGs?
[WARNING] Some problems were encountered while building the effective model for net.site:mysite-com:war:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 106, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 113, column 21
 
because some problems were encountered while building the effective model for net.site:mysite-com:war:1.0
and because 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing.
and because 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing.
 
<3 Snarky replies
 
but they are the reasons why warnings are shown
 
Yes
It's still snarky :3
 
9:48 AM
as a .NET developer, I am grateful for the Jaba warning and error messages
especially maven and spring
especially spring
 
Okay I only have experience with JavaFX and Eclipse build systems...Maven and IntelliJ are new to me
 
there is no feeling like "The request signature we calculated does not match the signature you provided. Check your key and signing method."
ok...
that was useful
 
Is this a maven complaint or IntelliJ complaint? Should I install some plugin for intelliJ?
 
@Zeta.Investigator you should read the messages
> 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 106, column 21
you have a missing version for the maven-compiler-plugin
which means that the version you use could change
which means that the output of the build process could differ
which means hell
 
@Wietlol Isn't maven a CLI app? So I should fix this via maven cli commands?
 
9:52 AM
do you want hell?
maven is an application with a CLI
but you should fix this issue inside the pom.xml
 
Or should I change the project POM file?
oj
 
by specifying the version of the maven-compiler-plugin you want to use
 
@Wietlol You mean javac -version right?
compiler for my project is java
 
org.apache.maven.plugins:maven-compiler-plugin
the version for that
 
It's very confusing. Isn't maven a build system for java projects?
 
9:53 AM
whatever version you desire
 
Then what is maven-compiler? and what is its plugin
 
yes, maven is a build system mainly for java projects
the compiler is modular
it accepts plugins
it appears that apache made a maven compiler plugin
whatever the hell it does is not really described by the name
I mostly dont use apache stuff
 
@Wietlol I'm in the process of re-building a probable Spring website on my system
 
@Zeta.Investigator keep in mind it is a maven-compiler-plugin not a maven-compiler plugin
 
I git cloned the project and opened it in IntelliJ
 
9:56 AM
define "re-building"
 
@Wietlol I mean I want to bring up the site on my local host
 
ah
 
And I don't know the weird things done in maven or intelliJ side on original machine
 
on a side note... LET IT SNOOOOOOOW!! LET IT SNOOOOOOOW!! WE'RE NOT GOING HOME ANY MOOOOOOOOOOREE!!
keep in mind, they are warnings, they dont prevent you from running the application
however, that doesnt mean you should ignore all warnings
at some point, you'd want to find a suitable version for those plugins and specify them in the pom.xml
but if you want to clone a website and run it locally, i'd suggest you to first run it
these warnings shouldnt stop you
 
@Wietlol maven clean issues only those 2 warnings but maven build issues ERRORs and complans about DBTranslation.java, Configuration.jav
 
10:02 AM
well... cleaning doesnt care about your source code
building does
clean however does care about your maven configuration
i'd just fix the build errors
 
@Wietlol Can you detect from project structure, that is this a spring web app or what kind of tech the site is using?
 
i can see it is a maven project, with a website...
 
@Wietlol where is spring -website config files located?
 
0.o?
 
How can I check what kind of java techs is used in this project?
I guess everything should be in POM of maven?
 
10:15 AM
everything should
if not, maven cant build
 
What is this allatori? A source obfuscator?
 
allatori?
i suppose so
on a side note... are you from iran?
 
Zoe
@Wietlol it's been snowing for 3-4 hours xd
 
you live in norway, if it hasnt snowed in the last hour, something is wrong
 
Zoe
23 hours ago, by Gemtastic
Cool story bro
@Wietlol yes u
 
10:35 AM
good aftermornevenight
 
Is it better practice to put Oracle DB query logic into SQL or move the logic to the DAO layer (I'm using JdbcTemplate)? I have a query that joins 4 tables.
I'm considering performance, testability, etc
 
it is better practice to not have SQL
imho
 
11:17 AM
@Wietlol afaik you can train a model with tensorflow in python and use it in Java.
 
I don't know anything about PostgreSQL..where should I begin?
 
geis, have you experience wif it?
 
@Zeta.Investigator pgexercises.com
@Wietlol Barely. I tried to do something stupid with it and that didn't work and I dropped it.
 
@geisterfurz007 I also don't know anyting about databases or SQL
 
@Zoe has done quite a bit of ML iirc.
 
11:19 AM
@Zoe you will be my SO :)
thats settled then
 
IKEA has invented a method of magically lighting up specific parts of an escalator step.
https://www.reddit.com/r/blackmagicfuckery/comments/aihngz/this_escalator_at_ikea/
 
23 hours ago, by Gemtastic
Cool story bro
 
> The fact that people actually need an arrow to tell them which way the escalator is moving frightens me
> It’s obviously for blind people that can’t see which way the escalator is moving
 
any room for Java Script here at Stack?:) @geis hi :)
 
we do Java scripting here
 
11:23 AM
@Ramona Room ID 17 I think.
Hey Ramona :)
 
Hey Wietlol
thank you mate
 
thanks :) just trying to fix issue of how to set debugging in visual studio. have 'no cofiguration' now
 
JS in Visual Studio
I think it is time for lunch
 
Real professionals code in MS Paint
 
> but it aint lunch time yet
I'll decide when lunch time is
@geisterfurz007 in any case, i think ill try tesseract
 
11:28 AM
So can a database-n00b and SQL-n00b learn PostgreSQL?
 
One can only learn the things one doesn't know yet.
 
I mean is there something else I should learn first before PostgreSQL?
 
@Wietlol Good luck! Would love to hear some experiences once you got stuff done :)
 
12:00 PM
Average temperatures in the Arctic climates of Alaska, Canada, and Russia have risen at twice the global average in the last century. (source)
 
12:19 PM
Anyone a view on this:
Is it better practice to put Oracle DB query logic into SQL or move the logic to the DAO layer (I'm using JdbcTemplate)? I have a query that joins 4 tables.
I'm considering performance, testability, etc
 
Zoe
@Wietlol your what?
/urban SO
 
@Zoe SO: n., Acronym - 'Significant Other'.
 
Zoe
😑
 
huehue
Stackoverflow. His personal stackoverflow
 
Zoe
1:05 PM
xd
 
1:48 PM
TIL that you can open cattails.
 
 
5 hours later…
6:23 PM
@d0n.key we used to open them and stick firecrackers in them and throw them at eachother
 
7:05 PM
farts
 
Zoe
Ew
Tfw you use :Sex in programming xD
 
7:25 PM
try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(name), StandardCharsets.ISO_8859_1))) {
    // Are there newer APIs that reduce the boilerplate?
}
 
Zoe
Don't think it gets any shorter than that
 
Zoe
That ^
 
try (Stream<String> lines = Files.lines(Paths.get(name), StandardCharsets.ISO_8859_1)) {
    lines.forEach(System.out::println);
} catch (IOException ex) {
    ex.printStackTrace();
}
nice!
 
7:52 PM
I suppose I should update some of my projects to Java 10 sometime
 
Zoe
> I should too, but I totally don't mind chillin' on Java 5. Ah, don't you just love the good versions of Java?
 
8:19 PM
/javadoc Files#newBufferedReader fredoverflow
1
 
@Zoe hohoho, is eclipse/intellij/whatever you were using not working out anymore? :D
 
Zoe
Have you ever tried writing C++ on a Raspberry Pi using SSH because Conan doesn't work with Windows and Cygwin without throwing "Not on Windows" errors (oh my fucking god that's annoying xd) and GCC nor Clang isn't specifically helpful either?
So I don't have a GUI and I'm too lazy to switch between devices
And a Pi can't pull IntelliJ
The Eclipse available without compiling from source is Eclipse Platform 4.something xd
If you thought Eclipse was horrible, Eclipse 4.something is a million times worse xd
Emacs is too visual and creates a bunch of buttons that can't be clicked when using SSH, Nano is hell using for anything but singular files
I could of course use VirtualBox and throw in a Mint distro, but running two operating systems on an 8 GB system is not specifically pleasant xd
 
I'm assuming you tried emacs terminal mode?
 
Zoe
I ran $ emacs in the terminal, isn't that the same thing?
 
8:29 PM
nope
looking for how to get to it
hold on
 
Zoe
oh xd
 
@Zoe Why are you writing C++ on a Raspberry Pi?
 
Zoe
Because Windows is crap
 
Says the one writing C++
 
@Zoe emacs -nw
(no window)
not sure if all core features work without a gui
never really went deep in either
 
Zoe
8:34 PM
Oh ^^"
 
that said, I hope you don't back out of vim now
 
Zoe
meh, I'm gonna give it a try if I can find an embedded terminal
 
how about using tmux :P
also, if you have vim 8.1+, do :term
it's a native embedded terminal
@Zoe you listening?
whatever you do, just don't use :q
I got you
 
Zoe
yeah, kinda sorta
I think I'm on 7 something xd
let me check
8.0
 
maybe it still works
try
 
Zoe
8:40 PM
nej
 
you can always recompile vim
it takes ~10 mins on an rpi, I think
for ubuntu, there's a ppa with the latest stable version
not sure about the rpi
 
Zoe
eh...
I'll have to compile it
But I'm having a different problem I gotta fix first xd
because, and this is absolutely annoying, I can't compile OpenSSL with Clang, with I want to use Clang for my project. And I can't use Conan with GCC and the project itself with Clang xd
 
9:02 PM
also, I lied
I think it's more like 20-30 mins on a raspberry pi
 
Zoe
9:23 PM
meh, not gonna compile it though
 
I still advise to use tmux
 
Zoe
What's that?
 
most of my personalities hope you're joking
in a terminal, you can have various sessions of things happening
 
Zoe
I'm not
never heard of it
 
and tmux is a way to achieve that
 
Zoe
9:26 PM
Sooo pretty much a regular console?
 
it runs within the console
hold on, I'm getting an example
 
Zoe
I don't see the difference xd
 
gradle is not a console either.
 
 
but runs in one.
 
9:28 PM
this is a single terminal
running 2 different things
 
Zoe
Does it work on Windows?
 
I don't know, but point is that you can run it within the rpi
tmux still goes through the ssh session
this is a single terminal window
 
Zoe
Yeah, that was what I meant in my weird way ^^"
 
(that was meant to be an edit. Bad connection)
 
Zoe
That still doesn't fix the Clang issue xd
(never expected it to btw)
 
9:31 PM
oh, tmux has a magic mode to help you with that issue
 
Zoe
Highly doubt it
Unless you can get Conan with Clang to compile OpenSSL with ARMv7 (although I'm on ARMv8, but Raspbian is 32 bit xd) instead of ARMv4
 
yeah, I'm messing with you on that part
gl
 
Zoe
xd
Thx ^^
 
vim actually has a magic mode though
and a very magic mode
 
 
2 hours later…
11:22 PM
morn
 
morn
 

« first day (3013 days earlier)      last day (1918 days later) »