« first day (3310 days earlier)      last day (1631 days later) » 

12:00 AM
"Yes, and I feel bad about rendering their useless carci into dogfood..." -- Badger comics (source)
 
12:30 AM
dreams of electric sheep
 
12:44 AM
Good morning!
 
 
5 hours later…
5:50 AM
Howdie!
 
6:06 AM
Morning c:
Random songlink of today: music.youtube.com/watch?v=bcLIDFNO42U
 
 
1 hour later…
7:33 AM
It's friday, have a cute bunny for making it this far!
 
 
1 hour later…
9:01 AM
/8ball Should I leave work an hour earlier today, because I don't get shit done anyway?
Wrong answer, try again
 
@geisterfurz007 My reply is no
 
And I am still going to do it :)
 
@geisterfurz007 you have a contract to work # hours per week, right?
 
And I work too many hours usually anyway, yes.
And others have a contract to work # hours per week as well and still I am second to enter my floor and one of the last 5 to leave every day for some reason...
 
just leave early then
 
9:07 AM
yes, I got approval
I managed to hit 50 pages total without any images in my thesis yesterday; I achieved a lot this week :')
 
I only expect my people to do their tasks in their shift, which is determined by the contract. If you worked more hours, I usually allow them to take it to the next week (I just look at per month basis so idc per week) to leave their office early. Just not that they would work a day too much and then leave for a day
 
Yeah people here collect minus hours like it's nothing. One dude always plays solitair while he is here :')
And don't you dare disturb him; then he is grumpy!
So yeah, that's the morale of most people here. It's demotivating to say the least. At least the dev office is nice and away from the rest.
 
I try to have a good and nice work environment where everyone would have motivation to collaborate on a project
you only have a manager with poor management (especially employee-wise) skills.
 
I would not let that dude play solitaire, but invite him for a coffee or tea and try to figure out why he does that
 
9:18 AM
My manager let a dude "work" here with (maximum) 30 hour weeks (contract says 39) for two years despite complaints by other developers. He just doesn't want any conflicts and doesn't stand up against people who don't do well.
Time to get out of here :')
Just wrote a mail to HR to ask when I am getting my written approval that I am allowed to leave.
I don't wanna be in limbo anymore
 
now?
ok go ahead :D
 
9:31 AM
I would take it
I am just writing my bachelor thesis. Technically I don't need them anymore, I think.
It's funny though because they need me to finish a webapp which I definitely won't be able to before the end of January. I assume that on February 29th I will offically leave and they hope that I will get most of the thing done by then.
However I wouldn't be surprised if that was the next (and last) in a series of projects I wrote that never went into production.
The other developer who would complete development and provide bugfixes for it, etc plans to leave as well so there isn't really the hope that my code will ever be used :')
 
@geisterfurz007 TIL next February is a leap year
 
= a day longer to work
meh
(not that it matters, it is just a day less paid)
 
 
2 hours later…
11:24 AM
Hello guys, I'm making a native query on hibernate. It's a count. On the mysql directly is 1 on the hibernate the result is 2. I've evaluate the expression and logged the query, everything seems alright. Suggestions? Cheers
 
@Ricardo does your query involve a join?
 
The query has 2 inner joins because it's a M : M table and the middle table is not mapped on java but the relationship is working. Neithertheless I'm using native
yes Neil
I can share it here :)
SELECT COUNT(*) FROM `user` u
INNER JOIN `user_role` ur ON u.id = ur.user_id
INNER JOIN `role` r ON ur.role_id = r.id
WHERE u.account=3 AND r.name="OWNER" AND u.active = TRUE
 
hmm strange
have you tried looking at the data in hibernate?
seeing if it's just the same data repeated twice?
 
On the hibernate
@Query(value = "SELECT COUNT(*) FROM `user` u \n"+
            "INNER JOIN `user_role` ur ON u.id = ur.user_id \n" +
            "INNER JOIN `role` r ON ur.role_id = r.id \n" +
            "WHERE u.account=:accountId AND r.name=:roleName AND u.active = TRUE", nativeQuery = true)
    Integer countUsersByAccountAndRole(@Param("accountId") final Long accountId, @Param("roleName") final String roleName);
 
I assume you're passing accountId 3 and name OWNER?
 
11:28 AM
User and Role are tables that exist and have entities associated and mapped correctly (it's working with other logic)
 
you should probably double check
 
yes :)
I've evaluated expression on the IDEA and even passed statically
 
dumb question.. are you pointing to the same database?
have you double checked this?
 
I've put the value directly on the query too :/ don't really know what else to try thats the reason I'm here trying to make some sense check
yes, same database :)
 
