Jump to content


Active Members
  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by toughbunny

  1. Thanks you so much, this worked great. Just one question: do you think I could modify this code so that it performs the function on every single file in my directory full of xml files? I have a huge number, so it is impractical to modify the code each time. Also: if I were to use this command python xmlparse.py >> myfile.txt would that work, to put all of the outputs in one single plaintext file?
  2. Thanks so much, this works great. Just one question: would there be a way to have this output the plaintext to a file? I have enough files in enough folders that adding the adjusting the xml of each one manually and then putting the stylesheet in each folder manually is impractical.
  3. @overwraith, the language really doesn't matter to me, so whatever you're comfortable with. I just need to get the xml file to the plaintext file.
  4. Hi guys, I need help parsing a document (dialogue from the Die Hard!) Right now, it is in this XML format: <s id="631"> <time id="T583S" value="00:58:08,840" /> <w id="631.1">Do</w> <w id="631.2">you</w> <w id="631.3">really</w> <w id="631.4">think</w> <w id="631.5">you</w> <w id="631.6">have</w> <w id="631.7">a</w> <w id="631.8">chance</w> <w id="631.9">against</w> <w id="631.10">us</w> <w id="631.11">,</w> <w id="631.12">Mr.</w> <w id="631.13">Cowboy</w> <w id="631.14">?</w> <time id="T583E" value="00:58:11,960" /> </s> <s id="632"> <time id="T584S" value="00:58:14,960" /> <w id="632.1">Yippee-</w> <w id="632.2">ki-</w> <w id="632.3">yay</w> <w id="632.4">,</w> <w id="632.5">motherfucker</w> <w id="632.6">.</w> <time id="T584E" value="00:58:17,000" /> </s> What I want, is for it to be parsed so that it turns each "id" block into only the text it contains, putting one "id" block onto one line each. For example, this text would become the exactly the following: Do you really think you have a chance against us Mr. Cowboy? Yippee-ki-yay, motherfucker. How do I do this?
  5. Also, what would your favorite language be to program such and interface?
  6. I guess what I want is basically a large grid field, maybe green on black, and on that 3d objects, representing websites or servers. You could enter these, and see what's in the server. You could also zoom out and look for the biggest objects, and maybe they could be arranged based on their location in the actual world? So I guess a 3d web page/browser experience. But you could also see ftp servers, or databases. Would I need to write my own web crawler for that? Or could I use something established like Shodan or Google? I have access to the Shodan API thanks to an administrative mistake a couple months back. Thanks!
  7. Hi guys, Have you read the Neuromancer? If you have, you probably remember the graphical representation of cyberspace, a large field with 3d shapes representing institutions, DB's and websites. Kind of a 3d grid with shapes hovering over it. You could enter a shape to see the graphical representation of the website. Maybe even a representation like a city, with building hight symbolizing amount of data? I was wondering if such a thing exists in real life, and if it doesn't, how to create it. Thanks!
  8. So far, all I've found in Unity is some assets that let you associate 3d shapes with specific black and white tags. Do you know of anything specific?
  9. Thanks digip! I know such things do exist, my question is what software I can start to use to program my hud. Probably less complex, because there's nothing moving?
  10. So I checked out the Unity asset store, and it seems like the only ways to make HUDs have to do with associating things with objects in a game world, while I'm more interested in associating with objects in the real world, outside my window. Is there a way to do that?
  11. Ok, so the projecting on the actual window seems hard for now. What if I were to just have a webcam feed to a monitor, and add the "HUD" overlay to the image on a monitor? Less cool, but still pretty cool. Any tools for that you know of? (I'm talking designing the look of the HUD, as well as software to place the images in the right places, e.g. the right shaped blue outline over a building) Thanks!
  12. Hi all, super nerdy question alert: I just watched the latest avengers movie, and as usual, I came back thinking "It would be so cool to have one of those holographic interfaces or Ironman's HUD display." This time, having joined the community, I thought I'd ask. I've done some research and found some similar projects, like the meta project (https://www.getameta.com), which actually hired the dude who designed the actual hud and interfaces used in the movies. Unfortunately, buying the developer kit seems to cost a lot of money. So I think, why not build it myself? Should be possible with the right combination of tools, sweat and dedication right? But I have no idea how to. Basically, what I want is to design a HUD that will go on my office window, and do things like highlight streets relevant to a query, highlight buildings at addresses matching a query (we live on a hill, so my office has a nice view of everything), maybe project the location of stars at night, windspeed, that sort of cool thing. Does anyone know a) of any tools to design and execute the look and functionality of any of these elements and b) how to project the image i create onto the (large) window? Thanks! *Any* help welcome!
  13. So you think that would be 10 mm on either side plus the plastic in the middle, or 5 mm on either side plus the plastic in the middle? His block looks more like 10.
  14. toughbunny

    USB fun

    I looked for firmware and found none of interest for my lexar model usb. I did find stuff about BadUSB(https://github.com/adamcaudill/Psychson) which looks fun but I have no idea how to implement it so any help would be nice (looks like its for a different model of usb?). Any ideas other than firmware? Thanks!
  15. So I made my yagi with the copper tape and perspex, and I'm now at the part where I need to create the driven element, the folded dipole. In the video, he uses a block of wood to measure the width of the dipole, but he doesn't say how thick it is. He just calls it "your block of wood." Does anyone know how wide the dipole should be? Does it even matter? Thanks!
  16. toughbunny

    USB fun

    Thanks for the tip (pun intended), but I was actually wondering about hacking.
  17. toughbunny

    USB fun

    Hi all, Basically, I have a 16 Gb USB 2.0 stick. How can I make it as dangerous as possible, for fun? Any suggestions welcome, even if they seem obvious they probably won't be to me. Thanks!
  18. So, would the correct approach be to solder one of the coax to the driven element as seen in the youtube video, and solder the internal wire of the other end to the solder glob on the downconverter, and the shield to the flat panel with the mounting holes as seen in the picture in the photobucket? If so, what side of the panel do I solder the shield to? Inside the rubber ring or outside?
  19. I don't think that could be, since the dipole just goes straight through the hole to the solder glob. I just uploaded two more photos to the photobucket to illustrate this ( http://s722.photobucket.com/user/mikeconnors909/library/Triangulation ). Any other ideas? Do you think it would be possible to wire the two ends of the folded dipole to the internal wire and shield of the coax, then just wire the internal wire to the downconverter?
  20. I just created a Photobucket and uploaded the pictures. Here is the link to the album: http://s722.photobucket.com/user/mikeconnors909/library/Triangulation . The password is "triangulation" (without quotes). In the first image, you see the unsoldered dipole lying next to the downconverter. The reason I'm sure that there is one contact point is that, as you see in the picture, the part of the dipole that was soldered to the downconverter (the thinner part) is just one rod, it doesn't split into two wires, so there couldn't be more than one contact point. The second picture is the one already posted on the forum. The third picture is of the dipole still soldered to the downconverter. I don't know if you can see in the picture, but the dipole was actually soldered into the solder blob next to where I was pointing with the sharpie. My bad for not pointing precisely enough. Thanks!
  21. Sorry about that, here are pictures: This is one where I'm pointing to the contact point with a sharpie. If you need more pictures I'd be happy to email them to you, just PM me with your email. For some reason these pics have a large file size and the forum only lets me upload one. I have others that might make the problem more clear if this isn't enough. Thanks so much!
  22. For the dipole, I was figuring it might work to attach one end of the dipole to the shield of a small length of coax, and the other end to the main wire of said coax, but only solder the main wire onto the downconverter. Would that work? I tried google, and it was unhelpful, so this is really just a hunch. Thanks!
  23. Hi, As promised, I need help with my antenna. The downconverter I brought comes with an integrated dipole, so I unscrewed the casing and removed the dipole in order to replace it with the yagi I'm making. Here's the problem: the original dipole was attached to the downconverter with one contact point, but the directed element on the yagi is a folded dipole. McNeil shows how to attach the dipole to a length of coax, by connecting one end of the dipole with the shield of the coax and the other end with the main wire in the center. But I need to attach both ends to a single contact point (?). Does anyone know how? Cooper, thanks for the 3d printer idea, we do have one at school, I'm just not sure if it's big enough to print the whole length, but I'll be sure to check it out. Also, would't a foil shield on the outside of the drainpipe be really fragile? Is there some sort of sturdier mesh I could use, or does it have to be solid? Thanks, and sorry about asking so many questions at once!
  24. Thanks for the suggestion, @metatron, but 1) I'd like to avoid anything illegal, and 2) that would be really expensive. I'd need two HackRF's, for $300 each, instead of two RTL dongles for $10 each. Is there really no way to demodulate the signal I'm seeing in gqrx with gnuradio or something? I also went to ACE hardware yesterday and picked up all the stuff I need to make Andrew McNeil's drainpipe yagis, so pics coming soon, but I'll need some help connecting it with the downconverter. Thanks!
  25. Hey everyone, So I just figured out that if I make the noise floor really high, I get waterfalls like these: I guess my question is a) Does anybody recognize what kind of signal this is? Is it wifi? If so how is it modulated? and b) Do you know of any software (maybe based on gnuradio?) that is able to demodulate it? I'm beginning to think that maybe my sdr doesn't have enough bandwidth to demodulate a wifi signal, so do you think I should just treat it as a blip instead? Thanks!
  • Create New...