text
stringlengths
256
65.5k
When I write to a file, using python open(filename, 'w+'), I get multiple lines of NULL written to the file in addition to the new text. Python 2.7.3 from sys import argv script, filename, random = argv my_file = open(filename, 'w+') added_line = raw_input("Type what you want to add: ") my_file.write(added_line) print ...
I am trying to save an instance of a model but I get Invalid EmbeddedDocumentField item (1) where 1 is item's id (I think). Model is defined as class Graph(Document): user = StringField(max_length=50, required=True) title = StringField(max_length=500) description = StringField(max_length=1000) # field ...
JavaScript stevenhu — 2012-09-21T16:02:46-04:00 — #1 I am trying to delete a row in a database via external JS, but don't think the syntax is right. What I have right now is my best guess as to what it should be. The database rows show an ID, filename, and title (context: a bookmarked or favorite page), and when a quer...
For fun (and to learn...), I'm trying to write a program that takes 3 inputs, a, b and c, and returns the solution to the quadratic formula. Right now, I'm getting an error saying StringVar instance has no attribute 'trunc'I initially had my entry variables set up as IntVar and got the same type of error, with IntVar i...
This program has been disqualified. Author Rekrul Submission date 2011-07-18 09:00:05.001192 Rating 7687 Matches played 1336 Win rate 73.5 import random SIZE = 5 WEIGHT_FACTOR = 6. class HistoryNode(object): def __init__(self, parent=None): if parent is not None: self.depth = parent.depth + 1 ...
The last six months have involved a lot more writing of code than the previous couple of years. I’ve been tweeting little things I learn on a daily basis and thought I’d look back on this week. format() A reocurring problem with report writing is getting numbers formatted properly for the occassion. I discovered ‘forma...
How can I fix my Software center? I can't update Ubuntu or anything without getting an error that items cannot be installed until the package catalog is repaired. Below is the errors I get. Please help I'm a noob Ubuntu. installArchives() failed: dpkg: error processing libqt4-xmlpatterns:i386 (--configure): libqt4-xml...
I'm currently following this tutorial to install scipy on Ubuntu 12.04 (I can't use apt-get install because I need a recent version) : http://www.scipy.org/Installing_SciPy/Linux However I get errors when I do the following commands : python setup.py build sudo python setup.py install --prefix=/usr/local # installs t...
I am attempting to save a response from a text input to a single cell in a sqlite3 database table without writing over the rest of the information stored in that line of the table. I need to do this using the python form I have started below. This form below successfully saves the label responses into their own table. ...
I have a scipy array, e.g. a = array([[0, 0, 1], [1, 1, 1], [1, 1, 1], [1, 0, 1]]) I want to count the number of occurrences of each unique element in the array. For example, for the above array a, I want to get out that there is 1 occurrence of [0, 0, 1], 2 occurrences of [1, 1, 1] and 1 occurrence of [1, 0, 1]. One ...
You are importing all names from the requests module into your local namespace, which means you do not need to prefix them anymore with the module name: >>> from requests import * >>> get <function get at 0x107820b18> If you were to import the module with an import requests statement instead, you added the module itse...
I am working on creating an ArcGIS tool from a Python script I am writing. I am wondering if it is possible to have a checkbox parameter. Basically what I want to do is have a parameter where the user selects a feature class, then from the feature class the user will choose the field for the upper most layer in their m...
Let's say we want the 8th unrestricted partition or p(8). We generate some generalized pentagonal numbers first. We use: with n = -4, -3, -2, -1, 0, 1, 2, 3, 4 why we go from -4 to 4 will be clearer when you do some these yourself. Anyway, this generates the sequence you only keep numbers whose absolute value is < 8 an...
I am runninig test's with Python Unittest. I am running tests but I want to do negative testing and I would like to test if a function throw's an exception, it passes but if no exception is thrown the test fail's. The script I have is: try: result = self.client.service.GetStreamUri(self.stream, self.token) ...
What's the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory? Here is what I tried: filename = "/my/directory/filename.txt" dir = os.path.dirname(filename) try: os.stat(dir) except: os.mkdir(dir) f = file(filename) Somehow, I missed os.p...
I'm having trouble overriding a ModelForm save method. This is the error I'm receiving: Exception Type: TypeError Exception Value: save() got an unexpected keyword argument 'commit' My intentions are to have a form submit many values for 3 fields, to then create an object for each combination of those fields,...
My app has a GtkFileChooserButton that you can use to open a chooser widget and pick a single file .. and then perform operations on that file. This works. I've added drag & drop functionality to the button as well. It works, but it's buggy. In short, the first dnd to the FileChooserButton triggers the file-set signal ...
Imagine to have this code: class Foo: def __init__(self, active): self.active = active def doAction(self): if not self.active: return # do something f=Foo(false) f.doAction() # does nothing This is a nice code; I actually have (not in Python) a global active variable called "dosomething" and a ...
I am writing a distributed data-store in Python for a very specific kind of data,and I wanted to show how you can build a simple distributed system in Python. For this post we will build a distributed log,This system allows you to store logs from many servers into one big log which is distributed between many machines....
I have problem with separating tables with relationships in different files. I want the tables below to be in three separate files and to import TableA in third party page, but I can not manage the load order. In most of the time I'm receiving the following error. sqlalchemy.exc. InvalidRequestError: When initializing ...
I am running CherryPy as a webserver on a remote Linux machine. End users access a website over the internet which the CherryPy instance serves. So far, so good. Now, I want to have a dev version of the site, running on the same machine but on a different port, so that I can develop and test without disturbing the prod...
Confirmed. Thanks for your feedback. Here's patch to fix it: diff -r 4cf524236552 libs/ldaplib/user.py --- libs/ldaplib/user.py Tue May 03 10:07:17 2011 +0800 +++ libs/ldaplib/user.py Wed May 04 00:22:32 2011 +0800 @@ -833,10 +833,8 @@ if self.transport == '': # Remove attr. ...
Test-Driven Development in Python by Jason Diamond 12/02/2004 Introduction Python's unittest Module Motivation Sample Input Getting Started Baby Steps Refactoring Conclusion Introduction Test-driven development is not about testing. Test-driven development is about development (and design), specifically improving the q...
The first thing to do after a successful completion of the file dialog is ask the dialog what the selected pathname was, and then use this to modify the frame's title and to open a BookSet file. Take a look at the next line. It reenables the BookSet menu since there is now a file open. It's really two statements in one...
#2201 Le 22/02/2013, à 08:17 jpdipsy Re : [Conky] Alternative à weather.com (2) Bonjour, je n'apporterai pas d'aide sur les scripts, mais juste pour dire que chez moi l'intégration avec XplanetFX fonctionne parfaitement. Il y a juste un délai de quelques secondes pendant lequel la météo disparaît juste après sa mise à ...
I want to upload and get the result from this website. http://cello.life.nctu.edu.tw/ I tried from poster.encode import multipart_encode from poster.streaminghttp import register_openers import urllib2 register_openers() params = ({"file": open("xaa", "r"), "seqtype": "prot", "species": "eu"}) datagen, he...
lanzrg Scraper un site simple (sans AJAX) en python + download ? Bonjour, Je souhaite scraper le site de sublime text 3 afin de récupérer l'url de la dernière version stable. Pour ensuite la télécharger. Tout ceci en Python évidemment. Ce que j'ai et qui à l'air de fonctionner (n'hésitez pas à me dire que c'est à chier...
I am Trying to get Contacts out of Outlook using Python.The code is : import win32com.client import pywintypes o = win32com.client.Dispatch("Outlook.Application") ns = o.GetNamespace("MAPI") profile = ns.Folders.Item("Outlook") contacts = profile.Folders.Item("Contacts") but its giving error like this: Traceback (most...
I have a list of terms in a file that I want to read, modify each term and output the new terms to a new file. The new terms should look like this: take the first two characters of the original term put them in quotes, add a '=>' then the original term in quotes and a comma. This is the code I'm using: def newFile(newI...
I'll bet it's case sensitive, like PocketSphinx or something. I'd search for it using python interactive shell's help() func.. matthew@speedy:~/openstack/nova$ python Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> help() We...
#2676 Le 15/02/2013, à 19:14 mulder29 Re : TVDownloader: télécharger les médias du net ! Et je reçois python: can't open file alors que j'ai installé Python 2.7.3, hier. Hors ligne #2677 Le 15/02/2013, à 19:26 k3c Re : TVDownloader: télécharger les médias du net ! si tu tapes which python ça affiche quoi ? Dernière mod...
When i run my python code through terminal m getting this error : def GPlag(text,encode=False): import urllib, urllib2, json if encode == True: text = text.encode('utf-8') query = urllib.quote_plus(text) base_url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=...
Using REST with Ajax by Nic Ferrier 02/23/2006 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, ...
I am trying to do HTTP basic authentication with bottle.py using the following decorator I have written: def check_auth(username, password): if username == 'admin' and password == 'pass': return True else: return False def authenticate(msg_string = "Authenticate."): response.content_type = "application/json" me...
I would like to access my Google Affiliate Network product feed via the Google search API for shopping. I would like to do this from a backend Python library i'm developing. Has anyone done something like this? I have the following: A Google account Enabled Search API for Shopping in the Google API Console and got an A...
I have a hierarchical two combo-box. The first combo-box displays a list of customerNames, i.e. different companies from a MySQL db. Each customer has branches in different cities. Then, when a customer name is chosen from combo-box1 option list, e.g. {Aldi, Meyer, Carrefour, WalMart}, for that particular customer, a l...
LowKeys = dict(La = 'z', Lb = 'x', Lc = 'c', Ld = 'v', Le = 'b', Lf = 'n', Lg = 'm') MidKeys = dict(Ma = 'q', Mb = 'w', Mc = 'e', Md = 'r', Me = 't', Mf = 'y', Mg = 'u') HighKeys = dict(Ha = 'i', Hb = 'o', Hc = 'p', Hd = '[', He = ']') SharpLowKeys = dict(SLa = 's', SLc = 'f', SLd = 'g', SLf = 'j', SLg = 'k') FlatLowK...
Ok, so I need to build several barcharts that have in between the first bar and the others a yellow line. var y = d3.scale.ordinal() .rangeRoundBands([0, height], .2); ... svg.selectAll(".bar") .data(data) .enter().append("rect") .attr("class", function(d) { return "bar " + d.label; }) .attr("id", ...
Total Python newb here. I have a images directory and I need to return the names and urls of those files to a django template that I can loop through for links. I know it will be the server path, but I can modify it via JS. I've tried os.walk, but I keep getting empty results. If your images are in one directory import...
The goal is just to retrieve a specific file without downloading the entire contents, using the HTTP range method as described: http://www.codeproject.com/KB/cs/remotezip.aspx You can solve this a bit more generally with less code. Essentially, create enough of a file-like object for ZipFile to use. So you wind up with...
Please, draw it. ¿All the groupings must take all the nodes from `A'? ¿How could you make d(N) groupings if you have a node with a lesser degree? > For each node in B (in each grouping) is the d(Bn)<4: ¿So in a grouping, there can't be more than 3 incident edges on a B node? but since P = NP is unproven either way, the...
jQuery and Ajax While web2py is mainly for server-side development, the welcome scaffolding app comes with the base jQuery library[jquery], jQuery calendars (date picker, datetime picker and clock), and some additional JavaScript functions based on jQuery. Nothing in web2py prevents you from using other Ajax libraries ...
Ok The long detailed BS that began this all is below the long line. The resulting answer is here. Your static points are x,y coordinates with the x values and y values placed in seperate arrays (coorArrx and coorArrY respectively) make sure to never use a value = imgx or imy. # Random Bezier Curve using De Casteljau's ...
#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...
Classes in Python By Jason Myers length = 3price = 5.99count = 0 name = "George"poem = "Roses are Red\nViolets are Blue"option = "n" discount = Trueshow_help = False (c)Tomo.Yun (www.yunphoto.net/en/) class Fish: pass >> Fish() <... Fish instance at ...> >> Fish() <... Fish instance at ...> >> a = Fish() >> b =...
ps1a.py #lists prime numbers up to the 1000th prime def testPrime(x): factor = 2 while factor**2 <= x: if x % factor == 0: return False else: factor = factor + 1 return True candidate = 3 numPrime = 1 while numPrime < 1000: if testPrime(candidate): numPrim...
I have a list: list1=[] the length of the list is undetermined so I am trying to append objects to the end of list1 like such: for i in range(0, n): list1=list1.append([i]) But my output keeps giving this error: AttributeError: 'NoneType' object has no attribute 'append' Is this because list1 starts off as an empt...
Django Vanilla Views Beautifully simple class-based views. Author: Tom Christie. Follow me on Twitter, here. View --+------------------------- RedirectView | +-- GenericView -------+-- TemplateView | | | +-- FormView | +-- GenericModelView --+-- ListView | +-- DetailView | +-- CreateView | +-- UpdateView | +-- DeleteVi...
i get the following error when trying a script thaat sends mail import urllib.request import re import smtplib from email.mime.text import MIMEText from bs4 import BeautifulSoup page=urllib.request.urlopen("http://www.crummy.com/") soup=BeautifulSoup(page) v=soup.findAll('a',href=re.compile(...
cmarcx Re : [Script] Client Hubic pour linux ;) Bonjour, J'ai essayé de monter hubic avec la commande : ./hubicmount -l <email> -p <passwd> -o umask=022 -o uid=1000 /media/hubic Mais j'obtiens toujours l'erreur "Unable to login to hubic". Pourtant les logins indiqués sont bons, je fais un copier-coller, et ils fonction...
There are dozens of other WP installs on the same server, subject to the same ModSec rules, and none of them has a problem. This is the only WP install that has jetpack installed and it only occurs when JetPack is active. The problem is as follows: Some actions on the post/page edit screen (so far it seems to be the on...
obelix Ajouter les backports ! bonjour... je voudrais ajouter les backsports comme indiquer http://wiki.ubuntu-fr.org/installation/depots mais cela plante avec tous les backports une idee ? merci de votre aide ftp://ftp2.caliu.info/backports/dists/breezy-backports/main/binary-i386/Packages.gz: Impossible de récupérer l...
Below is a small snippet the illustrates the problem I'm having related to the size of the cube used in an Axes3D instance from matplotlib and the cutting off of axis labels. While I can change the background color of the figure canvas pretty easily, this still causes the text located on the labels to become distorted....
I am interested in whether there is a way to introspect a Python instance infallibly to see its __dict__ despite any obstacles that the programmer might have thrown in the way, because that would help me debug problems like unintended reference loops and dangling resources like open files. A simpler example is: how can...
I have a simple command-line binary program hello which outputs to STDOUT: What is your name? and waits for the user to input it. After receiving their input it outputs: Hello, [name]! and terminates. I want to use Python to run computations on the final output of this program ("Hello, [name]!"), however before the fin...
Hej, chciałem poruszyć kwestię walidacji plików konfiguracyjnych. W aplikacji nad którą teraz siedzę, mimo, że została zaprojektowana dopiero w 1/3, mój plik konfiguracyjny naprawdę się rozrósł. Na chwilę obecną korzystam z takiej fajnej opcji jak łączenie słowników - w kodzie przechowuję słownik ze wszystkimi kluczami...
#8526 Le 21/02/2013, à 22:33 The Uploader Re : Topic des Couche-Tard (cinquante-sept) Pas chez moi. Passer de Ubuntu 10.04 à Xubuntu 12.04 LTS Archlinux + KDE sur ASUS N56VV. ALSA, SysV, DBus, Xorg = Windows 98 ! systemd, kdbus, ALSA + PulseAudio, Wayland = modern OS (10 years after Windows, but still...) ! Deal with i...
JavaScript reedbird8 — 2012-10-02T13:44:41-04:00 — #1 Not sure if this is the best place to ask this, or if it can be done, but here it goes. Is there a way to generate a tooltip anytime a certain word or phrase appears within my site? Ideally, I'd like to create a series of tooltips for some terminology. Essentially, ...
it's the first time i am using this environment. The part of SQLAlchemy i am willing to use is just the one that allows me to query the database using Table objects with autoload = True. I am doing this as my tables already exist in the DB (mysql server) and were not created by defining flask models. I have gone throug...
Topic: Error 500, Upgrading from OpenSource to Pro Hi Guys ! Finaly i buyed this Masterpiece of Mailserver and now i upgraded to iRedAdmin Pro. Used the guide from Zhang. in my apache log i get this error: [Thu Oct 07 13:31:22 2010] [error] [client 80.123.169.178] mod_wsgi (pid=3289): Target WSGI script '/usr/share/apa...
Components and plugins Components and plugins are relatively new features of web2py, and there is some disagreement between developers about what they are and what they should be. Most of the confusion stems from the different uses of these terms in other software projects and from the fact that developers are still wo...
When we announced that Fiesta was shutting down the reaction was beyond anything we could’ve expected. Support poured in via email, twitter, and in comments on the blog post. That support inspired us to spend the past several weeks scrambling to find a way to keep Fiesta alive, and I’m very happy to announce that it wo...
I am making a XMPP middleware in python which listens on a an address(host,port) and when it receives some connection on that port, it sends a XMPP message to a jid(XMPP user) on a server. A quick review of my setup For networking part I am using twisted For XMPP - SleekXMPP XMPP server - Openfire Now when I tried usin...
I am trying to create a list of the input with their corresponding values accessing from the global nested dictionary. Here is the code, import sys param_values = { 'vowels':{ 'aa' : [(-1,-1), (-1,-1), (-1,-1), (-1,-1), (0.1,1.0), (-1,-1)], 'ae' : [(-1,-1), (-1,-1),...
#1251 Le 05/02/2012, à 19:35 chaoswizard Re : TVDownloader: télécharger les médias du net ! Voilà, la version 0.5 est arrivée dans le PPA ! Ubuntu ==> Debian ==> Archlinux Hors ligne #1252 Le 05/02/2012, à 20:08 ynad Re : TVDownloader: télécharger les médias du net ! @Greg_lattice comme f.x0 avec la même ligne de comma...
Dernière news : Fedora-Fr aux 15èmes Rencontres Mondiales du Logiciel Libre Récemment, deux bugs ont été introduits dans le processus de mise à jour de Fedora 13, chacun de ces deux là ayant pour conséquence le fait que les mises à jour disponibles ne sont plus notifiées. Le seul remède est malheureusement de faire une...
plasticgoat [Résolu] message d'erreur au lancement de synaptic Voilà le message d'erreur : W: Impossible de localiser la liste des paquets sources http://fr.archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 Aucun fichier ou...
McPeter Re : Un 'autre' générateur de sources.list en ligne Je viens de rectifier le soucis sur le nom du fichier bash. Par contre je ne vois aucun soucis à l'exécution :\ pourrais tu me dire quel navigateur tu as utilisé et quel message d'erreur ça te renvoit ? (un copié/collé du message) le chmod +x est inutile là pu...
Goffi [résolu] [Kubuntu Dapper] paquet cassé Bonjour, j'ai fait la mise à jour récemment pour Dapper, et je me retrouve avec des paquets cassés. outre amarok (résolu en ajoutant le dépôt deb http://kubuntu.org/packages/amarok-14 dapper main), je ne peux pas installer libsdl-gfx1.2-dev, j'obtiens le message d'erreur sui...
The goal is to get the array of family members made and print out the results in the order created. Is there any way to tidy this up :)? // Our Person constructor function Person(name,age) { this.name=name; this.age=age; } // Now we can make an array of people var family=new Array(); family[0]=new Person("alice...
Epydoc's default markup language is epytext, a lightweight markup language that's easy to write and to understand. But if epytext is not powerful enough for you, or doesn't suit your needs, epydoc also supports three alternate markup languages: To specify the markup language for a module, you should define amodule-leve...
xxkirastarothxx Re : MegaUpload : BotMU v1.0.1 Tucan a l'avantage de gérer les captcha pour les services qui en ont (enfin... un popup s'ouvre avec l'image, et l'utilisateur doit saisir lui même le texte) Aaah ok c'est comme ça qu'il fait. Par-ce que j'ai déjà essayé de pété des capcha avec des OCR, pour certains ça fo...
So I have a model called Car with a foreign key of a Manufacturer model. I also have a CarCharacterisitcs model with a foreign key of Car. This is what the code looks like: class Car(models.Model): idcar = models.AutoField(primary_key=True) manufacturer = models.ForeignKey(Manufacturer, null=True, blank=True, o...
No, for the same reason as this: >>> class Foo(object): ... bar = 'Foo attribute' ... >>> f = Foo() >>> f.bar 'Foo attribute' >>> Foo.bar 'Foo attribute' >>> f.bar = 'instance attribute' >>> f.bar 'instance attribute' >>> Foo.bar 'Foo attribute' When you assign an attribute to an object, a class attribute of the s...
I can't get into the specifics, for a variety of reasons, but here's the essential architecture of what I'm working with I have a C++ framework, which uses C++ object files built by me to execute a dynamic simulation. The C++ libraries call, among other things, a shared (.so) library, written in Ada. As best as I can t...
How do i check if a user has a permission in pyramid. For example, I want to show some HTML only if a user has some permission, but have the view available for everybody. The usual method is: from pyramid.security import has_permission has_permission('view', someresource, request) See also http://docs.pylonsproject.or...
You're on the right track. Let's take a look at your example: for(int i = 0; i < data.Length; i++) data[i] = (byte)(256 * Math.Sin(i)); OK, you've got 11025 samples per second. You've got 60 seconds worth of samples. Each sample is a number between 0 and 255 which represents a small change in air pressure at a point...
Are there any canned Python methods to convert an Integer (or Long) into a binary string in Python? There are a myriad of dec2bin() functions out on Google... But I was hoping I could use a built-in function / library. Are there any canned Python methods to convert an Integer (or Long) into a binary string in Python? T...
App-engine asynchronous example: from google.appengine.api import urlfetch rpc = urlfetch.create_rpc() urlfetch.make_fetch_call(rpc, "http://www.google.com/") try: result = rpc.get_result() if result.status_code == 200: text = result.content # ... except urlfetch.DownloadError: raise return ...
fgin Impossible définir les langues du système/ kcmshell4 language-selector Je viens d'installer 12.10, depuis le DVD d'install. Je veux installer le chinois, pour une utilisation dans toutes las applications. Ibus s'intalle sans problème, de meme que tous les packs de langue. MAIS, impossible de changer les langues du...
#2826 Le 12/03/2013, à 22:08 k3c Re : TVDownloader: télécharger les médias du net ! @ mulder29 Tu ne donnes pas de renseignements pour qu'on puisse t'aider as-tu passé la commande sudo apt-get ... tu as eu un message d'erreur ? Hors ligne #2827 Le 12/03/2013, à 22:57 mulder29 Re : TVDownloader: télécharger les médias d...
Using operators" /> The Operator class and its subclasses are function factories. It means that in order to perform computations using an operator class, we first need to create an instance of it: A = FFTOperator(1024) and then use the instance as a function. The object A is a Python callable and takes numpy ’s N-dime...
The Single UNIX ® Specification, Version 2 Copyright © 1997 The Open Group NAME copywin - copy a region of a window SYNOPSIS #include <curses.h> int copywin(const WINDOW *srcwin, WINDOW *dstwin, int sminrow, int smincol, int dminrow, int dmincol, int dmaxrow, int dmaxcol, int overlay); DESCRIP...
I'm receiving intermittent blank pages on my appengine python website. Typically these come when a new process is started or when I flush the cache. There is a single white page served and once that has served everything is fine. It's basically the same error as here: However, I have double and triple checked that I ha...
I'm trying to make a POST request to retrieve information about a book. Here is the code that returns HTTP code: 302, Moved import httplib, urllib params = urllib.urlencode({ 'isbn' : '9780131185838', 'catalogId' : '10001', 'schoolStoreId' : '15828', 'search' : 'Search' }) headers = {"Content-type":...
toto2849 Connexion VPN automatique (NetworkManager) Bonjour,:D -Actuellement en stage il met demandé de mettre en place une connexion VPN qui se lance automatiquement au démarrage du pc ne laissant juste à l'utilisateur une boite de dialogue demandant login+pass.:rolleyes: -J'ai déjà installé le plugin "network-manager...
senjy Erreur fatal postfix sur email en spam ou pas Bonjour, J'ai installé un serveur postfix et j'utilise un script php maison qui marche, mais le résultat est un peu étrange. 1. Certains mails envoyés partent dans la boite spam de l'utilisateur 2. D'autres envoyés fonctionnent Dans /var/log tout semble tres bien se p...
I just started to use Python so the following might be a really REALLY dumb question but I searched the web for a long time and didn't find anything. I'm trying to use the XMMS2 client from a Django View. Here is what I have in my views.py: import xmmsclient import os import sys def list(request): xmms = xmmsclient...
I have a custom save method and a custom decorator for it to run the Django's model save() before and after my custom save: models.py: from django.contrib.auth.models import User from django.db import models def save_decorator(method_to_decorate): def wrapper(self, *args, **kwargs): super(type(self), self)....
In my last article I covered the changes from version 7 to version 8 of the draft AtomAPI. Now the latest version of the AtomAPI is version 9 which adds support for SOAP. This change, and its impact on API implementers, will be covered in a future article. In this article I'm going to build a simple implementation of t...
wlourf Postez vos scripts Lua pour Conky ! Bonsoir à tous ceux pour qui chaque pixel du bureau compte, J'ouvre ce topic suite aux discussions sur le topic des conky pour discuter des scripts Lua dans conky. Lua est un langage de script léger et facile a utiliser qui permet d'ajouter de nouvelles fonctionnalités à nos c...
should these variables be different? // v curl_setopt($ch1, CURLOPT_COOKIEFILE, $cookie_fie_path); curl_setopt($ch1, CURLOPT_COOKIEJAR, $cookie_file_path); // ^ It may be that your cookies aren't being stored/retrieved properly....
Hi, I'm having a problem with the Synaptic package manager on my Xubuntu Dapper subnotebook: When I click the "Reload" button, I get an error message saying a couple of sources - which are listed in the message - could not be loaded, might not be available anymore or whatever. When I search for a specific package, the ...
What follows is a horrible hack that uses undocumented, implementation-specific Python features. You should never ever ever do anything like this. It's been tested on Python 2.6.1 and 2.7.2; doesn't seem to work with Python 3.2 as written, but then, you can do this right in Python 3.x anyway. import sys class NoDupName...
As your test base starts growing, also the time spent running tests grows up. Fortunately nose provides some mechanisms to divide and conquer your run plan and speed up the running time. Test Attributes The usage of attributes could be something pretty useful to split and accelerate tests. Test attributes decorated is ...
Used as a placeholder for making a self-referential parser. I really like funcparserlib. By far my favorite parser and have used it in numerous projects over the years. But it took me forever to "get". The author wrote two tutorials, the Official Tutorial and the Bracket Tutorial. Both of these are solid, but here is m...
Kivy image manipulations with Mesh and Textures If you want to give a little life to interactive (or not) elements, it’s always nice to have more tricks to manipulate images for nifty effects. One of such ways is mapping a Texture on a special canvas instruction, that will distort your texture based on the position o...
Winning Powerball tickets sold in 2 SD cities Posted on 18 September 2014 Posted on 18 September 2014 Posted on 18 September 2014 Posted on 18 September 2014 Posted on 18 September 2014 Posted on 18 September 2014 Posted on 18 September 2014 Posted on 17 September 2014 Posted on 17 September 2014 Posted on 17 September...
sefiane [résolu] Logithèque / Synaptic Salut ! J'ai besoin de votre aide S.V.P ! Je suis débutant dans Linux , j'ai la version 12.O4 ATS. Il fonctionnait très bien sans problème, une fois additionner Synaptic, Logithèque ne voulait pas répondre ! Il plantait, lorsque je fermais, une fenêtre apparaît, " logithèque ne ré...
Audiofeeline Modifier GRUB avec GRUB CUSTOMIZER Bonjour à tous, alors que je surfais paisiblement, je suis tombé sur un article de Tux-Planet qui présente GRUB CUSTOMIZER : http://www.tux-planet.fr/grub-customizer/ Je tenais à vous en faire part car ça faisait un petit moment que je cherchais une telle solution. Bien à...