« first day (11 days earlier)      last day (23 days later) » 

12:33 AM
newest questions tagged python - Stack Overflow
0

Greg SchmidtHello! I am attempting to script a short code to figure out the number of days it takes to reach a given principal in the bank due to daily interest. Using my code below does not yield any errors when run in IDLE, but the counter returns 0. Any ideas what I missed? from math import * d...

newest questions tagged python - Stack Overflow
0

RobbieI'd like a way to download the content of every page in the history of a popular article on Wikipedia. In other words I want to get the full contents of every edit for a single article. How would I go about doing this. Is there a simple way to do this using the Wikipedia API. I looked and ...

newest questions tagged python - Stack Overflow
0

xiaodaiI have a CSV file the first row of which contains the variables names and the rest of the rows contains the data. What's a good way to break it up into files each containing just one variable in Python? Is this solution going to be robust? E.g. what if the input file is 100G in size? I am tryi...

 
12:50 AM
newest questions tagged python - Stack Overflow
0

KitI am familiar with using enumerate(): >>> seq_flat = ('A', 'B', 'C') >>> for num, entry in enumerate(seq_flat): print num, entry 0 A 1 B 2 C I want to be able to do the same for a nested list: >>>...

 
 
1 hour later…
2:06 AM
newest questions tagged python - Stack Overflow
1

CryptiteI have a big file transfer (say 4gb or so) and rather than using shutil, I'm just opening and writing it the normal file way so I can include a progress percentage as it moves along. It then occurred to me to try to attempt to resume the file write, if for some reason it borked out du...

 
2:16 AM
newest questions tagged python - Stack Overflow
0

ebtestHi All, I generated a SQL script from a C# application on Windows 7. The name entries have utf8 characters. It works find on Windows machine where I use a python script to populate the db. Now the same script fails on Linux platform complaining about those special characters. S...

 
 
1 hour later…
3:32 AM
newest questions tagged python - Stack Overflow
0

tazimHi, I am using python's multiprocessing module to spawn new process as follows : import multiprocessing import os d = multiprocessing.Process(target=os.system,args=('iostat 2 > a.txt',)) d.start() I want to obtain pid of iostat command or the command executed using multiprocess...

newest questions tagged python - Stack Overflow
0

aaronasterlingI'm writing a threading.Thread subclass that implements 'callable' methods. Normally with an arbitrary method on a thread, the method runs in whatever thread calls it. These methods run in the thread that they are called on and either block further execution in the calling...

 
4:05 AM
newest questions tagged python - Stack Overflow
0

jakopandaI am playing around with vim and I heard that python.vim has some nifty settings for python. Link to python.vim vim.org/scripts/script.php?script_id=790 Q1: How do I integrate python.vi...

 
 
1 hour later…
5:26 AM
newest questions tagged python - Stack Overflow
0

Pete HuntHi Stack Overflow - I am developing a pure-Python module as a drop-in replacement for a C extension module. This C extension module is GPL'd and has unit tests written in Python. If I am developing open-source software under the MIT, am I able to re-use these test cases in my project?

 
5:48 AM
newest questions tagged python - Stack Overflow
newest questions tagged python - Stack Overflow
http://stackoverflow.com/questions/3332454/oop-python-oriented-tutorials
 
6:10 AM
newest questions tagged python - Stack Overflow
4

alexSuppose I downloaded the HTML code, and I can parse it. How do I get the "best" description of that website, if that website does not have meta-description tag?

 
6:37 AM
newest questions tagged python - Stack Overflow
1

TauquirI want to pass variables in CSS. But the condition is that the CSS file is not my control. So, is there any way? If yes, please help me out. can i access my css file on fly by using python script?

 
7:15 AM
newest questions tagged python - Stack Overflow
0

YogeshHi i need to parse xml file which is more then 1 mb in size, i know GAE can handle request and response up to 10 MB but as we need to use SAX parser API and API GAE has limit of 1 MB so is there way we can parse file more then 1 mb any ways.

