- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
School
- Interests
- Computers, Programming, Reading(Michael Crichton and Stephen King a little Le Carre), Bike riding with…
- PC Specs
- Eee Pc running WindowsXP SP3 Custom built w/ amd64 processor 2GB ram running ubuntu
Re: 1. Create a program that shutsdown/loggsoff a user after a period of inactivity. Hint: Use the PyHook module at [url]http://mindtrove.info/articles/monitoring-global-input-with-pyhook/[/url] and the os module 2. Create a function that filters obcenities out of typed speech like in some IRC or AIM chatrooms. Hint: Use the standard re module (may make … | |
Re: American Beauty, god I first heard it about a week ago. Amazing. | |
Re: If by pdu you mean protocol data unit(what i get when I google "pdu"), then thats a protocol not a character set. If you mean ETSI GSM 03.38(some character set i get when I google "pdu to ascii") then here is a [URL="http://www.smsitaly.com/Download/ETSI_GSM_03.38.pdf"]list of pdu characters to their corresponding unicode … | |
Re: You may have already tried this while trying os.system but in windows (Idk about linux/others) this works: [code] os.system("start") [/code] You should be able to start any application in windows just by calling: start path_to_program arguments Also, I assume you want to open a program that uses cmd.exe. Edit: my … | |
Re: ha! Try to click on the images that are buttons... lol. I also found that if you do it a second time it does it faster. | |
Re: Obfuscate the hell out of it. Make it so complicated that it's not worth it for someone to look at the hex values and try and figure out how it works. | |
Re: Or you could just save the data you got from website to a file and open it with os.system(). SendKeys is only available on windows(I believe) and you run into the problem of making sure the active window is notepad. | |
Using FPS IDE with FPC compiler on windows xp. | |
Re: [COLOR="Red"][B]My HTML kicks your C++'s ass![/B][/COLOR] I read that somewhere. lol. | |
Re: Use the readln() function to get user input into a string variable. Then check the length of the string(the string should only be one character if the only numbers that are valid input are 1 2 and 3). Then check to see if that character is the ascii code of … | |
Re: [CODE=pascal]procedure Taylor(var dat: table ; cd: integer; h: real); begin for i:=2 to cd + 1 do begin dat[i,1] := dat[i,1] + (i-1)*h; x := dat[i-1,1]; y := dat[i-1,2]; result := h * (x*exp(ln(y)/3)) + (sqr(h)/2) * ((sqr(x)/3) * exp(-ln(y)/3 + exp(ln(y)/3)) + ((h*h*h)/6) * (-(x*x*x/9)/y) + x *exp(-ln(y)/3)) + … | |
I am attempting to get the username of the current user on a windows computer using windows API. I am using the GetUserName function in the Windows Unit. I am having some problems with giving the correct data types for function arguments. Any help would be greatly appreciated. [code] program … | |
I've noticed there is at least 1 thread regarding to artificial intelligence. I assume most people new and old to python would be interested in artificial intelligence and the even greater goal of artificial life. I personally do not know anything about them. If you have ever had any experience … | |
| Re: I did something very similar for my father who happens to be a weather nut. I went online and found the webpage for our zipcode and used urllib to get updates of the webpage every 15 minutes or so. Then I just parsed the html for common things like temperature, … |
Im confused and I need to know how to read from a tkinter textbox in order to create a text editor. Also would it be possible to have certain words colorized as you type in words? I would like to make this into a code editor possibly. Any help would … | |
Re: I know you can use this to open IE6 but i do not know if it will open html files [code] import webbrowser url = http://www.google.com # I presume you can open html files webbrowser.open(url) [/code] | |
Re: You should be able to do that by changing the Registry. Remember: Google is your friend. | |
Re: You can use the standard Tkinter module or download wxPython. There are others but those are the most popular I think. Google for tutorials. | |
Re: If you are using windows you can use the third party module pyHook. | |
| Re: No. The win32gui.GetDesktopWindow function returns the screen size. |
Re: This is a quick little hack I made for windows that works on my vista computer, no third party modules needed ;-) [code=Python] import os data = os.popen('vol '+'c:', 'r').read() data = data.split() return data[len(data)-1:] [/code] I looked around quick on the web and on linux you might be able … | |
I was a little bored today and I started to google how the Python Virtual Machine works. I found a bunch of helpfull articles and kind of understand at least some of the very basic PVM code using the modules py_compile and dis. I was wondering how to write the … | |
Re: [QUOTE=evstevemd;817596]The only thing I wanted to know if there is anything I need to know before attempting writting my Own chat program.[/QUOTE] Sorry to damper your spirits but a good (better than ~workable) knowledge of threading would be a must, re module for filtering out curses(if you want to), file … | |
I know the codes not the best well written but the only problem I'm having(besides the interpreting of the macro commands, the one here is just a base for me to work on) is how the UpdateLabels.start() method returns: [code]Traceback (most recent call last): File "C:\Users\Erik\Desktop\Stuff from last Night\MouseMacro.py", line … | |
Re: You can always make the server aplication give a python script conditions such as calling from the shell "python MyScipt -user=USER -pass = password" and the python script will verify the username. I think the sys has a module that allows you to use conditions. | |
Re: Im not into ctypes yet but I do know that in "#define HGE_VERSION 0x180" 0x180 is not just for python. It is a hex number so it should be represented in most if not all programming languages. All else fails you could do the conversion your self i guess... | |
Re: First of all the files you are trying to access are probably restricted to admin or root. Second of all when you use the open(raw_input("File Name: ")) it should include a whether you want read/write access. Corrected code would be [code=python]open(raw_input("File Name: "), 'r')[/code] The 'r' is saying you want … | |
Re: You would have to figure out how google has their cookies. Basicly you would need the user to enter acount and password and create a cookie and put it in the cookie for the webrowser or os (Im no expert here...). Then you would use the webbrowser.open() module. | |
Re: use the #python channel at the irc server at saurik.com for ipod touch and the official #python channel | |
Re: check out [url]http://pythonce.sourceforge.net/Wikka/GUIToolkit[/url] for alist of gui toolkits for python ce. If you can't figure that out then just do a command line app. |