titania424

Colorado

None

Age: 51

Long time software engineer, back to being technical after years of systems engineering and project management. Java, web development, Spring, javascript of all types, Databases, etc, after years of C++ and C.

Jul
11
comment How to apply regular filters to page after Spring security re-authentication on session timeout
That is what I was wondering, I have a feeling it is using the cached page since I don't see the filters in the log or when I debug. I personally would rather force new logins to go back to the home page, but people like being able to refresh and have it reauthenticate. That was before we had this change to multiple teams. I haven't been able to find something to force it to reload and not use the cache only in the reauthentication case.
Jul
11
comment How to apply regular filters to page after Spring security re-authentication on session timeout
Hmmm, it doesn't seem like the same servlet filter chain is getting kicked off. What I meant about changing to a different type of user - when you log in, you are part of "Team A". Team A is allowed certain pages. You may also be able to be part of "Team B", and you change a menu item to be "Team B", and now you see different pages. however when you refresh a re-authenitication, you are back to Team A, except it allows the Team B page to show. In the normal path, there is a check in the servlet filter chain, and that doesn't seem to be getting triggered here, which is what is confusing me.
Jul
10
asked How to apply regular filters to page after Spring security re-authentication on session timeout
Dec
4
answered Jboss 5, Jersey 2.4, Compressed .war file not working
Oct
9
comment Return multiple values from a Java method: why no n-tuple objects?
Other languages do this by having a pass-by-reference syntax (or a pseudo pass-by-reference, like using & (address operator) in C or C++. That was the way people got around it "back in the old days". I'm trying to decide how to do this for something and I may chose the private static class explained below as the selected answer.
Sep
26
answered MySQL Not In Not Working
Aug
29
comment Find single matching record from one table with exact list of matches in join table
Here's what I came up with: SELECT * FROM (SELECT m.metricsid, m.a, m.b, m.c, COUNT(*) AS MATCH_COUNT FROM metrics as m INNER JOIN metrics_grid as mg on m.metricsid = mg.metricsid WHERE m.a = ? AND m.b = ? AND m.c = ? AND mg.gridid IN (?, ?, ?) GROUP BY m.metricsid) TMP WHERE TMP.MATCH_COUNT=3; So this selects from a result that groups it by the metrics id, and counts how many rows match, and that has to match the total number that there should be. Just glad I got it working, it was causing real problems here with recomputing huge amounts of metrics that already existed.
Aug
29
comment Find single matching record from one table with exact list of matches in join table
So after testing, I found I have to add something else that I haven't figured out. The query still returns 2 records when searching for the group, it works when only searching to match the single one. When I get that, I'll post it and you can add it in.
Aug
28
comment Find single matching record from one table with exact list of matches in join table
thanks for thinking about it, Your way may also work, but I found another solution building on the previous one.
Aug
28
comment Find single matching record from one table with exact list of matches in join table
Oh, if you update your answer with this, I'll accept your answer!
Aug
28
comment Find single matching record from one table with exact list of matches in join table
So I was able to make it work by adding this: AND NOT EXISTS (SELECT MG2.GridId FROM Metrics_grid MG2 WHERE M.MetricId=MG2.MetricsId AND MG2.SensorID NOT IN (?,?,?)) This did the part where it excludes any that are not exact matches.
Aug
28
comment Find single matching record from one table with exact list of matches in join table
This does exactly what my other attempts do, it returns both metrics records, the one where it is alone in the list, and the one where it is in a list of multiple. There needs to be a way to check that it matches exactly and only the same list of grids, and that's where I'm struggling.
Aug
28
asked Find single matching record from one table with exact list of matches in join table
Aug
22
comment Possible causes of "java.lang.ClassFormatError: Invalid pc in LineNumberTable"
We are having this problem too, in Eclipse, with JDK 1.7. This has been working, although we had to clean and now it stopped working. That's what seems really strange about it, we switched to Java 1.7 a few months ago, and now it's a problem?
Jul
26
answered Should I use identification numbers for usernames in MySQL?
Jul
19
awarded Autobiographer
Jun
20
awarded Critic
May
24
awarded Talkative
May
24
revised Installing MySQL on a mac
added 14 characters in body
May
24
awarded Yearling
1 2 3 4 5