text
stringlengths
256
65.5k
djara Re : Récupération de windows après insttallation de ubuntu 12.10 64bit Merci. Je te tiens informer dans quelques minutes du résultats. Merci Hors ligne djara Re : Récupération de windows après insttallation de ubuntu 12.10 64bit Voila ce que j'ai obtenu en reprenant avec la version officiel le lien : http://paste...
You're better off with simple hashing (which is like one way encryption). To do this just use the md5 function to make a digest and then base64 or base16 encode it. Please note that base64 strings can include +, = or /. import md5 import base64 def obfuscate(s): return base64.b64encode( md5.new(s).digest()) def obf...
souen Re : Arte +7 recorder version 5 Bonjour beudbeud, je l'ai lancé ds le terminal comme tu me l'as dit et le programme c'est simplement ouvert...sans aucune indication. Quand je sélectionne une émission pr l'enregistrement dans la fenêtre sous progression il est indiqué en attente...donc j'attends et rien. Alors si ...
I just installed PostGIS with GeoDjango. Everything worked fine, but now I have a problem and cant find out the reason for this. I have model like this: from django.contrib.gis.db import models class Shop(models.Model): name = models.CharField(max_length=80) point = models.PointField(null=True, blank=True) ...
and I tried to replicate the upper metaclass from the example and found that this doesn't work in all cases: def upper(cls_name, cls_parents, cls_attr): """ Make all class attributes uppper case """ attrs = ((name, value) for name, value in cls...
I have an algorithm that stores the coordinates of an n by m matrix of characters in python. For example a b c d would be stored as a list of coordinate-character pairs: (0, 0) a (0, 1) b (1, 0) c (1, 1) d My python code is as below def init_coordination(self): list_copy = self.list[:] row = 0 col...
Akamine Impossible d'accéder au menu "Pilotes additionnels" Bonjour, J'ai récemment installé Steam pour Linux. Sur le wiki associé ils demandent des mises à jour des pilotes additionnels, seulement impossible d'accéder au menu "Pilotes additionnels", Ubuntu rencontre une erreur que ce soit après plusieurs reboot, avec ...
Here's what I was using: class a(models.Model): x = models.CharField() class b(a): pass The problem with this is that when an instance of b is created, an instance of a is also created, I'm guessing this is because b is inheriting some property that Django assigns such as the database table. I would like to ha...
I have nested dictionaries: {'key0': {'attrs': {'entity': 'p', 'hash': '34nj3h43b4n3', 'id': '4130'}, u'key1': {'attrs': {'entity': 'r', 'hash': '34njasd3h43b4n3', 'id': '4130-1'}, u'key2': {'attrs': {'entity': 'c', ...
My code looks like : # -*- coding: utf-8 -*- print ["asdf", "中文"] print ["中文"] print "中文" The output in the Eclipse console is very strange: ['asdf', '\xe4\xb8\xad\xe6\x96\x87']['\xe4\xb8\xad\xe6\x96\x87']中文 My first question is: why did the last line get the correct output, and the others didn't? And ...
ninja name generator – more elegant way? So I’ve made this patch to generate ninja names, based on a meme that’s floating around. Basically you enter a name, then it iterates through every letter of the name and matches a syllable to each letter. I can get it to work, but it looks really kludgy. I ended up using 3 (mxj...
Judepaum [Résolu] Twinview changement résolution impossible Bonjour et bonne année ! Je viens de faire une installation fraîche de 12.10 et j'ai pas mal de soucis pour retrouver la configuration de TwinView que j'avais sur 12.04 ... Donc, dans les faits, dans nvidia-settings je ne peux choisir que Off ou Auto pour la r...
This is a kind of follow-up from my last question if this can help you. I'm defining a few ctype structures class EthercatDatagram(Structure): _fields_ = [("header", EthercatDatagramHeader), ("packet_data_length", c_int), ("packet_data", POINTER(c_ubyte)), ("work_count", c_ushort)] class Etherc...
Disclaimer: I'm pretty terrible with multithreading, so it's entirely possible I'm doing something wrong. I've written a very basic raytracer in Python, and I was looking for ways to possibly speed it up. Multithreading seemed like an option, so I decided to try it out. However, while the original script took ~85 secon...
I cant seem to find a resource online for the syntax of multidimensional arrays, I was hoping someone here could identify the error, thanks. I'm storing the array like this: songs={{'title':'I Like It','artist':'Enrique Englesias','url':'audio/I Like It.mp3'}, {'title':'Driving Me Crazy','artist':'Sam Adams','url':'aud...
cocoubuntu [Resolu]duplicate sources.lits Aprés un téléchargement de paquets , j'ai eu le message suivant : " W : duplicate sources.list entry http://fr archive.ubuntu.com breezy/universe.Packages(/var/lib/apt/list/fr.archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) J'ai édité la sources.list ....s...
sputnick [JEU] #! /challenge/bash #8 << challenge bash #8 Le challenge est ouvert à tous les langages de scripting ! scripteurs bash, python, perl, ruby… à vos claviers ! Robot web pour récupérer les nouveaux fils des sous-forums Ubuntu de son choix. L'objectif est de réaliser un script qui va parser le forum afin d'y ...
I'm following instructions on haystack documentation. I'm getting no results for SearchQuerySet().all(). I think the problem is here $ ./manage.py rebuild_index WARNING: This will irreparably remove EVERYTHING from your search index in connection 'default'. Your choices after this are to restore from backups or rebuild...
I'm trying to create a class with private attributes (the attributevalues are imported from a .txt-file) the user should be able to change the values of the attribute. The list looks like this: Rats Berta/2/4/3/0 Oscar/5/0/3/2 John/-1/-6/-5/-9 My question is; where does my messy code go wrong? What am I missing? I've ...
I have a XML file with thousands of lines like: <Word x1="206" y1="120" x2="214" y2="144" font="Times-Roman" style="font-size:22pt">WORD</Word> I want to convert it (all it's attributes) to pandas dataframe. To do that i could loop through the file using beautiful soup and insert the values row by row or create lists ...
Possible Duplicate: How to concatenate multiple Python source files into a single file? Is there a Python “pre-interpreter” to take as input a .py module containing imports and expand it so it can be run inline in an interpreter session on the command line or Telnet session? Imports of built-ins or installed module...
I'm just a newbie on Python. I have this algorithm to see is a word is a palindrome or not. def isPalindrome(s): def toChars(s): s = s.lower() ans = '' for c in s: if c in 'abcdefghijklmnopqrstuvwxyz': ans = ans + c return ans def isPal(s): if ...
I have a PHP application which has been developed with CakePHP 2.4.6 on Ubuntu Virtual Machine with PHP 5.3.10-1ubuntu3.11 installed on it (with Apache2). My problem is that I wanted to deploy it to the real server, which has PHP 5.4.16 and I get the following errors: Warning (2): Illegal string offset 'session.cookie_...
I am working on this small little piece in python and when I run it, It never gets past the print 'c' line and is stuck on the while loop. What am I doing wrong? link to text file: http://downloads.sourceforge.net/wordlist/12dicts-5.0.zip enter code here import sys import random inp = open('5desk.txt', 'r') lis = inp.r...
I have created a PyGTK application that shows a Dialog when the user presses a button.The dialog is loaded in my __init__ method with: builder = gtk.Builder() builder.add_from_file("filename") builder.connect_signals(self) self.myDialog = builder.get_object("dialog_name") In the event handler, the dialog is shown wit...
This is my script which is supposed to parse a list of domains (each seperated by returns) in a .txt file, separate them into individual domain names, send a request to a whois site with the domain name, check the response to see if it is available, and if it is, write it to a new file. so i get a list of only availabl...
Preamble I spent some time and designed and implemented a tiny framework to deal with this problem, over the last two days. Here is what I've got. The main ideas will involve implementing a simple key-value store in Mathematica based on a file system, heavy use and automatic generation of UpValues, some OOP - inspired ...
i run sd card program in linux but i found following error....but i include header file also anish@ubuntu:~/Desktop/testing/sd card$ gcc -o sdcard sdcard.c /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' /tmp/ccVMCgzn.o: In function `SDCardInit...
I have given my code below. It is having a image field. I'm using django forms and custom templates to fill and store this information. And I want to allow users to upload 0 to 10 images for each book as per their wish. So how can I achieve it. My requirements are as follows: Minimum - 0 file, Maximum - 10 files Allowe...
JavaScript macaela — 2011-07-05T10:38:07-04:00 — #1 hi i have the follow jwplayer i've got a link that loads the video into the player fine but now i am trying to add another one that load with the hd option here the single one works fine <a title="Testimonial One" href="#" onclick="loadNplay('http://www.1st4film.biz/h...
MEH-TECH Re : [Support] Team Fortress 2 Je me disais aussi que c’était du pipo... Je me connecterai dans la soirée alors pour le récupérer Merci Hors ligne MEH-TECH Re : [Support] Team Fortress 2 C'est bon je l'ai reçu Hors ligne kurapika29 Re : [Support] Team Fortress 2 Bien le bonjour, chez moi depuis le début TF2 es...
Here's a code from pygame that ive created. Can i create an object in pyqt4 just like this one? I would like to create an array of object that has its own attributes. Or is there a better way of creating it? Thanks Main.py: comp = pygame.sprite.Group() dic = [{"name":"aa","loc":[30,170],"status":0}, {"nam...
As @mark clarified it's a Linux system, the script could easily make itself fully independent, i.e., a daemon, by following this recipe. (You could also do it in the parent after an os.fork and only then os.exec... the child process). Edit: to clarify some details wrt @mark's comment on my answer: super-user privileges...
I’ve just spent the last hour or so ironing out the details required to automate the building of cabalised Haskell packages for Debian. At the same time I also built Debian packages for 5 Haskell packages (test-framework and its dependencies). These are the basic steps I’ve followed: Extract the tar-ball in the working...
mao-40 Re : TBI + wiimote + ubuntu En ce qui concerne 'gtkwhiteboard.ico', ce n'est pas l'image de calibration je pense, puisque le logiciel demande de calibrer l'écran avec les 4 coins du bureau et après cela fonctionne bien. Ah ok, j'essaierai au demain au vidéo-projcteur. Dernière modification par mao-40 (Le 04/02/2...
I'm missing something at a very basic level when it comes to loading an image using PIL and displaying it in a window created by Tkinter. The simplest form of what I'm trying to do is: import Tkinter as TK from PIL import Image, ImageTk im = Image.open("C:\\tinycat.jpg") tkIm = ImageTk.PhotoImage(im) tkIm.pack() TK.mai...
I have some class: class RSA: CONST_MOD=2 def __init__(self): print "created" def fast_powering(self,number,power,mod): print "powering" I want to instantiate it and call method fast_powering: def main(): obj=RSA() # here instant of class is created val=obj.fast_powering(10,2,obj.CONST_MOD) # and we call...
Let's say we have these (simplified from a more complex one) example tables: == st == == pr === == rn === <– tablessta pg pg rou sta rou <– fields======== ========= =========H1 aa aa aaA H1 aaAH2 aa aa aaB H2 aaBH3 aa H3 aaBH4 aa aa aaC H4 aaCH5 aa H5 aaCH6 aa H6 aaCH7 aaH8 bb bb NULL I wanted to execute this (also...
ADcomp Re : ADesk Bar : Barre de lancement rapide [python/gtk/cairo] Yep .. @ all : lien pour les sources rectifié ( ) @ frafa : -add n'importe quoi, puis fermer fenetre sans ajout, ajoute quand meme une entrée vide. tu devrait gerer ca... +1 -et si pas trop galere a coder avoir acces aux reglages d'un plug-in via clic...
Using the sh module (pip install sh): from sh import tail # runs forever for line in tail("-f", "/var/log/some_log_file.log", _iter=True): print(line) [update] Since sh.tail with _iter=True is a generator, you can: import sh tail = sh.tail("-f", "/var/log/some_log_file.log", _iter=True) Then you can "getNewData" ...
jbfabin mise à jour / téléchargement des paquets impossibles Bonjour, quand je veux mettre à jour mon système, j'obtiens le message :"le téléchargement des informations du dépot a échoué". si quelqu'un peut m'aider, je lui serai reconnaissant. PS : au terminal, j'obtiens ces messages : W: Impossible de récupérer http:/...
I have the following file configuration section : [handler_file] class = handlers.TimedRotatingFileHandler args = ( '../output/DataUpload.log', when='D', backupCount=3) formatter = generic As specified by logging.config from logging import config, getLogger config.fileConfig( "config/logging.cfg", disable_existing_log...
I just spent a frustrating couple of hours trying to get all the different components of cinfony working on Mac OS X, so I thought I’d share how I finally got it all set up. What is cinfony? Basically cinfony is a python wrapper for a whole load of different cheminformatics toolkits. From the cinfony homepage: Cinfony ...
Are there ways to avoid this triply nested for-loop? def add_random_fields(): from numpy.random import rand server = couchdb.Server() databases = [database for database in server if not database.startswith('_')] for database in databases: for document in couchdb_pager(server[database]): if 'results' in serv...
Consider a very small python program, test.py: label = "foo" And then consider profiling that program with the very nice cProfile module: $ python -m cProfile test.py Finally, consider the consequences: Traceback (most recent call last): File ".../lib/python2.5/runpy.py", line 95, in run_module filename, loader, ...
Rather than str.downcase!str.gsub!(/\W/, "") it seems that I should be able to use multiple destructive String methods in succession: str.downcase!.gsub!(/W/, "") Sometimes this works, but sometimes it causes an error. irb(main):001:0> str = "Foobar!" "Foobar!" irb(main):002:0> str.downcase!.gsub!(/\W/, "") "foobar" ir...
Оливье Re : Cochon Cassé Je te renvoi vers un article très bien fait sur le test des SSD et leur durée de vie (entre autre) sur le site de Hardware.fr PC fixe: Ubuntu/Unity 14.04.1 64 Bits Intel I5 // Imprimante: HP Photosmart C 5180 tout en un Hors ligne Bybeu Re : Cochon Cassé Merci canif Article récent en effet, c'e...
Calibre is an open source tool to manage e-books, which features e-book syncing with popular e-book readers, library management and e-book conversion between various formats. The application is available for Linux, Windows and Mac OS X. The latest Calibre 1.0, released recently, features a new cover grid view of the bo...
Phoen1x Re : [HOW TO] adesklets : configuration des desklets J'ai besoin d'un coup de main, donc j'ai voulu installer les adesklets Weather forecast et system moniteur Le problème c'est que j'avais pas vu le tuto pour l'installation de adesklest . J'ai bigouilller un long moment sur weather car il ne me le lancait pas ...
I am a newbie learning Python/Django... Am using the following tutorial located here. Created a mysite database in MySQL 5 running on Snow Leopard. Edited the settings.py file to look like this: DATABASE_ENGINE = 'mysql' DATABASE_NAME = 'mysite' DATABASE_USER = 'root' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_...
How can I add BOM (unicode signature) while saving file in python: file_old = open('old.txt', mode='r', encoding='utf-8') file_new = open('new.txt', mode='w', encoding='utf-16-le') file_new.write(file_old.read()) I need to convert file to utf-16-le + BOM. Now script is working great, except that there is no BOM.
Hagar de l'Est [How-To] Installer OpenOffice.org avec les RPMs officiels Si vous n'avez pas la patience d'attendre que les dépôts soient mis à jour pour installer la dernière version d'OOo, voici la méthode manuelle à partir des RPMs officiels. NB: avant d'installer, si vous avez modifié la configuration des dictionnai...
I'm building an application where users are able to create profiles for themselves by answering a bunch of multiple-choice questions. Users are also able to search for other users by specifying criteria for answers to these questions. Let's say we have 9 questions q1 .. q9, each with 6 possible answers (0 through 5). T...
cracolinux [script CLI]Surveillance de la température Salut, Pour surveiller les températures de mon PC, j'ai écris un petit script que j'utilise régulièrement avec un raccourci clavier. Il me donne les températures processeur et chipset de la carte mère grâce à sensors Pour ma carte graphique, une carte AMD/ATI, j'uti...
XML transformation via XSL Transformations (XSLT) is quite popular and indeed powerful. Well-constructed XSL can produce HTML, PDF, XML, and just about any other text format imaginable. XSLT, however, requires that the subject data be a well-structured XML document, which often is not the case. Consequently, developers...
xxkirastarothxx MegaUpload : BotMU v1.0.1 Bonjour à tous Et bien voila, depuis quelques temps j'ai remarqué que le capcha de Megaupload a disparu. Comme il s’agissait du point le plus bancale du développement d'une automatisation de téléchargement sur Megaupload, le projet était en attente. Maintenant que ce point n'ex...
I'm trying to server protected user-files from nginx and django. nginx.conf: server { listen 80; gzip off; expires off; location /static/ { add_header X-Static hit; autoindex on; expires off; root /Users/andrewshkovskii/workspace/ip_pbx/; } location / { pr...
That is true, but the statement is true also. Enough of the point was made. In mathematics, you don't understand things. You just get used to them.I have the result, but I do not yet know how to get it.All physicists, and a good many quite respectable mathematicians are contemptuous about proof. Offline You have edited...
How do I create a GUID in Python that is platform independent? I hear there is a method using ActivePython on Windows but it's Windows only because it uses COM. Is there a method using plain Python? "The uuid module, in Python 2.5 and up, provides RFC compliant UUID generation. See the module docs and the RFC for detai...
Le Viking Miro refuse de se lancer :-( Salut à tous, Je rencontre un pb avec Miro, logiciel qui a par ailleurs l'air alléchant. Je l'ai installé via Synaptic, en rajoutant la ligne "ad hoc" dans les dépà´ts et l'icà´ne apparaà®t bien dans mon menu d'applications, mais rien ne se passe quand j'essaie de le lancer. J'ai ...
Advanced OOP: Multimethods by David Mertz 05/29/2003 Introduction This article continues a review of advanced object-orientedprogramming concepts. In this installment I examine multipledispatch, which is also called multimethods. Most objectoriented languages--including Python, Perl, Ruby, C++, and Java--areintellectua...
L4ur3nt Accéder au NAS DNS320 depuis toutes les applications sur Ubuntu 12.10 Bonjour, j'ai un soucis de connection à mon NAS DNS 320 sur Ubuntu 12.10. J'arrive à y avoir accès en recherchant dans le réseau local mais je parviens pas à "accéder au NAS depuis toutes les applications" J'ai déjà consulté plusieurs anciens...
I have two iterables in Python, and I want to go over them in pairs: foo = (1,2,3) bar = (4,5,6) for (f,b) in some_iterator(foo, bar): print "f: ", f ,"; b: ", b It should result in: f: 1; b: 4 f: 2; b: 5 f: 3; b: 6 One way to do it is to iterate over the indeces: for i in xrange(len(foo)): print "f: ",foo[i]...
I am trying to create a task list with each task having a datetime attribute. The tasks needs to be in order with t_created being the first and t_paid being last. The order is shown in step_datetime. The description for each tasks is in STEPS. I currently have two methods all_steps and next_step that shows the task lis...
FelixP [Résolu] ! Script pour noms de musique Salut à tous ! J'ai une petite question à vous poser… (Eh oui !) Je cherche un script pour me créer un fichier avec la liste des noms des musiques qui sont dans un dossier donné, avec la syntaxe de Wikipédia (histoire de remplir ses serveurs de données !) en sachant que les...
I have created two Dexterity types: lab_equipment.py, class_activity.py. The class_activity type contains the following relation to the lab_activity type: class_activity.py: class IClassActivity(form.Schema, IImageScaleTraversable): [...] dexteritytextindexer.searchable('apparatus') apparatus = RelationList( ...
#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...
I am writing a MongoDB Query like this: Message.objects.filter( Q(author_id=user.id) | Q(for_user_id=user.id) | Q( shared_with_id=user.id)).order_by( "-timestamp")[:10] The versions are MongoDB = 1.8.2 Pymonogo :1.11 Traceback (most recent call last): File "/mnt/install/wwm/thirdparty/django/core/handlers/base.py", lin...
Hada de la Luna [résolu] 12.04 LTS : régler la luminosité de façon "définitive" Bonjour, pour une personne qui a des problèmes avec la luminosité excessive de l'écran, j'aimerais savoir comment régler cela de façon "fixe" qui ne soit pas remise en question à chaque démarrage. En effet, en utilisant : Paramètres système...
This is the page I'm working on.... http://fremontchurch.net/json_test/ This is the json http://fremontchurch.net/json_test/posts.php I'm trying to to have a list of tracks names listed and linked through simple html link <a href="URL_GOES_HERE">TRACK NAME GOES HERE</a> to its url i got everything else in order its jus...
The example code of how to read Unicode given at http://docs.python.org/library/csv.html#examples looks to be obsolete, as it doesn't work with Python 2.6 and 2.7. Here follows UnicodeDictReader which works with utf-8 and may be with other encodings, but I only tested it on utf-8 inputs. The idea in short is to decode ...
The other day I was talking to a mate and former colleague of mine, he’s been doing a lot of Java and C# before but recently he got hired by a small company to do Python work. Anyway he related a funny part of the interview where he said he’d done design patterns and they asked him to explain one that he’s used. He cho...
#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...
I'm developing my app with django and in one of my views I have a given number (nbr). I would like to know if it is possible to generate a list of length 'nbr', filled with 'nbr' fake elements. Thank you You mean something like: new_list = [None]*nbr This idiom is mostly used for immutable objects. For mutable objects...
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...
The Task: Given a .txt file with frames of ASCII art each separated by a \n (see this example if you are unclear) output a motion picture with frame with 1 frame per second. Note that there is a trailing \n on the final frame. Each frames dimensions will be: X<80 Y<20 The Rules The Previous frame must be cleared before...
michcauch my-weather-indicator ne fonctionne plus après mise à jour my-weather-indicator ne fonctionne plus, juste après une mise à jour de my-weather-indicator sous 12.04. J'ai ce message d'erreur quand je le lance depuis un terminal : michel@bureau:~$ my-weather-indicator Traceback (most recent call last): File "/usr...
A while back, I swore off using adding print statements to my code while debugging. I forced myself to use the python debugger to see values inside my code. I’m really glad I did it. Now I’m comfortable with all those cute single-letter commands that remind me of gdb. The pdb module and the command-line pdb.py script a...
So I'm learning the ropes with heroku dev on ubuntu and I've run into something that was completely automatic for me while working with PHP. How do you refresh the localhost to see the updates you did to the file, namely app.py? Here is the app code: import os from flask import Flask app = Flask(__name__) @app.route('/...
I'm trying to use the Django Social Auth package to connect with Twitter, but I'm having difficulty understanding how exactly to do this as I can't find any examples. I am assuming that Django Social Auth is the best package to use for this purpose. I've looked at a few examples that use Facebook, and from this have ad...
#1076 Le 12/04/2013, à 19:13 Rolinh Re : /* Topic des codeurs [8] */ Je pense que ça aurait été plus judicieux de sortir d’autres formats au fur et à mesure, tout en gardant le support des anciens bien entendu. Il y aurait eu certes plus de format, mais avec une complexité bien moindre. Et tant que tout les formats éta...
FelixP [Résolu] Sources de Logiciels ne veut plus démarrer… Salut ! Je reposte mon problème car il semblerait que mon ancien post soit tombé dans les abîsses… Lorsque je veux ouvrir la liste des sources de logiciels, j'obtiens une erreur… Ce problème est apparu, je crois, après ajout du dépot permettant d'installer cam...
I am trying to understand how pygame surfaces work. I am confused about Rect position of Surface object. If I try blit surface on screen at some position then Surface is drawn at right position, but Rect of the surface is still at position (0, 0)... I tried write my own surface class with new rect, but i am not sure if...
I have found minor graphical issues while using the spanselector, cursor and fill_between widgets, which I would like to share with you. All of them, can be experienced in this code (which I took from the matplolib example) """ The SpanSelector is a mouse widget to select a xmin/xmax range and plot the detail view of t...
and between each word in the wav file I have full silence (I checked with Hex workshop and silence is represented with 0's) how can I cut the non-silence sound ? I'm programming using python thanks Python has a wav module. You can use it to open a wav file for reading and use the `getframes(1)' command to walk through ...
duthen-mac [Résolu] Update Manager - firefox et libgrail => Hash Sum mismatch Bonjour, je n'arrive pas à résoudre mon problème de "Hash Sum mismatch"! Je précise que, si je connais bien Unix, je suis tout nouveau sur Linux. Chaque fois que j'essaie de faire des mises à jour avec l'Update Manager, il échoue toujours ave...
I was wondering if anyone has something simple to create a gallery from a bunch of divs. Such as <div id=gallery> <div class='slide' id=1><img src='image1.png'> this is image 1</div> <div class='slide' id=2><img src='image1.png'> this is image 1</div> <div class='slide' id=3><img src='image1.png'> this is i...
I've designed an algorithm to find the longest common subsequence. This is how it works: Initially i = 0 Picks the first letter from the first string starting from the ith letter. Goes to the second string looking for that picked letter. If not found returns to the first string and picks the next letter and repeats 1 t...
I have downloaded and installed python-poppler-qt4 and I am now trying out a simple Qt application to display a PDF page. I've followed what I've been able to get from the web, i.e. convert the PDF to a QImage, then to a QPixMap, but it doesn't work (all I get is a small window with no visible content). I may have fail...
Total: 53 characters Total in a single language: 230 characters, Pyth Part 1: Golfscript, 15 91,65>123,97>++ Outputs: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz Explanation: 91, Make the list, [0 1 .. 90] 65> Take elements after the 65th, [65 66 .. 90] 123,97> Same, but [97 98 .. 122...
For a NLP project of mine, I want to download a large number of pages (say, 10000) at random from Wikipedia. Without downloading the entire XML dump, this is what I can think of: Open a Wikipedia page Parse the HTML for links in a Breadth First Search fashion and open each page Recursively open links on the pages obtai...
I have a problem. I have a page where I send commands to a sensor network. When I click on this part of code <a href='javascript:void(send_command_to_network("{{net.id}}", "restartnwk"));'>Restart Network <i class="icon-repeat"></i> </a> I call a js function, this: function send_command_to_network(net, command) { ...
peluchon29 problème mises à jours et gestionnaire paquets re Résolu Bonjour. J'ai de nouveau un problème avec les mises à jour.. J'ai laissé une précédente discussion sur un problème similaire qu'on m'a aidé à resoudre pour donner toutes les informations qui pourraient etre utiles. A la suite, l'explication du problème...
This is far from being a full answer, but is posted here on the OP's request. The method I described in the comment is what is known as a shooting method, that allows converting a boundary value problem into an initial value problem. For convenience, I am going to rename your function theta as y. To solve your equation...
Eric_P Re : TuXtremsplit - Recoller vos fichier .xtm PPPFFFFF !!!! Que n'y ai-je pensé avant, je ne t'aurais pas dérangé. En tout cas merci beaucoup, ça roule maintenant. Super logiciel, merci pour ton travail. Cordialement. Éric. Hors ligne cheetah Re : TuXtremsplit - Recoller vos fichier .xtm @wido Bonjour, je m'adre...
benjou Re : Aidez moi s'il vous plait pour mon projet benoit@laptop-benoit:~$ picard Traceback (most recent call last): File "/usr/bin/picard", line 2, in ? from picard.tagger import main; main('/usr/share/locale') File "/usr/lib/python2.4/site-packages/picard/tagger.py", line 73, in ? from picard import ev...
I need to upload some data to a server using HTTP PUT in python. From my brief reading of the urllib2 docs, it only does HTTP POST. Is there any way to do an HTTP PUT in python? import urllib2 opener = urllib2.build_opener(urllib2.HTTPHandler) request = urllib2.Request('http://example.org', data='your_put_data') reques...
I'm trying to implement a Rhythmbox-plugin similiar to rhythmweb, but I have a problem with starting a HttpServer from within the plugin. If I start the server like it is usually done (e.g. with make_server(...).server_forever()) the plugin blocks rhythmbox. So I looked at rhythmweb, but I get a segfault everytime I st...
Assuming you have an iterable and you want to compute to overlap of adjacent items ... You need to yield the elements "pairwise". Usually, this is as easy as: seq = [[10, 20], [15, 20]] for lower,upper in zip(seq,seq[1:]): if upper[0] > lower[1]: print lower[1],upper[0] else: print None, None ...
Hello World All of these examples assume you have access to a Yhat instance (either through the public sandbox or enterprise) and a Yhat username and apikey. To signup for the sandbox version of ScienceOps, go here You'll also need to have the Yhat client library installed $ pip install -U yhat. Deploying Your First Mo...