newest questions tagged python - Stack Overflow
0

Keyur ShahHey, I m starting to build python application in windows platform using google appengine whats the steps to debug and run my application and i use wordpad for this reply please

 
7:43 AM
1
Q: Got some free time and I would to learn to code but am confused where to begin after reading SO much about different languages. Please help!

ditoaHey :) Firstly I know this question gets asked a lot and I have read through most of the “I want to start programming, what language should I learn?” posts but I also figured everyone is different and their past experiences and interests make the answer(s) to “that” question different....

 
7:59 AM
2
Q: Can I upgrade the sqlite3 package in python 2.6? How?

Carson MyersI was using Python 2.6.5 to build my application, which came with sqlite3 3.5.9. Apparently though, as I found out in another question of mine, foreign key support wasn't introduced in sqlite3 until version 3.6.19. However, Python 2.7 comes with sqlite3 3.6.21, so this work -- I decided I want...

0
Q: python: overriding access a var

GuyI have a class: class A: s = 'some string' b = <SOME OTHER INSTANCE> now I want this class to have the functionality of a string whenever it can. That is: a = A() print a.b will print b's value. But ...

0
Q: Should I use Pylon's Paste to host my Pylons website? Or can I use Apache?

ChuckI'm looking into Pylons and was wondering, should I use Paste as the webserver or can I use Apache? Are there advantages to using Paste? Would you recommend against using Apache? How should I host the sites?

 
8:27 AM
0
Q: How can I check with Python which Window Manager is running?

JayI want to check which Window Manager the user is using (like GNOME or KDE etc.). How do I do that?

0
Q: NameError for using timeit in python

