Knowledge Base Contributions
Below is a list of the knowledge base entries that unknown unknown has contributed to:
Page: 1 2 3
- Python, Tkinter and Tcl (newbie alert)
- Python, Tkinter and Tcl (newbie alert)
- String split
- Extracting tuple values from a dictionary
- Special behavior when reading files
- Special behavior when reading files
- Regular expression problem with quotes
- Regular expressions & parsing with quotes
- Applying a filter to all files in a directory
- Key bindings in Tkinter
- Sorting a dictionary by its values
- Inverting a dictionary
- List of references
- List size hints
- What is the standard way of compiling a source file into bytecode?
- Sieves
- Sieves
- Speedy sieves
- Sieves / List size hints
- Is there a way to read and write base-n strings using pack or unpack?
- Sieves / List size hints
- Sieves / List size hints
- List size hints
- Speedy sieves
- How to copy lists and dictionaries?
How to copy lists and dictionaries?
- Re-importing modules
- Translating regsub.splitx() to re.split()
- Quicker file processing
- Perl regex code to Python
- Perl regex code -> Python
- Why do the patterns ^[ \t] and ^[^ \t]* get the same result?
- Substituting strings
- Convertings strings to/from lists
Convertings strings to/from lists
- Converting strings to/from lists
Converting strings to/from lists
- Extracting tagged text from an HTML file
- Extracting fields from HTML table
- Extracting fields from HTML table
- Extracting fields from HTML table
- Can I use Python to run Internet Explorer and control it via COM?
- How do I return a user's login name who is logged on at a PC?
- Is there a Python MySQL module for use under Windows?
- Is there a way of making a MS-DOS box recognise the Python script as an executable file so I can just use the name "script.py"?
- When executing a command with os.system how can I capture the output into a python variable?
- What is the best way of setting default options of widgets?
- What is lambda?
- How can I concatenate external files (all the little *.htm files in a directory) into one big file?
- How do you print the traceback string from an exception?
- What is bbox? In the context of the PhotoImage put(data, bbox).
- How do I display items in many columns and rows from mysql?
- What is the best way to make multiple replacements of text strings in a file?
- How can I access a method with variable amount of parameters?
- How do I call the variable that contains the URL of the previous page?
- What is # for in a URL? eg. www.test.com.somefilename.asp#somevariablename
- How do I register a dll?
- How can I sumit a form after selecting from a drop down list?
- How can I pass an ASP value into an javascript Open() function?
- Is there a built in Python function that eliminates duplicates in a list?
- Where can I find informations about the Gnuplot module?
- Is there any way to make a wrapper for a string object, like UserDict is a wrapper for the dict type?
- Is there any way to control the function that is used during an 'in' search?
- Can I make something like jtable with tkinter?
- Is there a way to differentiate between WinNT and Win9x using Python?
- Where can I download some sort of low-medium security login screen for ASP?
- Is there a way to use the count property to do a response.write.count?
- What is the difference between #include virtual and #include file?
- Using a dynamically generated drop down box, how can I find out which item the user selects without using a submit button?
- How do I submit a page by way of pressing an ENTER KEY?
- What are the contents of .pyo file?
When is a .pyo file generated?
What is a .pyo file used for?
- I can send mail via the smtplib but how do I attach files to the email?
- Is there a quick way to see if a string is a valid date?
- Can I initiate script B at the end of script A?
- Is there any way, other than using the curses library, to check if a key has been pressed, and if so, which one?
Is there any way to prevent curses.initscr() from messing w/ normal prints?
- Is is possible to dynamically add methods to classes in Python?
- Is it possible to configure emacs so that it automatically starts in python mode when opening a file *.py?
- Has anyone created typemaps for SWIG for Microsoft __int64 to bind them to Python long ints?
- Can anyone tell me how I would go about disabling a pmw combobox?
- Is there a Win32 module that I can use to set directory privileges, that has the functionality of cacls.exe using python?
- How do I get Tkinter to resize frames etc. when their parents (e.g. a Toplevel instance) are resized?
- Is there some documentation for the python interface to postgresql?
- Is there a help or man function, like in unix-like OS, that we can use to describe any function of python?
- Why does 123.4+2=125.40000000000001?
- How can I connect to oracle with php4 for Win98(I have got php_oci8.dll and php_oracle.dll from http://download.swwwing.com/php4/modules/)
- Is there a Python module that has functions in it to manipulate Dbase tables and indexes?
- What module would I use to make serial I/O?
- How do I get a file list via an ftp connection?
- How can I convert a hex number to an integer?
- Is anyone aware of a Computer Algebra System (CAS) i.e a mathematical software that is able to derivate, integrate, simplify, find limits, analytically - in python?
- Can I execute ASP and CGI scripting on the same page, at the same time?
- Where can I find ASP code that will upload a file to the server using a form?
- IIS/PWS: How do i set up either IIS or PWS on Windows 2000?
IIS/PWS: How do i set up either IIS or PWS on Windows 2000?
- I've heard the term "magic numbers", what does it mean?
- Could someone give me a simple explanation of regular expressions?
- I'm trying to get a user's username and password but by using raw_input() the password is echoed to the screen. How can I make it so that their password isn't shown?
- How do I create a fully stand alone programme to put on systems where python is not installed?
- When and why should I use Intvar() etc?
When and how do I use the textvariable option?
- How can I find out how much memory a remote computer has installed? The computers are on the same NT network and have the same login.
- Is getstatusoutput() the prefered method to run os commands from within a python script or is there something more generic?
- Can two threads get in each others' way if they simultaneously try to mutate a list?
Can two threads get in each others' way if they simultaneously try to mutate a list?
- Where can I get a sample on how to make a simple com componet to use in an application?
- How do I tell what com components are installed on my server?
How can I tell what com components are on a remote server?
- How can I include a dynamic file in my Asp page?
- What code do I need to set focus to a form field when a page loads?
- I have an ascii string like 0C44DH. Is there a Python function to convert it to decimal?
- Where should I put my HTMLgen directory?
How do I add a path to sys.path?
- What is a tuple and why is it used (as opposed to an array, etc)?
- I am using PHP4 with PWS.I get an error "403.1 Forbidden: Execute Access Forbidden" even though I have give execute permission to c:\inetpub\wwwroot
- How can I map a drive using pythonwin, and see if it was successful or not?
- How do I get the current index of the insertion character in an Entry widget?
- Which linux distros have Python by default?
Is there a handy list somewhere of which Linux distributions can be expected to have Tkinter installed?
- Where can I find info on combining C, Assembler, and Python?
- I'm searching information regarding the use of pointers for linked and double linked lists.
- How to get a persistent connection on all pages?
- Is there anyway to redirect to a page and send it name/value pairs w/o using the querystring?
Anyway to submit a form without a form?
- Is there any online step by step guide for vb component?
- How can I set up the options of one select based on the selection of another within the same .asp page?
- How can I loop through an array?
- How do I make the first row in a drop down blank and below that all the values from a database?
- How do I handle asynchronous file and socket I/O in a Tk-based graphical user interface?
Can I combine a "select" call on some of my file objects with the Tkinter event loop?
- Is there a general way to remove axes of length 1? eg. I have an array of shape (1,3,1,4) I want to change it to (3,4)?
- What type of sort is used for the internal sort function in Python (quick, merge, insertion, etc.)?
- How to print from a client under Windows?
- How can I duplicate the action of a browser POSTing form data to a server?
- How long time does it take before my question actually appears in the Knowledge Base?
- VBScript is excellent for integrating with ADO (Active Data Objects) databases. Is python as facile?
- Where can I get good Tutorials about JPython?
Where can I get good Tutorials about JPython?
- Where can I download python DBI for MYSQL?
Searching a simple tutorial on the internet for accessing a MySQL database using Python.
- How can I print a string without a newline afterwards?
- What simple (Linux) Python code can be used to set the baud rate of a serial port?
- How would I check to see if an object is an instance of a socket?
- Is there some way to get a base 10 log (a mathematical log, as opposed to ln)?
- If given a slice s[a:b] can I assume index "b" means upto but not including the index "b"?
Why is s[a:a] always '' (empty)?
- Can I transform pyc files to py files?
- Is there a way to safely achieve multiple simultaneous writes to a file from different instances of a script i.e. different users?
How can I lock a file?
- Does anyone know how to make a db call to a Sybase db using DB-Lib?
- Is there any drag-and-drop feature now in Tkinter or any other Python public graphical interface?
- I am new to python and have tried to install numpy, but the darn thing doesn't recognise it's existence.
- Is there such a thing as a toString() for objects, like java has, that will be automatically called when an object is used "as a string"?
- Can I explicitly request garbage collection from C?
- How do you get the IP number from a request for a web page?
- Is there a site that lists what functions and or libraries are available?
- Has anyone successfully compiled the Python Interpreter on a Solaris 2.6? If so, do you know where DIR is declared?
- How do I print out the current time?
How can I get the current date and time?
- I'm trying to capture an Entry box's value and then print it out. How can I do this?
- I am looking for a treeview widget. Is there one available?
- How can I generate a html file each day with content from MySQL, fully automated?
Anyone have any ideas for generating a daily statistics page for database records?
- How do I concatenate string1 with a trailing space and string2 with a leading space into String3 so that the 2 spaces in between are maintained.
- Is there a way to conditionally pause a loop until some event (button press) takes place?
- What is wxPython? How does it compare with Tkinter?
- Does Python support multi-threading?
What are the thread and threading modules for?
- How can x threads be started at once and stopped y seconds later, processing only the successfully returned threads?
- Is there some method similar to seek in the urllib-module?
- Is there a component which can send HTTPS Post data?
- How can I upgrade a DLL that's in use on a live server?
- How can I strip unwanted characters out of my string? Octal 240 for instance.
- Does Zope have a version that runs well with Windows 2000 server?
- Is there a version of Python that runs well on Windows 2000 Server?
- Where can I find examples of web programming with Python?
- I'm currently using the storbinary method for transferring files, how can I get some indication that I've transferred xx% of the file, or 100,000 bytes so far?
- Is there an easy way to do user input in python?
- Where can I find an example on how to use python with Tcl/Tk to write GUI windows applications?
- How can I write a perl program which can delete files in a directory which are more than one day old?
- Is it possible for Python to call commands, e.g. "find, perl scripts, nmap, and others"?
- Where can I find some kind of helping material (tutorials etc) about how to use XML and Python?
- I am writing a C++ program with embedded python. How can I redirect import commands to read the file from a different source, possibly not a true file at all but an entry in a zip file?
- How can I combine two BMP images so that one overlays the other?
- How can I free a port that has been used by a python server?
- Has anyone compiled Python for MacOS X?
How can I setup Python on MacOS X?
- How can I find the total size of a directory on my NT machine?
- (win32api) how to enumerate processes?
- What's the event name for catching mouse movement without a button pressed?
- I'd like to create a subclass of list that loads its contents from a file when you instantiate it. What do I subclass to do this?
- Where can/should I register a domain name?
- What is the cost to register a domain site?
- What is the exact syntax of the SQL 'ORDER BY' CLAUSE if I want the order to be in descending order?
- How can I import data from a text file into an Access database?
- Is it possible to call a stored procedure in Access to insert records from ASP?
- How can I send an email using ASP?
- How can I generate a random password?
- How come the global declaration works when I define it from within the interpreter, but not from within a file that I import?
- Walking recursivly through a directory-structure, I've been looking at os.path.walk for this, but I'm not sure how to implement it.
- Why are there no operators equivalent to C's , --, =, etc.?
- How do I go about creating a nested forum?
- What does this usually mean? "500 - Internal server error"
- Can anyone tell me what the code is for executing a program from an ASP-script as HREF?
- How can I trap the values of checkboxes in an action page?
- Is document.form.submit a method in VBScript? Why not use JavaScript instead?
- Do I need any kind of compiler like Visual Basic 6.0 for developing ASP pages?
- Where can I find code for displaying only a certain number of records per page with a next back type of configuration?
- Where can I find a Python script to download an entire web site?
- Is the match() function any different to having search() with a ^ at the beginning of the string?
- I update a class with 'reload (module)'. How can I update the instances too?
How to change class instances behavior via reload?
- Can I take pyc file to different computer and will it run?
- Can I create a rpm with only pyc files or do I need the py file also to make package distrubution?
- How can I present output from md5.digest like md5sum from GNU textutils?
- Is there a standard way to read-write the e-mail with python?
- How can I convert an integer to a string containing the bytes for that value?
- How can I get the width and height of an image (.jpg)?
- How can I download the information from the asp tables into excel?
- How can I request the unique id key that SQL Server generates as it adds the new record?
- How do I view ASP pages in my personal web server?
- How can I embed/port Python to Vxworks?
- Is it possible to set the minimum size of the window?
- How do I set environment variables in a Python script that is to be run on an Apache server?
After setting environment variables in a script will they be changed after running the script?
- How can I create a Tkinter MessageBox with the MessageBox - option "YESNOCANCEL"?
- I'm trying to use the smtplib for sending mail, and I keep getting error: (10061, 'winsock error') when I try just to connect to the localhost.
- Is there a function returning the intersection of two lists?
- Is there anyway I can get the traceback on to the web page so I know what's happening?
- How can I reload things imported with 'from HUGO import *'?
- How can I split text files if the are very long?
- Where can I find information (code, hints...) about Python and Interbase?
- How do I search about 100 tables in the same database AT ONCE looking for a certain record?
- How do Python and Visual Basic compare?
- Is there any way on NT that I can use a function such as "flock()"? On unix, it seems "fcntl" module is available.
- How do I get IDLE to run a script on startup?
- Is there a simple script somewhere I can look at that sends and retrieves cookies via CGI?
- How do I create a binary file and write to it?
- How can I send a requested text/html document through a script before it reaches the client side?
- Is there an Apache module that can include a configured cookie in the log file?
- Where can I find an applet to do bar graphs?
- Can ASP create directories on a server?
- Is there anyway to take the fonts installed on a server and place them into the pages viewed by clients?
- How can I set up the SQL statement to allow apostrophes in the WHERE clause, without causing a syntax error?
- How can I send the data entered in a form to a txt file and then every time more data is sent, the txt file adds it in a new line?
- Where can I find some web tutorials on arrays?
Where I can get further information and tutorials on the Scripting.Dictionary and setting up arrays?
- How do I append to a file instead of overwriting it?
- Is there any way to set a time-out interval when reading URLs?
- How can I save a GIF file in JPEG format?
- Where can I find samples for creating and modifying Images with Tkinter?
- How can I set-up the variable $PYTHONHOME?
- How can I embed Python into C++ and ship my application to a user not having Python?
Is there a similar mechanism like freeze for embedded Python?
- Why do I always get error when try to delete a row in a table using SQL command "DELETE table1 WHERE x='aaa';"?
- What is a good and functional ftp server for linux?
- I would like to upgrade Apache from 1.3.9 to 1.3.12. Should I delete all files in Apache 1.3.9 under /usr/local/apache?
- Do I need to reconfigure/make/install every time I add modules to Apache?
- What is considered to be a reasonable set of file names when a directory is requested?
- How can I restrict access to certain pages first based on username and password, and then, if they are satisified, on IP Address checking?
- How can I get a list of all server variables for IIS?
- Why are my sessions not working on my web server, online (NT system), but they are working on my PWS system?
- How do I make an application object a collection and then dynamically loop through the collection displaying the variable name and the value of the variable?
- Where can I get information on how stored procedures work?
- What is the difference between html and asp?
- How can I automatically obtain the Windows NT Log-On ID on ISS 4.0?
- How can I find out the father class of a given class?
- Is there any difference between the random number generator in the'random' module and that in the 'whrandom' one?
Is there a way to get a reproducible sequence of random numbers?
What's the quality of the numbers generated?
- How can I link python code to a GUI interface generated by Glade or GTK or whatever please?
- How can I associate a new question with an existing answer?
- Is there any way to have the server query another program with the authentication information passed by the client?
- How can we increase the time of session variable dynamically?
- How can I make sure a user doesn't access a page in the middle of my ASP application they haven't logged into?
- Is there a way in .asp to set a cache property to zero?
- What function can I use to count the number of occurrences a specific character makes?
- How can I find out about string functions?
- Are dictionary lookups threadsafe?
Can I lookup and retrieve an item in a dictionary while another thread is adding an item?
- Do PythonCOM servers expose the vtable to the client for use with early-bound IDispatches?
- Do COM servers created with PythonCOM support the dual interface?
- How can I open an existing file and truncate it?
- How do I invoke the 1.6 debugger with my file loaded?
- How can I tokenize a string using more than 1 separator?
- Is there a simple sub routine that will do form validation?
- What is the correct syntax for summing a field returned in a recordset?
- How do I insert an AUTONUMBER into a database?
- What is the best method to use for adding new records to a database? Should I use an SQL statement or an ADO?
- How can I develop my own web based email system with ASP?
- I wonder if there is a way for Python to read directly the user input of a HTML form?
- How can I create a stand alone "win32" executable file from a python script?
Is a compiler available anywhere for python for win32?
- How do I connect to Postgresql on a Debian Linux box using Python from a Windows95 box?
- What is the preferred way to modify an existing behaviour? Modifying inherited methods.
- How can I implement a "cancel"-button that allows a user to cancel a time-intensive function?
- When a method has a boolean return, and two output-params, how do I call it?
- Is there any debugger available as part of the Python installation?
- Is there a HTML search engine written in Python?
- How do you unregister a .dll file on a server?
- When should I switch to SQL Server?
- Where does the asp.dll reside?
- Can I turn one number into single digits by separating each digit in the number into it's own variable?
- How can I clear and reset my Application variables?
- Can I access an excel (.xls) file via com without having excel loaded on that machine?
Where can I find information about how to manipulate Excel with Python?
- How can I create a "rollover" effect?
- How do I force a dump of sys.last_traceback (last traceback object) to a file object, or stringio or something similar?
- How do I get Python to force 'a' and 'b' into strings so that a + ":" + b concatenates instead of trying to add?
- Is there a way to "kill" a thread that is currently asleep?
Can I stop, destroy, suspend, etc. a thread that is asleep?
- How do I place a newline into the win32file.WriteFile (wHandle, string) method?
- How do I write a raw string (r'...') that ends with a backslash?
- How do I write a triple-quoted string that ends with a backslash?
- How does one display images in Python? When I use the .show method it does not seem to work.
- Can I modify JPEG compression with PIL?
- How can I find a good list of web hosting companies that support python?
- Is there a way to launch an OS specific command argument w/ Python?
- Can I pass Recordset from one page to another?
Can I use session variable to pass Recordset from one page to another?
- Is there any easy way to insert into a database without using the name of each field?
What is the syntax of an insert statment?
- Using a windows NT machine running IIS can I connect to a MySQL database on linux and do what I would normally with MS SQL?
- How can I get the image field from a database into my page?
- Can a form's action be set to a specific subroutine or function instead of a whole page?
- How can I create a vertical graphic representation using a loop?
- Using PWS on a NT 4.0 workstation, sometimes it works but, if I have bad SQL, pages stop loading and I have to reboot. What's going on?
- How can I import a library and source written in c into python?
- Is it possible for a program to bind to a socket when that socket is already bound to another application to monitor i/o?
- Is there somewhere that I can download some introductory Tkinter documentation?
- What's the best way to automate a PBEM (Play By E-Mail) game?
- How can I use a proxy (I'm behind a firewall) to get HTML pages from the net?
- How can I create a "Make this my HomePage" button on my site?
- Can I connect a Lotus Notes database to ASP?
- How can I include an ASP page in another ASP page?
- How do I convert xxx minutes to x,x hours?
- How can I make multiple keyword searches?
- How can I delay the execution of a DLL?
- Is there any performance hit if DB connection string is specified in an include file?
Is it better to hard code the DB connection string in each page and close in same?
- How can I insert multiple rows into a database using asp?
- SQL "select * from Orders" returns no result set but I know there's data?
- There's no database on my NT web server, can I interact with only the db file (*.mdb)?
- Where can I get free ASP hosting?
- Does anyone have any hints in configuring Python for BeOS?
- Are colons unnecessary in my Python code?
- Should __getattr__ increment the reference count before it returns the appropriate attribute, or not? writing a Python module in C
- How do Python and Java compare?
How do Python and Java compare?
- How does the statement 'global' work?
- Is it possible to create a win32 python distr with COM support which runs "out-of-the-box" with some sort of path-settings and NO registry-settings?
- Is there any way to use consecutive print statements?
- Is there any way to FORCE fields to be of string?
- Is there an example of a TreeWalker implementation, preferably in Python?
- I've installed python 1.6a2 in solaris 5 succefully, but cannot find _tkinter. import Tkinter complains it cannot find _tkinter.
- Is there a way that I can show everyones individual local time on my website?
- How can I show my country's local time on my web site using ASP?
- What is the Python code that will print primes below 1000?
- How can I import constants from one module to another without explicitly listing each constant?
- What is the use of a heap data structure?
- Is there a heap anywhere in the python modules?
- Is there an easy way of accessing the registry from within Python?
- How can I stop the $ being displayed using formatcurrency?
- How can I get one thread (messenger) to send a message to another thread (waiter) as a responce to some action?
- I'm new to Python and would appreciate advice on what book(s) I should be looking at?
- Is there a pre-written script that will provide either a tar+gz or PkZip like functionality on top of ZLIB?
Page: 1 2 3