- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 40
- Posts with Upvotes
- 36
- Upvoting Members
- 20
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
I love computers. And I love learning. The only problem I face is time isn't cheap.
I curently work at Subway until I am done with school. I am the sub slinging master!!!!!
- Interests
- I like to draw, script, have fun, and spend time with vanessa =) I have a few microcontrollers also,…
- PC Specs
- HP Pavilion. Windows 7 64bit/BackTrack4 VMware, 2.00 GHz, 4 gigs of ram. 280 gig C:, the video card…
Re: for the width try [CODE] import os os.system("mode con cols=50") [/CODE] and for the length [CODE] os.system("mode con lines=20") #you could also combine them os.system("mode con cols=50 lines=20") [/CODE] Play around with the numbers until ya find a size you like. This is windows only. | |
Re: You don't want to use batch for a server. There is no threading capabilities for such a task. You will want a language that has a strong web development base, such as python or php. | |
Re: Have some fun with the SendKeys module? A script to log you into your favorite website? [url]http://www.rutherfurd.net/python/sendkeys/[/url] | |
Re: I think some tutorials found through google would suffice. Everything you need to know is already on the net. But if you want a physical book in front of you, O'Reilly makes some pretty good books as well. [URL="http://oreilly.com/python/"]Some found here.[/URL] Also if you want to get into some hacking … | |
Re: What about an example of using the webbrowser as the frontend? I use some pen-testing suites that use html as the GUI. Here is an example, kind of ugly since it is just to demonstrate what you can do. Also, I am no web developer so the html was mostly … | |
Re: I posted a snippet on IRC stuff. Could help with the protocol commands. I don use regex though, so its a bit messy with all the splitting and stripping. [URL="http://www.daniweb.com/code/snippet297621.html"]link[/URL] Mine is more of a functional bot, not AI. It supports texting a cellphone, and translating languages via xgoogle. | |
Re: Did you install from a binary or from source? | |
Re: It keeps clearing the text file because your passing the "w" to the open method. "a" appends data to the end while keeping everything else untouched. As for the data changing, why not use pickle? It would be easier that way. The best I can figure it, is to first … | |
Re: There is another way. Maybe try using os.popen()? You could for i in listdir("path-to-dir"): os.popen("move "+i+"other-dir") Idk that's just my take on it. | |
Re: Also, if you want to get into network programming, it would help to know more about networking in general. Learn the OSI model and how the different layers work. | |
Re: [QUOTE=ohmang841;1163926]Hi guys...I'm new to python so I've no idea what I'm doing but I need to write a function that 1) asks the user how many strings they would like to input. 2)Stores the strings in a list 3) sorts the list 4) Displays the sorted list 5) Displays the … | |
Re: I don't know what your trying to connect to, but here is an example to open a COM, receive data, send data and close. [CODE] import serial #Use the COM port you are trying to use #also set the baud at object creation ser = serial.Serial('COM8', baudrate=19200) #treat like a … | |
Re: Try serial.Serial("COM3") or the port you need. | |
Re: Blender has python built in. In the newer versions of Blender, there is even a python console interpreter built right into the scripting section for quick easy debugging and prototyping. [URL="http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Advanced_Tutorials/Python_Scripting/Export_scripts"]Here[/URL] is a tutorial with getting started with Blender and Python. As for actually converting the image, I can't help. … | |
Re: Look into port forwarding. You will have to log into your router and set it up there. [URL="http://portforward.com/"]Here [/URL]is a link to help ya out. | |
Re: Are you looking for something like Visual Studios by Microsoft so you have a GUI for building other GUIs for local apps. Or do you want something like Dreamweaver and build forms for websites? | |
| |
Re: As mentioned [URL="http://code.google.com/p/android-scripting/"]Sl4a.[/URL] You will need to install [URL="http://code.google.com/p/android-scripting/downloads/detail?name=PythonForAndroid_r4.apk&can=2&q="]python for android[/URL], which now is a different project and offers 3rd party libs like Twisted. You can [URL="http://code.google.com/p/android-scripting/wiki/SharingScripts"]compile[/URL] your scripts and distribute on the android market as you please. I would suggest just learning Java and writing apps the [I]right[/I] way. … | |
This will allow you to login a website with python. After logging in, you now have access to all the pages for "members only" accessed with python. Could be handy for a myspace update program, webcrawlers, facebook(not recommended, facebook doesn't like scripts), and other things. Some knowledge of HTML is … | |
Re: I'm not sure about python itself doing it, but the way I would approach it would be to use an external program to do the actual video encoding. You could call it from python after you saved as many image files you wanted with your method of grabbing the images. … | |
Re: I would suggest putting the stick figure in a class that has an update method. The update will raise and lower the stick figures y position up and down. You will also need a while loop for the main code, so you can call the update method you created. You … | |
Re: You could dive into some frameworks you can do nifty things with. Like [URL="http://twistedmatrix.com/trac/"]Twisted[/URL], [URL="http://www.pythonware.com/products/pil/"]PIL[/URL], [URL="https://www.djangoproject.com/"]Django[/URL], [URL="http://opencv.willowgarage.com/wiki/PythonInterface"]OpenCV[/URL], or take some of [URL="http://en.wikipedia.org/wiki/List_of_algorithms"]these[/URL] algorithms and code them in python. The skys the limit. One of the first useful things I did with python was tracking an IR light source with my … | |
Re: [QUOTE=sathyapro;1683905]hi thanks for the reply.. but i couldn,t get any copy of that book in any link.. pls send the link which contains that book if u ve found any.. i m using python 2.7 version for windows[/QUOTE] You can buy the book [URL="http://shop.oreilly.com/product/9780596513986.do"]here.[/URL] You could also read an online … | |
Re: I wrote a key logger myself. I use pyHook and pythoncom from the pywin module. Here is the link [url]http://www.daniweb.com/forums/post1011963.html#post1011963[/url] | |
Re: It is to initialize things your going to need in the class. It is also where you receive the parameters the class needs. Anything you see that looks like "self.name" can be used by the methods inside the class. | |
Re: Look in the LocationFacade [URL="http://code.google.com/p/android-scripting/wiki/ApiReference"]here.[/URL] | |
Re: To get the events you need to have them all together. [CODE] #Events for event in pygame.event.get(): if event.type == pygame.QUIT: keepGoing = False# if event.type == pygame.KEYDOWN: if event.key == pygame.K_RIGHT: direction = "right" if event.key == pygame.K_LEFT: direction = "left" #etc.... #put all the "key" events under the … | |
There isn't a whole lot here about security related stuff, so I figured I would post some work in progress. It is pretty well commented so following it should be pretty simple. The full story and reasons for doing what I did, and not another way can be found on … | |
Re: Function 1: read in morse file (was passed as argument) create dict fromMorse: example {".-":"a" , "-...":"b" , etc...} creat dict toMorse: example {"a":".-" , "b":"-..." , etc...} return both as tuple Function 2: I don't know the contents of the .txt using arguments supplied map the word to the … | |
Re: You could use any GUI toolkit you want really. You could even create an html page and serve it via python. I have an example in the sticky GUI thread at the top of the python forums. Last I checked it was the last post in that thread. |