mastiI got NameError when I try to run this codes."global name j is not defined". How can I fix it? def test(j): for i in range(j): j = i**2 if name=='main': from timeit import Timer j = 30 t = Timer("test(j)","from m...

 
8:43 AM
0
Q: stdout to tkinter GUI

FLXHi, How can I redirect stdout data to a tkinter Text widget? Much obliged, Dennis

 
9:10 AM
0
Q: Finding what list a class instance is in, in Python.

Ryan JenkinsThis problem is thus: I have an instance of a class, I want to know what list it is a part of, i.e. : class test_class() : def test() : print 'I am a member of list', parent_list foo = [test_class(), 52, 63] bar = ['spam', 'eggs'] foo[0].test() I would li...

 
9:21 AM
0
Q: how to deal with unicode in mako?

Giorgio GelardiI constantly get this error using mako: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 6: ordinal not in range(128) I've told mako I'm using unicode in any possible way: mylookup = TemplateLookup( direc...

0
Q: Windows XP GTK App Glib Import Error

Andy BarlowHello, I am trying to run my GTK app on Windows XP and I am having troubles with an import. I have installed the following as needed and recommended: python-2.6.msi gtk2-runtime.2-16.6.exe pycairo-1.8.6.exe pygobject-2.20.0 pygtk-2.16.0.exe pyserial-2.5.exe However, I a...

0
Q: Load c++ memory file into Python

RokI have a file that in C++ I load into array using below code: int SomeTable[10000]; int LoadTable() { memset(SomeTable, 0, sizeof(SomeTable)); FILE * fin = fopen("SomeFile.dar", "rb"); size_t bytesread = fread(SomeTable, sizeof(SomeTable), 1, fin); fclose(fin)...

0
Q: Problem porting sudoku solver from C to Python

Josh MeredithI recently wrote a sudoku solver in C to practice programming. After completing it I decided to write an equivalent program in Python for a comparison between the languages and more practice and this is where the problem is. It seems to be that a global variable (sudokupossibilities[][][]) I d...

 
10:21 AM
0
Q: How can I specify the client's data port for a ftp server in active mode?

bluesea007I use python ftplib to connect to a ftp server which is running on active mode; That means the server will connect my client machine on a random port when data is sent between us. Considering security issue, Can I specify the client's data port (or port range) and let the server connec...

0
Q: eroor on localhot

Keyur Shahhey, when i m going to login i got the following error Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3199, in _HandleRequest self._Dispatch(dispatcher, self.rfile, outfile, env_dict) Fil...

 
10:43 AM
0
Q: ValueError: invalid literal for int(): Screw plugg (91_10 -> untitled) in python

sunnyhi, i have partintid = int(Screw plugg (91_10 -> untitled)) i want to convert 'Screw plugg (91_10 -> untitled)' to int. but i get ValueError: invalid literal for int(): Screw plugg (91_10 -> untitled) Any help? - sunny

 
10:54 AM
0
Q: Returning only No. of Google Search Results via Python

user401461I wish to return only the number of google search results for a particular keyword in the fastest manner possible, avoiding (keeping to minimum) the use of third party libraries. I have already considered xgoogle.

0
Q: Is there Python Clang wrapper in the vein of pygccxml which wraps GCC-XML?

jkpFor a long time now I've been using pygccxml to parse and introspect my C++ source code: it helps me to do some clever code-generation during our build process. Recently I've read a lot about the benefits of the LLVM stack, and especially the benefits that the LLVM Clang parser brings ...

 
11:16 AM
0
Q: How to simulate clicks on <a href="javascript:dosomething(12345)">text</a> using python?

ShaneI want to simulate such clicks without controlling web browsers to do the job. I don't know much about javascript and actually don't know where to start. Any ideas?

 
11:43 AM
0
Q: What is the best way to change python object into XML?

MikadoI've tried lxml and eventually had to write the whole code for saving object as xml which isn't perfect. I suppose there is a neat way to do it but I just can't find it.

 
12:27 PM
0
Q: Web server - ns2 middleware (in Python)

BarunHi Developers, I want to integrate ns2 with a web server to show some kind of simulation results. Could anyone plz suggest if there's any middleware for this purpose? Google failed to return me any suitable result for this :( Also, if I plan to develop a middleware from scratch...

0
Q: Capturing event of client disconnecting! - Gevent/Python

RadiantHexHi folks, I'm using long polling for a chat with gevent. I'm using Event.wait() when waiting for new messages to be posted on the chat. I would like to handle the occasion a client disconnects with some functionality: e.g. Return ...

0
Q: python: urllib2 how to send cookie with urlopen request

Oleg TarasenkoHi, I am trying to use urllib2 to open url and to send specific cookie text to the server. E.g. I want to open site Solve chess problems, with a specific cookie, e.g. search=1. How do I do it? I am trying to do the follow...

0
Q: Mysql connection with python in a class

decebali'm trying to connect to a database building a class connection()saved in local folder in file utils.py .This is what i worked so far of it: class connection: def __init__(self): self.conn = MySQLdb.connect(host = "localhost",user = "decebal", ...

 
1:00 PM
0
Q: Get the current value of env.hosts list with Python Fabric API

AlixHello, I've got this code (foo and bar are local servers): env.hosts = ['foo', 'bar'] def mytask(): print(env.hosts[0]) Which, of course prints foo every iteration. As you probably know, Fabric iterates t...

 
1:22 PM
0
Q: TypeError when iterate over DiGraph()

mastiHii! I want to get the time execution of my function ( test(G) ). when I use Timer I need to write the type of my object : "test(% ?? )" %G which is DiGraph here. How can I do that? from networkx import nx def test(G): for e in G.edges_iter(): print(e) if __name__...

0
Q: Python - urllib2.urlopen - Why do I get garbled characters?

ShaneHere's my problem: import urllib2 response=urllib.urlopen('http://proxy-heaven.blogspot.com/') html=response.read() print html It's just this site, and I don't know why the result is all garbled characters. Anyone can help?

0
Q: Embed text into PNG

CheeryI'm looking for a tool that'd let me embed json-formatted information inside a PNG -file. This far it's been quite quiet. Do I have to write it myself? I'd be especially interested of doing it with javascript. Into an image I extract from a canvas with toDataURL -m...

0
Q: Python access parent object instances

BushmanI'm currently trying to write a multiple-file Python (2.6.5) game using PyGame. The problem is that one of the files, "pyconsole.py", needs to be able to call methods on instances of other objects imported by the primary file, "main.py". The problem is that despite the fact that I have a lis...

0
Q: Are object literals Pythonic?

ShinNoNoirJavaScript has object literals, e.g. var p = { name: "John Smith", age: 23 } and .NET has anonymous types, e.g. var p = new { Name = "John Smith", Age = 23}; // C# Something similar can be emulated in Python by (ab)using ...

0
Q: How to check if a MySQL connection is closed in Python?

KentThe question says everything. How can I check if my MySQL connection is closed in Python? I'm using MySQLdb, see http://mysql-python.sourceforge.net/

0
Q: usb pnp events on windows

Doriis it possible to enumerate usb devices on Windows with python? could someone provide an example if its possible

 
1:55 PM
0
Q: Google App Engine: Handlers and WSGI urls

PickelsHello, I am new to GAE and I am creating an application with the webapp framework. I was wondering when do you set handlers in your app.yaml and when you define them in your WSGI? At first I thought you only have one main.py main file running the WSGIApplication but I notice i...

 
 
1 hour later…
3:01 PM
1
Q: Is while True: a suitable way to repeat a block until an accepted case is reached?

ThorsleyIs while True an accepted method for looping over a block of code until an accepted case is reached as below? Is there a more elegant way to do this? while True: value = input() if value == condition: break else: pass # Continue code her...

0
Q: Pulling Data From Multiple Tables in Django

MikeI'm kind of new to Django and am having some trouble pulling from existing tables. I'm trying to pull data from columns on multiple joined tables. I did find a solution, but it feels a bit like cheating and am wondering if my method below is considered proper or not. class Si...

0
Q: Create a .txt list of IPs in a subnet

MisterITGuyI'd like to make a very simple text (.txt) file. This python program needs to make a list of multiple ranges of IPs in a subnet, each taking up one line. Example: 10.10.27.1 10.10.27.5 10.10.27.6 10.10.27.26 10.10.27.27 10.10.27.28 10.10.27.29 10.10.27.51 10.10.27.52 1...

 
3:40 PM
0
Q: "case sequence" in python implemented with dictionaries

decebali have implemented a function: def postback(i,user,tval): """functie ce posteaza raspunsul bazei de date;stringul din mesaj tb sa fie mai mic de 140 de caractere""" result = { 1:api.PostDirectMessage(user,'Trebuie sa-mi spui si marca pe care o cauti'), 2:post...

0
Q: Continuing code execution after a pygtk.main() in python

Stealth-I have an application where my DataFetch() class "Wraps" around my HBHTray() class for the purpose of interacting with the functions/variables of that class. Unfortunately, I can't seem to be able to get the code to continue execution after my DataFetch() class makes a instance of HBHTray and ...

 
3:56 PM
0
Q: Elegantly generating a datetime from a URL in Django?

Michael MorisyI'm working on a web app that will allow the user to do a lookup by date, so that, for example: results = Something.objects.filter(end = date) I'm planning on passing in the date information via the URL, like this: example.com/invoicer?2/9/198...

0
Q: Python's `urllib2`: Why do I get error 403 when I `urlopen` a Wikipedia page?

cool-RRI have a strange bug when trying to urlopen a certain page from Wikipedia. This is the page: http://en.wikipedia.org/wiki/OpenCola_(drink) This is the shell session: >>&...

 
4:24 PM
0
Q: Overriding inherited properties’ getters and setters in Python

casrI’m currently using the @property decorator to achieve “getters and setters” in a couple of my classes. I wish to be able to inherit these @property methods in a child class. I have some Python code (specifically, I’m working in py3k) which looks vaguely like ...

0
Q: Python/Web: What's the best way to run Python on a web server?

NikiI am leasing a dedicated web server. I have a Python web-application. Which configuration option (CGI, FCGI, mod_python, Passenger, etc) would result in Python being served the fastest on my web server and how do I set it up that way?

 
4:34 PM
0
Q: Python Permutation code.

justestingHello there, Started to learn programming 2 months ago, in one of my little projects i encountered the need to generate permutations of list of objects. I knew that i'll find how to do this if i'll just searched for it, but i wanted to make one of my own, so i worked up and made my own...

0
Q: How to handle HTML Arrays with App Engine Python?

Sam SI'm stuck with this problem I made an HTML Array, but I can't read it out with Python. Is it even possible to do it in App Engine? I read it was possible in PHP. This is the html code: <label for="hashtags">Hashtags: </label><br/> ...

 
5:02 PM
0
Q: Setting Return-Path with Python sendmail for a MIME message

PierreHi, Hi would like to set the "Return-Path" header for a MIME message I send with Python. Basically, I tried something like this : message = MIMEMultipart() message.add_header("Return-Path", "something@something.com") #... smtplib.SMTP().sendmail(from, to, message.as_s...

1
Q: Pythonic way to write two if-statements

passinhiI have two variables that are the result of regex searches. a = re.search('some regex', str) b = re.search('different regex', str) This should return a re object. If they are not None, I want to use the group() method to get the string that it matched. This i...

0
Q: Crontab wont run python script

PhilWhen I execute my python script from the command line I have no problems like so: [rv@med240-183 db]$ python formatdb.py [rv@med240-183 db]$ When I try to use crontab to run the script every midnight I get a series of errors: i...

 
5:18 PM
0
Q: twisted: check whether a deferred has already been called

ClaudiuThis is what I'm trying to accomplish. I'm making a remote call to a server for information, and I want to block to wait for the info. I created a function that returns a Deferred such that when the RPC comes in with the reply, the deferred is called. Then I have a function called from a threa...

 
5:51 PM
0
Q: Problems loading JSON code in Python

skeritI've been tyring to figure out how to load JSON objects in Python. I'm able to send a JSON string to the server, but there it fails. This is what I'm sending through a websocket with JavaScript: ws.send('{"test":"test"}'); The server receives i...

0
Q: setDefault for Nested dictionary in python.

user402579How do I use setdefault in python for nested dictionary structures. eg.. self.table[field] = 0 self.table[date] = [] self.table[value] = {} I would like to setdefault for these.

0
Q: django-mptt children selection works on localhost but not on server

EnchantnerI have the same code on localhost and on server (thanks to mercurial), but it works a little bit different. I want to render category and its subcategories in template using this code: views.py: def category(request, category_slug): try: category = Category....

0
Q: Templates in different directory

qweqrqwHi, I want to place the project hierarchy in this way project |-app | \app1 | |-templates | \app1_templ.html | |- views.py | \-models.py |-templates | \main.html |-views.py |-models.py ... But in the main.html i want to ...

 
6:19 PM
1
Q: Can't figure out why a SqlAlch QuerySelectField is not working right (with wtforms)

Jimmy McCarthyI'm having a problem with building a form from a request. I'm using WTForms with the sqlalchemy field extensions (in particular the QuerySelectField), and so users pick a Practice from a dropdown, and then when they submit the form it actually submits the UUID which goes with that practice. ...

0
Q: CPython vs. Jython vs. IronPython for cross-platform GUI development.

HalstI'm thinking of making some kind of experimental IDE for digital hardware design. So I can't decide witch platform to choose. I'm going to have text-editor with syntax highlighting, some vector graphics and lots of tabbed windows. My goals: 1. to make GUI using as less custom c...

0
Q: How do I use pylons (paste) webtest with multiple checkboxes with the same name?

GDornSuppose I have a form like this: <form id='myform'> Favorite colors? <input type='checkbox' name='color' value='Green'>Green <input type='checkbox' name='color' value='Blue'>Blue <input type='checkbox' name='color' value='Red'>Red <...

 
6:41 PM
1
Q: Does nesting affect efficiency?

wrpFor languages that allow nested functions, how does nesting affect performance? I expect this depends a lot on the optimizations done by particular compilers. But with the extreme difference between the deep nesting of Lispers and the "flat is better than nested" of the Pythonistas, I'd like t...

1
Q: Go Language Compared to Python

TheJacobTaylorI am interested in hearing the differences between Go and Python and reading an overview of the similarities. I know that Google has heavy usage of Python and Go looks to be a bit related. I was searching around a bit for a comparison and...

0
Q: Avoiding CannotSendRequest exceptions when re-using httplib.HTTPSConnection objects

LeopdMy code makes a bunch of https calls using httplib. I want to re-use the httplib.py connection object, but if I do, I sometimes get CannotSendRequest exceptions because the connection ends up in a strange state because some other bit of code blows up mid-way through a request. S...

 
6:57 PM
0
Q: Set global hotkey with Python 2.6

arthurI wanna setup a global hotkey in python 2.6 that listens to the keyboard shortcut ctrl + D or ctrl + alt + D on windows, please help me

0
Q: Python - Using os.popen() to parse Unix "ls" - Problems with Killing Child Process

user402642Hi all. From my understanding, os.popen() opens a pipe within Python and initiates a new sub process. I have a problem when I run a for loop in conjunction with os.popen(). I can't seem to CTRL+C out of the loop. Here is my code: for FILE in os.popen("ls $MY_DIR/"): .......

0
Q: Personal archive tool, looking for suggestions on improving the code

momoi've written a tool in python where you enter a title, content, then tags, and the entry is then saved in a pickle file. it was mainly designed for copy-paste functionality (you spot a piece of code you like on the net, copy it, and paste it into the program), not really for handwritten conten...

0
Q: error: ambiguous overload for 'operator/'

tylerthemilerHello, I am new to c, and the following is giving me some grief: int i,j,ll; double ddim,ddip,ddjm,ddjp,ddlm,ddlp; for(i=1; i<(mx-1); i++){ for(j=1; j<(my-1); j++){ for(ll=1; ll<(mz-1); ll++){ ddim=0.5*(diff(i-1,j,ll)+diff(i,j,ll)); ddip=0.5*(diff(i+1,j,ll...

 
7:25 PM
0
Q: Mechanize does not see some hidden form inputs?

AP257I want to scrape this web page using Mechanize. The form element looks like this: <form name="ctl00" method="post" action="PSearchResults.aspx?state=ME&amp;rp=" id="ctl00"> ...

0
Q: Python: Sharing global variables between modules and classes therein.

user402616I know that it's possible to share a global variable across modules in Python. However, I would like to know the extent to which this is possible and why. For example, global_mod.py x = None mid_access_mod.py from global_mod import * ...

0
Q: Communication from arduino to a browser extension all run locally

ChazHello Everyone! I am trying to figure out how I would go about taking serial information from an arduino which controls a javascript browser extension I have running in an open browser locally on a computer. It would seem that I would need some sort of middleman to internalize the ser...

 
7:58 PM
0
Q: Decrypting a gpg file with gnupg

nicklesI'm trying to decrypt some data from gpg files that I've downloaded. Downloading the files to a directory is no problem, but I'm having trouble actually decrypting them. Here's what I'm doing right now: def extractGPGs(gpglist,path,gpgPath="\"C:\\Program Files\\GNU\\GnuPG\\gpg....

0
Q: Can't get Django localization to work

Augusto MenI've searched several threads and bug reports, but couldn't find a solution. I changed the locale of my Django project to pt-br but it made no difference. I excepted all input fields and outputs to localize dates and numbers, specially DECIMAL_SEPARATOR and

0
Q: Which complements Python best: Java, C, or C++?

KenBurnsFan1I am in the process of applying to a Computer Science program which requires students to have at least an intro-level exposure to either Java, C or C++. I have some experience with Python and I would prefer to continue working in Python before starting another language; however, the professor...

0
Q: getting started with processing data with python

I__i have an excel spreadsheet of about 3 million cells. i asked the following question and i liked the answer about saving the spreadsheet as CSV and then processing it with python:

0
Q: pexpect timeout is not being used, only the default of 30 is being used.

darrickcI'm trying to do a lengthy operation but pexpect with the timeout argument doesn't seem to change the length of time before the timeout exception gets fired. Here is my code: child = pexpect.spawn('scp file user@:/temp', timeout=300) whichMatched = child.expect(['(?i)Password'...

2
Q: Python - When Is It Ok to Use os.system() to issue common Linux commands

user402642Spinning off from another thread, when is it appropriate to use os.system() to issue commands like rm -rf, cd, make, xterm, ls ? Considering there are analog versions of the above commands (except make and xterm), I'm assuming it's safer to use these built-in python commands instead of...

 
 
1 hour later…
9:30 PM
0
Q: issue running a program (R) in Python to perform an operation (execute a script)

vehicularlambslaughterHi all, I'm tying to execute an R script from python, ideally displaying and saving the results. Using rpy2 has been a bit of a struggle, so I thought I'd just call R directly. I have a feeling that I'll need to use something like "os.system" or "subprocess.call," but I am having dif...

 
9:41 PM
0
Q: Python: get currently logged user and he's special folders

PrimozDoes this code win32api.GetUserName() works fine on all win system from win 2000 to win 7 ? What about if user is not local user but domain user, does it still work ? When i use this function shell.SHGetFolderPath(0, shellcon.CSIDL_someDirectory, 0, 0), do I...

 
9:52 PM
0
Q: Dynamically update wxPython staticText

SouleHi all, i was wondering how to update a StaticText dynamically in wxpython? I have a script that goes every five minutes and reads a status from a webpage, then prints using wxpython the status in a static input. How would i dynamically, every 5 minutes update the statictext to reflect the sta...

 
10:19 PM
0
Q: smallest learning curve language to work with CSV files

I__VBA is not cutting it for me anymore. i have lots of huge excel files to which i need to make lots of calculations and break them down into other excel/csv files. i need a language that i can pick up within the next couple of days to do what i need because it is kind of an emergency. i...

 
10:47 PM
0
Q: Change default Python version from 2.4 to 2.6

Kristopher IvesI'm wanting to use some newer software that requires Python 2.6, and we currently have both 2.4 and 2.6 installed on our dedicated CentOS server, which looks like this: $ which python /usr/local/bin/python $ which python2.6 /usr/bin/python...

0
Q: python beginner questions

I__i just installed python i am trying to run this script: import csv reader = csv.reader(open("some.csv", "rb")) for row in reader: print row i am running on windows. do i have to type each line individually into python shell or can i s...

 
11:08 PM
0
Q: How do I make a stub XML file from a schema using Python

XofoI want to create a stub xml file from a schema ... what packages are the best to use for this? x

 
11:25 PM
0
Q: csv python questions

I__i am opening a csv file like this: import csv reader = csv.reader(open("book1.csv", "rb")) for row in reader: print row how can i replace the value in column 3 with its log and then save the result into a new csv?

0
Q: python csv: getting subset

I__here is a snapshot of my csv: alex 123f 1 harry fwef 2 alex sef 3 alex gsdf 4 alex wf35 6 harry sdfsdf 3 i would like to get the subset of this data where the occurrence of anything in the first column (harry, alex) is at least 4. ...

 
11:36 PM
0
Q: Can this image processing code be optimised to use less memory?

JohnnyHello stackoverflow, I have a python function that takes a string s-expression like "(add (sub 10 5) 5)", where "add" and "sub" are actually image processing functions, and evaluates and creates the image represented in the string. The image processing functions take constants, variabl...

 

« first day (11 days earlier)      last day (23 days later) »