Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. CP files scanned for virusses?

CP files scanned for virusses?

Scheduled Pinned Locked Moved The Lounge
sysadminquestionlearning
26 Posts 12 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Victor Vogelpoel

    Fill me in! What'll be the subject of your article? "Fun stuff with sparse files and streams"?

    B Offline
    B Offline
    benjymous
    wrote on last edited by
    #17

    Good idea, but I was more thinking along the lines of documenting the development process of the little DirectX game I'm working on X| once I get my head around the matrices, that is X| I doubt I'll find a use for terabyte sparse files in my game, but it would be a nifty anti-piracy measure :-D -- Help me! I'm turning into a grapefruit!

    J S 2 Replies Last reply
    0
    • B benjymous

      There are a few silly apps I've played with in the past (neither created by me though) that could create vast confision / damage if released in the wild. The first creates a text file that contains a gigabyte of "."s. This can be zipped down to a few hundred K (zip seems to be a bit ineficient in this respect) Now email this file to someone, and watch as their company mail server falls over when it tries to virus scan the mail The second involves the sparse file option that was added in Win2K (For those who don't know, it means you can mark big areas of zeros in files as just emptyness, so they won't take up disk space). Using this technique, it's easy to create terrabyte files that only consume a single sector of disk space. Hide a few of these on someone's harddrive and watch in amusement the next time they check the size of the folder. -- Help me! I'm turning into a grapefruit!

      B Offline
      B Offline
      Brian Delahunty
      wrote on last edited by
      #18

      Never even heard of that :-)


      "When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it" Nish on life [methinks]

      1 Reply Last reply
      0
      • P Peter Pearson

        Especially with the submission wizard, and some of the dodgy and pointless articles that have been submitted in the past. Although those were just blank "zzzzzzzzzzz" articles - any article that doesn't look that good or have a screenshot, I rarely bother with, so it's doubtfull if people would write a good article just to get a virus put on your pc. Cheers, Peter Pearson

        S Offline
        S Offline
        Selevercin
        wrote on last edited by
        #19

        OK, I hate to sound ignorant, but what is all this "CPian" stuff?

        L 1 Reply Last reply
        0
        • B benjymous

          Good idea, but I was more thinking along the lines of documenting the development process of the little DirectX game I'm working on X| once I get my head around the matrices, that is X| I doubt I'll find a use for terabyte sparse files in my game, but it would be a nifty anti-piracy measure :-D -- Help me! I'm turning into a grapefruit!

          J Offline
          J Offline
          Joao Vaz
          wrote on last edited by
          #20

          Jan larsen , handed to me this 2 cool sites about 3D , perhaps this could help you out ? http://chortle.ccsu.ctstateu.edu/vectorLessons/vectorIndex.html and http://members.tripod.com/gamecode/tut/ Cheers, Joao Vaz A person who is nice to you, but rude to the waiter, is not a nice person - Natalie Portman (Padme/Amidala of Star Wars)

          1 Reply Last reply
          0
          • S Selevercin

            OK, I hate to sound ignorant, but what is all this "CPian" stuff?

            L Offline
            L Offline
            Loren Brewer
            wrote on last edited by
            #21

            Selevercin wrote: I hate to sound ignorant, but what is all this "CPian" stuff? Example: People from America = American CP = Code Project People from Code Project Land = CPian :) :) :) :) :) ;P ;P ;P ;P ;P

            1 Reply Last reply
            0
            • B benjymous

              Good idea, but I was more thinking along the lines of documenting the development process of the little DirectX game I'm working on X| once I get my head around the matrices, that is X| I doubt I'll find a use for terabyte sparse files in my game, but it would be a nifty anti-piracy measure :-D -- Help me! I'm turning into a grapefruit!

              S Offline
              S Offline
              Selevercin
              wrote on last edited by
              #22

              Terabyte sparse file?!?:confused: Is that just a file that has a bunch of 0's? How does that act as an "anti-piracy measure". ~Selevercin

              B 1 Reply Last reply
              0
              • S Selevercin

                Terabyte sparse file?!?:confused: Is that just a file that has a bunch of 0's? How does that act as an "anti-piracy measure". ~Selevercin

                B Offline
                B Offline
                benjymous
                wrote on last edited by
                #23

                A terabyte is 1024 gigabytes (or 1000 if you're a hdd manufacturer) In a sparse file, basically instead of having a file that contains 1,099,511,627,776 0's it just has a description that says "1,099,511,627,776 0s follow" (which obviously takes up less space than the actual 0s would) Therefore your data could be scattered through a file that looks to the OS to be a terabyte in size, but actually just contains huge areas of emptyness. These huge files confuse a lot of programs, so it makes them tricky to copy -- Help me! I'm turning into a grapefruit!

                S 1 Reply Last reply
                0
                • B benjymous

                  A terabyte is 1024 gigabytes (or 1000 if you're a hdd manufacturer) In a sparse file, basically instead of having a file that contains 1,099,511,627,776 0's it just has a description that says "1,099,511,627,776 0s follow" (which obviously takes up less space than the actual 0s would) Therefore your data could be scattered through a file that looks to the OS to be a terabyte in size, but actually just contains huge areas of emptyness. These huge files confuse a lot of programs, so it makes them tricky to copy -- Help me! I'm turning into a grapefruit!

                  S Offline
                  S Offline
                  Selevercin
                  wrote on last edited by
                  #24

                  benjymous wrote: it just has a description that says "1,099,511,627,776 0s follow" Perhaps I'm not getting this right. The program tells the OS how big of a file it is?

                  B 1 Reply Last reply
                  0
                  • S Selevercin

                    benjymous wrote: it just has a description that says "1,099,511,627,776 0s follow" Perhaps I'm not getting this right. The program tells the OS how big of a file it is?

                    B Offline
                    B Offline
                    benjymous
                    wrote on last edited by
                    #25

                    No. the OS knows that the file contains a terrabyte of data, but it also knows that basically it doesn't need to store all the blank areas, so they don't take up disk space -- Help me! I'm turning into a grapefruit!

                    S 1 Reply Last reply
                    0
                    • B benjymous

                      No. the OS knows that the file contains a terrabyte of data, but it also knows that basically it doesn't need to store all the blank areas, so they don't take up disk space -- Help me! I'm turning into a grapefruit!

                      S Offline
                      S Offline
                      Selevercin
                      wrote on last edited by
                      #26

                      Oh, That's pretty neat. I was under the impression that my computer was a moron... but apparently it has some brains[good code]. Thanks, ~ Selevercin

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups