greptilian logo

IRC log for #javaee, 2014-02-13

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
00:18 ibaca_ joined ##javaee
01:13 Naros joined ##javaee
01:32 ibaca joined ##javaee
02:11 jeffl8n_ joined ##javaee
02:13 SEx2 joined ##javaee
02:29 sfisque1 joined ##javaee
02:37 Naros joined ##javaee
02:39 Lappro joined ##javaee
02:44 SEx2 joined ##javaee
02:44 Naros_ joined ##javaee
02:47 gvdevil joined ##javaee
02:49 whartung joined ##javaee
03:08 sfisque joined ##javaee
03:28 ibaca joined ##javaee
03:29 Naros_ left ##javaee
04:36 jeffl8n joined ##javaee
05:58 ramsrib joined ##javaee
07:02 jenue joined ##javaee
07:12 neuro_sys joined ##javaee
08:10 sajjadg joined ##javaee
11:24 Voyage joined ##javaee
11:31 Voyage can I get multiple generated keys by preparedStatemetn..getGeneratedKeys() ?
11:44 pdurbin sajjadg: you'd rather use JSON, right?
11:44 sajjadg pdurbin: yeah. why not?
11:45 sajjadg these days most people prefer JSON when they can choose between JSON and XML (and etc.)
11:45 sajjadg I kinda prefer annotation over XML for config.
11:48 sajjadg I searched a looooot and saw that JAXB attribute prefix with @ problem is not that easy to solve and on the other hand is not smart to do! there's a reason they are putting @ in front of each attribute in JSON output. they don't want to mix them. it makes client side a little harder to parse but I think that can be solved easier in JavaScript compare to Java
12:08 pdurbin sajjadg: here's me talking about how @type showed up in my JSON: http://irclog.greptilian.com/javaee/2014-01-20#i_52482 (after someone refactored our code)
12:09 pdurbin for a while I couldn't create (and persist) objects with some JSON after that happened
12:09 pdurbin but then he fixed it and it works again
12:11 pdurbin looks like he stopped trying to pass the "owner" of the object, like I was doing. instead, he specifies the owner id in the URL (as a @PathParam)
12:12 pdurbin anyway, I'm very happy I can use JSON again to create some objects. I'm using it a ton in development
12:12 pdurbin (Voyage: I don't understand the question, by the way)
12:14 Voyage np
12:16 sajjadg pdurbin: I read the log. (I enjoyed the log site/app. it's a bit smart :P) and I wonder how you found the log!
12:17 sajjadg pdurbin: my DB in this project is some files (books) in XML and/or .txt file
12:17 sajjadg pdurbin: XML files have restricted licenses in some cases. I can change the structure but I don't know if it's OK or not.
12:18 sajjadg pdurbin: anyway I prefer to work with the current layout which is using attribute for data!
12:19 sajjadg and as you know, some (most of them?) JAXB implementations (jettison, ...) prefix attribute names with @ to separate them with property (I don;t know if I'm calling them right)
12:21 sajjadg so I get lots of @ in the code. first I taught the error I'm getting (in angularjs) is because of this @ but now I think it's because my data is return as an array when angularjs expecting object
12:22 sajjadg :-/ how stupid it is :P everything is an object. (just convert the array to object stupid framework)
12:23 sajjadg I went to google and test some more solution when I got distracted and now are wikiing (is it a thing?) about game development :-)
12:24 sajjadg pdurbin: by the way that guy, Blaise Doughan, is so responsive and active in stackoverflow. he;s from Moxy team. nice.
12:25 pdurbin sajjadg: the IRC logs for this channel? I run the logging bot (philbot, and instance of ilbot) and put them on my domain (greptilian.com) :)
12:26 sajjadg pdurbin: nice job bro. very nice.
12:27 pdurbin sajjadg: #ilbot if you have any trouble running your own ilbot :)
12:28 sajjadg pdurbin: thanks :-)
12:29 sajjadg by the way, pdurbin , one of the people you linked on your stackoverflow page, is gone! http://stackoverflow.com/users/50554/cmdln
12:31 pdurbin wat
12:32 pdurbin huh. I don't see him on irc either, or I'd let him know
12:32 pdurbin sajjadg: and yes, I trust anything Blaise says. He's great
12:50 weyer joined ##javaee
13:04 weyer joined ##javaee
13:10 weyer joined ##javaee
13:58 jenue joined ##javaee
14:28 cjross joined ##javaee
14:30 mikee joined ##javaee
14:48 Naros joined ##javaee
15:18 Naros left ##javaee
15:57 CJ_ joined ##javaee
17:31 sajjadg joined ##javaee
17:52 Naros joined ##javaee
18:00 Naros left ##javaee
18:29 TinkerTyper joined ##javaee
18:34 SoniEx2 joined ##javaee
19:53 sajjadg joined ##javaee
19:56 semiosis tjsnell: re: using the glob to regex from sun, i found a class that does the same in apache hadoop which has a more permissive license (ASL2) so I just included that in my code
19:58 whartung I didn't know globbing was difficult
19:58 semiosis whartung: ??
19:59 whartung for (String s : stringToBeGlobbed) { if (s.matches(globRegex) { globbedStrings.add(s); } }
19:59 whartung or am I missing something
19:59 semiosis where does globRegex come from?
19:59 whartung same place stringsToBeGlobbed comes from
20:00 semiosis stringsToBeGlobbed comes from the filesystem, a directory listing
20:00 semiosis user provides a glob to match against the strings
20:00 semiosis but java only has a regex matcher
20:00 whartung the globRegex comes from a user
20:01 semiosis no, glob comes from the user, need to convert that to globRegex which java can match
20:01 semiosis glob != regex
20:01 whartung guess it's a matter of degree
20:01 semiosis what?
20:02 whartung globs are regexes they're just different regexes
20:02 semiosis no
20:02 whartung you're saying "file.*" is not a regex? Of course it is. It's just a slightly different syntax.
20:02 whartung shell regexes != perl regexes
20:02 semiosis in the theoretical sense yes a glob is an expression in a regular language
20:02 semiosis but you can't feed a glob pattern into a java regex matcher
20:03 semiosis you need to convert the syntax
20:04 semiosis i can't give javac a theoretical argument, need to give it an algorithm to convert
20:09 rektide joined ##javaee
20:10 whartung http://docs.oracle.com/javase/tutorial/essential/io/find.html
20:11 semiosis whartung: yes i am implementing PathMatcher for an alternative filesystem provider plugin
20:12 semiosis so that the thing you linked will work on filesystems from my provider
20:12 whartung ic
20:12 whartung yea I just saw a thing on FileSystemProvidres
20:12 whartung what's backing  yours?
20:12 semiosis glusterfs :D
20:13 semiosis https://github.com/semiosis/glusterfs-java-filesystem
20:13 whartung ah
20:13 whartung biab
20:13 semiosis later
20:35 SoniEx2 joined ##javaee
20:48 TinkerTyper joined ##javaee
21:13 neuro_sys joined ##javaee
21:13 neuro_sys joined ##javaee
22:03 AndroidLoverInSF joined ##javaee
22:15 CarlosGoce joined ##javaee
22:37 rabe_ joined ##javaee
23:15 NationalCoder joined ##javaee
23:18 kobain joined ##javaee

| 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.