Forum: Python 6 Days Ago |
| Replies: 2 Views: 145 are you sure that it is deleting line a? from a quick glance it looks to me like it isn't |
Forum: Python 8 Days Ago |
| Replies: 1 Views: 136 I assume you learnt a different language first?
you don't need the '1' you put in there, I would use:
n=5
for a in range(n+1):
for b in range(n+1):
print a,b
it produces: |
Forum: Python 9 Days Ago |
| Replies: 4 Views: 147 thanks that worked much better :) problem solved |
Forum: Python 9 Days Ago |
| Replies: 4 Views: 147 i'm not sure actually, i mainly copied and pasted from a previous thread about a spell checker I made |
Forum: Python 9 Days Ago |
| Replies: 4 Views: 147 Hi I have this code currently:
dict = open("dict.txt", "r").readlines()
print dict
LETTERS={'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13,... |
Forum: Python 9 Days Ago |
| Replies: 2 Views: 123 |
Forum: Python 9 Days Ago |
| Replies: 2 Views: 123 Hi I have been trying to use the python subprocess module but I find the documentation for 2.6.4 vague, does anyone else know of good tutorials for it? thanks in advance |
Forum: Python 10 Days Ago |
| Replies: 11 Views: 357 yeah that's a good point *solved* :D |
Forum: Python 11 Days Ago |
| Replies: 11 Views: 357 |
Forum: Python 11 Days Ago |
| Replies: 11 Views: 357 yeah I understand that but what I mean is should i set one up if I use python with paid websites and host the site on there? |
Forum: Python 11 Days Ago |
| Replies: 11 Views: 357 okay thanks, so you're saying set up a dedicated server when I go public with this? |
Forum: Python 11 Days Ago |
| Replies: 11 Views: 357 oh okay that's great thanks, i was using the long link because I'm using it on my Apache server to learn it, can you recommend any good free servers that support python? |
Forum: Game Development 14 Days Ago |
| Replies: 2 Views: 344 1) explain what you mean
2) give us some code, we will only help when you put some effort in |
Forum: Python 18 Days Ago |
| Replies: 11 Views: 357 Hi, i currently have these 2 files:
#!C:\Python26\python.exe
#index.py
print 'Content-type: text/html\n\n'
print '<html><head>'
print '<title>My Page</title>'
print '</head><body>' |
Forum: JavaScript / DHTML / AJAX 20 Days Ago |
| Replies: 2 Views: 286 thats exactly the same. But I found how to fix it, I just added a void() around it, it all works fine now problem solved |
Forum: JavaScript / DHTML / AJAX 21 Days Ago |
| Replies: 2 Views: 286 Hi, I am trying to make a twitter bookmarklet that will tweet the current page, I currently have this code:
javascript:window.open('http://twitter.com/?status='+self.location)
but when I try... |
Forum: Python Oct 16th, 2009 |
| Replies: 3 Views: 284 I normally use sets for this kind of thing, http://docs.python.org/library/sets.html (version 2.6.2) |
Forum: HTML and CSS Oct 13th, 2009 |
| Replies: 8 Views: 547 no, what I meant was external html, but it wouldn't have worked, so i changed it to php, so I could have a menu easily |
Forum: HTML and CSS Oct 13th, 2009 |
| Replies: 8 Views: 547 oh, it all seems to work fine, but thanks anyway |
Forum: HTML and CSS Oct 11th, 2009 |
| Replies: 2 Views: 288 |
Forum: HTML and CSS Oct 11th, 2009 |
| Replies: 2 Views: 288 Hi, the site http://932gs.co.cc/secure_site.html loads fine for ie and chrome/chromium but for some reason the javascript wont load, can people verify this and if it is true, how can I fix it? |
Forum: HTML and CSS Oct 10th, 2009 |
| Replies: 8 Views: 547 no, the code validates fine, the css is embedded in the <style? tags, but I moved it into a css file. But thanks, I'll give it a shot |
Forum: HTML and CSS Oct 10th, 2009 |
| Replies: 8 Views: 547 sorry, what I meant is could I treat the code shown above like a css/js/php file and import it into other pages? |
Forum: JavaScript / DHTML / AJAX Oct 10th, 2009 |
| Replies: 1 Views: 509 Hi, using a snippet I found on here I have this code:
var password;
var pass1="PASSWORD-HERE";
password=prompt('Whats The Magic Word?',' ');
if (password==pass1) alert('That Is Correct!');... |
Forum: HTML and CSS Oct 10th, 2009 |
| Replies: 8 Views: 547 Hi, I have this code:
<style>
div.floating-menu {position:fixed;background:#fff4c8;border:1px solid #ffcc00;}
div.floating-menu a, div.floating-menu h3 {display:block;margin:0 0.5em;float:left;}... |
Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2009 |
| Replies: 6 Views: 437 I'm not sure about VB but python has the difflib module |
Forum: Python Oct 3rd, 2009 |
| Replies: 4 Views: 246 yeah, that should work, also can you use the code tags for your code please |
Forum: Python Sep 29th, 2009 |
| Replies: 22 Views: 930 nope, in the eu version it still has the space... at least for me :( |
Forum: Python Sep 29th, 2009 |
| Replies: 22 Views: 930 just thinking... wouldnt it have made more sense to just change "Program files" to "Program_files" or something similar? |
Forum: Python Sep 29th, 2009 |
| Replies: 22 Views: 930 try:
temp_var=r("C:\Program files\Winamp\Winamp.exe")
os.system(tempvar)
Im not sure if defining it as a raw variable would work but its worth a shot |
Forum: Python Sep 24th, 2009 |
| Replies: 7 Views: 214 yeah, I really want to research this I'll keep this thread in mind when I finish it |
Forum: Python Sep 24th, 2009 |
| Replies: 7 Views: 214 oh, I use 2.6.1 so I guess that I just got it wrong :( but it would be something like this then:
x=12345
tempx=str(x)
print x+int(tempx[0])
#or:
for i in len(x+1):
i-=1
print... |
Forum: Python Sep 24th, 2009 |
| Replies: 7 Views: 214 I didnt thing you needed to do so with integers, that the index function handled it anyway |
Forum: Python Sep 24th, 2009 |
| Replies: 7 Views: 214 I'm not sure, without running it myself but I would say:
x=12345
print x+x[0]
#and it should print x+1
#or you could do:
for i in range(len(x)+1):
i-=1
print x+x[i]
#and that should... |
Forum: Python Sep 23rd, 2009 |
| Replies: 10 Views: 366 Oh ok thanks, whenever I run the zip part it uses the original text, not what I changed it to, I tried:
for i, j in permlist, textlist:
print i, ':', j
but it says that it is out of range,... |
Forum: Python Sep 22nd, 2009 |
| Replies: 10 Views: 366 ok thanks, trying it now, So that I can do better handling soon, how can I find the class? |
Forum: Python Sep 22nd, 2009 |
| Replies: 10 Views: 366 hey again, they are good ideas but whenever I try to run it again it says:
Traceback (most recent call last):
File "C:\Python26\test.py", line 18, in <module>
except Error, err:... |
Forum: Python Sep 21st, 2009 |
| Replies: 10 Views: 366 so what could I use?
sorry, at the moment I just want a quick fix and will figure out the best way when I have time |
Forum: Python Sep 21st, 2009 |
| Replies: 10 Views: 366 Hi, I have this code:
import urllib2 as url
import webbrowser
def extract(text, sub1, sub2):
"""
extract a substring from text between first
occurances of substrings sub1 and... |
Forum: Python Sep 19th, 2009 |
| Replies: 6 Views: 285 Ok, will do, once my bro stops downloading crap :( |