« first day (3071 days earlier)      last day (1864 days later) » 

12:00 AM
Time to take stock. Go home with some office supplies. (source)
 
12:13 AM
picks nose
 
 
6 hours later…
6:13 AM
farts
 
 
1 hour later…
7:34 AM
Morning
 
Morning.
 
Why am I the first one?
Hello?
 
8:30 AM
Because you're a n00b
 
8:48 AM
So mean.
 
Just got my ass handed to me :(
 
TIL Neil's ass is portable
 
I tested a SQL script which did what it was supposed to do, and then I performed a formal request to have it executed in preproduction and eventually production
The problem was that the query didn't end with a semicolon.. and apparently it would indicate that it executed the query, but nothing was done
problem is I didn't realize nothing was being done, because I had already tested it manually and it had already had its effect
So I didn't get an error in execution of the script.. just a friendly reminder that the error was still present in production
 
oh boy. Thanks Neil.
You just reminded me that I had to do something with a database... Completely forgot that.
 
You're welcome
 
8:57 AM
No u
all because of a missing semicolon
 
I never omit ; in query strings. Even when building it in the data layer
 
What pisses me off is that the automated e-mail response indicating the details of having run the script indicated that it had been executed..
If it was waiting for the semicolon to execute it, then if anything, say nothing was executed
don't tell me that a delete was performed only to get a lovely surprise to that effect next day
 
Neil.
that is not the first time that you discovered a problem once something is on the production
I already told you that is not healthy.
That deploy procedure is just not working at all. Or just not failsafe enough
 
In this case, my failed assumption was that when it told me the statement was executed, I believed it
 
Get from your seat and try to discuss it with the manager. If you can come up with reasonable arguments, then maybe it can be a topic in a meeting or something
 
9:07 AM
Well it's related to the same problem, I just didn't see it the first time
 
I don't care. That is a recipe for disaster if important queries are not executed because of a missing ;
 
Yep, well, someone could always say I didn't properly check.. and they'd be right
 
(with "important", I mean queries that has impact on the code)
 
Running a script manually and having the system execute it are two separate things
 
you are a human, prone for failure. That is why there are tools to do some checks for you.
 
9:09 AM
I should have known better than assume if it worked running it manually that it would work being run by the system
assumptions are my enemy!
 
you are not the first one that omit the ;
 
well, I did the next best thing and wrote an e-mail to my colleagues so they can avoid it
My experience is that my boss is very much political, and he generally doesn't interest himself in technical problems we may have
 
Zoe
@geisterfurz007 Meh, you deserved it.
:p
 
9:24 AM
ppfff
 
This is literally my third attempt to fix something in production..
Due to this stupid problem
At least now I understand why it wasn't doing anything
I just hope they don't decide they've received one too many e-mails apologizing for the delay and decide to let me go
Then at least I can say I was let go because of a semicolon
 
\o
 
o/
 
9:39 AM
o/
 
\o
 
o/
 
*points finger* COMBO BREAKER 😲
@JennaSloan your bot no work
 
Zoe
#TrainRekt
 
9:53 AM
ლ(ಠ益ಠლ)
 
Zoe
:p
@Hans1984 fite me irl m8 :squint:
 
(ง •̀_•́)ง
 
*pokes hans*
 
10:12 AM
\('0')// ︵ ┻━┻
 
Zoe
HEY!!! No flipping of my tables!!!
Flip your own tables!
 
(╮°-°)╮┳━┳
 
Zoe
waffles
Gooood hansu uwu
 
(⌤)
 
*slaps hans in the face*
@Zoe does it mean that I have to flip the table and work on the floor ???
 
10:19 AM
throws KarelG out of the window (10th floor)
\(^~^)/
 
Zoe
@KarelG no, but you can. Just don't flip any of mine :squint:
 
@Hans1984 *splat*
0
Q: PoolablePreparedStatement memory leak

ave4496I have a program which executes a lot of update statements on a db. The program gets slower everytime an object (multiple inserts and updates per object) is imported into database. At first it takes just a couple of ms per object and in the end it's about 2 or 3 seconds. I can't paste the code b...

that is an interesting thing
 
Zoe
@KarelG Congratulations, you're the 1 000 000th person to fall off the 10th floor window! As a reward, you get to land on a fluffy air mattress instead of the concrete!
 
o.o Then Hans must be throwing a lot people.
 
yeah you bette rthank doggo
she put a gigantic fluffy pillow on the ground
so you werent harmed
 
Zoe
10:29 AM
SoMEoNE saID fLUfF?!
 
@KarelG that way i dont need to go to the gym anymore
 
Hi, Guys, this is new here. thanks
 
@AMIRUL 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
 
what is new here ?
you mean you are new here ?
 
Zoe
10:33 AM
@KarelG -1, not fluffy enough
 
I didnot use this chat room before. that for why i say , new :(
 
hello new guy o/
 
I am here 0\
 
10:47 AM
You know that moment, when you don't know if you're talking to a human or a really shitty AI?
 
I remember when i was new to SO and thought capricaSix is a human user
 
heh, it has been worse :P
there was a person that tried to seduce caprica
 
where do I find caprica?
I want to talk to it
if it's that realistic
 
yeah at first everyone thinks shes a hot blonde
but once they find out
disappointment :(
 
give me caprica
 
10:51 AM
you can find her in alot of chats
javascript,c# and so on
 
mkay tanks
 
sandbox too
 
She doesn't even respond
How do people fall for that
 
she responds when you ping her
 
Zoe
Just don't activate the skynet module pls
 
10:54 AM
@Hans1984 She didn't
Maybe she just dislikes me :<
 
yes she doesnt
 
They always dislike me :< :<
 
my bad
i thought she would
only reacts to commands
/8ball are you a bot too ?
 
@Hans1984 My reply is no
 
that didnt sound very human
you need to work on that
 
11:00 AM
@d0n.key ...
 
@VenkatRaman 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
 
@Neil you rememburu the holmes problem we talked about?
my algo works, and its performance is decent
I already passed 3 stress tests
but this one is just horrendous
 
11:33 AM
Sup @VenkatRaman
 
11:52 AM
@KarelG no u
 
Cosmic rays are highly energetic particles that flow throughout our solar system from deep in outer space, but astronomers are unsure of their origins. (source)
 
12:08 PM
that wont work
 
Zoe
Near native speed says it will
 
the difference between efficiency of JVM and C is not enough to make it work
keep in mind, the JVM runs without a cold start
 
Zoe
-O3 does wonders though
 
@Wietlol well keep at it
you'll get there
 
someone solved it already tho
 
12:32 PM
@Zoe my biggest unit tests take 500-1000ms each
some other guy's solution, for the same tests, in kotlin, runs for 40ms
 
@Wietlol decent? You are facing a time out
 
it runs for 2 seconds
to solve 100000 problems
 
that is 50 000 per seconds.
that is not much
A 3GHz CPU should be able to handle more issues.
 
12:50 PM
do you even know what the problems are?
 
finding Holmes
 
being holmes
yassss
the other guy is 5 times faster than me tho
 
1:05 PM
Hi. Anyone knows what a GAP file is? github.com/kiegroup/drools/search?l=GAP&q=grammar+file
 
some language grammar file it seems
 
1:48 PM
@Wietlol I found the date column pretty ... informative
 
2:44 PM
Hi guys, can anyone tell me if there is some kind of time complexity I can improve here? I'm not sure if the priority queue is the best for performance in this case.

https://paste.ofcode.org/9TP3gjBSMN2KmuZZmkH9Lx
 
alright ...
thought this can be considered java too
 
I mean there might be someone here who can do a proper code review here but the quality over there is much better :)
 
3:07 PM
?
 
Zoe
Guess not xd
 
You have me very confused.
 
Zoe
There's a fancy onebox
 
Zoe
Dammit xd
 
3:08 PM
:)
 
Zoe
Ooh, I 'member ^^"
 
@KarelG ye, when the day is "today", then it wont show the date
normally, it shows the date and time
still, IDIDIT
 
slaps Wiretlol
 
Dayum, me on codereview waiting for a simple yes no answer, and maybe @Wietlol , an enthusiastic Kattis player can already know what's wrong with my code.
 
ofc I know what is wrong with your code
but you wont like the answer
 
3:23 PM
hmm I dont mind listening
anything is constructive at this point
 
whacks gist-r-punz007
@PrashinJeevaganth your code is incorrectly formatted
 
ok ...
anything after that?
something that causes time to overflow or something like that?
 
time overflow?
 
like something is wasting a lot of time and can be reduced to a way cheaper operation
I'm using a priority queue and I'm doing maps and converting back ... not sure if that's a good way to go about it
 
3:26 PM
you are wasting a lot of time? I know how to optimize that ;)
 
