Jump to content

elmer

Active Members
  • Posts

    210
  • Joined

  • Last visited

Everything posted by elmer

  1. If you are looking for the source code to slurp.rb, here it is: # slurp.rb (by elmer) - a simple Ruby script to recursively copy files with certain extensions (as defined in slurp.yaml) to a certain directory (also defined in slurp.yaml) require 'fileutils' require 'yaml' if File.exist?('slurp.yaml') == false config = {'dest'=>'./slurp', 'ftype'=>['*.txt', '*.doc']} open('slurp.yaml','w+') {|f| YAML.dump(config, f)} end load=YAML::load_file('slurp.yaml') if File.exist?(load['dest']) == false Dir.mkdir(load['dest']) end load['ftype'].each do |w| FileUtils.cp(Dir.glob("**/#{w}"),load['dest']) end
  2. Hm. I should get to work on that. I wonder if File.exist?("D:\.") would work to see if a drive existed. Unfortunately I don't really want to reboot right now, so I guess we will never know. And also, I'm fairly sure that a Ruby version will be just as good as a Python version; they are practically the same language anyway.
  3. It will recursively copy the contents of the directory in which it is run. If you run it from C:\ it will copy from all of C:\, if you run it from D:\ it would copy from all of D:\, and so on and so forth.
  4. OK, I've done almost everything I can to make this a good slurping tool. If you would like anything else (besides a GUI, I don't want to put that much time into this) ask, and I'll see if I can do it. As of right now it will create a configuration file if none exists, create the destination folder if it does not exist, and copy recursively all files ending in the extensions you specify in the config file. I give to thee slurp.rb - a simple Ruby script to recursively copy files with certain extensions (as defined in slurp.yaml) to a certain directory (also defined in slurp.yaml). It is 14 lines long, including one line of explanation at the beginning of the file. The only problem is that I can't find a working compiler for Ruby. You can find a syntax-highlighted version here. As I can't find a working Ruby compiler, it only works on systems with Ruby installed. If anybody knows of a Ruby compiler other than exerb and RubyScript2Exe, please let me know so I can check it out. Once I find a working Ruby compiler I can make this into an exe that will be able to run on any Windows machine.
  5. I just wrote up a 2 line Ruby program in 30 seconds that will copy all .txt files in its current folder to a directory you specify. If you want I can extend it to where you can specify what file types you want. Once that is done I could add a GUI I guess. That's not a bad idea, actually. It should make for a great test app. The 2 lines I referred to are the following: require 'fileutils' FileUtils.cp(Dir.glob("*.txt"),"/home/elmer/txt") e:Alright, now it's been expanded to 9 lines. You can now define your destination and what file types you would like copied. If the destination directory does not exist, it will create it. I guess the GUI is up next? require 'fileutils' dest="/home/elmer/slurp" if File.exist?(dest) == true else Dir.mkdir(dest) end ["*.txt", "*.mp3"].each do |w| FileUtils.cp(Dir.glob(w),dest) end e2:I actually think this would be better as a text-only app. I'll compile it as an EXE that can be configured using a .yaml file, but I can't find a ruby compiler that works. exerb comes out with an unusable EXE and RubyScript2Exe doesn't work.
  6. The description "Leapos Pocket Knife Configurator" is not very thorough. Could you please explain more fully what it is? Is it a GUI? What language is it written in?
  7. Sadly, his post isn't exactly useful to me, but if X3N posts up his source, that may help. If I can see how he goes about doing some things that would help me. Also, I could try to copy his design so we have a unified GUI design. Then, if anybody else wants to make a GUI, perhaps in PyGTK, they would not have to come up with a design, merely code. So far, after 1hr of tutorial reading, this is the best I can do:
  8. Well, I've decided I'm going to start learning how to use RubyGTK, and what better project to add to than this one? I'll be reading up on it and trying to make a GUI of menu.bat for those who want it.
  9. elmer

    seasons

    They'll probably just say that the Sep 05 09 episode is the start of Season 5. At least, that's what I would do.
  10. File Savr is doing a little promotion, allowing you to upload things to their server for free until the 15th, so I'm capitalizing on the time by uploading the USB Pocket Knife to their site. Here's a link. It should be valid until File Savr goes out of business. And the best part is plain text compresses VERY well, from 47.8MB to 4.1 MB. e:Typo >.<
  11. elmer

    Hak5 HL spray.

    I didn't really like the black background, and the sprays in CS:S are so low-res that you can't read the "Trust Your Technolust" part, so I made my own: Download it here.
  12. I may end up coding up a simple Ruby app to run everything, but we will see.
  13. I will be playing a few games, such as Call of Duty 4 and Orange Box I will (of course) be surfing the net I will be using an office suite I will be running XP Pro That's pretty much it, though. I believe these components will suit me well, as they can (I think) do what I want them to do and are in my budget range. * elmer goes to tekzilla * elmer is waiting 15 minutes for the download EDIT: Dang. AVI file is broken. EDIT 2: Just watched the small quicktime. His was nice, but I like mine better.
  14. @abusetheforce: While I am trying to keep costs down, I just found a 300GB for $5 more than the 250GB I found. It's located here. I think I am going to get that instead. Also, all of my data, including laptop, external HD, thumb drives, etc. is only about 200-250GB. @VaKo: I don't plan on overclocking. At all. I really don't want to accidentally break anything, that'd be bad.
  15. Really? OK, I'll look into that. This would require a motherboard change. Expect an edit soon. EDIT: How do Pentium D's and Core 2 Duo's compare to the 64X2's? It seems that the Intel route would actually be more expensive.
  16. So, I think I am happy with what I have picked out, but feel free to offer your opinions. I am trying to stay under $450, to make way for a monitor purchase. http://www.newegg.com/Product/Product.aspx...N82E16819103751 Newegg.com - AMD Athlon 64 X2 4600+ Windsor 2.4GHz 2 x 512KB L2 Cache Socket AM2 Processor - Retail http://www.newegg.com/Product/Product.aspx...N82E16827135157 Newegg.com - ASUS Black 20X DVD+R 8X DVD+RW 8X DVD+R DL 20X DVD-R 6X DVD-RW 14X DVD-RAM 16X DVD-ROM 48X CD-R 32X CD-RW 48X CD-ROM 2MB Cache SATA 20X DVD±R DVD Burner with LightScribe - OEM http://www.newegg.com/Product/Product.aspx...N82E16822148261 Newegg.com - Seagate Barracuda 7200.10 ST3250310AS 250GB 7200 RPM 8MB Cache SATA 3.0Gb/s Hard Drive - OEM http://www.newegg.com/Product/Product.aspx...N82E16813131172 Newegg.com - ASUS M2A-VM AM2 AMD 690G Micro ATX AMD Motherboard - Retail http://www.newegg.com/Product/Product.aspx...N82E16820231098 Newegg.com - G.SKILL 2GB (2 x 1GB) 240-Pin DDR2 SDRAM DDR2 800 (PC2 6400) Dual Channel Kit Desktop Memory - Retail http://www.newegg.com/Product/Product.aspx...N82E16811154050 Newegg.com - APEX TX-346 Black/Silver Steel ATX Mini Tower Computer Case ATX12V 300W Intel & AMD Listed Power Supply - Retail http://www.newegg.com/Product/Product.aspx...N82E16814150185 Newegg.com - XFX PVT73GUGF3 GeForce 7600GT 256MB 128-bit GDDR3 PCI Express x16 SLI Supported Video Card - Retail I am pretty sure these will all interface, but are there any problems? It will be running XP Pro SP2, not Vista. It has: a dual core 2.4 GHz AMD processor, 2 GB RAM, 250 GB HD, DVD Burner w/ Lightscribe, 256 MB video card, and 802.11g wireless. Judging by the raw specs, it should be able to run Call of Duty 4, the entire Battlefield series, and the Orange Box, but that seems weird, because it's really inexpensive. Is there something I am overlooking?
  17. Well, in Episode 1x03 they did a bit of packet sniffing. Have I said too much, or is it OK to say things the crew says? Anyway, definitely use WPA if you can. It's more secure than WEP. If at all possible, use a wired network, as they are un-piggybackable without physical access.
  18. Hm. For silent use you will need an external tool, called NirCmd. I'm not sure exactly how to do this, but Leapo said that he was able to get USB Dumper to launch a file instead of dump the contents. If you can get that working, USB Dumper should launch this, but make sure you have NirCMD.exe in the same folder. I'm not sure if this will work, because I don't know how USB dumper calls batch files onto a thumb drive, but this might work. nircmd.exe exec hide copy.bat This will grab all hidden files. xcopy *.* c:folder /s/a:h Hope this helped!
  19. Wow, you're really adamant about getting MySpace passwords. MySpace is no different than any other website, that is, technologically. I don't think I will extol the "virtues" of MySpace at this point in time. But, back to what I was talking about. If the user has the password set to auto fill, LSA Secrets, IE Password, DeWand (UnWand?), or Firefox Password should grab it.
  20. Sounds like you are wanting either USB Dumper (Download) or TomB's USB Backup.
  21. I actually wasn't sure what this could be used for, but it could be helpful. Also, the board in which it sits has a lot of good info on silent installation of various programs.
  22. Go to the read-only partition. It should have a file called "LaunchU3.exe" or something similar. Another method is to download the Universal Launchpad Hacker, plug in the drive, run the program, and see if it identifies the drive as a U3 drive (e.g. it will go past the splash screen). The Universal Launchpad Hacker page (see previous link) and the actual program both have a bit of instruction on how to use them to put files onto the cd partition.
  23. I have a few questions about this - 1: What language is it written in? 2: Are you going to open source it?
  24. Well, I dismantled it again this night, this time looking for any cables that led to the screen. There were only two, one from the WLAN card and the other from the graphics card, both of which were properly plugged in. Unless there are any other ideas, I may en up having to buy a backlight, build a backlight, or buy a new screen. I think I might try building one. If anything happens, I'll let you know. EDIT: The back light decided to work again. I don't know why, but it just turned back on a few minutes ago.
  25. I just tested it on a computer with a fully updated version of Clamwin, and it worked seemingly perfect.
×
×
  • Create New...