Description:
The Python computer language.
|
|
|
Ldap module and base64 oncoding
|
| |
I have some data I am working with that is not being interpreted as a string requiring base64 encoding when sent to the ldif module for output. The base64 string parsed is ZGV0XDMzMTB3YmJccGc= and the raw string is det\3310wbb\pg. I'll admit my understanding of the handling requirements of non ascii data in 2.7 is weak... more »
|
|
Plotting with PyQwt
|
| |
Hi,
I'm trying to plot temperature vs. time using Qwt. I have temp data that i get in real time and I want to plot against time. So I thought I would have to use QwtPlot and QwtPlotCurve, so I did this first:
self.tempGraph = Qwt.QwtPlot(self)
curve = QwtPlotCurve()
curve.setData(x, temp)... more »
|
|
Total Beginner - Extracting Data from a Database Online (Screenshot)
|
| |
Hey guys,
I'm learning Python and I'm experimenting with different projects -- I like learning by doing. I'm wondering if you can help me here:
[link]
What this is is a publicly-accessible webpage that's a simple database of people who have used the website. Ideally what I'd like to end up with is an excel spreadsheet with data from the columns #fb, # vids, fb sent?, # email tm.... more »
|
|
Piping processes works with 'shell = True' but not otherwise.
|
| |
Hi everybody, I am new to the group (and relatively new to Python)
so I am sorry if this issues has been discussed (although searching for topics in the group I couldn't find a solution to my problem).
I am using Python 2.7.3 to analyse the output of two 3rd parties programs that can be launched in a linux shell as:... more »
|
|
Utility to locate errors in regular expressions
|
| |
Finding out why a regular expression does not match a given string can
very tedious. I would like to write a utility that identifies the
sub-expression causing the non-match. My idea is to use a parser to
create a tree representing the complete regular expression. Then I could
simplify the expression by dropping sub-expressions one by one from... more »
|
|
Polymoprhism question
|
| |
I'm trying to figure out (or find an example) of polymorphism whereby I pass a commandline argument (a string) which comports to a class (in java, you would say that it comports to a given interface bu I don't know if there is such a thing in Python) then that class of that name, somehow gets intantiated from that string. This way, I can have similar classes, but have my program use various ones by simply changing the commandline argument.... more »
|
|
Using ACLs in JSON
|
| |
I'm designing a system that should allow different views to different
audiences. I understand that I can use application logic to control
the access security, but it seems to me that it'd make more sense to
have this documented in the data-stream so that it's data-driven.
I was wondering if there was any standard way of doing this in JSON.... more »
|
|
Simple algorithm question - how to reorder a sequence economically
|
| |
What is the easiest way to reorder a sequence pseudo-randomly?
That is, for a sequence 1,2,3,4 to produce an arbitrary ordering (eg
2,1,4,3) that is different each time.
I'm writing a simulation and would like to visit all the nodes in a
different order at each iteration of the simulation to remove the risk... more »
|
|
Read txt file, add to iptables not working on new host
|
| |
First, let me say that I have no knowledge of or experience with Python or Linux/Unix. I have a script which was written by a host tech person that ran via cron on my old server. It was designed to read IP addresses from a text file and add them to be blocked on iptables. That way, we could add or remove IPs without involving tech support daily. It worked... more »
|
|
|