something in the code*
 
what if you tried to split up your requirements
 
make a list of your requirements
 
what do you mean by requirements?
time limit?
 
3:29 PM
what your application needs to do
for example
- keep a collection of monsters
- insert a new monster
- remove the monster with the lowest health
 
I see... it's stated in the qns already, but the poor formatting might really be too big of a turn off
 
make functions for each command
when you have separated your code, you can see which parts are related to each other
you dont need a queue
just a list is plenty
on insertion, you can do a binary search for the index you need to insert on
on heals, the order remains the same
if you make a class for monster, you dont even have to replace the items in the list, just update their fields
but depending on what you really want, not having the class is faster since you dont make your own objects
 
Does it actually make sense to not make monsters, now that there might be a possibility of 2 monsters having the same hp being in the queue at any one time
hmm
but its not in the scope of this question so oh wellz
Actually for a list implementation, I was thinking about a LinkedList. Do I even need to insert it in the right position like a sort? I could just add it to the back of the list in O(1).

Heal is simply a map with unchanged order

Kill is when I need the minimum element so I will sort in ascending order and simply remove from the front of the list in O(1), hence the main cost came from the sorting only when kill is called, instead of some log n cost which is always incurred from adding
 
LinkedList is not sorted, it is ordered
its insertion is O(1)
 
