« first day (2351 days earlier)      last day (2604 days later) » 

12:40 AM
morn
 
1:04 AM
@Ungeheuer But advocating that garbage collection is a stupid feature is nonsense, when JVM is designed to take care of things for you. It's not designed to allow you to have control because giving the machine the control is the intention.
C is outdated and cost-inefficient for most projects anyway, you'd go with C++ for most real world problems.
 
whats the shrug command?
!shrug
//shrug
 
lmfao
what's the sizeof(yourMemeCollection)
 
1:19 AM
so today I have started with JS...
and it's going to prod in a couple of hours
fun
I could use a recommendation for an IDE. I'm using VSCode atm
 
vim
 
emacs
joe
now that we got that out of the way
any real recommendations?
 
>implying that my rec wasn't a serious one
go die in a fire
 
did I imply that? Sorry, I was meant to say that your recomendation was rubbish
3
 
Vim is better than almost anything
IntelliJ IDEA has a Vim plugin
 
1:27 AM
here we go...
 
into a fire
 
you are obsessed
 
@Unihedron Do you have a meme for that?
 
@Ungeheuer not going to waste my time finding it
against rubbish
 
Is good meme?
 
1:32 AM
I feel that the white bar really escalates it
 
1:43 AM
@Tavo Sublime
 
@Michael what advantages does it have over VSCode?
 
Never used VSCode.
 
ah ok
are you happy with Sublime?
 
Yeah
Even bought a license.
 
2:02 AM
I see
I might give it a go and see if I like it better
thanks!
what about WebStorm?
 
Never heard of it
Night all
/afk bed
 
@Michael Cya later.
 
2:44 AM
niters @Michael
 
@Tavo Michael is away: bed
 
3:31 AM
Anyone know how to do statistics?
Specifically, I don't know what formulas I'm supposed to use for these: 1drv.ms/b/s!Avzs-p6WfmXCh_cxDOsxSmWsMx4bPg
 
4:01 AM
Oh, it's the thing with the t thing
Thank you WolframAlpha
 
 
3 hours later…
6:41 AM
morning
 
morning
 
what's up?
 
I got some code here (hastebin.com/eribujorut.java) where synchronized is being used. Does that even make sense on the JTable? same goes for the method addServerData... there synchronized is used aswell on the same table... My feeling is that using synchronized on a GUI element and thus on the EDT could lead to blocking the EDT?
the updateServerTable method is being called from a separate Thread on a 1sec timer
not much @JennaSloan :D
 
I'm not familiar with swing, but GUIs thend to be a bit asynchronous so it seems like a good thing to do to me. Do you NEED it? maybe be not, since a user can usually only interact with one element at the time. If I understood your question correctly
 
the user cant do anything in the table
 
6:51 AM
If it's a back-end thing then you probably should have it. As I said, I'm not familiar with swing, so I dunno how swing handles threading but it very well could be accessed by more than one thread. synchronized queues the threads, it will happen eventually
 
the tablemodel is getting fed by database calls and it updates the servertable with that data every second.
and there is only one thread accessing the servertable
ehm model :D
 
 
3 hours later…
10:13 AM
2 messages moved to bin
 
10:31 AM
/fatcat
 
 
1 hour later…
11:32 AM
Can anyone tell me if it's possible to write a regex to add a leading zero to a phone number string if one does not exist?
 
@TheCoder Don't use a regex. Assuming you already got a string, use IndexOf('0'), check if it's the first character, and if not add a 0
I'm having a weird bug with some kind of interaction between MySQL or DB2, Eclipse, Junit and PreparedStatements with a MaxRows configured and sent through Hibernate
Essentially, when executing a preparedStatement with a maxRows from a jUnit unittest through Eclipse, the next preparedStatement that uses the same JDBC query uses the same MaxRows, even if one isn't configured on that PreparedStatement. This happens in DB2 on all our machines, and in MySQL only on my machine, regardless of which Mysql Server I use
Like, I'd run a JDBC query with MaxRows of the PreparedStatement set to 2, and then in a different HibernatePersistenceBroker, I'd run the same JDBC query in a different PreparedStatement using a different session without configuring a MaxRows, but it'd still only return 2 items
In MySQL, this only happens on my machine. In DB2 this happens on my machine, my coworker's machine and the build machine through an Ant build script
 
11:52 AM
indexOf returns an int
the phone number is a string
 
@Nzall mcve?
without more information I can only say it's probably due to environmental differences that are not in your scope to fix
maybe move to a more useful stack
 
 
1 hour later…
1:46 PM
Happy Friday, Java!
 
@Michael Welcome back!
 
hey@Michael
 
Hey @Hans
@Nzall You have more than 2 records in your database, right? xD
 
2:15 PM
henlo chat
 
hey
 
@Tavo yikes
 
@Tavo I've been enjoying IntelliJ
 
IntelliJ vs NetBeans
fight of the century
 
not really
 
2:22 PM
people use netbeans?
I heard it was shit
 
not for me at least
tbh I haven't tried to use it for years, but there's no reason for me to do so
 
I figured for Java at least it was more eclipse vs intellij
 
eclipse
\o/
 
2:45 PM
I just discovered the "Git Staging" view in Eclipse. It's really nice.
Makes it easier to see your uncommitted changes and commit them.
 
git status and git add -i are all I ever need
 
finally my blinking cells inside my table are working when shutting down servers :D
 
@milleniumbug it's not a fight if netbeans goes down before the debate even begins
 
:36419427 better? :D
 
2:57 PM
nods and goes back to minding his own business
 
:)
 
 
4 hours later…
6:29 PM
hi
@MissKhan hi
 
6:45 PM
... who here uses Eclipse?
 
definitely not me
 
 
2 hours later…
8:53 PM
@DRich I don't but I have used a lot of Eclipse in the past.
@ballBreaker IntelliJ > Netbeans > Eclipse > BlueJ
 
lol TIL BlueJ
looks hilariously bad tbh
 
I just hate Eclispe because its so slow. I am really looking forward to the proposal of re-writing the core parts of Eclipse to speed it up.
 
9:20 PM
Please, would anyone here kindly help me?
 
@JackKirby Sure, what's going on?
 
I was wondering if there was a way to test for new processes. I thought of using a for loop to monitor tasklist.exe, but it's too laggy
 
Perhaps slow down how often you query it? Thread.sleep(1000); would make it run once per second.
 
Thats a good idea.
But running tasklist.exe to get results causes slight lag on some computers...
maybe change it to seconds.
Thanks @4castle
 
 
2 hours later…
11:48 PM
/cat
 
drops mic
 

« first day (2351 days earlier)      last day (2604 days later) »