-
Replied To a Post in How to Make a Video Game With Cmd
Your formatting is kinda messed up. Read [this](https://www.daniweb.com/community/syntax) for help with [code blocks](https://www.daniweb.com/community/syntax#code). -
Began Watching USB interfacing
Hi everynone and Good Afternoon I am looking to implement a Program using Python for USB interfacing. How should i go for it.Any idea? -
Replied To a Post in USB interfacing
[PyUSB](https://github.com/walac/pyusb/blob/master/docs/tutorial.rst) seems to be the recommended way of talking to USB devices. Here's a small example inspired by their tutorial: import usb.core # find() can be used to find a … -
Began Watching XML File Searching running multiple times
I have just figured out how to search for the element that im looking for in a xml file but now when I run it the code loops through i … -
Replied To a Post in XML File Searching running multiple times
You have a nested loop there, and it modifies the list while iterating. That's asking for trouble. You're iterating over `codeList` and then `if code is not None` you are … -
Began Watching Python: http sniffer
Ok so I found this code online and though it looked interesting so I ran it but can someone tell me why it doesn't work? I have scapy installed btw … -
Replied To a Post in Python: http sniffer
Did you look at the packet sniffer I showed you in response to your [first question](https://www.daniweb.com/software-development/python/threads/483755/python-http-request-sniffer-in-python)? -
Marked Solved Status for DaniWeb member badge linkback points to 127.0.0.1
I was just looking at my profile and noticed the member badge section was pointing to 127.0.0.1. I followed the "member badge" link (the page that shows you all the … -
Replied To a Post in DaniWeb member badge linkback points to 127.0.0.1
Ok, thanks Dani and pritaeas. -
Began Watching Python - Http request sniffer in python
Inspired by violent python and some of the scripts in there, I would like to make a http request sniffer to sniff http requests on a network. In the book … -
Replied To a Post in Python - Http request sniffer in python
There is a packet sniffer for linux here: http://www.binarytides.com/python-packet-sniffer-code-linux/ It uses the `socket` module to grab incoming and outgoing packets. It's pretty low-level stuff. The packet data is raw bytes, … -
Began Watching Black Screen on Pygame until I close it!
I am trying to run my game in Python, with Pygame. However, I am presented with a black screen, but my game shows up for a fraction of a second … -
Replied To a Post in Black Screen on Pygame until I close it!
You have an event loop up at the top (`while done==False:`) that runs until the user has quit. Because of the indention, your event loop runs until completion and only … -
Began Watching Please help me understand this VBScript?
Hi. I have here a script which I had acquired from the net. I have tested it in a lab environment and it seems to accomplish my task perfectly. That … -
Replied To a Post in Please help me understand this VBScript?
This is really old, and I'm no expert on WMI, but I can provide at least a little insight. It grabs the domain name for the current machine from Active … -
Created Get current scripts path/location and name.
Grabs the location and name of the script file itself. -
Began Watching Get current scripts path/location and name.
Grabs the location and name of the script file itself. -
Began Watching input from a file
I am trying to get two input from a file . #!/bin/bash echo "enter clientname" read clientname echo print|nsradmin -s $clientname -p390113|egrep 'NetWorker version|IP address'>> output_$clientname the content of the … -
Replied To a Post in input from a file
This post is really old, but here is my answer in case someone else comes looking. There are several ways you can trim it down further. I can show you … -
Replied To a Post in Unanswered should not include snippets
'Tutorials' and 'Snippets' came later right? So 'Unanswered' used to be exactly what I am talking about. 'Unanswered' does exactly what it's supposed to do and shows *all* unanswered posts, … -
Edited DaniWeb member badge linkback points to 127.0.0.1
I was just looking at my profile and noticed the member badge section was pointing to 127.0.0.1. I followed the "member badge" link (the page that shows you all the … -
Edited DaniWeb member badge linkback points to 127.0.0.1
I was just looking at my profile and noticed the member badge section was pointing to 127.0.0.1. I followed the "member badge" link (the page that shows you all the … -
Created DaniWeb member badge linkback points to 127.0.0.1
I was just looking at my profile and noticed the member badge section was pointing to 127.0.0.1. I followed the "member badge" link (the page that shows you all the … -
Began Watching DaniWeb member badge linkback points to 127.0.0.1
I was just looking at my profile and noticed the member badge section was pointing to 127.0.0.1. I followed the "member badge" link (the page that shows you all the … -
Began Watching Simplest web browser
Hi all, I am working on simplest web browser import socket mysock=socket.socket(socket.AF_INET,socket.SOCK_STREAM) mysock.connect(('www.py4info.com',80)) mysock.send('GET http://www.py4inf.com/code/romeo.txt HTTP/1.0\n\n') while True: data=mysock.recv(512) print data mysock.close() It's returning error 408:Request timeout at one time … -
Replied To a Post in Simplest web browser
This works ok on my end, don't use the `while True` loop. Use `iter()`. (this is slightly modified for Python3): #!/usr/bin/env python3 import socket # This would be 'import urlparse' … -
Created Unanswered should not include snippets
I think Snippets and Tutorials should be excluded from 'Unanswered', or a new section should be created called 'Open Questions' that doesn't include snippets and tutorials. Most of the snippets/tutorials … -
Began Watching Unanswered should not include snippets
I think Snippets and Tutorials should be excluded from 'Unanswered', or a new section should be created called 'Open Questions' that doesn't include snippets and tutorials. Most of the snippets/tutorials … -
Began Watching Print with line and file information
This snippet defines a function `printat()` which adds line and file information to the normal `print()` function output. The intended use is a quick and dirty debugging information for everyday's … -
Replied To a Post in Print with line and file information
I like this. I modified it so the function name would be included with `frame.f_code.co_name`.
The End.