3:44 PM
ArrayList insertion is O(n)
 
just adding to the back
 
but LinkedList lookup is O(n)
and ArrayList lookup is O(log n)
 
I will sort only when KILL is called or when there are no more commands to process
 
keeping the collection sorted is better than sorting when needed
 
Wietlol how do you do web requests in kotlin? (:
nvm; I will spend the next hour to read all the things ™
 
3:46 PM
200 frigging unit tests
for what?
 
All that for taking two stones.
I want to get all the workshops from my backend
 
println(if (readLine()!!.toInt() and 1 == 0) "Bob" else "Alice")
 
Hmm if you would want to keep it sorted (for both an ArrayList /LinkedList implementation), then for an insertion

ArrayList: O(log n)+O(n)
LinkedList: O(n)+O(1)
 
Is there a fancy way or should I just use what I got already anyway and throw some jQuery in there?
 
seems like they are all upper bounded by the n so there's not much improvement?
 
3:48 PM
@geisterfurz007 use the http client?
 
gimme teh codez pl0x
 
gimme money
 
No seriously: What http client? got sniped
 
3:49 PM
first google result
 
@Wietlol Or do you mean the improvement is to just use it into a more general data structure with just enough functions to support the application. I don't see a performance improvement here
 
Ok and then use a callback like in good ol' JS?
 
@PrashinJeevaganth not re-creating a priority queue?
 
@Wietlol The discussion now is actually between a full ArrayList vs a full LinkedList, the PriorityQueue is now out of the question
 
3:55 PM
use either
 
Actually there always be a need to create something if I'm doing streams right ...
even if I dont first make a normal collection and create a new PriorityQueue
should I just avoid streams to maximise. for time?
collect returns an ImmutableList which can't be modified, hence I would definitely need to transfer it to a new list instead now.
 
dont use stream to modify the elements
if you want 200% performancce, you gotta do work
if you dont want to do work, then use streams
 
alright then
I guess streams are only sometimes shorter and dont even guarantee any performance
 
they guarantee performance, but they also guarantee something else, that you currently dont want
 
4:11 PM
I see
back to good old iteration then
do you know of any irritating hashMap or hashSet programming problems that are irritating to solve?
what I can think of right now is just irritating comparators or something that need you to sort by value of every Key-Value pair
 
i dont know irritating hash map/hash set problems
most of the problems involve not actually using a hash map or hash set
 
 
2 hours later…
6:25 PM
I would like to throw a table away.
 
Zoe
I'll throw it at you :squint:
 
6:58 PM
WARNING [jvm-pause-detector-worker] org.apache.ignite.logger.java.JavaLogger.warning Possible too long JVM pause
Can anybody help?
Apache ignite java library shuts down tomcat while debugging.
 

« first day (3071 days earlier)      last day (1864 days later) »