greptilian logo

IRC log for #javaee, 2013-11-09

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
03:42 sajjadg joined ##javaee
05:05 kobain joined ##javaee
05:05 cem_ joined ##javaee
05:06 cem_ how to do this captcha ?
05:06 cem_ http://1.bp.blogspot.com/_h_dzd_7Fm4o/TRvJTcPGqhI/AAAAAAAAARg/Xm0FUOs2fJk/s1600/captcha-ejemplo.jpg
05:31 sfisque joined ##javaee
05:40 cem_ some sites keep track of us like gues id why they do it
05:55 sfisque1 joined ##javaee
05:56 cem_ ??
06:16 sajjadg joined ##javaee
06:23 cem_ joined ##javaee
06:25 cem_ konich wa
06:25 sfisque1 ni hao
06:25 cem_ why site keeps track like some sites gives a id for us
06:25 sfisque1 websites?
06:26 cem_ yes sfisque1  san
06:26 cem_ they give id
06:26 sfisque because http is a stateless protocol by specification.  having a "session id" allows state to be maintained (session)
06:26 cem_ this is how it looks
06:27 sfisque without some form of session id, you lose things like shopping carts
06:27 cem_ guest_id=v1%3A138397580372041932; expires=Mon, 09 Nov 2015 05:43:16 GMT; path=/; domain=.facebook
06:27 sfisque ah, yes a cookie
06:27 sfisque that allows the server to maintain your "session" without you needing to keep re-authenticating with every request.  http by spec has no session support
06:28 cem_ so they keep tracking us even before we login
06:28 sfisque so frameworks like servlets fake it with session id's (either via url-rewriting or cookies)
06:28 sfisque yes
06:28 sfisque the moment you hit a site that uses some form of session based framework (like servlets) you are being tracked by IP address
06:29 sfisque otherwise the user experience would degrade to completely statless
06:29 sfisque *** stateless
06:33 cem_ oh! so like facebook they keep tracking my lang is jp like that
06:33 sfisque exactly.   you lose the session token, you lose the ability to manage that kind of preference
06:34 tommmied joined ##javaee
06:34 sfisque the http protocol was designed for sharing scientific papers, not ecommerce.  so over the years, various frameworks have had to "be creative", either using url-rewriting, cookies, or other tricks to maintain stateful connections
06:36 cem_ sfisque: this the protocol used by java ee right
06:36 cem_ i mean to say most people use this
06:37 sfisque one of them.   EE platform talks many tcp/ip protocols.   http, corba, rmi, jms, ldap, proprietary database protocols via jdbc drivers, etc.
06:38 sfisque i would say the largest set of protocols used in EE are http (including rest and soap), database protocols, jms, and rmi (transparently via remote ejbs, corba, etc.)
06:41 cem_ so each protocol differ from 1 another
06:42 cem_ i'm asking since they doing same task
06:43 sfisque what's doing the same task?
06:44 cem_ request / response
06:44 cem_ http. rmi
06:44 sfisque negative.  some are synchronous (http, database) some are asynchronous (jms)
06:45 sfisque some are binary protocols (rmi, database), some are plain-text-ish (http)
06:54 cem_ i got the pick thanks sfisque san
06:54 sfisque npnp enjoy
06:56 semiosis sfisque: g'evening
06:58 * sfisque waves to semiosis
06:58 semiosis question for you....
06:59 semiosis how can I use spring/hibernate/hsql in a desktop app where I dont know the url (file path) of the database until i get some user input?
07:00 semiosis all the db backed java apps I've worked on so far connect to a db over a network & have the url in xml at compile time
07:00 sfisque you can bootstrap hibernate programmatically
07:00 sfisque you dont HAVE to use the xml configs.  you can build the config at runtime and bootstrap from there
07:00 semiosis would you happen to have any links or pointers to relevant docs?
07:01 sfisque javaeebot lucky hibernate programmatically bootstrap -xml
07:01 javaeebot sfisque: https://forum.hibernate.org/viewtopic.php?f=26&t=1012010
07:02 sfisque hrm that link doesnt answer the question.  one sec
07:02 semiosis yeah i can google too :)
07:03 semiosis have you ever done this kinda thing?
07:03 sfisque i've not done it. but keep in mind, all that xml configuration is read in to some factory that bootstraps the environment.  all you need to do is check the docs/javadocs and look at how to build a configurataion by using the getter/setters
07:03 sfisque http://docs.jboss.org/hibernate/entitymanager/3.6/reference/en/html/configuration.html#setup-configuration-bootstrapping
07:04 semiosis indeed.  the docs on this are very spare, a sentence or two about setting up a test config.  i'll probably end up reading source code :)
07:04 sfisque sometimes thats what it takes.  i had to cruise through the camel code in order to remove it from our build
07:04 semiosis thx for that link.  i've been reading spring docs, not hibernate.  maybe i need to go deeper
07:05 sfisque well once you see how hibernate does it, you can probably craft a custom spring bean around it and wire it up
07:05 semiosis good idea
07:06 semiosis i have a desktop app that watches a dir for files & uploads them to my api.  need to persist user input assoc. with each upload, in case user is offline while using app & wants to upload later
07:06 semiosis currently all that info is in memory, if user quits/shuts down, all is lost
07:07 semiosis if you have any other ideas for solutions, i'd love to hear em
07:08 semiosis i'm thinking store an hsqldb in a file in the dir being watched
07:14 semiosis oh well, it's late.  i'll ask again at a sane time
09:53 gltanguyinmd joined ##javaee
10:36 mask joined ##javaee
10:38 mask I'm having somes issues with sending a POST-request to a REST-service, and make the request create a Java object for me. I use Jersey. Has anybody here used that before?
10:38 mask Here's the tiny piece of code I want executed on request: http://pastebin.com/cP6P5bUu
10:38 mask I thought that should work... :S
11:14 mask joined ##javaee
11:19 sajjadg joined ##javaee
12:25 mask left ##javaee
13:09 Losowski joined ##javaee
13:15 cem_ joined ##javaee
13:17 Losowski left ##javaee
14:06 MegaMatt joined ##javaee
14:12 prakhar joined ##javaee
14:13 cem_ joined ##javaee
14:17 pdurbin "JSF 2.0/JSP, enterprise beans 3.1, JPA, and stuff so horrible I don't want to remember it." -- http://irclogger.com/.lift/2013-11-09#1384002084
14:22 zoot hehe
14:28 cem_ hi pdurbin
14:31 pdurbin :)
14:31 pdurbin cem_: hi
14:33 sajjadg joined ##javaee
14:34 cem_ in sqlite there is no right join and they use left join for that
14:35 cem_ i dont know why they did that
14:52 pdurbin really? no right join?
14:53 cem_ yes no right nor full join
15:18 pdurbin javaeebot: lucky sqlite join documentation
15:18 javaeebot pdurbin: http://www.sqlite.org/optoverview.html
15:24 pdurbin ah. SQL Features That SQLite Does Not Implement - http://www.sqlite.org/omitted.html
15:24 pdurbin "RIGHT and FULL OUTER JOIN"
15:24 pdurbin interesting
16:18 pdurbin_m joined ##javaee
16:19 pdurbin_m cem_: more accurate to say a right outer join is not supported
16:19 cem_ yes
16:19 pdurbin_m cem_: have you seen this? http://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins
16:21 pdurbin_m 21 +1's at https://plus.google.com/107770072576338242009/posts/a5n8E9bZ52H :)
16:58 prakhar joined ##javaee
17:14 * cem_ greets prakhar
17:15 prakhar__ joined ##javaee
17:19 sajjadg brackets.io
17:19 sajjadg just check it out :)
17:20 sajjadg it has a live mode...
17:20 sajjadg wow
17:25 pdurbin sajjadg: I was just looking at https://github.com/adobe/brackets yesterday, mostly because they use Trello: https://trello.com/b/LCDud1Nd/brackets
17:26 sajjadg pdurbin, what do you think about bracket? have you used it?
17:27 pdurbin nope
17:34 sajjadg pdurbin, do you use trello? it's seems to be a scrum tool. interesting.
17:36 pdurbin sajjadg: we're looking at it. I was reminded about it at http://5by5.tv/inbeta/72
17:37 sajjadg I was using icescrum before...it's nice...
17:38 pdurbin javaeebot: lucky icescrum
17:38 javaeebot pdurbin: http://www.icescrum.org/en/
17:39 pdurbin "free and open source" ... that's always a good start :)
17:39 sajjadg yeah
17:40 pdurbin we might start with Trello as place to put UI/UX ideas
17:40 sajjadg but lately because I don't have a server I'm just using bitbucket issue tracker which is very bad
17:40 sajjadg UI/UX?
17:41 sajjadg what's taht?
17:45 sajjadg 5by5.tv uses flash player? I can't see a video in it!
17:48 pdurbin user interface
17:48 pdurbin user experience
17:48 pdurbin front end design, basically
17:49 pdurbin sajjadg: they have video? I just listen to the audio versions
17:49 pdurbin sajjadg: is icescrum easy to set up and run?
17:50 sajjadg pdurbin, super easy
17:50 sajjadg there's a tomcat bundle. just run a start script and have fun
17:50 sajjadg the UI is good
17:52 sajjadg pdurbin, how big is your team?
17:55 pdurbin sajjadg: depends on how you count... for code: https://github.com/IQSS/dvn/graphs/contributors ... but we're part of a larger group: http://www.iq.harvard.edu/people/filter_by/staff/data-science
18:04 sajjadg pdurbin, interesting project. you work in harvard or study?
18:05 pdurbin work
18:05 pdurbin sajjadg: not smart enough to study there :)
18:05 sajjadg :)
18:06 pdurbin I have taken classes at the "extension" school. only $40 for staff members
18:06 sajjadg why not. I'm checking your profile in internet and you are smart
18:06 sajjadg cool
18:06 sajjadg 40$ is nothing
18:08 sajjadg javaeebot, g pdurbin
18:08 javaeebot sajjadg: Error: "g" is not a valid command.
18:08 sajjadg javaeebot, lucky pdurbin
18:08 javaeebot sajjadg: https://github.com/pdurbin
18:08 sajjadg javaeebot, lucky philip durbin
18:08 javaeebot sajjadg: http://www.iq.harvard.edu/people/philip-durbin
18:08 sajjadg :)
18:10 sajjadg pdurbin, I like to continue studying till PhD. I like teaching at university so much. but at the same time I can't go to a normal university! I have dumb teachers!
18:12 pdurbin sajjadg: have you thought of taking advantage of free online courses?
18:13 cem_ time to learn unix :) all
18:14 sajjadg pdurbin, yes. they are fantastic. but in my society it'll take a long time to accept these things. and I like to teach at univeristies. and that requires a PhD from a good university
18:14 sajjadg cem_, unix? all of them?
18:15 cem_ sajjadg: what i'm noob not all hahaha
18:15 sajjadg cem_, I suggest you to learn for LPIC1
18:15 sajjadg and get one if you like
18:16 sajjadg it will enrich your resume
18:19 pdurbin sajjadg: oh sure, if you want to teach, you'll need a PhD
18:19 pdurbin javaeebot: lucky LPIC1
18:19 javaeebot pdurbin: http://www.lpi.org/linux-certifications/programs/lpic-1
18:20 pdurbin cem_: for unix questions you could try #crimsonfu
18:20 pdurbin javaeebot: lucky crimsonfu
18:20 javaeebot pdurbin: http://crimsonfu.github.io/
18:20 sfisque u can teach at a uni with a BA/S, but you have to be IN a M/Phd program and earn a TA-ship
18:20 cem_ pdurbin: i got a book unix for newbie :)
18:21 sajjadg sfisque, yeah. currently I am a BSc. I should try to apply and get a scholarship first...
18:29 pdurbin sajjadg: what do you want to teach? algorithms? operating systems?
18:30 sajjadg pdurbin, I like OS, Network, Programming and also Security
18:31 sajjadg I'm kinda good at all of them... :P
18:31 sajjadg compare to my little society here...
18:32 sajjadg here we don't have CS professionals that knows about Science behind CS concepts and techs...
18:32 sajjadg I also challenged teachers at univ. they were fossils...
18:33 sajjadg I got tired of struggling with them...they just teach crap in school here...
18:34 sajjadg I want to become a teacher and help out poor student that come to university with lots of hope and want to learn something useful
18:34 sajjadg not wasting their time
18:35 sajjadg in programming non of them had exprience of development in a team. non were update...
18:36 sajjadg in Network class I taught Linux in the second half of semester and got 20/20
18:37 pdurbin does 20/20 mean all 20 students liked the class?
18:37 sajjadg in OS the I took the OS class 4 time and left the class because the teacher was stupid
18:37 sajjadg pdurbin, no that was my final score 20 out of 20
18:38 zoot i got 100 of 100
18:38 sajjadg I got 20/20 in OS too
18:38 zoot none of students liked it
18:38 sajjadg zoot, yeah. they become jealous :)
18:39 sajjadg after all I was a TA from the beginneing of Univ!
18:39 sajjadg I always had a class
18:39 sajjadg programming, Linux, etc.
18:41 sajjadg I also formed a LUG in there... kulug.ir
18:41 sajjadg but I left univ. had an accident and couldn't continue (was going to apply for US or CA)
18:42 sajjadg and now I'm stuck in here and have to do some service to military ... 2 years
18:43 sajjadg who knows what happens to the world after 2 years
18:44 zoot military service in iran?
18:44 sajjadg maybe there be no US in 2 years! did you heard about the separation of states?
18:44 sajjadg zoot, yeah. it's mandatory for all mans
18:47 pdurbin sajjadg: will they let you use IRC when you're in the service?
18:48 zoot at war*
18:48 sajjadg pdurbin, I don't know. I depends on where I should do my service
18:48 sajjadg zoot, :D
18:49 sajjadg no there is no war :D
18:49 sajjadg not yet
18:49 * sajjadg is against war. and who triggers them
18:50 zoot not even with the kurds?
18:50 sajjadg zoot, what? we don't have problem with them!
18:51 sajjadg pdurbin, there's a chance that I go to service at 7AM and come back at 2PM and have the evening for myself
18:51 zoot http://en.wikipedia.org/wiki/Rebellions_in_Iranian_Kurdistan
18:51 sajjadg in that case I can do lots of things
18:55 sajjadg zoot, there was a big conflict once long ago about 30 years before but after that it's just some little issues and not big one...
18:55 zoot yep so it seems
18:55 sajjadg zoot, maybe some news agencies that are against Iran are making big thing out of them but that;s propaganda...
18:56 sajjadg Iran is like other country...have lots of problem...and with so much enemy it has more problem than others...
18:57 sajjadg some Pakistanian terrorist killed 15 soldier near a week ago...
18:57 zoot our main problem i norway, is to much oil and no kebab
18:57 sajjadg kebab is a Farsi word :D
18:57 zoot what sort of kebab is that?
18:58 zoot i like döner kebab
18:58 sajjadg also sistani terrorist terrorized a lawyer in sistan
18:58 sajjadg zoot, I think that's it...
18:58 sajjadg brb
19:02 zoot time for dinner, tikki masala!
19:20 pdurbin we just had mussels. yum!
19:21 * sajjadg is a veg
19:28 sajjadg night guys. had a good time here. God Bless you all.
19:32 pdurbin sajjadg: take care. I was just going to mention...
19:32 pdurbin sajjadg: I heard about your country (sometimes) by following this guy (who's great): https://plus.google.com/+NaveedM/about
19:32 pdurbin s/heard/hear/
19:33 sajjadg pdurbin, I check him...and tell you about his tendency
19:34 pdurbin :)
19:34 sajjadg ;)
19:34 sajjadg take care guys
20:20 cem_ pdurbin: before i start with javaee what all i need to know ?
20:20 pdurbin cem_: have you used tomcat much?
20:21 cem_ i have no idea on tomcat :)
20:21 pdurbin cem_: play with tomcat first :)
20:21 cem_ hmmm
20:33 pdurbin zoot: "100/100" :)
20:48 balo https://blogs.oracle.com/brunoborges/entry/6_facts_about_glassfish_announcement
20:51 pdurbin balo: yeah, I had never looked at the pricing for WebLogic... or any commercial Java EE server
20:54 balo me neither. but i didn't believe in oracle before and never will be. i have bad experiences with the support and their "experts".
20:55 zoot i have
20:55 zoot you pay by cpu
20:55 zoot :D
20:55 sess thats pretty standard
20:55 zoot i have work with wls for the last 4 years
20:55 pdurbin bad support? yeah. lots of companies offer mediocre support
20:56 zoot well
20:56 sess when there are OS alternatives, the support has to be good
20:56 zoot i have gotten a few patches
20:56 zoot but we pay a lot of cash for the support
20:57 zoot every ticket you file has to contain the amount of money you lose because of a bug
20:57 pdurbin zoot: and the support is good?
20:58 zoot it's ok, but i find it a bit silly
20:58 zoot a lot of speaking of the phone
20:59 zoot but a have never gotten a ticked escalated above level 2
21:01 zoot mostly since i havnt gotten any prodution problems
21:05 pdurbin ##javaee is my technical support :)
21:06 balo i don't know, we have prod issues, and the guy just commented on the issue he will go to a vacation so wait until he's back. :D
21:07 pdurbin :)
21:07 balo maybe just the opensso support...
21:08 pdurbin huh. I thought OpenSSO became OpenA<
21:09 pdurbin OpenAM*
21:09 balo oracle have to support it until 2014
21:10 pdurbin big party coming up for them? ;)
21:11 balo sorry, until end of 2014 :b
21:14 pdurbin balo: ah. well, I hope they invite you :)
21:15 balo anyway, i will send them a forgerock cake :D
21:16 pdurbin :)
21:40 kobain joined ##javaee
22:01 MegaMatt joined ##javaee
22:03 Quest joined ##javaee
23:01 newguy joined ##javaee
23:02 newguy Hi,  in python I can write print('-')*40 ; is there a comparable way to do this in java?
23:02 zoot no
23:02 zoot maybe in scala
23:02 newguy so I have type '-' 40 times?
23:03 zoot no
23:03 zoot use a normal for-loop
23:03 newguy whoa
23:03 zoot for(int i=0; i<40; i++) {...}
23:03 SoniEx2 or use LuaJ
23:04 newguy I am trying to learn the Java way of doing things
23:04 SoniEx2 return ("-"):rep(40);
23:04 SoniEx2 which translates to a for loop (I think)
23:04 newguy SoniEx2, will that work with System.out.println ?
23:05 SoniEx2 newguy: well it requires another programming language...
23:05 SoniEx2 http://sourceforge.net/projects/luaj/
23:05 SoniEx2 http://www.lua.org/
23:05 SoniEx2 anyway
23:05 SoniEx2 the Java way to do it is a for loop
23:05 newguy Does luaj compile to jvm bytecode or get interpreted like jython?
23:05 SoniEx2 because String doesn't have .repeat()
23:06 SoniEx2 eh... I'm not sure... I don't think so...
23:06 SoniEx2 I mean you can
23:06 SoniEx2 but I think it's interpreted
23:06 SoniEx2 well you can compile to Java source
23:07 SoniEx2 anyway
23:07 SoniEx2 just do for loops
23:07 SoniEx2 or use ASM
23:07 SoniEx2 http://asm.ow2.org/
23:07 SoniEx2 it's like hex-editing a class file
23:08 SoniEx2 but in Java
23:11 SoniEx2 (actually it's easier than hex-editing a class file... in hex you don't have pretty names for the jvm instructions... only a ton of hexadecimal...)
23:14 newguy why does this not compile? http://hastebin.com/radorecuko.vala
23:15 newguy this is the error: http://hastebin.com/wajuhoyeju.m
23:18 newguy got it, cas sensitive
23:19 SoniEx2 no
23:19 SoniEx2 rename your file to "LetterToMySelf.java"
23:19 newguy got that
23:19 SoniEx2 oh wait
23:19 newguy case sensitivity between the source name and the class name
23:19 SoniEx2 yeah that
23:19 newguy very new to the rules of the road with Java
23:20 SoniEx2 didn't pay attention to the file name on the error :3

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