greptilian logo

IRC log for #javaee, 2013-12-30

Please see http://irclog.greptilian.com/javaee for which days have been logged.

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
02:33 kotten joined ##javaee
08:35 AartBluestoke joined ##javaee
09:16 neuro_sys joined ##javaee
09:49 AartBluestoke joined ##javaee
09:50 AartBluestoke joined ##javaee
10:40 AartBluestoke joined ##javaee
11:50 sajjadg joined ##javaee
11:59 acuzio damn it i am missing Quest
12:00 javaeebot` joined ##javaee
12:04 neuro_sy1 joined ##javaee
12:33 drspockbr joined ##javaee
13:47 MegaMatt joined ##javaee
14:09 pdurbin pretty slow over the holidays
15:44 MegaMatt joined ##javaee
15:56 sfisque joined ##javaee
15:56 Quest joined ##javaee
16:13 Guest36365 is there a way to generate ER diagram out of entities classes?
16:14 pdurbin ER?
16:14 sess EntityRelation
16:15 sess what you are looking for is an IDE plugin of some sort
16:15 sess or you can create the database and generate ER from that
16:16 pdurbin right. like this: http://schemaspy.sourceforge.net/sample/
16:18 Guest36365 hm
16:19 Guest36365 i use idea
16:22 sfisque squirrel will do schema graphs
16:29 Guest36365 in idea?
16:30 sfisque no, squirrel is a standalone db tool (java app)
16:30 sfisque but among its bazillion features, it does schema graph visualizations
16:33 Guest36365 hm
16:33 Guest36365 any idea shortcut.
16:34 Guest36365 I need it to be build from entities clases and not from database itself. as database may have extra tables
16:55 sajjadg joined ##javaee
17:06 SoniEx2 joined ##javaee
17:08 neuro_sys joined ##javaee
17:08 neuro_sys joined ##javaee
17:37 syncsys_ joined ##javaee
17:53 kotten Is there anyway to let a bean transfer an Image outputstream to a <h:graphicImage> ?
17:54 kotten like.. <h:graphicImage library="blabla" inputstream="#{bean.getoutputstream()}" />
17:55 neuro_sys afaik, no.
17:55 neuro_sys although you could bind the value of a graphicImage to a servlet
17:55 kotten not? =\ yeah i saw there was a command bind within it
17:56 kotten if you mean value like..
17:56 kotten =/test1.jpg as url reference that is what I am trying to avoid
17:57 neuro_sys is the image dynamically generated?
17:57 kotten no
17:57 kotten well..
17:57 kotten hm
17:57 neuro_sys why not serve it from the filesystem with a url path?
17:58 kotten that was my initial plan
17:58 neuro_sys it's also better in several aspects
17:58 kotten the user uploads the picture to a destination on my box like /var/uploads/picture and that works
17:58 kotten but I have problems getting to that resource from glassfish
17:59 kotten I want to bind it as an alternative docroot but i don't get that working
17:59 neuro_sys save the uploaded pitures under WEB-INF/uploads/ ?
18:00 neuro_sys erm well
18:01 kotten well that sounds nice and all but the problem is that when it is deployed glassfish will not like that being messed with
18:02 kotten but well i havn't tried it
18:02 neuro_sys or you could have a servlet that'd serve the image you need
18:03 kotten yeah thats was what i was thinking
18:03 neuro_sys context-root/MyImageServlet?image.jpg
18:05 kotten like this withing a servlet mapping:     <servlet-name> imageservlet</servlet-name><ur​l-pattern>*.jpg</url-pattern>
18:06 kotten or rather...
18:07 kotten <url-pattern>this_pic_will_be_unique_based_on_sess​ion_anyway_so_name_doesnt_matter.jpg</url-pattern>
18:07 neuro_sys I'd make the mapping /MyImageServlet
18:09 kotten okay, so then i reference <h:graphicImage library="??" name="uniqueprofilepic.jpg" /> shall i just return the image?
18:10 kotten sorry.. I mean name ="/MyImageServlet/<something>.jpg"
18:12 dittilo joined ##javaee
18:22 usasck joined ##javaee
18:23 usasck USA is a shitty country where mother are sluts !
18:24 Quest Is there a way to generate ER diagram from the entity mappings in entity classes? (in jetbrains idea)?
18:25 korolko joined ##javaee
18:30 usasck USA labour history are worst then Quest ass
18:30 usasck left ##javaee
19:16 Quest sess,  no, I am looking something that creates the ER from the entity classes
19:16 sess probably not gonna find it
19:16 Quest really?
19:17 Quest so all tools are that generate ERs from database directly?
19:17 sess and it's more proper to create it from the db anyways
19:17 sess should should have a db either way so i dont understand why you need it from the entities
19:17 Quest well, I have some extra tables in db that I dont want to show in ER. well I dont even know which tables are extras
19:17 sess so remove them manually
19:18 Quest there are so many :)
19:18 sess if you have 50+ tables, the ER will look like shit either way
19:18 Quest hm
19:18 sess anything above 15 tables is hard to place
19:19 Quest hm. so any tool you know of?
19:19 sess most db clients can handle it
19:19 sess depending on vendor
19:20 sess official mysql client has a good one
19:20 sess and oracle has one aswell iirc
19:21 sfisque squirrel.  uses jdbc.  vendor neutral.  integrates with hibernate.  does graphs.
19:21 Quest postgres
19:21 Quest mysql workbench is good for mysql.
19:22 Quest pgAdmin 3 is not for PG
19:22 Quest sess,  and if you had time or interest, I have another unsolved mystry. http://stackoverflow.com/questions/20831040/404-error-on-spring-security
19:22 sess no experience with postgres
19:22 sfisque if postgresql has a type4 driver, squirrel will do just fine
19:22 sess havent used spring security
19:22 Quest sess,  no experience with pg? if you didnt do pg, oracle or DB2, then you missed alot
19:22 Quest sfisque,  hm ok
19:23 sess i work with oracle and mysql
19:23 Quest nice
19:23 sess db2 is pretty old...
19:26 sfisque but still current.  it just has a long history
19:26 sfisque probably the oldest still in production
19:26 neuro_sys using only db2 at work
19:27 sfisque on top of what os?
19:27 sfisque linux?  as400?
19:27 neuro_sys ibm i or aix
19:27 neuro_sys as400
19:28 sfisque wild.  is it true that db2 is actually "part of the operating system" on as400?
19:28 neuro_sys yeah, I was just going to say that
19:28 neuro_sys a lot of stuff are I guess handled in the kernel space
19:28 sfisque yah
19:29 neuro_sys all tables are actually files on the filesystem
19:29 neuro_sys they're called files anyways
19:29 sfisque yah
19:29 sfisque BBL
19:29 * sfisque waves to all
19:29 neuro_sys authentication and permissions are also part of the os
20:20 Quest sess,  sfisque  idea has a feature to generate ER from entity classes only. no db required. I got it working http://i42.tinypic.com/x42irc.png
20:24 sess cool
20:24 sess thats one old IDEA
20:29 Quest ya , thats not mine. the helpers one. but its similar for v13 too
20:30 Quest #spring is usually idle
20:34 pdurbin ah, "Open ER diagram" per http://www.jetbrains.com/idea/webhelp10.5/persistence-tool-window.html
20:34 Quest ya
20:35 pdurbin or http://www.jetbrains.com/idea/webhelp/persistence-tool-window.html for the latest version
20:35 pdurbin Quest: good job
20:36 pdurbin I guess it's considered a hidden feature http://stackoverflow.com/questions/2524025/hidden-features-intellij-idea/4463739#4463739 :)
20:36 Quest thanks
20:36 Quest ya, its not very prominent
21:09 neuro_sys 200 bucks is not cheap
21:09 neuro_sys maybe I should pirate it
21:10 neuro_sys and pay back when I make enough money
21:48 Quest http://pastie.org/8588538 are the lines 1 to 6 a correct way to logout users? because when I do, the user seems to be logged out momentarily on the page but then can visit other pages again with the same login. it seems  line 31 and 38 is making a new session cookie. but how?
22:25 kotten sfisque: do you like star trek?
22:27 kotten Quest: I have no idea as this is not my domain at all, but what am I looking at?
22:27 Quest its spring security
22:28 kotten Quest: ohh.. then thats truly now my domain :) but..
22:28 Quest no problem
22:28 kotten Quest: what is the rest there? It seems like a header coming after
22:28 Quest yes
22:28 kotten Quest: Something is wrong here
22:28 Quest yes it is
22:29 kotten Quest: The first part(that 1- 6 something lines) seem to be  bean or servlet action
22:29 Quest yes. its a controller in spring
22:29 kotten Quest: The rest seems to be a http/html wtf its called header
22:29 kotten is this printed on your browser?
22:30 kotten Quest: do you understand what I mean? Where is the origin of this 'text'? it seems like a combination of some kind of function and a server response
22:31 Quest the header is what i got from browser f12
22:32 sess Quest: you are redirecting, of course a new cookie is created
22:32 kotten Quest: okay so far that i can say with my very limited level of understanding. You should not see rgw linw 1 - 6
22:32 sess the url login/logout is ridiculous btw
22:32 kotten rgw... the lines...
22:32 Quest sess,  yes. but the new cookie should not have the privilieges of the previous logged out user
22:33 sess nope, and it won't unless your security is configured bad
22:33 Quest sess,  ya. the logout.jsp   and login.jsp and logoutfail.jsp are in the view/jsp/login dir
22:33 Quest so looks awkward
22:33 Quest http://stackoverflow.com/questions/20848312/how-to-correctly-logout-user-in-spring-security      then
22:33 Quest see edit 1
22:34 kotten can someone refer me to the off-topic section of this channel?
22:34 sess i dont know spring security
22:34 sess -> that way
22:34 Quest kotten,  offtopic section?
22:34 sess you are correctly invalidating the session at least
22:34 Quest sess,  ya. thats my point.
22:34 kotten Quest: not for you my friend :)
22:34 sess perhaps there is something left in spring security, though it should be session bound so that would suprise me
22:35 kotten Quest: try to join #spring
22:35 Quest sess,  ya. everything stops at session invalidation
22:35 Quest kotten,  iam already there
22:35 kotten Quesst: do they help you?
22:35 kotten Quest: do they help you?
22:35 Quest for this. no
22:35 semiosis maybe if you enable remember-me, then you wont have that problem
22:36 Quest kotten,  for other things. they did mostly
22:36 Quest semiosis,  remember-me ?
22:36 semiosis whats the problem you're having with spring sec?
22:36 kotten Quest: okay well that is the way it is, I wish I could help you but this is really far from my field
22:37 Quest semiosis,  stated at http://stackoverflow.com/questions/20848312/how-to-correctly-logout-user-in-spring-security
22:38 Quest kotten,  I appreciate your sense of handling problems though
22:39 kotten Quest: thank you Quest for those kind words
22:46 * Quest has to leave
22:53 sfisque kotten i enjoy ST.  why do you ask?
22:53 kotten sfisque: you probably dont remember but a month or two ago we had a discussion about it :)
22:54 kotten sfisque: I am 'new' to ST but i really enjoy it. Since we last spoke I have seen all movies and are currently on S2 on The next Generation
22:55 sfisque ah, ok i recall that.  coolio
22:59 kotten sfisque: I doubt you do but you helped me with some trivial JDBC issues and for that I stand in your debt
22:59 sfisque this is a zero debt channel.  just pay it forward when someone else asks a  question you know the answer to :-)
23:04 kotten sfisque: what do you mean with that?
23:04 sfisque it means you owe me no debt (though i appreciate the sentiment).  this channel is just a collection of knowledge and if at some point you can offer someone assistance then that is enough :-)
23:10 kotten sfisque: But your knowledge is lightyears above me :) There should be different channels for different levels of questions. Still if that is your wish I shall try my best.
23:38 pdurbin sfisque: oh. I have a database for you
23:39 pdurbin "An open-source database with a flexible data model for documents, graphs, and key-values." http://www.arangodb.org
23:39 pdurbin (via http://rubyrogues.com/134-rr-sharktime-with-lucas-dohmen/ )
23:39 pdurbin graph and document database
23:40 pdurbin sfisque: for your facebook killer

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Please see http://irclog.greptilian.com/javaee for which days have been logged.