text stringlengths 256 65.5k |
|---|
So this is the update that is breaking my Display resolution options
Start-Date: 2013-07-04 09:10:11
Commandline: aptdaemon role='role-commit-packages' sender=':1.48'
Install: linux-image-3.5.0-34-generic:amd64 (3.5.0-34.55~precise1)
End-Date: 2013-07-04 09:10:43
I get the following error after reboot and my preferred... |
A good starting point for app development with quickly and python is here: http://developer.ubuntu.com/resources/tutorials/all/diy-media-player-with-pygtk/
In general, you can see how quickly handles other .ui files in your code in the lines
from test.AboutTestDialog import AboutTestDialog
from test.PreferencesTestDial... |
#2626 Le 05/01/2013, à 15:18
rvhm
Re : TVDownloader: télécharger les médias du net !
bjr
j'ai commencé à mettre les dépendance de tvdownloader
il me manque "libkrb53 (>= 1.6.dfsg.2)"
ou je pourrais le trouver ?
merci
Hors ligne
#2627 Le 06/01/2013, à 18:23
rvhm
Re : TVDownloader: télécharger les médias du net !
bonjour... |
I have Mathematica code that uses Import[] to download URLs. I noticed that first time I use the Import[] command it works. Next time it fails. I'm using Windows 7, Mathematica 8.0.4.
Here is an example. I start new sesssion of Mathematica, and then type
Import["http://groups.google.com/group/comp.soft-sys.math.mathema... |
PyPadawan #2: list comprehensions. Como e quando (não?) usá-las
List o que?
List Comprehensions. Oferece uma forma concisa de declarar listas. Usualmente sua criação consiste na filtragem ou transformação de outros objetos iteráveis ou sequências. A sintaxe, em um primeiro momento parece estranha, mas depois ela faz mu... |
I'm writing a script which has 2 arguments which are mutually exclusive, and an option that only makes sense with one of those arguments. I'm trying to set up argparse to fail if you call it with the argument that makes no sense.
To be clear:
-m -f makes sense
-s makes sense
-s -f should throw errors
no arguments are f... |
pytagger is a ID3 tag reader and writer implemented purely in Python. It supports all the current ID3 tag implementations including ID3v1, ID3v1.1, ID3v2.2, ID3v2.3 and ID3v2.4.
(Note: This project has now been renamed from pyid3v2 to pytagger to avoid conflict with existing projects.)
pytagger-0.5 (10 May 2006)
pytagg... |
What's New in Python 2.3?
by Alex Martelli , author of Python in a Nutshell
03/27/2003
Editor's note: When Alex Martelli said he wanted to write an article about what he was "unable to include in Python in a Nutshell," my first thought was "why would we want to tell readers what they will not find when they purchase th... |
Converse and Charm++
Libraries Manual
cd charm/examples/charm++/lvServer
make
./charmrun ./lvServer +p2 ++server ++server-port 1234
~/ccs_tools/bin/lvClient localhost 1234
Use git to obtain a copy of ccs_tools (prior to using lvClient) and build it by:
cd ccs_tools;
ant;
entry void functionName(liveV... |
malbo
[Tuto] identifier si on est dans un système UEFI ou Bios
ATTENTION : CETTE MÉTHODE D’IDENTIFICATION EST OBSOLÈTE : IL FAUT UTILISER LA PROCÉDURE DE LA DOC : http://doc.ubuntu-fr.org/efi#identifier … n_mode_efi
Le problème se pose pour des PC achetés en 2011 (et +) pour ceux qui souhaitent faire cohabiter Windows ... |
I am using matplotlib to generate diagrams with text being latex-rendered. Now there's this tricky problem which I don't seem to be able to solve by myself..
The secondary y-axis generated using twinx() shows the wrong font for ticklabels and ylabel! What am I doing wrong? Here is what I do.
from matplotlib import pypl... |
I have written a piece of python code in response to the following question and I need to know if it can be "tidied up" in any way. I am a beginner programmer and am starting a bachelor of computer science.
Question:Write a piece of code that asks the user to input 10 integers, and then prints the largest odd number th... |
Woodchuck
Woodchuck is a research project investigating how to improve data availability on mobile devices.
Mobile devices should provide users with the data they want whenever and whereever they are. The current best approximation of this is fetching data on demand. This is inadequate: cellular coverage is not ubiquit... |
If you don't really want to use a public/private key pair, you can write a expect script to enter the password for you automatically depending on the destination address.
Edit: What I mean is that you can have a script that, on one hand, uses expect to enter the password for you and, on the other hand, reads the passwo... |
Retrieving Mails with Twisted
Programming a POP3 client to retrieve mails in the Twisted framework is more complex and takes more code. The logic to retrieve mails is all in a class that subclasses POPClient (from twisted.mail.pop3client). Due to the event-driven nature of Twisted, it's easier to define a method for ea... |
I'm just a beginner with Django, so you'll have to take my response with a grain of salt.
Firstly, request.path should return the path to the page without the domain, according to the documentation. So if the request is for http://example.com/, request.path should be just "/". Correct me if I'm wrong.
But that's not re... |
#2301 Le 28/10/2012, à 16:38
ynad
Re : TVDownloader: télécharger les médias du net !
Re
@11gjm
la liste des correctifs, dans la dernière il y a 4h les deux nouveaux fichiers main.py (v 0.9.3) et PluzzDL.py
qui permettent le changement url
@+
Hors ligne
#2302 Le 28/10/2012, à 16:56
11gjm
Re : TVDownloader: télécharger l... |
This Python script will open a random directory, it takes the working directory to randomize as an argument. You can setup a shortcut to call this as well.
#!/usr/bin/env python
#open-random.py
import os
import sys
import random
import subprocess
if __name__ == "__main__":
if len(sys.argv) == 2:
dirname = s... |
chaoswizard
Re : TVDownloader: télécharger les médias du net !
Bonsoir,
Non ce n'est pas possible, RtmpDump (et je suppose Flvstreamer) n'arrive pas à parser l'URL si elle n'est pas découpée.
J'avais étudié ce problème en mettant au point Arte Live Web pour TVO.
Bon courage pour votre projet
Je viens pourtant de tester... |
This question already has an answer here:
How do I resolve unmet dependencies? 13 answers
I'm trying to install Nitro with this :
sudo apt-get install nitro
And then I get this :
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distrib... |
>> for now). There are some tests included now, and then there is the addition of RdfDisplay and JsonDisplay to remove the need for templates to carry out serialization of query results to those formats.
Friday, September 29, 2006
After literally an all-nighter yesterday Oort 0.2 is now up for grabs. A very sparse exam... |
ljere
Re : ModCustom personnaliser un LiveCD base Ubuntu
modération: page débloqué
Hors ligne
frafa
Re : ModCustom personnaliser un LiveCD base Ubuntu
Merçi !
Hors ligne
melodie
Re : ModCustom personnaliser un LiveCD base Ubuntu
Bonjour,
Après avoir ajouté "maybe-ubiquity" sur la ligne de txt.cfg comme tu me l'as indiq... |
gyp, short for "Generate Your Projects", is a build system written byGoogle that was specifically designed to build their Chromium web browser.gyp makes it easy to develop such a large project because the developers cancreate and test each piece individually by defining self-contained "targets".Then at Release-time, gy... |
I've got code so far that seems to change letters. However, this is how it should be changed: All G become C. All C become G. All T become A. And all A become T.
This is where my problem is happening. As seen, for example, since T becomes A and A becomes T, the code is just leaving it as a T. Because it's changing it t... |
I have an application the sets up the logging using:
logging.basicConfig(level=logging_level, format=format_string, filename=log_file, filemode='a')
then call
logging.debug("My Message")
etc. to log messeages. This work fine in most of my application, but then for a particular module I get this error
File "C:\path\to... |
I have a dedicated server with OVH for my website that has 2x2TB SATA3 hard drives.
Currently I am using about 12GB with files and MySQL databases, however, an email notification I got from them told my hard drive is at 60% capacity. When I log in as root, the command df -k gives the following:
Filesystem 1K-blocks Use... |
mol1
Re : Hortus belli projet de tower defense (finissons le jeu d'helly)
Un lien vers une esquisse de musique :
http://ubuntuone.com/7RqEp9oXkT6K338qog5WlX
Hors ligne
Ypnose
Re : Hortus belli projet de tower defense (finissons le jeu d'helly)
La zike est pas mal.
J'aiderai bien mais je suis pas bon codeur C, donc si v... |
I'm loading a fixture created with dumpdata, and getting the following exception:
Problem installing fixture 'db_dump.json': Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/django/core/management/commands/loaddata.py", line 174, in handle
obj.save(using=using)
File "/usr/lib/python2.6/... |
Spawning a pipeline of connected programs via an intermediate shell — a.k.a. “shelling out” — is a really convenient and effective way to get things done. It’s so handy that some “glue languages,” like Perl and Ruby, even have special syntax for it (backticks). However, shelling out is also a common source of bugs, sec... |
I succeeded in creating a decorator that decorates any types of classes, adding a standard interface to them all, for easy access, integration, etc...
I have resisted using metaclasses, as literature on this point says that it is an overkill and most times can be replaced by say class decorators. What troubles me is th... |
When I compile my document in LaTeX, some formulas in the document in math mode, between $ $, go into the right margin area beyond all the text. Is there a way to fix this aesthetic problem?
LaTeX can break lines within inline formulas, however it does it only at certain places. You could insert
If you would like to al... |
this is my code, the upload.py:
class MyModel(db.Model):
data = db.BlobProperty(required=True)
mimetype = db.StringProperty(required=True)
class BaseRequestHandler(webapp.RequestHandler):
def render_template(self, filename, template_args=None):
if not template_args:
template_args = {}
path = os.... |
Panther, Python, and CoreGraphics
by Mitch Chapman
03/19/2004
Mac OS X Panther includes many updated developer tools. Among them is an enhanced version of Python 2.3 with its own SWIG-based bindings to the CoreGraphics library. Creating PDFs, JPEGs, and documents in other graphical formats just became a lot easier.
Thi... |
class customerDetailView(DetailView):
queryset = Customer.objects.get(name=self.name) # This line give error NameError: name 'self' is not defined
context_object_name = 'customerDetail'
template_name = "customer.html"
allow_empty = True
def __init__(self, name=None, *args):
self.name = name
... |
If you haven't seen it yet there is a new troubleshooting tool out called sysdig. It's been touted as strace meets tcpdump and well, it seems like it is living up to the hype. I would actually rather compare sysdig to SystemTap meets tcpdump, as it has the command line syntax of tcpdump but the power of SystemTap.
In t... |
It looks like Python mocking libraries are the new web frameworks - everyone wrote one. Let me show you my favourite mocking library so far - the mock module, written by Michael Foord. It's easy_installable, so you can get to play with it in a moment.
easy_install mockWhat makes it different than other modules like tha... |
If you're brand new to using unittests, the simplest approach to learn is often the best. On that basis along I recommend using py.test rather than the default unittest module.
Consider these two examples, which do the same thing:
Example 1:
import unittest
class LearningCase(unittest.TestCase):
def test_starting_o... |
Dernière news : Fedora-Fr aux 15èmes Rencontres Mondiales du Logiciel Libre
Bonjour,
certains savaient que nous travaillions sur la V5 du site Fedora-Fr depuis un petit moment, une version bêta était même disponible depuis petit moment, c'est à présent la page d'accueil du forums ainsi que le planet qui passe la 5ème.
... |
This program has been disqualified.
Author &&&
Submission date 2011-06-20 19:41:55.896570
Rating 4391
Matches played 5
Win rate 40.0
import random
#Weighted random beat previous inputs
def weighted_choice(C, p):
x = random.random()
for elmt in range(len(C)):
if x <= p[elmt]:
return C[elmt]
... |
mastergb
Vpnautoconnect 2.X(Nouvelle version ,bugs, demande d'aide: c'est ici!)
Bonjour à tous,
Suite à l'énorme thread précédent (et à la demande de ljere) , j'aimerais reprendre un sujet vraiment dédié a vpnautoconnect.
Le logiciel n'est plus à présenter. On l'aime (ou pas), il permet entre autre de répondre à une la... |
I just updated Python to 2.6.4 on my Mac. I installed from the dmg package.
The binary did not seem to correctly set my Python path, so I added '/usr/local/lib/python2.6/site-packages' in .bash_profile
>>> pprint.pprint(sys.path)
['',
'/Users/Bryan/work/django-trunk',
'/usr/local/lib/python2.6/site-packages',
'/Li... |
jQuery y Ajax
Si bien web2py es básicamente para desarrollo del lado del servidor, la app welcome de andamiaje viene con la librería básica de jQuery [jquery], los calendarios jQuery (campo especial para fechas date picker y reloj), el menú "superfish.js", y algunas funciones adicionales de JavaScript que dependen de j... |
#0 -1 » ssh ordinateur distant » Le 31/07/2014, à 11:53
tauraduboudin
Réponses : 1
Bonjour,
vais partir en vacances chez mes parents où j'aurai beaucoup de temps à tuer, et comptais bosser sur mon ordi fixe encore présent chez moi via ssh depuis mon ordi portable.
Alors quand je suis sur la même "box" ça semble marcher... |
Chris__
Re : gReemote, télécommande + prog TV pour Freebox HD
Merci tocks.
Je pense aussi que la meilleur des solutions serait de minimiser dans la zone de notif quand on ferme la fenêtre. Je vais regarder ça dès que j'aurai un peu de temps.
Pour réduire la fenêtre j'ai peur que ca commence à compliquer pas mal l'appli... |
I've written a python function that scours a filesystem using a provided directory pattern, with optional 'actions' to take provided at each level. I then tried multi-threading it since some of the volumes are on network shares and I want to minimize IO blocking. I started by using the multiprocessing Pool class, since... |
galanga
Re : Qarte arte.tv browser (ex Qarte+7)
@Christophe: content de voir que cela a commencé à fonctionner... Pour le second cas qui fait une erreur, c'est parce qu'il manque un back slash sur le guillemets fermant de ...3789-visual-crop-medium.jpg ; essayez avec cela :
items.append("<item>\n <title>Dominique ... |
I am trying to write a program in python that parses out lines of data that match certain criteria from an input file to a series of output files.
This program reads an input file containing the start and stop positions of genes on a chromosome. For each line of this input file, it opens a second input file line-by-lin... |
Enhancing the DocumentTemplate
Although MFC and PythonWin support multiple document templates, there's a slight complication that isn't immediately obvious. When MFC is asked to open a document file, it asks each registered DocumentTemplate in turn if it can handle this document type. The default implementation for Doc... |
#0 Re : -1 » Qarte arte.tv browser (ex Qarte+7) » Le 05/12/2013, à 18:22
#1 Re : -1 » Qarte arte.tv browser (ex Qarte+7) » Le 06/12/2013, à 10:34
snipe2004
Réponses : 9
Salut à tous,
Voici la situation :
1°) J'ai un PC Ubuntu 14.04 fixe dans le bureau (classique) ;
2°) J'ai une tablette Android 4 mobile (fatalement) qu... |
So I'm trying this really simple example given by the python docs:
import getpass
import sys
import telnetlib
HOST = "<HOST_IP>"
user = raw_input("Enter your remote account: ")
password = getpass.getpass()
tn = telnetlib.Telnet(HOST)
tn.read_until("login: ")
tn.write(user + "\n")
if password:
tn.read_until("Password... |
I have a prototype server[0] that's doing an os.walk()[1] for each query a client[0] makes.
I'm currently looking in to ways of caching this data in memory, speeding up queries and hopefully allowing for expansion in to storing metadata and data persistence later on.
I've experimented with SQLite before, but I find SQL... |
Thank you very much for suggestions.
Below, I join my own solution. It is hardly "a minimum working example" but I have already stripped my script quite a lot!
In a nutshell, I used imshow to plot the "image" (a 2D histogram with log bins) and I remove the axes. Then, I draw a second, empty (and transparent), plot, exa... |
Deluge is a BitTorrent Client. I am trying to build it from source, since I don't have privilege to install it as root.
I am using python setup.py build. But, it failed following message, why?
copying deluge/ui/web/themes/images/gray/slider/slider-v-thumb.png -> build/lib.linux-x86_64-2.4/deluge/ui/web/themes/images/gr... |
Aelor
Re : Choix logiciel pour développer une application.
http://rubyfr.org/ => communauté fr avec liens vers tutos
http://www.ruby-doc.org/core/ => fonctions fournies de base
http://www.ruby-doc.org/stdlib/ => librairies standard (par exemple net/ftp une classe sympa pour faire du ftp)
Sous ubuntu, il y a un paquet p... |
template tricks
Testing template rendering
Test the rendering of a template.py template
def renderTemplate(templatename,*args,**kw):
'''quick way to test a template.py template'''
import template
if not "." in templatename:
templatename = templatename + ".tmpl" ... |
krystoo
Comment installer des mises à jour téléchargées ?
Bonsoir, alors je vais faire le tour je crois ^^
après troisième installe sur le pc portable, se coup ci j'avais 197 mises à jour. J'ai fait en plusieurs fois car sinon interminable.
Quand aux 6 dernières màj que j'ai téléchargé, visiblement elles ne se sont pas... |
I'm trying to install matplotlib for graphing applications in Python on Mac OS X. When I run "python setup.py install", it gives me this load of errors: http://pastebin.com/u7fL37ic.
A quick snippet:
src/ft2font.cpp:2170: error: ‘FT_LOAD_TARGET_MONO’ was not declared in this scope
src/ft2font.cpp:2171: error: ‘FT... |
AnsuzPeorth
Re : [Gm9diaCenter] Interface graphique pour mediacenter neuf/sfr
Re,
La suppression des logs se fait au démarrage de l'appli, pas du mediacenter ! (en tout cas chez moi ça marche).
Pour le systray, je t'ai ajouté une petit image clicable gnome
J'ai ajouté la possibilité de créer/supprimer les lanceurs depu... |
I have 3 models. Game, player and piece. A player is attached to a game and a piece is attached to a player. The relations are simple foreign keys.
When retrieving the game, I wish to also retrieve all of the pieces from all of the players and include them in the result.
class GameResource(ModelResource):
class Met... |
I'm completely new to python's sqlite3 module (and SQL in general for that matter), and this just completely stumps me. The abundant lack of descriptions of cursor objects (rather, their necessity) also seems odd.
This snippet of code is the preferred way of doing things:
import sqlite3
conn = sqlite3.connect("db.sqlit... |
The previous advice is nice and reasonable, especially in an ideal world where third-party software is bug free and everything is configured correctly. Unfortunately, the real world is a bit different.
For instance, you must be aware that your application doesn't work on some buggy browser, or that it cannot work in sp... |
pops
Re : logiciel d'animation en pixel art
merci doudoulolita pour tous ces retour, idées
Outils
- Un lasso de sélection me permettrait de couper-coller des parties, par exemple la tresse était trop haute, j'ai du la supprimer et la redessiner sur le calque tête.
- Un outil de rotation, au moins à 45° serait pas mal, ... |
TravellingFroggy
ttf-mscorefonts-installer : Erreur au démarrage
Bonjour,
J'ai un message d'erreur à chaque démarrage :
Data files for some packages could not be downloadedName-ar.UTF-8
The following packages requested additional data downloads after package installation, but the data could not be downloaded or could n... |
Two Factor Auth: Allow AWS IAM users to manage their own MFA devices
02 September 2014
(all info and screenshots are from 09/02/2014)
In light of all the recent incidents involving attackers taking control of a company's root AWS account, myself and most everyone I know that is managing any sort of infrastructure have ... |
I'm working on a class to get the Latitude and Longitude of an address by 3 different providers (just for comparison sake).
Note, this might look like a lot to look at, but some info is just there for reference if you want. Data below the <hr> is not necessary to look at.
My Google Maps DataContract works like a champ.... |
Simplistic Python Thread example
import timefrom threading import Threaddef myfunc(i): print "sleeping 5 sec from thread %d" % i time.sleep(5) print "finished sleeping from thread %d" % ifor i in range(10): t = Thread(target=myfunc, args=(i,)) t.start()
Results:
sleeping 5 sec from thread 0 sleeping 5 sec from thread 1... |
I'm writing a small sqlalchemy shim to export data from a MySQL database with some lightweight data transformationsâmostly changing field names. My current script works fine but requires me to essentially describe my model twiceâonce in the class declaration and once as a list of field names to iterate over.
I'm tr... |
I seem to install Gaphor successfully by Easy_install
$ sudo easy_install gaphor
Searching for gaphor
Best match: gaphor 0.14.0
Processing gaphor-0.14.0-py2.5.egg
gaphor 0.14.0 is already the active version in easy-install.pth
Installing gaphorconvert script to /usr/local/bin
Installing gaphor script to /usr/local/bin
... |
UPDATE: Thanks so much for all the feedback! I’m going to look at using flock as well, and I’ll write that up soon.
Imagine you have a script that archives a bunch of data by copying it to another box. You use cron to schedule that script to run every hour, because normally, the script finishes in about thirty (30) min... |
From Fran. validators for LATITUDE and LONGITUDE
class IS_LAT(object):
"""
example:
INPUT(_type='text',_name='name',requires=IS_LAT())
latitude has to be in degrees between -90 & 90
"""
def __init__(self, error_message='Latitude/Northing should be between -90 & 90!'):
self.minimum=-90
self.maximum=9... |
Unless you limit yourself to one-page web sites, you’ll need to design navigation. In fact, navigation is among the most important parts of any web design, and requires a great deal of thought if visitors are to move around your site easily.
Making site navigation easy is one area in which CSS really comes into its own... |
Tony95
Re : Ella : projet de logiciel d'animation Flash & SVG pour Linux
Salut à tous je savais pas trop où poster donc je le fais ici. J'ai un petit soucis en GTK, j'aimerais créer une interface permettant de charger et sauvegarder des fichiers mais j'arrive vraiment pas à m'en sortir pour le code. En gros j'ai une fe... |
Python is pretty good on its own, but better with gmpy (which bridges it to the GMP library others have mentioned, or alternately to the MPIR kinda-work-alike one [[work in progress;-)]]). Consider:
$ python -mtimeit -s'x=int("1"*9999); y=int("2"*9999)' 'x*y'
100 loops, best of 3: 6.46 msec per loop
i.e., in pure Pyth... |
zouloude
gnome-app-install ne s'ouvre plus ...
bonjour,
je récapitule les faits:
- je lance gnome-app-install par le menu
- il me demande mon Password, je le tape... rien ne se passe
- j'essaye donc de le relancer depuis un terminal:
dewdew@zia:~/> sudo gnome-app-install
Traceback (most recent call last):
File "/usr/... |
I am trying to produce a template with many addresses (forms), where you can add, edit and remove them.
Am I doing something wrong with formsets? Here are my views:
@login_required
def addresses(request):
AddressesFormset = modelformset_factory(Address,
can_delete = True,... |
I have a model Zone, a model Entity and a model Transit. Transit is minimally defined as:
class Entity(db.Model):
__tablename__ = 'entities'
id = db.Column(db.Integer, primary_key=True)
contained_by = db.Column(db.Integer, db.ForeignKey('entities.id'))
contains = db.relationship('Entity', backref='conta... |
Web.py using FastCGI and Apache 2
Requirements
Note, on CentOS compiling mod_fcgid requires apache-devel be installed (available via yum).
Apache Configuration
Replace '/var/www/myapp/' with the path to your apps directory
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule fcgid_module modules/mod_fcgid.so
Soc... |
philoup44
Création de Ralenti Vidéo sous Linux
Salut
Questions sur slowmovideo et la création de Ralenti sous Linux
slowmovideo : logiciel open source permettant d'obtenir des ralentis fluide par la création d'images intermédiaires (alternative gratuite à Twixtor)
Installation
2.3 Depuis un depôt ppa
a) Ajoutez à vos s... |
I have a web site where there are links like <a href="http://www.example.com?read.php=123"> Can anybody show me how to get all the numbers (123, in this case) in such links using python? I don't know how to construct a regex. Thanks in advance.
import re
re.findall("\?read\.php=(\d+)",data)
"If you have a problem, and... |
More Test-Driven Development in Python
by Jason Diamond
02/03/2005
In the first article in this series, Test-Driven Development with Python, Part 1, I started to build an event tracking application using the principle of test-driven development. Before writing any new code or making changes to any existing code, I wrot... |
I've got all my code working on its own. I need to start linking it all to buttons though.
QUESTION: trying to setup multiple buttons as sprites for collision purposes. Don't know how to do it outside of a class.
I have buttons working in seperate classes, but cannot get them to work in the same class for the obvious r... |
I am reading a text file which I know its 38th line is "Uncalibrated Peaks:", and I know its stored in 38th element of my list. I already check them and there is no indexing problem.
I am reading the text file by the following code
import os
fd = open('Report.txt')
contents = fd.readlines()
fd.close()
for ind, line in ... |
i have a table with 2 foreign keys that map to the same primary key of another table. the problem i'm facing is that these two foreign keys could be independent values, however, they always get set to the same thing when using SQLAlchemy.
tables (shorthanded):
CREATE TABLE table1 (
userid INT NOT NULL PRIMARY KEY,
... |
JavaScript
macaela — 2011-07-19T17:49:29-04:00 — #1
Hi i have the following function that display a list depending on the drop down option the user selects but doesnt not work on explorer it works on other browsers but on exploere i get the following error
SCRIPT600: Unknown runtime error
manitest.html, line 76 charact... |
I am importing a dmp file using the following command:
imp user/pass file=file.dmp log=logfile.log full=y ignore=y destroy=y
I get the following errors:
. . importing table "MESSAGE_BOARD"
IMP-00058: ORACLE error 22993 encountered
ORA-22993: specified input amount is greater than actual source amount
IM... |
Implementation of an abstract, thread-safe cache with minimal locking. Four concrete implementations : a validating file cache, a validating HTTP cache, an experimental Python module cache and a function cache. Plus, an abstract cache with weak references to its values.
# -*- coding: iso-8859-1 -*-
from os import stat
... |
loubrix
[RESOLU] sources.list bizarre...
Bonsoir,
après une mise à jour normale, faite dans la journée, je me suis aperçu que j'avais un triangle jaune dans le systray, avec un message "les informations de mise à jour sont obsolètes. Ceci est peut-être du à un problème sur le réseau ou à un dépot qui n'est plus disponi... |
I have a large pandas dataframe (~13 million rows) that contains data on various items, each with observations from various months. The items vary with respect to the number of corresponding rows (i.e. months with observed data), and months may or may not be consecutive. A highly abbreivated simplified sample:
x ... |
Getting started with the R2MLwiN package
With the release of the R2MLwiN package late 2012, R users have access to another software package for running Bayesian models using Markov chain Monte Carlo (MCMC) methods. R2MLwiN is an R command interface to MLwiN, allowing users to fit multilevel models using MLwiN from with... |
This article shows how to use Ajax techniques to make web apps with REST APIs.
Everyone's talking about REST these days. Lots of people are still struggling with it, and there's good reason for that--REST is actually quite difficult to fit into the browser-based HTML Web, for two reasons:
GET and POST, not PUT or DELET... |
ValentinWFP
[résolu] apt-get et lien symbolique
Voilà mon problème: à chaque fois que j'utilise apt-get pour installer ou supprimer un programme, j'ai (et ce depuis quelque jours seulement) ces lignes qui s'affichent a la fin:
/sbin/ldconfig.real: /usr/lib/libgtk-1.2.so.0 n'est pas un lien symbolique
/sbin/ldconfig.rea... |
I am writing a Python script to perform a near analysis on features from two different shapefiles with common attributes. This is happening in a Search Cursor.
However, whenever I tried to use the Near tool after I selected the relevant features from each shapefile OR created new layers of only the relevant features, t... |
I have a checksum function in Python:
def checksum(data):
a = b = 0
l = len(data)
for i in range(l):
a += ord(data[i])
b += (l - i)*ord(data[i])
return (b << 16) | a, a, b
that I am trying to port to a C module for speed. Here's the C function:
static PyObject *
checksum(PyObject *self,... |
kr2sis
configauration de Apache --- help please !!!
bonjour
autre souci que j'ai négligé par nécessité (il a fallu s'occuper du lourd avant de faire le léger...) : apache
je ne sais pas si c'est moi qui comprends rien, mais meme en cherchant partout, je ne trouve pas de tuto qui veuille que je réussisse une bonne confi... |
I have a LaunchDaemon written in python that performs a long and resource intensive background task with root privileges. As it works it needs to send status updates to multiple GUI agents (one per logged in user) and I'm struggling to find an appropriate IPC mechanism. Shared objects won't work since the daemon and ag... |
Dave Warnock muses:
I am not about to argue that [TurboGears and Subway] should merge, instead I feel they can improve most by making sure that they each stay thin putting all the improvements they can back into the components eg CherryPy (which they both have been doing) and into the deployment elements (setuptools an... |
I checked urllib2 and it won't set the source address (at least not on Python 2.7). The underlying library is httplib, which does have that feature, so you may have some luck using that directly.
From the httplib documentation:
class httplib.HTTPConnection(host[, port[, strict[, timeout[, source_address]]]])
The option... |
luc765
Re : Synthèse vocale SVOX Pico
Merci à frafra et tuxmuraille, pour votre travail.
J'utilisais espeak avec mbrola, la qualité de SVOX est nettement meilleure
J'ai installé gSpeech sur Lucid via la compilation pour SVOX. Tout est parfait.
Dans l'utilisation est-il possible de modifier la vitesse de lecture par un ... |
Is there a UI library to create a message box or input box in python?
Your best bet is the tkMessageBox module, which should work on all systems (as Python will typically come with Tkinter).
If you can restrict yourself to a specific operating system, better choices might be available.
Simple message boxes and input bo... |
I have json data that is going to be coming to my server in the following format:
{"line":"one"}
{"line":"two"}
{"line":"three"}
While I realize that this is not valid json format I have no control on how this data is reaching me. I need to be able to read the data line by line
Now I have a very simple Cherrypy server... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.