honestly don't know then
 
11:30 AM
It's local on a docker so it's unique and mounted just now
 
I would have said that the results would be the same for the same database + same parameters passed to the query
 
Do you know how to do this query using JPQL instead of native ? (the UserRole is not mapped)
 
nope
 
Me neither, I've already searched a bit and didn't manage to find any insights. I like using natives but I'm really confused on how this is not working :/
I already know what is the problem
I have a new user indeed but it was not persisted yet!
(on hibernate)
 
ahh
I didn't even think about that
yeah, hibernate tries to optimize and won't persist after every operation
 
11:45 AM
I don't want to flush directly I will have to make the validation before :)
Neil ty for the insights sometimes we just need to talk a bit and get our thoughts in writing the be able to find the solutions faster (and better)
have a nice day
 
yep, absolutely true
 
12:00 PM
In 1943, a Mexican farmer named Dionisio Pulido witnessed the birth of a volcano in his cornfield about 329 kilometers west of Mexico City. It started as a slight depression in his field and soon became a fissure that emitted smoke and hissing noises. During the next nine years, the volcano Paricutin had grown to an elevation of 2,272 meters and its voluminous lava flows had destroyed several towns. (source)
 
Why doesn't request.setCharacterEncoding() work on Tomcat 6.0?
I call the method at the top of the doPost() method.
JDK is 1.6.
I'm very despairing now.
 
12:16 PM
/javadoc ServletRequest#setCharacterEncoding
 
That one @萝莉w? ^
Also: What does "Doesn't work" mean?
 
I got mess code.
Just like that I haven't call the method.
 
You just haven't called the method or you cannot call it?
 
12:35 PM
posted on November 15, 2019

archive - contact - sexy exciting merchandise - search - about ← previousNovember 15th, 2019nextNovember 15th, 2019: Thus concludes "COMICS ABOUT CHESS WEEK, I MEAN THE PIECES IN PARTICULAR, I GOT THREE SEPARATE THINGS TO SAY ABOUT CHESS PIECES IN PARTICULAR WEEK!"– Ryan

 
 
2 hours later…
2:08 PM
@geisterfurz007 Called it, but it doesn't work.
No effect.
The result is same as when I didn't call it.
 
Did you find this?
 
@萝莉w what do you mean with that
 
@geisterfurz007 I'll see.
 
better come with a concrete question: which method(s) you are using, what's the actual result, what's being expected?
 
2 hours ago, by 萝莉w
Why doesn't request.setCharacterEncoding() work on Tomcat 6.0?
 
2:14 PM
that is still not complete
what for arg did he pass on
where? when?
environment? tomcat is a server. I supose java EE. Which version?
or is it jakarta?
 
 
4 hours later…
6:28 PM
How can i load a file that is on the same directory to my .jsp file? doing something like new FileReader('file.txt') doesn't work, but when i try using include file="file.txt" it works.
 
 
1 hour later…
Zoe
7:40 PM
I've been far too quiet here today :/
 
8:06 PM
 
Zoe
:D
 
8:39 PM
Dang it SO! Stop making @Zoe leave!!
 
Zoe
^^"
 
9:07 PM
@Zoe Where are you going to hang out now?? :P
 
Zoe
Mostly Discord. It still doesn't replace this room :/
 
This whole CoC thing is a mess.
 
Zoe
There's a lot more to the current situation than just the CoC, but yea
It's a mess
 
10:14 PM
@Zoe I don't recall you conversing on Discord recently.
 
Zoe
@JennaSloan I've been busy with life.
 
Haven't we all
 
11:03 PM
yoooooooooooooooooooooooooooooooooooooooooooo
 
@MahmoudMehdi Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
whats up guys
 
a direction
 
big facts
 
Zoe
Such Graph API
 
11:15 PM
guys im in uni second year but my ass still bad at programmin
how does one become a legend
 
first, you become a lion
then, you start painting yourself green
then, you set the paint on fire
then, you change your name to Wietlol
then, you become majestic
then, you are a legend
 
say no more
 
Zoe
Wietlol has been evicted from Java
 
u evicted the legend
yo
whos nasty at programmin
 
11:42 PM
#define nasty?
 
oh ur back
i thought u got kicked lol
 
Zoe
I'm gonna leave now. It's Friday and eveything is still horrible. This was the second room I fully joined and became a regular in. I'm gonna miss you all (fineee, you too Wietlol ;) ). Remember to ping @geisterfurz007 from time to time :) I'll probably return if the situation starts improving, but it doesn't seem likely to happen soon. I really hope it does though. In the meanwhile, goodbye
7
 

« first day (3310 days earlier)      last day (1631 days later) »