An Important Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MSUWORLD
    New Member
    • Apr 2008
    • 4

    An Important Question

    I'm Shihab from Bangladesh. Now reading in computer science & Engineering.I'v e a Question for about a lot of days. I'm searching it a lot. But getting nothing. So, if anyone can help me here, i'll remain so much grateful to them.The question is......I'm wanting to develop a hard disk data recovery software that will retrieve deleted data from hard disk. I've to develop this software either in java or c# or c/c++.
    So, if anyone have any kind of works regarding this such as codes please mail it to me at <Removed> & I have another question ...
    In languages c++/ java/c#
    can we determine memory location of a particular file in hard disk?
    i'm explaining this. suppose i've a 10 gigabit hard disk. and all of u know that memory location of a particular file in that hard disk is a partcular digit. Can it be possible to have this memory location of a file using a programming code?
    if u know anything about it please mail me.so the input & output of the program will be...
    input: name of a particular file located in hard disk
    output: memory location of that particular file in hard disk.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    You are asking for codes without making any attempts to write the programs yourself. That is not allowed here.
    See the posting guidelines for more details.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      What is the important part of that question? I must've missed it ...
      I bet it's 'urgent' too.

      kind regards,

      Jos

      Comment

      • ajos
        Contributor
        • Aug 2007
        • 283

        #4
        Originally posted by MSUWORLD
        at <Removed>
        Are we missing something here mods? :)

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by ajos
          Are we missing something here mods? :)
          Not anymore.
          Thanks for the tip erm, Another Jos.

          Comment

          • Nepomuk
            Recognized Expert Specialist
            • Aug 2007
            • 3111

            #6
            Originally posted by MSUWORLD
            The question is......I'm wanting to develop a hard disk data recovery software that will retrieve deleted data from hard disk. I've to develop this software either in java or c# or c/c++.
            ...
            In languages c++/ java/c# can we determine memory location of a particular file in hard disk?
            Hi!
            For your project, Java is not a good choice. Why? Well, Java is designed to be hardware- and environment independent. So, accessing hardware in such a direct way is possible, (as Java is turing-complete) but not easy and certainly not the sort of job, Java was designed for.
            I would guess, C or C++ (or maybe C#?) are much better languages for this task. Ask your questions in those forums, you might get better help there.

            Hope you're successfull!

            Greetings,
            Nepomuk

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              What does Turing completeness have to do with being able to access hardware?

              kind regards,

              Jos

              Comment

              • Nepomuk
                Recognized Expert Specialist
                • Aug 2007
                • 3111

                #8
                Originally posted by JosAH
                What does Turing completeness have to do with being able to access hardware?

                kind regards,

                Jos
                Any turing complete language can do everything any other turing complete language can do too, isn't it so? So theoretically, you can use Java to access hardware at a very deep level (e.g. write hardware drivers). Practically it would be a nightmare.

                Greetings,
                Nepomuk

                Comment

                • JosAH
                  Recognized Expert MVP
                  • Mar 2007
                  • 11453

                  #9
                  Originally posted by nepomuk
                  Any turing complete language can do everything any other turing complete language can do too, isn't it so?
                  Yep, but that is a non sequitur; a language is Turing complete if it can solve the
                  same class of problems as a DTM (Deterministic Turing Machine) can.

                  Originally posted by nepomuk
                  So theoretically, you can use Java to access hardware at a very deep level (e.g. write hardware drivers). Practically it would be a nightmare.
                  No, it has nothing to do with hardware; think of an ingenious piece of hardware
                  that only wants to be controled by, say, a program written in C (if it can ever
                  detect that); otherwise it'll explode ;-) then none of the other languages can do
                  what C can do.

                  kind regards,

                  Jos

                  Comment

                  • Nepomuk
                    Recognized Expert Specialist
                    • Aug 2007
                    • 3111

                    #10
                    Originally posted by JosAH
                    No, it has nothing to do with hardware; think of an ingenious piece of hardware that only wants to be controled by, say, a program written in C (if it can ever
                    detect that); otherwise it'll explode ;-) then none of the other languages can do
                    what C can do.

                    kind regards,

                    Jos
                    How about writing a C-Simulator (or crosscompiler) in Java? :-D
                    Of course, if a device only wants to be controlled by a program written in C, that's because it doesn't understand the other languages (or, in your example, is programmed to explode, if it receives anything but C code). So, if you'd emulate C with another language, you can control your device with that other language, can't you? And as both can do exactly what a DTM can do, such an emulation should be possible.
                    By the way, I'd never buy hardware, that explodes - plus I've never heard of bomb-driver-programming... ^^

                    Greetings,
                    Nepomuk

                    Comment

                    • JosAH
                      Recognized Expert MVP
                      • Mar 2007
                      • 11453

                      #11
                      Originally posted by nepomuk
                      How about writing a C-Simulator (or crosscompiler) in Java? :-D
                      Of course, if a device only wants to be controlled by a program written in C, that's because it doesn't understand the other languages (or, in your example, is programmed to explode, if it receives anything but C code). So, if you'd emulate C with another language, you can control your device with that other language, can't you? And as both can do exactly what a DTM can do, such an emulation should be possible.
                      By the way, I'd never buy hardware, that explodes - plus I've never heard of bomb-driver-programming... ^^

                      Greetings,
                      Nepomuk
                      My release II of the device also checks whether or not a C emulator tries to
                      control it, so that option is out. What I want to get at is that hardware control
                      has nothing to do with Turing completeness.

                      kind regards,

                      Jos

                      Comment

                      Working...