text
stringlengths
256
65.5k
g_barthe [python + wxpython] Problème de liste chargée fonction d'une autre Bonjour, Je rencontre un problème lors du développement de mon application. Je développe un wx.grid avec une liste dans une cellule qui permet de choisir la marque d'un radiateur. En fonction du choix, je génère une autre liste dans la cellule ...
general dev cybrid at November 5th, 2005 08:08 — #1 Well, I'm totally new to this kind of class, so after searching a bit I found out this tuto about Singleton Pattern What I still don't understand very well is that in this piece of code class Singleton { public: static Singleton* Instance(); protected: ...
C, Twelve Days of Xmas Style New version: main(Z,_){Z?(_=Z[" $X,X3Y<X@Z@[<XHZHX," "` \\(Z(X0Z0Z8[@X@^8ZHZHX(Z(`#Y(Z(X3[8" "\\@_8ZHXHXHX(Z(` \\(Z(X0Z0Z8\\@_8ZIXI" "X(Z(` \\,X0Z0Z8\\@_8ZHZHX,"])?main(0,_ -32),main(Z+1,_):0:(putchar((_>>3)["kt" "wy~|tE/42"]-37),(_&7)?main(0,_-1):0);} Output: FFFFF OOOOO RRRR TTTTT Y Y...
As I’ve written about on a number of other occasions (here and here), I love using a digital camera for archival research. I’m an evangelist with graduate students, undergrads writing honors theses, and any of my colleagues who will listen for using digital cameras in the archive, something I’ve been doing since 2002. ...
I looked for a way without redefining the function and not using explicit knowledge about it (so it can be generalized) pl[f_, lims_] := Module[{eps = 0.05}, Off[InverseFunction::"ifun"]; Print@Plot[f[u], {u, lims[[1]], lims[[2]]}, Exclusions -> {{f[u] == f[InverseFunction[f][u]], Abs[(f[u] - f[u + e...
In OpenCV 2.3.1 (built from source) on Ubuntu 10.04, the C++ fragment cvNamedWindow("Camera", 1); CvCapture* capture = cvCaptureFromCAM(CV_CAP_ANY); while (1) { IplImage* frame = cvQueryFrame(capture); cvShowImage("Camera", frame); key = cvWaitKey(10); ... will open up a window and show video from my ThinkPad ...
I'd like to create a custom scope that searches and returns results from an online source for personal use. Is this possible? And if so, how? Yes it is absolutely possible and really easy to create new scopes. The Ubuntu App Developer site has lots of content to get you started writing scopes: For development in python...
Hmm, bug in iRedAPD-1.3.8. Please find below lines in /opt/iredapd/libs/ldaplib.py (about line 209 to 212): # Return if recipient account doesn't exist. if recipientDn is None or recipientLdif is None: self.logger.debug('Recipient DN or LDIF is None.') return SMTP...
use the following search parameters to narrow your results: e.g. subreddit:aww site:imgur.com dog subreddit:aww site:imgur.com dog see the search faq for details. advanced search: by author, subreddit... ~27 users here now Welcome to r/DailyProgrammer! First time visitors of Daily Programmer please Read the Wiki to lea...
Provides helper methods for ActionMailer::Base that can be used for easily formatting messages, accessing mailer or message instances, and the attachments list. attachments() Link Access the message attachments list. # File actionmailer/lib/action_mailer/mail_helper.rb, line 31 def attachments @_message.attachments end...
bowmore Problème avec une HP Color LaserJet 4550N branchée en Ethernet . Bonjour à tous. J'essaye depuis quelques jour de faire fonctionner une imprimante HP Color LaserJet 4550N branchée en Ethernet sur un PC sous Lubuntu 12.04. N'ayant pas de port USB sur l'imprimante, ni de port série sur ma carte mère, je n'ai que ...
I've recently formated a 1.5 TB drive with the intention of replacing ntfs with ext4. Then I noticed that the files I saved don't fit on the new partition. df: ext4 (ext3 & ext2 show the same behavior) Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb1 1442146364 71160 1442075204 1% /media/...
I have a Python script that need to be run with a particular python installation.Is there a way to craft a shebang so that it runs with $FOO/bar/MyCustomPython? The shebang line is very limited. Under many unix variants (including Linux), you can have only two words: a command and a single argument. There is also often...
I run Ubuntu 13.04 and I use Rhythmbox 2.98. This version is full of bugs and I would like to downgrade to 2.97 or older How can I do this ? Thanks Here is my sources.list # deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted # See http://help.ubuntu.com/community/UpgradeNotes ...
So this is my first project with Django. As a result, I seem to learn new things about how it handles models every day. Because of this, my database is changing every day. Each time I want to update my database, I need to drop it, create it, run syncdb, and then populate it with user data. I was hoping to automate this...
I have a Python script that need to be run with a particular python installation.Is there a way to craft a shebang so that it runs with $FOO/bar/MyCustomPython? The shebang line is very limited. Under many unix variants (including Linux), you can have only two words: a command and a single argument. There is also often...
XML-RPC in Python by Dave Warner 11/22/2000 The Internet, with its simple protocol and ubiquity, has opened up huge opportunities for programs to communicate between computers, a task that always seemed complex and daunting in the past. Now there is a new dilemma. Which framework should you use for automating communica...
A Primer on Python Metaclass Programming Pages: 1, 2 Solving Problems with Magic So far, we have seen the basics of metaclasses. Putting them to work is more subtle. The challenge of using metaclasses is that in typical OOP design, classes do not really do much. Class inheritance structures encapsulate and package data...
ricopatato probleme mise a jour je suis désolé si la réponse existe mais je ne la trouve pas. j'aie installer ubuntu depuis plus de six ans et aucun problème jusqu'a quelque semaine ou les mise a jour rencontre des problèmes. installArchives() failed: W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/...
loic_e Kubuntu Dapper sur Sony VAIO VGN-FE28H Voici la procédure d'installation utilisée pour installer Kubuntu Dapper sur un Vaio VGN-FE28H: Caractéristiques: Processeur Intel Core Duo Fréquence 1.67 GHz Quantité de RAM 1 Go Type de RAM DDR2-SDRAM Disque dur 160 Go Puce graphique nVIDIA GeForce 7400 Turbo Cache Taille...
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 ...
This is are my models i want to relate. i want for collection to appear in the form of occurrence. class Collection(models.Model): id = models.AutoField(primary_key=True, null=True) code = models.CharField(max_length=100, null=True, blank=True) address = models.CharField(max_length=100, null=True, blank=Tru...
I am using Python for Automated telnet program using telnetlib. The problem is: when the device that I am trying to telnet to doesn't responsd, means timeout; the program gives me timeout message and doesn't continue to next commands. My Code: import telnetlib HOST = ("x.x.x.x") USER = ("xxxxx") PWD = ("yyyyy") ...
no_spleen Re : Petit guide pour aider au choix d'un langage Le fichier de maillage est trops gros à poster ! Hors ligne tshirtman Re : Petit guide pour aider au choix d'un langage un code permettant de générer un fichier de ce type alors? je vais regarder ton code voir si je voit quelque chose de choquant pour les perf...
pops logiciel d'animation en pixel art Bonjour, Je voulais vous présenter un petit logiciel d'animation en pixel art sur lequel je travaille depuis un peu plus d'un mois. C'est encore très sommaire, mais il commence a être utilisable : On peut dessiner avec des couleurs indexées, animer, il y a quelques brosse et on pe...
I'm trying to use multiprocessing's Pool.map() function to divide out work simultaneously. When I use the following code, it works fine: import multiprocessing def f(x): return x*x def go(): pool = multiprocessing.Pool(processes=4) #result = pool.apply_async(self.f, [10]) #print result...
#0 Re : -1 » Camllight » Le 01/11/2010, à 22:55 fran.b Réponses : 9 Comme régulièrement 1) Je viens de faire les paquets camllight pour l'édition maverick d'Ubuntu. 2) Sur la suggestion de Dang Nguyen Bac (un de mes élèves), j'ai intégré au paquet un mode interactif caml_all permettant de disposer de libnum, libgraph, ...
ehmicky Stego++, projet de bibliothèque de stéganographie Salut à tous, [Message mis à jour 19/11/11] Je suis actuellement sur un projet de stéganographie (art de dissimuler un message secret dans "quelque chose" (fichier, phrase, etc.) d'apparence banal). Il s'agit de faire une bibliothèque C++, Stego++, qui permette ...
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 ...
My problem is that after python first reads the raw input it no longer correctly reads inputs subsequently afterwards. I've tried a lot of things but I can't seem to get it. What am I doing wrong? file_path = 'C:\\Users\\Neo\\My Documents\\Python Scripts\\FTC Scouting\\sample.txt' file = open(file_path, 'r') Team_Numbe...
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...
Ok so I have a custom django admin built from a Author Model: class AuthorAdmin(admin.ModelAdmin): """ Author Admin """ form = AuthorForm list_display = ['profile_photo', 'first_name', 'last_name', 'title'] search_fields = ['first_name', 'last_name', 'title', 'credential'] prepopulated_field...
Kanor Re : Idée projet Logiciel RDM Eurocodes Structures Bois, Acier, Béton... D'aprés ce que je comprend Salome utilise code_aster Sinon pdf qui me semble intéressant http://calcul.math.cnrs.fr/Documents/Journees/dec2006/aster.pdf ça date un peu 2006 Hors ligne ossatureLibre Re : Idée projet Logiciel RDM Eurocodes Str...
This openvz box was working properly few weeks ago, and now it can't ping the outside world. I'm not expert on networking, and I thought the initial working setup will last longer. Another stange stuff is that web services of this VM are available from outside. Ping network interface: vz:/# ping 88.191.118.xxx PING 88....
by a series of errors, Python 2.7 was installed over 2.6 within Ubuntu 10.04. Both appear to be working, however many things are not (yolk, freenx, easy_install, pip, etc). I believe the issue is that 2.7 is now seen as the default for python, but the OS is still trying to use 2.6. For example, when I try and run yolk,...
This is the popular correspondence table: d = { '2': "ABC", '3': "DEF", '4': "GHI", '5': "JKL", '6': "MNO", '7': "PQRS", '8': "TUV", '9': "WXYZ", } Given this, or any other d, (executable) pseudocode to transform a string of digits into all possible strings of letters: def digstolets(digs): if len(digs) == 0: yi...
I know that in Python it's possible to add at runtime a method to a class: class Test: def __init__(self): self.a=5 test=Test() import types def foo(self): print self.a test.foo = types.MethodType(foo, test) test.foo() #prints 5 And I also know that it's possible to override the default setattr in the ...
by Cameron Laird and Boudewijn Rempt 07/07/2000 Editor's note -- Seldom do I run across an article on application development that is just plain fun. I have one here. There are four characters in this story talking about the Qt authoring environment: Cameron Laird, Boudewijn Rempt, Thomas, and Paul. Cameron and Boudewi...
I have a C-function that allocates memory at the address passed to and is accessed via Python. The pointer contents does contain an array of structs in the C code, but I am unable to get ctypes to access the array properly beyond the 0th element. How can I get the proper memory offset to be able to access the non-zero ...
Olá, nesta semana comecei a publicar a série What The Flask lá no PythonClub. para quem ainda não conhece, o PythonClub é um blog colaborativo feito pela comunidade e hospedado no github. Colabore você também! Nesta série de 6 artigos/tutoriais pretendo abordar de maneira bem detalhada o desenvolvimento web com o frame...
zyt38 Re : Tuner TNT USB Avermedia A835: du nouveau ?! :-/ Bonjour, Voici mon tuto : http://lefebvre.francois.free.fr/blog/i … ous-linux/ J'espère que cela aidera. Bonjour, sous 12.04 et venant d'acquérir une clé Green HD A835, j'ai suivi ce tuto du mieux que j'ai pu mais j'obtiens ça : olive@zytoune:/lib/firmware$ tai...
Christoph Diehl discovered that libvpx did not properly perform bounds checking. If an application using libvpx opened a specially crafted WebM file, an attacker could cause a denial of service or possibly execute code as the user invoking the program. Updated packages are available from security.ubuntu.com. ==========...
Fabric: a System Administrator's Best Friend The Basics Now that you understand the groundwork of Fabric, you can start puttingit to use. For this article, I explain how to make asimple fabfile for the purpose of installing/removing software and yourmachines. First, you need what is called a fabfile. The fabfilecontain...
Componentes y Agregados (plugin) Los componentes y los agregados o plugin son características relativamente novedosas en web2py, y existen diferencias entre los desarrolladores sobre qué son o qué deberían ser. La confusión deriva mayormente de los distintos usos de esos términos en otros proyectos de software y del he...
Apparently this is a known bug in Empathy, so I decided to launch Empathy from a script that checks if the network is up (connecting to http://www.google.com, internet's true heartbeat :) If the network is not working, it will sleep for 5 seconds and retry, until it tried 30 times This is the script (named waitfornet.p...
Flying in the Face of Tradition To extend these simple examples into something a little more realistic, I'll implement an extremely basic blogging application along RESTful lines: using HTTP GET to retrieve a single entry or a list of entries, PUT to add or update an entry, and DELETE to remove one. The first step is t...
Quest for a terminal emulator The requirements I need a terminal emulator. This is a checklist of the features that I need: Foreground colour: #aaaaaa. Background colour: black. "Linux console" colour palette. Font: Monospace-10. Alt+Fnnto directly switch to one of the first 12 terminals, like in the Linux console. F11...
I use poster.streaminghttp method to upload large file to sharepoint server. My code is working fine for BASIC authentication. But for NTLM, it is not working. How to authenticate ntlm if i use poster. for large file, i should import os import sys import time import base64 import hmac import mimetyp...
I want to render every Nth frame of an animation, in this case every 12th frame. This way I can play back the animation at 2fps and see if everything is going correctly. I'm a real novice with Blender Python and cobbled this together: import bpy for f in range(startframe,endframe,NthFrame): bpy.context.scene.frame_...
Using the Google Drive web interface, I right click on a file, select 'sharing', to get to "Sharing Settings." I set the file to "Public on the web - Anyone on the Internet can find and view." I then copy the "link to share", in this case it is: https://docs.google.com/open?id=0B6Cpn8NXwgGPbFBPMEh5VHc1cUU I then click ...
Python in the Cloud A basic introduction to using the Python boto library to interact with AWS services and resources. This article explores using the boto library to work with resources in the Amazon Web Services (AWS) cloud. For those wondering, the boto name refers to a species of freshwater dolphin found in the Ama...
Related Reading An excerpt from Chapter 20: GUI Development, from Python Programming on Win32. This is the first of three excerpts covering Tkinter, PythonWin, and wxPython. This excerpt only covers Tkinter. In this chapter, we examine the various options for developing graphical user interfaces (GUIs) in Python. We wi...
#1651 Le 31/05/2012, à 19:24 Hizoka Re : [glade2script-GTK2] Interface graphique pour script bash ou autre. Pour le blocage de l'interface ? Essai de mettre le sleep également avant la commande EXEC (ton ordi trop puissant ...) bien vu, ca semble etre ok avec un sleep 0.10 avant le load. Hors ligne #1652 Le 01/06/2012,...
Slimme meter uitlezen met Raspberry Pi Via via kwam ik op zonnestraal.be en hij is bezig met het uitlezen van de slimme meter via de DSMR P1 poort. NuJanus (de sitebeheerder van bovenstaande site) kiest ervoor om dezeslimme meter om te zetten naar ethernet en vervolgens op een anderecomputer iets met deze gegevens te d...
--- Edited below with some more testing, please read :) --- I'm struggling trying to build a multipart/form-data body in Python, basically I'm doing it with a buffer of strings in a list and then trying to join them, here's the code: fp = open(filename, 'rb') BOUNDARY = 's0m3r4ndomB0unD4ry' body = [] body.append('--' +...
Before starting I should mention that even though the title is similar to the following questions, is not the same problem and I have already tested the answers of this questions with no solution in hand: (I wish it were that easy). The problem started about 2 weeks ago (Using 12.10 64 Bit). After an upgrade, Unity wou...
Corzntin error /boot/grub/i386-pc/normal.mod not found Bonsoir ! En tentant d'installer Ubuntu depuis une clef USB faite avec Unetbootin, l'erreur "error /boot/grub/i386-pc/normal.mod not found" apparaît (le LiveUSB ne démarre pas du tout, donc impossible d'essayer Boot Repair). J'ai essayé à plusieurs reprises de "ref...
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...
Other recipes Upgrading In the "site" page of the administrative interface there is an "upgrade now" button. In case this is not feasible or does not work (for example because of a file locking issue), upgrading web2py manually is very easy. Simply unzip the latest version of web2py over the old installation. This will...
Also see http://stackoverflow.com/questions/17741167/hibernate-jpa-improve-performance-of-distinct-query but I realized this is mainly a PostgreSQL issue. My application uses a 3rd party extension to PostgreSQL to for searching chemical structures. This is in general slow. I can not change the SQL directly as the appli...
The best way, I think, would be not to do it -- '*' is a perfectly valid key in a dict, so myiter['*'] has a perfectly well defined meaning and usefulness, and subverting that can definitely cause problems. How to "glob" over keys which are not strings, including the exclusively integer "keys" (indices) in elements whi...
malbo Re : Windows 8.1+Ubuntu... Ton Boot-Info est là : Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 27Sep2013] ============================= Boot Info Summary: =============================== => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 175118912 of the same hard ...
Mibixy Re : Live Voyager 12.10 bonjour, bonsoir, joyeux noël voilà je viens poster là parce qu'après de longues recherches, (peut-être pas au bon endroit.. pas avec les bons mots clefs je ne sais pas...) je ne trouve pas de script de connexion vpn pour les intégrer à wicd... NM fonctionne très mal chez moi. pourquoi ? ...
Code that was built using VS 2003 for generating 32 bit binary was built without a single warning. Same code , without a single code change, Compile and Link is successful using Visual studio 2010 compiler for generating 64 bit binary BUT with below list of warnings. So, My question is, Is any warning in the below list...
Edit: I modified the code a little to take out some unnecessary stuff, for some reason before I needed to use fillrectangle so the window was drawn correctly i tested and now works fine for some reason. I'm trying to mirgrate my code from xlib to xcb and I'm having some problems when trying to "draw a border" on a wind...
PCA() class from the matplotlib.mlab libraryPCA() class from the sklearn.decomposition library to confirm our results The main purposes of a principal component analysis are the analysis of data to identify patterns and finding patterns to reduce the dimensions of the dataset with minimal loss of information. Here, our...
Python Scripts as a Replacement for Bash Utility Scripts For Linux users, the command line is a celebrated part of our entire experience. Unlike other popular operating systems, where the command line is a scary proposition for all but the most experienced veterans, in the Linux community, command-line use is encourage...
I have an NFSv3 export from a Linux fileserver which used to mount fine. The fileserver had to go down for hardware maintenance. After bringing the server back up, the Linux client can no longer mount the nfs export. No configuration has changed on the server or the client. I did do a software update and reboot the cli...
How many undirected graphs with $N+M$ labeled nodes exist where there's only one cycle and it's length is $N$ in such a way that every element of the cycle has at most one tree growing out of it? Choosing the cycle elements and arranging them can be done in $\left(N-1\right)! {N+M \choose N}$ unique ways. The rest of t...
I want my laptop to wake up from suspended mode in the morning and alarm me to wake up using my mp3 file. How do I do it? I tried apmsleep, but it doesn't work cause my PC doesnt have "suspend to RAM" feature in BIOS. What can I do? Thanks! I want my laptop to wake up from suspended mode in the morning and alarm me to ...
I want to be able to bring up an interactive python terminal from my python application. Some, but not all, variables in my program needs to be exposed to the interpreter. Currently I use a sub-classed and modified QPlainTextEdit and route all "commands" there to eval or exec, and keep track of a separate namespace in ...
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...
Coeur Noir [résolu] Langue du système ...pas d'interface KCmodule... Hello, je viens de réinstaller Kubuntu12.04 - seul - sur partition dédiée avec son propre utilisateur dans un /home sur un 2nd DD. Sur une autre partition il y a Ubuntu12.04 et son autre utilisateur, dans le même /home (/home contient donc 2 utilisate...
I use subprocess exchange data between two process I edit a repeat.py file with: this file is a example from http://www.doughellmann.com/PyMOTW/subprocess/ import sys sys.stderr.write('repeater.py: starting\n') sys.stderr.flush() while True: next_line = sys.stdin.readline() if not next_line: break s...
HTTP L1/L2/L3 Proxy Checker Proxy Checker Download Link #!/usr/bin/env python #www.linux-ninjas.com import Queue import threading import urllib2 import time input_file = 'proxylist.txt' threads = 10 queue = Queue.Queue() output = [] class ThreadUrl(threading.Thread): """Threaded Url G...
patatra [gnome-shell] Menu activité par bouton de souris Bonjour, J'utilise Gnome-shell depuis Oneiric, il me convient parfaitement, et son utilisation était parfaite avec l'utilisation de BTNX qui m'avait permis de "mapper" la touche 'Super' avec le bouton sous le pouce de ma Logitech M705. C'était super pratique, un ...
I am trying to convert an SVG file to PDF in python using the svglib and reportlab packages. Here is the SVG file. <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <circle cx...
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 have a MySQL Workbench model (diagram) that belongs to a Ruby on Rails application. I now need to add the created_at and updated_at timestamp columns to each of the tables. What is a quick and easy way to do this (instead of doing it manually)? My client does not want to use Rails migrations and uses the Workbench as...
#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 à ...
Here's a mysterious python problem: I'm developing a python package that occasionally reports import errors looking like ImportError: cannot import name …. The modules it cannot import generally are importable do not have any circular import issues (that I can detect). I have been able to reproduce a similar effect w...
kryss Re : [HOW TO] adesklets : installation sous Ubuntu Dapper et Edgy ah la galere... etu tu crois que tu peux savoir pourquoi les desklets de gdesklet marchent pas? c est quoi un capteur rss grab? Hors ligne toma222 Re : [HOW TO] adesklets : installation sous Ubuntu Dapper et Edgy Non désolé, j'ai laissé tomber gdes...
I am installing Windows 7 on an old machine. I can not even get it to boot. I get this error message: CDBOOT: Cannot boot from CD - Code: 5 Boot Failure from Previous Device.. Boot Failure from Previous Device.. Broadcom UNDI, PXE-2.1 (build 082) v1.0.3 Copyright (C) 2000-2002 Broadcom Corporation Copyright (C) 2007-20...
I am trying to accomplish a way to spawn a thread that waits for user input; if no input is entered within 10 seconds, I want the script to kill off the spawned thread and continue processing. I've got a way to get the input back from the thread if text is entered but I have no way to let the timeout kill off the newly...
ClassType PythonSourceColorizer source code A class that renders a python module's source code into HTML pages. These HTML pages are intended to be provided along with the API documentation for a module, in case a user wants to learn more about a particular object by examining its source code. Links are therefore gener...
Is there any specific reason as why it is not available in 2.7? @Nirk has already provided the reason: unfortunately, the 2.x line only receive bugfixes, and new features are developed for 3.x only. Is there any 3rd party library providing the same feature? repoze.lru is a LRU cache implementation for Python 2.6, Pytho...
A wrapper for a wrapper… Does that make any sense? This is the question @philipbergen poses in the README for Zero. I can say with almost certainty that it does make sense. I do not use ØMQ but by just looking at some examples of how to use the standard python library and this wrapper, “a wrapper for a wrapper” just ma...
How to remove duplicate tracks from Banshee? It is a known bug that has been fixed in the newer versions of Banshee. You can use the latest version of Banshee from the Banshee PPA: sudo add-apt-repository ppa:banshee-team/ppa sudo apt-get update && sudo apt-get upgrade Locate the sqlite3 database (~/.config/banshee-1/...
Today, I’ve learnt about defaultdict container from my colleague, who uses it for caching. defaultdict container is part of collections module which provides high-performance container datatypes.You can find more about it here. Note: New in version 2.5. Let’s see the code without caching mechanism: 1 2 3 4 5 6 7 8 9 10...
leYB Re : lexmark x2670 Que dit : ls -l /usr/local/lexmark/lxk08/bin/printdriver -rwxr-xr-x 1 root bin 63851 2008-11-06 09:47 /usr/local/lexmark/lxk08/bin/printdriver Hors ligne leYB Re : lexmark x2670 En changeant le groupe c'est toujours pareil? sudo chgrp root /usr/local/lexmark/lxk08/bin/printdriver Cela donne: ~...
When trying to refresh a materialized view based on a query that uses a mssql table (using the SqlServer Gateway), I run into the following error: After some investigation I found this was caused by a “NOT NULL” constraint on the mview-table. A small scenario: ORA-12008: error in materialized view refresh path ORA-0140...
I'd like to know how can I call Mathematica functions from Python. I appreciate a example, for example, using the Mathematica function Prime. I had search about MathLink but how to use it in Python is a little obscure to me. I tried to use a Mathematica-Python library called pyml but I hadn't no sucess, maybe because t...
Fun with Django ManyToMany Fields This is just another reason I find Django so easy. For example.. Say you are making a monitoring application. Now you have a bunch of servers and you have certain groups of servers. A server can belong in more then one group also. So that is pretty easy and all with Django. Now in your...
Python Vector Foreword If we want to make a game in Python, we will need vector math at some point. In most cases, a vector is a position. For example, in a 2D game it would be (x, y). In a 3D game it would be (x, y, z). A common example for the need of vectors is monster movement. A monster stands at position (x, y, z...
I've looked through several posts but I haven't quite found any answers that have solved my problem. Sample XML = <TextWithNodes><Node id="0"/>TEXT1<Node id="19"/>TEXT2 <Node id="20"/>TEXT3<Node id="212"/></TextWithNodes> So I understand that usually if I had extracted TextWithNodes as a NodeList I would do something l...
We are replicating from a mysql 5.0.45 host to a 5.5.26 host over WAN. Every once in a while one of our databases does not accept a query and halts the replication. "'Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted' on query." I found some useful information from this posting...
Cooking with Python 07/11/2002 by Robin Parma, Alex Martelli, Scott David Daniels, Ben Wolfson, Nick Perkins, Anurag Uniya, Tim Keating, Rael Dornfest and Jeremy Hylton, authors of the Python Cookbook Usually Python is straightforward, but there are a few unexpected exceptions. Credits: Robin Parma You want to know if ...
Hizoka Re : [g2s] GUI d'extraction de fichiers mkv En fait la fonction qui permet d'extraire dans le même dossier, il faut cliquer dessus à chaque fois. Tu pourrais pas mettre une option à cocher dans préférences qui permettrait de la garder toujours active ? Réinitialise les préférences. Par contre il n'y a plus l’icô...
pilou254 [RÉSOLU] Xubuntu 13.04 inutilisable Bonsoir à tous, je viens de mettre à niveau mon install vers la 13.04 et je suis confronté à de sérieuses difficultés. Le démarrage est très très lent ... mais vraiment très très lent ! Une fois démarré tout va bien, la machine est un avion et puis d'un coup ça devient à nou...
I have a script I found a while back to speed up installing Minecraft... for my kid... Anyway, I recently changed to Xubuntu and figured the same script would be ok, not taking into consideration the different desktop managers. When i ran the script, "The application Desktop closed unexpectedly" and now i just have a g...