greptilian logo

IRC log for #javaee, 2014-03-28

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:19 aspire pdurbin wanna see my android app
00:22 pdurbin what does it do?
00:28 NerdKelly joined ##javaee
01:08 firebird1 joined ##javaee
01:31 magyar joined ##javaee
01:31 magyar joined ##javaee
01:51 aspire pdurbin sorry, i went brb
01:51 aspire its just a very shitty game atm
01:52 aspire frankly its just something so i can get used to android dev and sort of get the hang of game development
01:52 aspire at least simple game development (no opengl or anything like that)
01:52 aspire the method im learning is the equivalent o
01:52 aspire of extending jpanel and overriding a paint method except with some slight modifications*
01:53 aspire anyway if your interested: http://tinypic.com/r/f4dwyx/8
01:54 aspire i was going to eventually add highscores, powerups, and environment changes but havent gotten to that yet
02:19 ramsrib joined ##javaee
02:26 aspire joined ##javaee
03:03 pdurbin aspire: a kitten shooting lasers at boxes on a background that looks like a strobe light... no offense but I think I'll stick with 2048: https://plus.google.com/+PhilipDurbin/posts/jTwz6LZuYDV :)
03:04 aspire LOl
03:07 aspire_ joined ##javaee
03:29 AndroidLoverInSF joined ##javaee
03:37 aspire joined ##javaee
03:51 aspire d/c my bad
03:56 ramsrib joined ##javaee
04:06 kobain_ joined ##javaee
04:12 cem__ joined ##javaee
04:15 cem__ for bi-directional /using jpa
04:15 cem__ source-child1 , child2
04:16 cem__ setting source a list of child
04:17 cem__ and when i persist the source it give transient object not allowed
04:18 cem__ then i set the child1.setSource(source);child2.setSource(source) and persist it works fine
04:20 cem__ Exception for bidirectional:object references an unsaved transient instance - save the transient instance before flushing :
04:58 cem__ :'(
05:17 b0br joined ##javaee
07:40 fabioportieri joined ##javaee
07:40 fabioportieri good morning and happy friday
07:44 neuro_sys good friday you too
07:58 PeterMetz joined ##javaee
08:31 kotten joined ##javaee
09:17 PeterMetz joined ##javaee
09:22 fabioportieri joined ##javaee
09:57 fabioportieri joined ##javaee
10:06 pdurbin happy friday to all
10:06 fabioportieri fuck yeah
10:07 pdurbin just posted this last night. I'm SO happy it's working: http://lucene.472066.n3.nabble.com/document-level-security-filter-solution-for-Solr-tp4126992p4127576.html
10:08 pdurbin (Solr document level security thing)
11:08 fabioportieri_ joined ##javaee
11:33 cem__ joined ##javaee
11:55 Heimdahl joined ##javaee
11:59 Heimdahl joined ##javaee
12:02 phao joined ##javaee
12:11 phao left ##javaee
12:11 phao joined ##javaee
12:11 phao Hi. This node.js seems to be getting lots of popularity these days. I was looking into it and I've heard some people saying stuff like "threads don't scale" and that node.js could achieve faster responses by not being multi-threaded.
12:11 phao Any clues on why that is? I couldn't find much of an explanation to these things.
12:12 kotten joined ##javaee
12:15 CJ_ pdurbin, Have you gotten it all working?  I may end up having to tackle a similiar problem.
12:15 sajjadg joined ##javaee
12:23 rwb joined ##javaee
13:06 Naros joined ##javaee
13:07 pdurbin CJ_: it works! \o/
13:07 pdurbin CJ_: is it secure enough? will it scale?
13:08 CJ_ pdurbin, That's always the question. :)
13:08 CJ_ I saved your link to look at later when I need to start working on that.  But I will definitely be interested in talking to you about your setup then.
13:08 pdurbin CJ_: at least this let us model what we're trying to do... to get all of our business rules in place. We can always swap out the implementation later
13:09 pdurbin CJ_: do you find the curl commands and output useful? I love it when I come across stuff like that
13:09 CJ_ I actually haven't really looked at what you did.  I just saw that you are solving a problem that is similar to one I will need to solve.
13:10 tjsnell ebay claims pretty impressive performance gains over java
13:10 CJ_ So I bookmarked it for when I reach that point. :)
13:10 pdurbin CJ_: ok. I'm here if you have questions or comments
13:10 CJ_ pdurbin, Thanks.
13:11 pdurbin tjsnell: yeah, and walmart is using node for their mobile api: https://github.com/nodeup/transcriptions/blob/master/56-a-team-walmart-show-nodebf.md
13:12 pdurbin "our node proxy servers are sitting between the mobile clients and our legacy Java services"
13:17 neuro_sys node as in nodejs?
13:17 pdurbin yeah
13:18 tjsnell http://blog.appfog.com/node-js-is-taking-over-the-enterprise-whether-you-like-it-or-not/
13:19 neuro_sys I was just considering and reading about that recently, instead of using the nginx as the proxy server.
13:20 neuro_sys "There isn’t a web-driven enterprise in the world that doesn’t already have a handful of solid JavaScript developers around."
13:20 neuro_sys I don't think that is true
13:22 pdurbin why not?
13:23 Bombe node is the best!
13:25 neuro_sys the comment by Steve Perkins is good
13:25 neuro_sys on that article
13:36 neuro_sys "if you do Java the simple and scalable way (e.g., Jetty over Tomcat, Guice over Spring, and no J2EE or JEE stuff), you can get amazing scale with highly productive environment"
13:36 neuro_sys any remarks on that?
13:37 sajjadg joined ##javaee
13:48 pdurbin no more fail whale on twitter since they moved from most ruby to mostly jvm
13:49 tjsnell neuro_sys:  I agree with that
13:50 tjsnell most of the really big volume stuff I've done was sans a javaee container
13:57 sajjadg joined ##javaee
14:25 sajjadg joined ##javaee
14:44 ilhami joined ##javaee
14:44 ilhami Hey
14:45 pdurbin tjsnell: Philip Durbin - Google+ - Java, scaling, enterprise software: a chat from #glassfish … - https://plus.google.com/+PhilipDurbin/posts/BJbWsFuq5J2
14:45 ilhami is glassfish any good?
14:46 pdurbin yes
14:46 ilhami what about WebLogic?
14:46 tjsnell glassfish is abandonware
14:46 tjsnell Weblogic sucks
14:47 ilhami so what's the best server?
14:47 sfisque jboss
14:47 ilhami hmm
14:47 sfisque always has been
14:47 tjsnell WildFly
14:47 ilhami well is there an agreement on that?
14:47 ilhami consensus?
14:47 sfisque yes wildfly now
14:47 sfisque (formerly jboss)
14:47 tjsnell there's never an agreement on anything!
14:48 tjsnell wildfly is the most stupid name ever
14:48 sfisque i cannot agree with that tjsnell
14:48 sfisque :P
14:48 tjsnell I make fun of it to all my redhat friends frequently
14:48 ilhami so it's the dominant opinion only in here?
14:49 sfisque javaeebot lucky enterprise container demographic deployed
14:49 javaeebot sfisque: http://in.linkedin.com/pub/dir/Ganesh/Sivaramalingam
14:49 * sfisque bonks javaeebot
14:49 ilhami I will try JBoss for my next project.
14:49 sfisque javaeebot lucky java ee container statistics deployed production
14:49 javaeebot sfisque: http://java.dzone.com/articles/top-10-causes-java-ee
14:50 AndroidLoverInSF joined ##javaee
14:50 ilhami do you guys know any cheap place where you can get cheap server space?
14:50 tjsnell openshift
14:51 tjsnell heroku
14:51 sfisque my rack :P
14:51 ilhami haha how much?
14:51 ilhami for 20 GB ?
14:52 sfisque 20gb of what?   storage?  throughput?  transactions?  transfers?
14:52 ilhami tjsnell is openshift free?
14:52 ilhami sfisque storage
14:52 tjsnell it ranges from free to $$$$$$
14:52 ilhami they have a nice website though
14:52 sfisque ilhami you're just looking for storage or a server with 20gb of disk space?
14:53 ilhami a server with 20GB disk space to begin with
14:53 ilhami I dont even need 20GB I think
14:53 sfisque depends on distro.  most linux installs nowadways will eat about 10-15 gb
14:53 ilhami do you guys mostly use SQL or NoSQL?
14:54 sfisque havent been on a project that used nosql other than my own hobby proj
14:54 ilhami they say it's scalable
14:54 ilhami :D
14:54 ilhami easily
14:54 ilhami and it's schemaless. I dont know if I like if it's schemaless
14:54 sfisque depends on the problem.  just like any tool, nosql has its place
14:55 sfisque i would say it's good for simple object crud.  i would say it's a bad fit for something that is highly relational (banking, health, retail shopping, etc.)
14:56 tjsnell when you need an alan wrench having a torx handy doesn't help much
14:56 ilhami sfisque would you say it's bad for a ecommerce site?
14:56 sfisque depends
14:57 ilhami we use it for our school project..
14:57 ilhami but we chose it just to learn it
14:57 sfisque it would be good for holding collateral (pics, manuals, non-XT stuff).  not great for managing the TX with realtime inventory control
14:58 sfisque from what i've read and heard, nosql is a great fit for objcts that change in isolation (docs, pics, blobs, etc.) and not so good for objects that change in a highly relational way
14:58 ilhami tjsnell: can I easily integrate a web service with openshift?
14:59 ilhami sfisque you are probably right.
15:01 ilhami is it always better to have a web service than having direct access to a database?
15:01 sfisque depends on the problem
15:03 AndroidLoverInSF joined ##javaee
15:03 ilhami right now I have an android app which is going to speak with a database. I am going to be able to insert some posts and get some posts?
15:04 ilhami I usually use Jersey for web services. I really like it.
15:04 sfisque since you definitely do NOT want a database sitting exposed on the edge of the public cloud, then yes, a conduit of some form (web service, rest api, corba, etc.) should be your arbiter
15:05 ilhami yeah going to use Rest
15:06 ilhami and going to use Wildfly 8 as my server :D
15:06 ilhami is that fine?
15:06 sfisque for something "back office", the choice would be driven by what level of business logic does the app need to impose on it's data requests (can it get by with simple get/puts or does it need to perform complex queries with joins that interlace security or context)
15:06 sfisque that should be fine
15:06 tjsnell ilhami:  will you remove the curse you place on me?
15:07 ilhami tjsnell what curse?
15:07 tjsnell you placed some alah based curse on me
15:08 ilhami why would you care when you don't even believe in it?
15:08 tjsnell it just seems rude
15:08 tjsnell I help you and you curse me
15:08 ilhami if you stop insulting me and my religion I shall stop indeed
15:09 acuzio If i start insulting you and your religion ilhami will you place an Allah based curse on me?
15:09 sfisque ilhami he did ask nicely.  and he's being polite about it
15:10 sfisque regardless of past tension, i'd like to see this channel stay relatively "calm"
15:10 ilhami tjsnell so do you agree to the pact?'
15:11 tjsnell if you stop wishing vile evil on my friends and relatives
15:11 acuzio tjsnell: what about non-vile evil?
15:11 ilhami I don't wish them to be homosexual dude. It's you who are fine with it
15:12 pdurbin tjsnell: can you and ilhami please work out your differences somewhere else. not in this channel
15:12 sfisque yeah.  either agree to disagree simply or carry it out in pm.  good point pdurbin
15:13 ilhami we will make a pact. From now on we won't talk about our personal lives in here and focus mainly on Java.
15:13 ilhami What do you say? Do you agree with me ? yes or no?
15:13 acuzio no
15:13 ilhami so why the objection?
15:14 rwb1 joined ##javaee
15:14 acuzio well cuz
15:14 tjsnell I say if you bring your hatred public I'll confront it head on. If you promise to hide it I won't. I'll be entirely reactionary on the issue.
15:14 sfisque that's a bit heavy handed ilhami.  how about we keep it "socialable" with no politics/religion/etc. unless it's informative
15:14 acuzio define socialable, informative
15:14 * tjsnell hugs ilhami
15:15 tjsnell that's socialable
15:15 acuzio Ok
15:15 acuzio What informative>
15:15 sfisque sociable.   e.g.  "acuzio, how's your day going."  "it's ok, took the kids to an easter egg hunt…"  "oh cool"   (no judgements, mentions religion only in a "information" standpoint" ,etc.)
15:16 sfisque obviously there are grey areas that may get tripped over, but i hope anyone listening can get the "gist"
15:17 ilhami Honestly I come here to learn about Java. You can talk about social stuff if you want.
15:17 sfisque exactly.  that's what i was looking for.  ty ilhami
15:18 ilhami it's your channel anyway so I can't do anything you don't like without being kicked or banned :D
15:18 acuzio How about - "hey, acuzio what you been upto ?" - "just hanging around , watching some hijab porn" - (no judgements, mentions religion only in a "information standpoint" _ - is this ok?
15:18 tjsnell ok, so pretend there isn't evil in the channel, keep it surface and pretend
15:19 ilhami sfisque: you see what he is doing?
15:19 acuzio Who me ?
15:19 ilhami yes you
15:19 acuzio What did i do?
15:19 ilhami you are looking for trouble all the time
15:19 acuzio Nope, i am following the rules as laid down by sfisque .
15:20 acuzio I would like you to point out , how i tripped up on the rules?
15:20 ilhami that is to me insulting that you say hijab porn
15:21 acuzio there is a genre called hijab porn
15:21 acuzio Its informational to allow you to specifically search for it.
15:21 acuzio It is absolutely nothing more than that -
15:22 sfisque geez i go afk for 3 min and this is what i have to return too.
15:22 tjsnell ilhami:  it's insulting to me when you express your views on gays
15:22 tjsnell sfisque:  you should know better than to go afk
15:22 sfisque rofl
15:22 sfisque i know
15:22 sfisque i forget
15:22 Bombe sfisque, you also should know better than to return.
15:22 * sfisque sighs
15:22 sajjadg joined ##javaee
15:22 sfisque ROFLCOPTOR
15:23 acuzio BTW ilhami you should know that i have nothing pro or against your religion - I am just asking the question following the rules as laid down by sfisque
15:23 sfisque it is true
15:23 * sfisque mixes up a cosmo and wanders over to the couch to relax
15:23 acuzio In fact , i also have nothing pro or against gays - but if you say, gays should be killed , then thats insulting to me - I have very close gay friends and i will fight for them
15:24 acuzio cosmo - light weight
15:24 ilhami why would you fight for them?
15:24 tjsnell why wouldn't we?
15:24 tjsnell they are humans
15:24 tjsnell and deserve to be treated with dignity
15:25 ilhami you should instead ask them to become straight again and find out why they turned gays
15:25 sfisque ilhami that's over the line
15:25 neuro_sys I like gays more than muslims xD
15:25 tjsnell why? I don't have any issue with them being gay
15:25 tjsnell why would I ask them to change
15:25 sfisque there is more than enough scientific evidence that sexual orientation is part of the genetic profile and not environmental
15:26 tjsnell God made them that way
15:26 tjsnell who am I to question our creator
15:26 sfisque as a gender queer member of this channel, i would hope that the scientific understanding in here would know that
15:26 ilhami no he didn't. They have a free will
15:26 ilhami they chose it themselves
15:27 Bombe ilhami, so why don’t you stop being an idiot?
15:27 Bombe I mean, you chose that, too, right?
15:27 sfisque we didnt choose our orientation anymore than you chose yours
15:28 tjsnell even if it is a choice, it's theirs and saying it's a choice worthy of death is crazy
15:28 acuzio I just had a brainwave - what if God is gay ?
15:28 sfisque the only choice is to embrace what you are or to deny it.  but you cannot change the template
15:29 sfisque without hormonal treatment and surgery
15:29 sfisque but even that is only superficial and not really going to change your orientation
15:29 ilhami left ##javaee
15:29 acuzio sfisque: I dont know how to say this - so i will just say it - Those 3 sentences are the most intelligent sentences spoken on this channel. Thank you.
15:31 sfisque :
15:31 sfisque D
15:31 sfisque :D
15:33 tjsnell those 3 weren't :)
15:34 neuro_sys those 3 were the epitome of humility
15:34 neuro_sys xD
15:34 tjsnell at least he quit instead going on his rant about how all gays and adulterers should be put to death
15:35 neuro_sys yeah, because the world view so fundamentally differs in a low and axiomatic level that it's haplessly impossible for both parties to ever agree.
15:36 acuzio neuro_sys: exactly - so pretending that we have someone here who is going to be reasonable is simply absurd
15:42 sfisque aye
15:50 firebird1 joined ##javaee
16:13 firebird1 jejody
16:21 PeterMetz joined ##javaee
16:34 aspire joined ##javaee
16:41 semiosis oops wrong channel
16:41 semiosis left ##javaee
16:51 firebird1 lo
17:16 sajjadg joined ##javaee
17:24 rwb joined ##javaee
17:27 rwb1 joined ##javaee
17:34 rwb joined ##javaee
17:35 rwb1 joined ##javaee
17:36 rwb joined ##javaee
17:36 rwb1 joined ##javaee
17:41 sheenobu joined ##javaee
18:02 AndroidLoverInSF joined ##javaee
18:18 PeterMetz joined ##javaee
18:21 Naros left ##javaee
18:26 Voyage joined ##javaee
18:27 firebird1 doing regex pattern for email is bit hard
18:31 ramsrib joined ##javaee
18:31 Bombe .*@.*
18:31 Bombe Done.
18:31 tjsnell regex for email is nearly impossible
18:31 whartung "now you have two problems"
18:33 sfisque firebird1 it's built into the jdk.
18:34 sfisque instantiate an InternetAddress object with the string addr.  if it succeeds, it's good.  if you get an exception you know it's garbage
18:34 AndroidLoverInSF joined ##javaee
18:34 sfisque javax.mail.internet
18:35 sfisque it really is impressive what the platform gives us, if you know what's there under the hood
18:37 sfisque if you need strict rfc format, you can use the constructor that has the "strict" boolean flag
18:38 Voyage tjsnell,  firebird1  we can get close for that regex but not 100% accurate
18:38 sfisque voyage he doesnt need a regex.  no need to reinvent the square wheel
18:39 tjsnell exactly
18:39 tjsnell a reasonably good email regex is crazy scary
18:39 Voyage sfisque,  he doesnt? how?
18:39 sfisque scroll up
18:39 sfisque InternetAddress
18:39 sfisque in the javax.mail package
18:39 Voyage if he needs to recognise emails. what is the way?
18:40 sfisque instantiate InternetAddress.  success == good, excpetion == bad
18:40 sfisque it throws an exception if the parse fails
18:40 Voyage so emails can be checked through InternetAddress?
18:40 sfisque yes
18:40 Voyage what is that doing behind the seens?
18:41 Voyage obviously doing some regex?
18:41 sfisque last gig, i traipsed across an object that someone wrote to do this.  i ripped it out and replaced it with 1 line of code
18:41 Voyage so?
18:41 sfisque i'm sure it's doing a number of things voyage.  the point is, it's already written and tested since j1.3 (over a decade)
18:41 sfisque why write what the platform gives you for free and does the job well
18:41 Voyage so?hm
18:42 Voyage ya
18:42 sfisque that's like saying I"m going to write my own HashMap, because "F" sun
18:42 Voyage sorry for duplicate "so"
18:42 * sfisque nods
18:42 Voyage ya, but just asked out of curiousity, what might it had been using. (I will look it up)
18:43 sfisque i never looked under its hood because it never performed aberrantly for me
18:43 sfisque i'm sure one day i will look
18:46 firebird1 <sfisque> i first did InternetAddress my client wants front end validation thru JS
18:46 sfisque ajax
18:47 sfisque why have 2 impls for the same validation
18:47 sfisque impl it on the server, re-expose it via ajax to the client js layer
18:48 firebird1 errrr no ajax pure client side at first
18:49 sfisque javaeebot lucky javascript rfc 822 format validate
18:49 javaeebot sfisque: http://badsyntax.co/post/javascript-email-validation-rfc822
18:50 sfisque solved problem.  leverage an existing solution
18:51 sfisque unless this is a "learning experience".  then by all means, have at it :-D
19:05 sajjadg joined ##javaee
21:06 kotten_ joined ##javaee
21:07 SoniEx2 joined ##javaee
21:07 SoniEx2 uhh meh screw it
21:08 SoniEx2 I need a LinkedArrayDequeList or something

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