Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: hide encrypt verification on URL
Post: RE: hide encrypt verification on URL
https://support.mozilla.org/en-US/questions/1241326 |
|
marienbad |
Bar |
1 |
1,914 |
Feb-27-2019, 04:54 PM |
|
|
Thread: webpage input module
Post: RE: webpage input module
look into requests and pyautogui. |
|
marienbad |
Web Scraping & Web Development |
2 |
2,198 |
Feb-26-2019, 12:09 AM |
|
|
Thread: GNS3 telnet from bash terminal to virtual cisco router
Post: RE: GNS3 telnet from bash terminal to virtual cisc...
No. I can telnet to 192.168.0.10:5006 but it doesn't ask for username or password which are set via config.
okay, just tried it and it wont even telnet to 192.168...etc now. It is like they are los... |
|
marienbad |
Networking |
2 |
3,742 |
Feb-24-2019, 07:55 AM |
|
|
Thread: Grep command and variable in a script
Post: RE: Grep command and variable in a script
set addr equal to the ip you want to grep:
import subprocess
cmd = "grep " + addr
returned_value = subprocess.check_output(cmd)
print('returned value:', returned_value) |
|
marienbad |
Networking |
1 |
2,764 |
Feb-21-2019, 05:22 PM |
|
|
Thread: How to run local python script to remote machine without sending
Post: RE: How to run local python script to remote machi...
You need to set up a server socket on your local machine, and a socket on the remote, and connect them.
See: https://docs.python.org/2/howto/sockets.html and https://realpython.com/python-sockets/ |
|
marienbad |
Networking |
1 |
8,337 |
Feb-21-2019, 05:18 PM |
|
|
Thread: HTML+CGI (if __name__ == '__main__')
Post: RE: HTML+CGI (if __name__ == '__main__')
I re-wrote the FiloeSearch method like this:
def FileSearch(fileName,pattern):
name_line = ""
time_line = ""
place_line = ""
name, time, place = None;
with open(fileName, "r+") as f:
... |
|
marienbad |
Web Scraping & Web Development |
6 |
3,522 |
Feb-19-2019, 04:20 PM |
|
|
Thread: HTML+CGI (if __name__ == '__main__')
Post: RE: HTML+CGI (if __name__ == '__main__')
You have commented out the lines where it gets the actual form data:
# Create instance of FieldStorage
#form = cgi.FieldStorage()
# Get data from fields
#first_name = form.getvalue('firs... |
|
marienbad |
Web Scraping & Web Development |
6 |
3,522 |
Feb-19-2019, 03:39 PM |
|
|
Thread: Unexpected round behavior
Post: RE: Unexpected round behavior
See here: https://docs.python.org/2/tutorial/float...-fp-issues |
|
marienbad |
General Coding Help |
1 |
2,280 |
Feb-19-2019, 02:39 PM |
|
|
Thread: Program that, inside a loop, does multiple things. needs to print in a certain way
Post: RE: Program that, inside a loop, does multiple thi...
Can you see the little yellow and blue button on the toolbar? click that and put your code between it.
Also look into the pprint library for pretty printing. |
|
marienbad |
Homework |
1 |
2,673 |
Feb-19-2019, 02:35 PM |
|
|
Thread: GNS3 telnet from bash terminal to virtual cisco router
Post: GNS3 telnet from bash terminal to virtual cisco ro...
I am running Ubuntu and have installed GNS3. I followed the tutorial on the basics of setting up a couple of cisco routers here: https://docs.gns3.com/1d1huu6z9-wWGD_ipT...index.html and have enabled... |
|
marienbad |
Networking |
2 |
3,742 |
Feb-19-2019, 02:25 PM |
|
|
Thread: HTML+CGI (if __name__ == '__main__')
Post: RE: HTML+CGI (if __name__ == '__main__')
You need to move the "if __name__=="__main__"part, it needs to go at the bottom of the code:
if __name__=="__main__":
htmlHead()
main()
htmlTail()Also, you never appear to call def collec... |
|
marienbad |
Web Scraping & Web Development |
6 |
3,522 |
Feb-19-2019, 02:19 PM |
|
|
Thread: tuple and formating problem
Post: RE: tuple and formating problem
Okay, so the uid is a list of numbers, right? In which case we need to make them a string and check it against the db, so to adjust the above code:
for e.g. uid = [150,110,1,164]
uid_str = ','.join(... |
|
marienbad |
General Coding Help |
7 |
3,400 |
Feb-17-2019, 07:37 PM |
|
|
Thread: tuple and formating problem
Post: RE: tuple and formating problem
If it is in the same form as "150, 110, 1, 164":
(assumes uid is a string)
sql = "SELECT * FROM anställda WHERE ID = ?"
data = (uid,) # you need the comma as it expects a tuple!
conn.execute(sql, d... |
|
marienbad |
General Coding Help |
7 |
3,400 |
Feb-17-2019, 07:14 PM |
|
|
Thread: tuple and formating problem
Post: RE: tuple and formating problem
How is the uid stored in the database? is it one column of varchar, or four separate numbers? |
|
marienbad |
General Coding Help |
7 |
3,400 |
Feb-17-2019, 06:57 PM |
|
|
Thread: tuple and formating problem
Post: RE: tuple and formating problem
sql = "SELECT * FROM anställda WHERE ID = ?"
data = (uid[:4],) # you need the comma as it expects a tuple!
conn.execute(sql, data)
does this work? I am unsure how uid is used and why you have 4 valu... |
|
marienbad |
General Coding Help |
7 |
3,400 |
Feb-17-2019, 05:56 PM |
|
|
Thread: A virtual network to use with python to learn about networking with python?
Post: A virtual network to use with python to learn abou...
I have got through the python cgi stuff, and am reading a book about networking with python. It started okay but then he was off talking about setting up virtual networks, and cisco stuff, and then h... |
|
marienbad |
Networking |
0 |
2,356 |
Feb-11-2019, 09:20 PM |
|
|
Thread: Forms, python, passlib and other questions
Post: Forms, python, passlib and other questions
I am trying to learn about forms and server side scripting with python. I read the w3c forms tutorial and then watched the tutorials here: https://pythonschool.net/server-side-scr...de-script/ where ... |
|
marienbad |
Web Scraping & Web Development |
1 |
2,449 |
Feb-04-2019, 08:51 PM |
|
|
Thread: Ball bouncing down a ramp
Post: RE: Ball bouncing down a ramp
Read this and use it: http://www.petercollingridge.co.uk/tutor...imulation/ |
|
marienbad |
Homework |
2 |
2,185 |
Jan-31-2019, 08:02 PM |
|
|
Thread: Python Modules and Tutorials
Post: Python Modules and Tutorials
I would like to learn some more python beyond just pygame. Which modules would you recommend a beginner/intermediate learner learn, and which tutorials? I am looking for tutorials that have things t... |
|
marienbad |
General Coding Help |
1 |
2,213 |
Jan-31-2019, 07:58 PM |
|
|
Thread: Posting and you
Post: RE: Posting and you
I am looking for an old video about posting etiquette on the Steam forums, anyone know where I can find a copy? And where is the damn search function?
Also my python program is working apart from th... |
|
marienbad |
Bar |
10 |
7,588 |
Jan-28-2019, 01:38 PM |