greptilian logo

IRC log for #javaee, 2013-11-22

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:58 MegaMatt joined ##javaee
01:19 sfisque joined ##javaee
01:21 sfisque1 joined ##javaee
03:59 jaip joined ##javaee
04:03 Dev_ryanrr joined ##javaee
04:08 Dev_ryanrr joined ##javaee
04:28 cem_ joined ##javaee
04:40 cem_ just went thru open source projects couldnt get a head around these :(
06:45 sajjadg joined ##javaee
07:46 weyer joined ##javaee
08:04 rsiska joined ##javaee
08:21 MiteMitreski joined ##javaee
08:26 neuro_sys joined ##javaee
10:08 sross07 joined ##javaee
10:08 whartung_ joined ##javaee
10:30 SLovenberg joined ##javaee
10:59 drspockbr joined ##javaee
11:12 SLovenberg joined ##javaee
11:21 acuzio neuro_sys: angularjs is very good - just bear in mind that you need to know "some" javascript for it
11:23 neuro_sys I do know some javascript, I'll certainly check it for this project at some point
11:41 SLovenberg joined ##javaee
11:48 SLovenberg joined ##javaee
12:04 MegaMatt joined ##javaee
12:43 SLovenberg joined ##javaee
13:17 sajjadg joined ##javaee
13:24 mite_mitreski joined ##javaee
14:22 SLovenberg joined ##javaee
14:34 mite_mitreski joined ##javaee
15:40 weyer joined ##javaee
15:58 jaip joined ##javaee
16:05 weyer joined ##javaee
16:13 cem_ joined ##javaee
16:15 Naros joined ##javaee
16:27 Guest20878 joined ##javaee
16:41 sajjadg joined ##javaee
16:50 Guest20878 ing spring controller . if  a user was on url.com/first/page and clicked a link or submitited a form pointing to  say url.com/second/page  . How to make the second/page know the url of /first/page so that the second/page can 1) redirect the user to the first/page again when the form values are processed. 2) or show a back button link to the /first/page?
16:54 whartung joined ##javaee
16:54 sfisque store a stack or list in the session object and push/pop values as they navigate around
16:54 cem_ Guest20878: hmmm how about you look at request ?
16:55 whartung you'd have to look at the referrer
16:55 cem_ Referrer i dont like them
16:56 cem_ Referer*
16:56 Guest20878 whartung,  referrer?
16:57 Guest20878 cem_,  request. ?
16:57 Guest20878 cem_,  request.get(?) ?
16:57 cem_ Guest20878: haha just look at the request header man
16:57 whartung the browsers fill out the Referer (yes, it is misspelled by spec) header which is the URL that the current request came from
16:58 cem_ in your case request.getHeader('Referer')
16:59 Guest20878 cem_,  whartung  is it confirmed and assured that every browser sends a request with putting referer link in that request?
16:59 whartung "every" is a big word
17:00 whartung the major ones do it
17:00 cem_ Guest20878: guess you know it
17:00 Guest20878 whartung,  isnt there a spring mvc way to do that to be sure
17:00 cem_ your asking to confirm i guess
17:00 whartung Spring MVC can't alter browser behavior Guest20878
17:01 Guest20878 no I mean in application wide. some how passing the url from one link to another
17:01 Guest20878 from one page to another
17:01 sfisque i explained a common way to do it above
17:01 whartung We use it to help thwart cross site scripting attacks, ensure that our deeper links come from our own pages.
17:01 whartung I don't know anything about Spring MVC
17:01 Guest20878 hm
17:01 sfisque javaeebot java servlets bread crumb trail
17:02 javaeebot sfisque: Error: "java" is not a valid command.
17:02 cem_ sfisque: :D
17:02 sfisque javaeebot lucky java servlets bread crumb trail
17:02 javaeebot sfisque: http://www.coderanch.com/t/561895/Servlets/java/Navigational-Handler-Servlet-JSP
17:02 whartung And that's HOW IT SHOULD BE sfisque !
17:02 jaip joined ##javaee
17:03 cem_ its called bread crumb trail ?
17:03 whartung like hansel and grettel
17:03 sfisque yes
17:03 sfisque or a scarf thread, for die hard dr. who fans
17:05 Guest20878 request.getAttribute("javax.s​ervlet.forward.request_uri")   is a way too I gues
17:06 cem_ Guest20878: dont ask go an do
17:06 * Guest20878 needs an application wide way. not based on browser mercy
17:07 lv2eof joined ##javaee
17:08 Guest20878 one way is to catch each page on its visit by request.getSession. page context or something and put it in a session attribute.  the next pages sees that . and so on
17:08 Guest20878 cem_,  whartung ^
17:08 sfisque gee, that sounds familiar
17:08 Guest20878 that was just an idea that came to my mind
17:08 * sfisque sighs
17:08 * cem_ Quest san
17:08 Guest20878 san?
17:09 cem_ leave it , san is like mr
17:09 Guest20878 hm
17:09 Guest20878 so its sane approach i guess?
17:12 whartung sane as any. really depends on the use case.
17:12 Guest20878 k
17:28 SLovenberg joined ##javaee
17:32 jaip joined ##javaee
17:35 cem_ google has done a game today #DrWhoDoodle
17:36 sfisque i believe it went live yesterday
17:39 cem_ sfisque: played the game ?
17:39 sfisque no.  but some friends mentioned playing it on fb yesterday
17:54 SLovenberg joined ##javaee
17:55 jaip joined ##javaee
17:58 cem_ my twitter account at last deleted :)
17:59 cem_ naaa , just put the password and account name online with 3K followers :)
17:59 whartung heh -- tweet your password … win
18:02 cem_ i changed my password before that and email to public domain mail
18:16 Guest20878 request.getRequestURL().toString(); will show theCompleteSiteAddress.com/section/page/bla       but what If i only want to get  the /section/pagge/bla  ?
18:18 MegaMatt joined ##javaee
18:20 cem_ Guest20878: seriously ?
18:21 Guest20878 ya
18:22 Guest20878 substring after "/"?
18:23 cem_ javaeebot: lucky HttpServletRequest
18:23 javaeebot cem_: http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html
18:24 Guest20878 ya. I found no way
18:24 cem_ please look at uri
18:26 jaip joined ##javaee
18:53 neuro_sys joined ##javaee
18:54 SLovenberg joined ##javaee
18:58 Guest20878 there might be many ways to get the   "/boards/3" part of a String   "/ttmaven/boards/3"  . what is the best and short?
19:00 Radon_3 joined ##javaee
19:00 Radon_3 Hi everyone, can I ask a question about java (jar) games?
19:03 Guest20878 String[] uri =  "/ttmaven/boards/3".split("/");        String requestUrl="/"+uri[1]+"/"+uri[2] ;   ?
19:03 Guest20878 Radon_3,  what question?
19:04 Radon_3 I am playing a java game on my N73 (don't laugh please), and I like it a lot. It is the java version of
19:05 Radon_3 World at arms. There is one problem and that being the fact that it gives very little amount of start up money, and also to get more money some times you have to actually wait for 24 (actual) hours.
19:06 Radon_3 There is a hack for this problem available for android version of the game
19:06 Radon_3 but I can't find a way or some cheat for the java version on Google
19:07 Radon_3 now, is there a way so I can alter the JAR file of the game using some tool, so I can either get more money, or enter the game with a huge ammount of start up money?
19:07 Guest20878 this is a java coding channel. not game warez cheats.       cheats have nothing to do with coding directly
19:07 Radon_3 Yes I know
19:07 Guest20878 the true way is to decompile the game code. see it. hack it.
19:07 Guest20878 and that requires a lot of time and skills
19:08 Guest20878 Radon_3,  if you have the .java files in that jar. yes
19:08 Guest20878 but I doubt that
19:08 Guest20878 you would be having .class files. those are hard to convert to real .java files
19:08 whartung jars might be signed Radon_3, which would also frustrate the issue
19:09 whartung not really Guest20878
19:09 Guest20878 real == with variables, (the code that was originall written )
19:09 whartung decompiling java is easy, unless they used an obfuscator
19:09 Guest20878 yes. signing makes it more difficult
19:09 whartung it's compilable code, if it was plain java, it likely would not be that difficult
19:09 Radon_3 There seems to be no decompiler available on the Internet at all. Even if there is some decompiler available  highly doubt it could give me the original source, and even if it does get decompiled, then after I alter the code I am sure I won't be abale to compile it to the way it is in the first place
19:09 Guest20878 whartung, ........  you wil get garbage code even you do decompile it. it wont be a usable code. no variable names. no comments. etc
19:10 Radon_3 I mean if I decompile my JAR file, I wouldn't be able to compile it again
19:10 Guest20878 whartung,  it may require about 30% of time to hack the code than to recode it from scratch
19:11 whartung of course it's usable code -- it'll compile back in to what it decompiled out of. Yea, the variable may not be as well labeled as you would like, that doesn't make it impenetrable. For example when you see "public int getinitialMoney() { return a1;} take a wild guess at what the variable a1 is
19:11 Guest20878 Radon_3,  non tech persons cant decompile and hack
19:11 Guest20878 hm
19:12 Guest20878 android jars are usually obfuscated
19:12 whartung but I already mentioned that as well
19:12 Radon_3 I am not going to hack anything, I just want to enjoy my game. Also the version of the game I am using is not an Android jar, it is for Nokia phones
19:13 Radon_3 Cause there is a 'money increase' hack available for Android version of the game ;(
19:17 Dev_ryanrr joined ##javaee
19:23 cem_ dont like #java channel more often need to authenticate :(
19:47 cem_ k after dinner ill join
19:47 cem_ left ##javaee
19:51 SLovenberg joined ##javaee
19:56 cem_ joined ##javaee
20:03 Radon_3 left ##javaee
20:14 SLovenberg joined ##javaee
20:32 semiosis one neat thing about java, is that you can decompile, edit, and recompile a single class file and just replace that in the jar
20:32 semiosis you dont need to recompile the entire app, only classes you've modified
20:32 semiosis which helps to manage the complexity of the task
20:34 semiosis must have been 10 years ago already that I reverse engineered this chess game & converted it to play chess960... http://www.turbulence.org/spotlight/thinking/chess.html
20:34 semiosis wish i still had that project :(
20:37 cem_ nice
20:38 cem_ 100+kudos
20:50 SLovenberg joined ##javaee
21:26 cem_ i just saw current champion is magnus carlsen  23
22:38 cem_ chess is boring game :/
23:15 pdurbin semiosis: yeah, that's how you can combine, say, groovy and scala... by calling into thier class files
23:21 jaip joined ##javaee
23:29 pdurbin their*
23:33 semiosis indeed
23:56 bluemd joined ##javaee
23:59 bluemd Hi there. I'm curious about comments in JSON as parsed by JSON4J. Anyone have experience with that jar?

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