Page 1 of 2 12 LastLast
Results 1 to 20 of 23
  1. #1
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Need Help - I am not even a beginner in Java :(

    Hi ,

    Firstly I am at stage 0 in java. Well I have never been into any programming, but it seems like I need a little help to solve a task. I have been given a code and asked to incorporate it to fix an error.

    here's the code -

    4a5
    > import java.net.*;
    225c226,227
    < String file = fileElem.getAttribute("URI");
    ---
    > String file = URLDecoder.decode(fileElem.getAttribute("URI"), "UTF-8");
    > log.info(file);
    486c488
    < String file = fileElem.getAttribute("URI");
    ---
    > String file = URLDecoder.decode(fileElem.getAttribute("URI"), "UTF-8");


    It is a simple URL encoding issue which could be fixed by incorporating this code. But I am too dumb that I don't even know how to do it!
    Well there is a program used to decode files, But it has got simple URL encoding issue, which could be fixed by code given above.

    Please have a look at the below links so you will get a clear very clear Idea.
    [Moderator edit: 4 links removed]

    The above links are to a program used to decode files. its a freeware, and the source code is too available. the particular version that works for me is 3.3.5 but unfortunately it has a URL encoding issue. The developer of that program gave me the fix to the issue and has asked me to incorporate it and fix it for myself. But I as I said I have never been into any programming, and I really don't understand anything here. But I would really appreciate it if some one will teach me how to do it step-by-step and how to fix it!

    Thanks in advance.
    Last edited by DarrylBurke; 12-13-2012 at 10:30 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Need Help - I am not even a beginner in Java :(

    Please go through the Forum Rules -- particularly the third paragraph. Please also go through Guide For New Members and BB Code List - Java Programming Forum and edit your post accordingly.

    Most members here, self included, won't click external links to see your code. For some of those who might, file sharing and freeware sites are blocked by a corporate firewall. To get better help sooner, post your code here, preferably in the form of a SSCCE (Short, Self Contained, Correct (Compilable), Example).

    I'm removing the links.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Need Help - I am not even a beginner in Java :(

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    No Offense, but why people get so annoyed with cross post ? and make fun by showing them off ? Its a mere mean of advertisement and to get maximum users/clients! You can't do anything when you see the same advertise of Soaps/detergents on different air channels! BTW they are now also showing on YouTube, and you can't do anything! And for this particular query I have posted it on more than 6 forums to get an immediate response!

  5. #5
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    BTW Mr. Darryl Burke, you said Most members including yourself won't click external links and you discourage for posting external links then why have you posted yourself this link - https://forums.oracle.com/forums/thr...readID=2475766

    Even though its for showing cross post, it should be removed because Rules are same for everyone! Don't make the rules which you can't follow!

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,305
    Blog Entries
    7
    Rep Power
    20

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by rrypo123 View Post
    No Offense, but why people get so annoyed with cross post ? and make fun by showing them off ? Its a mere mean of advertisement and to get maximum users/clients! You can't do anything when you see the same advertise of Soaps/detergents on different air channels! BTW they are now also showing on YouTube, and you can't do anything! And for this particular query I have posted it on more than 6 forums to get an immediate response!
    Very self centric; so you don't mind people spending time and effort in your question while it has been answered already somewhere else? People aren't resources you know ...

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by rrypo123 View Post
    No Offense, but why people get so annoyed with cross post ? and make fun by showing them off ?
    You seem to have read a lot more into my post than I wrote. Would you care to explain how you discerned annoyance and making fun from the two words 'Cross posted'?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by rrypo123 View Post
    BTW Mr. Darryl Burke, you said Most members including yourself won't click external links and you discourage for posting external links then why have you posted yourself this link - https://forums.oracle.com/forums/thr...readID=2475766

    Even though its for showing cross post, it should be removed because Rules are same for everyone! Don't make the rules which you can't follow!
    Hang around long enough, prove your worth to the forum, become a moderator -- and then you'll get to decide what goes and what stays.

    Or ask for your money back. Oh wait, forum membership is free ...

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  9. #9
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    @Jos

    I really appreciate the time and efforts pals give to answer my question but the question is does it guarantees what you explain to me is understood by me? Let me give you an example, why does a Child has to go to school and tuitions when everything is available on internet! it's not because they don't have an access to internet, it because different people explain the same thing in different ways!

  10. #10
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    @DB

    Would you care to explain this ?
    "What's in a name? " - William Shakespeare

  11. #11
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    Give me a day! Find anything that goes unbiased and claim 1000 times what you have paid!
    - with 100% legal bond agreement!

  12. #12
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,751
    Rep Power
    19

    Default Re: Need Help - I am not even a beginner in Java :(

    Cross posting is fine, if you inform the various places you have cross posted where else you have asked the question.
    That way, if you receive an answer on one forum, those of us on another forum won't be wasting our time answering.

    It's common forum courtesy.

    As for your post, the line with an 'a' in the middle (4a5) means "append".
    The lines with 'c' (eg 486c488) means "change".

    So:
    225c226,227
    < String file = fileElem.getAttribute("URI");
    ---
    > String file = URLDecoder.decode(fileElem.getAttribute("URI"), "UTF-8");
    > log.info(file);
    means replace the line 225 (in the original file), which is "String file = fileElem.getAttribute("URI");", with the given two lines.
    These will be lines 226 and 227 in the new file.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  13. #13
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    At last, I am done with my task. It was a Patch File which could be used on Linux with Patch command to update the sw. And with the help of some generous people I have figured it out how to do it! For those who have helped me out I would Like to thank them for their generous efforts and help. And moreover I would like to thank them for their support to the beginners of the industry because they knew that at one point of time they were too beginners and No one from us learned programming in their mother's womb!

    For those who can't help but only criticize - Never Mind! Stay Hungry Stay Foolish! :)

    Thanks for your generous efforts and help. I have successfully finished this task :)

  14. #14
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by rrypo123 View Post
    At last, I am done with my task. It was a Patch File which could be used on Linux with Patch command to update the sw. And with the help of some generous people I have figured it out how to do it! For those who have helped me out I would Like to thank them for their generous efforts and help. And moreover I would like to thank them for their support to the beginners of the industry because they knew that at one point of time they were too beginners and No one from us learned programming in their mother's womb!

    For those who can't help but only criticize - Never Mind! Stay Hungry Stay Foolish! :)

    Thanks for your generous efforts and help. I have successfully finished this task :)
    You can look at criticism as being negative, or you can look on it as ways to help you get better answers either now or in the future. Myself, I prefer to help those who respect our desire to not waste time, who understand that we have families, jobs, lives, and enjoy helping people, but not those who send us on wild goose chases with questions that may have been answered elsewhere because they didn't have the courtesy to provide links. Hopefully this will not be you in the future.

  15. #15
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by Fubarable View Post
    You can look at criticism as being negative, or you can look on it as ways to help you get better answers either now or in the future. Myself, I prefer to help those who respect our desire to not waste time, who understand that we have families, jobs, lives, and enjoy helping people, but not those who send us on wild goose chases with questions that may have been answered elsewhere because they didn't have the courtesy to provide links. Hopefully this will not be you in the future.
    I agree with you 100%. Criticism is good when we need an improvement. I appreciate the time and efforts people spent on answering my question and at the same time I acknowledge the difference in understanding of different people.

    Cross posting is okay, I am not jeopardizing your bandwidth by launching a Ddos attack! I am just trying to reach out the right person who can understand my question and answer accordingly. I am not Selfish enough that I can't share the links of other forums where I have asked the same question, But it's your policy that you don't allow any links on post!

  16. #16
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by rrypo123 View Post
    I agree with you 100%. Criticism is good when we need an improvement. I appreciate the time and efforts people spent on answering my question and at the same time I acknowledge the difference in understanding of different people.

    Cross posting is okay, I am not jeopardizing your bandwidth by launching a Ddos attack! I am just trying to reach out the right person who can understand my question and answer accordingly. I am not Selfish enough that I can't share the links of other forums where I have asked the same question, But it's your policy that you don't allow any links on post!
    We do allow links, but even if not, all we ask is that mention which forums you've cross-posted in. Do that and I think all will be happy.

    Cheers.

  17. #17
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by Fubarable View Post
    We do allow links, but even if not, all we ask is that mention which forums you've cross-posted in. Do that and I think all will be happy.

    Cheers.
    Alright,

    Then please add back the links that Mr. DB removed from my post. Here's the link to all Cross post :)

    Task For A Beginner In Java - Java | Dream.In.Code
    Need Help - I am not even a beginner in Java :( | Java.net
    https://forums.oracle.com/forums/thr...readID=2475766
    Need Help - I am not even a beginner in Java :(

    Cheers.

  18. #18
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Need Help - I am not even a beginner in Java :(

    Just so you know: my pointing out the cross post I saw wasn't in any way intended as a criticism of you.

    It was meant as an eye opener for other members who might feel inclined to post a response that might already have been duplicated elsewhere.

    As for the links I removed, I remove all links form a first post by a new member that appear to be promoting a particular software, site or tutorial. You would be surprised to know how many of those first-time link posters either never come back, or ask another question with the same links some later, again and again until they get banned as spammers.

    In any case, those links were irrelevant to any Java related question. Note that this site is for community self-help for the Java language and platform, and certain software/other topics which have been given their separate sections. It is not a site where someone is expected to get help with patching a particular Java-related software for Linux.

    Since this thread is now totally off-topic, I shall move it to the Forum Lobby.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  19. #19
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Need Help - I am not even a beginner in Java :(

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  20. #20
    rrypo123 is offline Member
    Join Date
    Dec 2012
    Posts
    11
    Rep Power
    0

    Default Re: Need Help - I am not even a beginner in Java :(

    Quote Originally Posted by DarrylBurke View Post
    Just so you know: my pointing out the cross post I saw wasn't in any way intended as a criticism of you.

    It was meant as an eye opener for other members who might feel inclined to post a response that might already have been duplicated elsewhere.

    As for the links I removed, I remove all links form a first post by a new member that appear to be promoting a particular software, site or tutorial. You would be surprised to know how many of those first-time link posters either never come back, or ask another question with the same links some later, again and again until they get banned as spammers.

    In any case, those links were irrelevant to any Java related question. Note that this site is for community self-help for the Java language and platform, and certain software/other topics which have been given their separate sections. It is not a site where someone is expected to get help with patching a particular Java-related software for Linux.

    Since this thread is now totally off-topic, I shall move it to the Forum Lobby.

    db
    Never Mind. I appreciate and acknowledge your Decision :)

Page 1 of 2 12 LastLast

Similar Threads

  1. I am java beginner please help me
    By shki_80 in forum Introductions
    Replies: 1
    Last Post: 04-20-2012, 01:12 PM
  2. Beginner in Java - need some help
    By ea09530 in forum Advanced Java
    Replies: 4
    Last Post: 04-05-2010, 11:47 PM
  3. java beginner
    By devstarter in forum New To Java
    Replies: 4
    Last Post: 03-03-2010, 08:39 AM
  4. Java Beginner needs help!!
    By Polyy in forum New To Java
    Replies: 4
    Last Post: 11-23-2008, 02:11 AM
  5. beginner to Java
    By notwist in forum New To Java
    Replies: 15
    Last Post: 04-18-2008, 09:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •