text
stringlengths
256
65.5k
JavaScript iamjustoneman — 2011-12-20T18:02:28-05:00 — #1 Hi all, I have work thumbnails on one side (meals), ingredients on the other side, what I would like to do is: 1) If I hover over a meal, the ingredients used for that dish are highlighted on the left 2) If I hover over an ingredient, the dishes that used this i...
Hello all. Im working on a PHP project for myself, and I wanted give users the ability to upload an image and use a algorithm to find which other image it most closely resembles. I figure I need some sort of image analysis library and was wondering if anyone could shed some light on how one might do something like this...
PyPN is an extension that allows you to use Python to script almost anything in PN. This can be simple text formatting, or complex macros for automation. See Install PyPN for installation instructions. After PyPN is installed, go to View > Window > Scripts (or press Alt+F10). You should be able to see the Scripts menu,...
This native application retrieves the closed questions from a site, excluding duplicates, migrations, deleted questions, and recently closed questions. The list is presented in a form that can be included in a meta post. For each question, the output presents the title linking to the post, the close reason abbreviated ...
This is the list in Python: a = [{a:3,b:4}, {c:14,d:24}] How can I create a list consisting only from the values of the dictionaries? Like this: a1=[3,4,14,24] I have made this with a for loop, but is there an other way of doing this? Since the order apparently doesn't matter: >>> a = [{'a':3,'b':4}, {'c':14,'d':24}] >...
On my Windows XP workstation, I can find the machine I want to connect to in DNS with nslookup: nslookup wolfmanServer: dns.company.comAddress: 192.168.1.38Name: wolfman.company.comAddress: 192.168.1.178 But, when I try to connect to that machine, I get an error telling me that the machine can't be found (i.e., can't b...
i am using custom user accounts for one of my projects and am using the User model and authentication provided by webapp2. Everything runs perfect but i am stuck at the part where authentication is not successful. For Example: #imports from webapp2_extras.appengine.auth.models import User class LoginHandler(SomeBaseReq...
Let me start by being perfectly clear: if you are a professional programmer, then Haskell is in your future. In 1987, this statement would have been equally true about Smalltalk. Today, 20 years later, object-oriented programming, class hierarchies, model-view-controller patterns, and other ideas from Smalltalk are now...
I have an HP Envy dv7 with a dual boot setup of Win 8 and Fedora 18. On 07/22/2013 I updated all packages in Fedora 18 that had updates available. After a reboot, Fedora is now detecting that a second monitor is connected on the vga-2 port (according to xrandr) but I don't have a second monitor. Is there a way to preve...
______ _________ _ _____ ____ ____ .' ___ || _ _ | / \ |_ _||_ _| |_ _| / .' \_||_/ | | \_| / _ \ | | \ \ / / | | ____ | | / ___ \ | | \ \ / / \ `.___] | _| |_ _/ / \ \_ _| |_ \ ' / ...
If I run compix-switch or fusion-icon, and then select xfwm4 from its menu, it refuses to load, terminal gives me these errors: Code: * Setting window manager to Xfwm4 ** (xfwm4:6218): CRITICAL **: Xfconf could not be initialized ** (xfwm4:6218): WARNING **: Missing data from default files * Setting window manager to X...
I want to delete any numbers that have 3 or less than 3 digits. Can someone please help me with a regex that does this? Currently, my code removes all the numbers it finds. # Cleans Numbers def cleanNumbers(stringToClean): stringToClean = re.sub(r'[0-9]*', r'', stringToClean) print 'String after clea...
I have an array of values, t, that is always in increasing order (but not always uniformly spaced). I have another single value, x. I need to find the index in t such that t[index] is closest to x. The function must return zero for x < t.min() and the max index (or -1) for x > t.max(). I've written two functions to do ...
simple way to invert pow curve Hi I’ve built a simple patch to generate exponential/logarithmic scaling of input-output. Given that my maths expertise < = national average, it appears from the patch below that the pow curve inverted is very similar to the log curve. What I would like to achieve is a smooth symmetrical ...
I have managed to do this with the Python RPIO library. I set the PWM up with a 1 uSec pulse, and loaded the entire IR code into memory, doing the 36khz modulation in software. Since this is using DMA, the waveform is pretty good. The one issue I am having is that it does take about 4 seconds to get 2 seconds of DMA bu...
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é...
CyrilouGarou Création de miniatures pour dossiers d'artistes dans librairie amarok Bonjour à tous, Nous sommes nombreux à utiliser l'excellent amarok pour écouter notre zic. Amarok permet de ranger sa collection de la façon suivante (exemple de chemin pour la chanson hells bells d'ACDC) /home/cyril/Ma\ Musique/A/AC_DC/...
toma222 [HOW TO] adesklets : installation sous Ubuntu Dapper et Edgy Il existe désormais un article sur le wiki concernant Adesklets donc je vous conseille de vous y fier, ce tutoriel n'étant plus mis à jour. Je poste ce sujet en complément du sujet sur l'installation de adesklets sous Breezy. Je ne reviendrais pas sur...
I need to get a list of all users for a given provider. A user may have multiple providers, and a provider may have multiple users. Here is what I have so far: I have the following tables: class Provider(models.Model): provider = models.CharField(max_length=100, primary_key=True) class UserProfile(models.Model): ...
/projects/mymath$ ls __init__.py __init__.pyc mymath.py mymath.pyc tests and under the directory tests I have /projects/mymath/tests/features$ ls steps.py steps.pyc zero.feature I tried to import my factorial function sys.path.insert(0,"../../") #import mymath from mymath.MyMath import factorial But it said No...
AuthorPosts July 30, 2012 at 7:06 pm #14859 I wasn’t sure how to search for this, I tried but didn’t get anything for habitat. Basically I wanted the main slider image, the massive one on the home page to be a static image. I didn’t want it to relate to my posts, I just want to have a nice huge image on my main page th...
AnsuzPeorth [HtmlDesktopTools] Tout pour votre bureau en HTML5/JS/CSS3 Bjr, N'ayant pas trouvé une taskbar qui me convienne, j'ai codé, pour le fun, une taskbar html. Plutot que de me faire juste ma taskbar, j'ai plutot développé un outils qui permet de faire ses widgets en html pour le bureau, dont ma taskbar. Ce proj...
Building a Doubletalk Browser with wxPython Okay, now let's build something that's actually useful and learn more about the wxPython framework along the way. As has been shown with the other GUI toolkits, we'll build a small application around the Doubletalk class library that allows browsing and editing of transaction...
class Geolocation(db.Model): __tablename__ = "geolocation" id = db.Column(db.Integer, primary_key=True) latitude = db.Column(db.Float) longitude = db.Column(db.Float) elevation = db.Column(db.Float) # Meters # Relationships pin = db.relationship('Pin', uselist=False, backref="geoloca...
i have made an application using python and google app engine, the app works ok so far on localhost but when i deploy it using the google app engine launcher i get the following: Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 701, in...
Michael Jackson - Vision (2010) 3DVD On Label Michael Jackson - Vision (2010) 3DVD Life", "Don't Stop 'Til You Get Enough", "In the Closet", and more... (allmovie) Artist: Michael Jackson Title: Vision Genre : POP Type: NTSC, Untouched, Folder (VIDEO_TS) Video: MPEG-2, 720x480i (16:9), 29.970 fps Audio: LPCM, 1536 Kbps...
pilepoil Asus X59SL problème accès internet (seulement Google, BNP) Salut, J'ai depuis peu de temps le Asus X59SL. J'ai mis un double boot Ubuntu et Vista. Sous Vista, pas de soucis d'accès à internet. Sous Ubuntu 8.10 64 bits, j'ai accès uniquement à Google et à BNP (et peut être d'autres, mais pas nombreux). J'ai fai...
How do I monitor and display the CPU temperature using Linux? As others have noted, you need the If you haven't done this, manually run this once and check if it detects any sensors on board your computer. $ sudo sensors-detect # sensors-detect revision 5249 (2008-05-11 22:56:25 +0200) This program will help you deter...
anonym_user Re : Besoin de testeurs pour Pap'rass Salut, Excellente idée ce soft ! J'ai juste un petit problème : les doc ne se classe pas dans les chemises que je crée. Après chaque tentative de classement la recherche sur le classeur m'indique qu'il est vide. La recherche par mot clé retrouve le doc mais le document ...
I am new to Python and not so experienced. I recently installed the Google App Engine Launcher on Windows 7 (64 bit) and I have Python 2.7 installed. When I start the Google App Engine Launcher , I get an error : Traceback (most recent call last): File "GoogleAppEngineLauncher.py", line 42, in <module> File "wx\_core.p...
The examples below are from the official SQLAlchemy page. If anything is wrong, incorrect, or simply can be done in less code SQLAlchemy please let me know and I will fix. SQLite, MySQL, PostgreSQL, Oracle, MSSQL(*), FireBird, Informix, DB2 SQLite, MySQL, PostgreSQL, Oracle, MSSQL, FireBird, DB2, Informix, Ingres, Goog...
At Djangocon EU last year, I gave a talk about how you could easily get up and running with real-time web applications using Django and Socket.IO. I have now been running an application using this principle for a year and I am everything but a fan of it. I decided i had to switch to something else. My first impression ...
How To Retarget the GNU Toolchain in 21 Patches Preamble to the github Edition The text below was originally written for a series of daily blog posts I wrote in 2008 about porting the GNU Toolchain to a new target. The old blog site is down, so I have collected and re-hosted the articles here at github with all of the ...
Pylades /* Topic des codeurs couche-tard [1] */ Bienvenue dans le TdCCT 0x1. Ceci est la suite de ce fil. Voici le rappel des règles du jeu, formulées par le message initial de samuncle : Bienvenue dans ce nouveau topic psychédélique, ou le but est de coder le plus tard possible (oui, c’est bien connu, il est plus faci...
I have the following snippet of code, which takes a url opens it, parses out JUST the text and then searches for widgets. The way it detects widgets is by looking for the word widget1 and then endwidget, which denotes the end of the widget. Basically the code writes all lines of text to a file as soon as it finds the w...
Call us: +1-415-738-4000 Ehcache comes with a Cache Server, available as a WAR for most web containers, or as a standalone server. Note: If using with Terracotta BigMemory, the Cache Server works only with versions prior to 4.0. The Cache Server does not work with BigMemory 4.0 and higher. The Cache Server has two APIs...
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'm wondering how to use a string from raw_input safely so that I can create a function to replace it for a script that is meant to be used easily and securely. The reason is that I am trying to make a character sheet generating application using python and need to be able to get a character's full name to pass as a st...
Is there a effective quick way to generate a large prime of a given length? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Humanity is still kept intact. ...
new to python. so i have this function, and I don't know how to get it to take two arguments and return it in another list with their positions. in the main program i want it to call x to search for in the list, and print the meassage where it occurs. am i going about this the right way? this what I came up with. would...
What is correct way to convert Python dict in single string? I have example program with code: keywordsList = {u'roland.luethe1@gmail.com': 2, u'http://www.3ho.de/': 4, u'http://www.kundalini-yoga-zentrum-berlin.de/index.html': 1, u'ergo@ananda-pur.de': 3} keywordsCount = sorted(keywordsList.items(),key=lambda(k,v):(v,...
I'm currently starting with sqlalchemy. In my current project I have to do some part with Flask and some other part from the command line. The part about flask is running fine, interfacing with sqlalchemy and all, but the commandline part is not. The error I'm getting is ArgumentError("Class object expected, got 'Table...
Dernière news : Fedora-Fr aux 15èmes Rencontres Mondiales du Logiciel Libre Ou plutot 2.7.0 Savez vous pour quelle version de Fedora elle sera intégrée et aussi si il est possible de la tester sous Fedora 12 (avec RPM, j'ai pas le temps de la compiler en ce moment...) Car j'en ai ras le bol d'utiliser toshop, et comme ...
Related Reading This is the second in a series of articles from O'Reilly's Learning Wireless Java, by Qusay Mahmoud. This section from Chapter 5 focuses on the high-level MIDP GUI APIs and components. You can also read the first excerpt in this series. Let's look at how the various classes in the high-level API can be ...
I'm trying to create an EPUB from all StackExchange RSS feeds (to use as a "podcast" to read on an offline ebook reader). This involves parsing the recent questions from all SE sites, which quickly leads to a "Too Many Requests from this IP" error. This is what the script (a Calibre recipe) does: from calibre.web.feeds...
There is a socket method for getting the IP of a given network interface: import socket import fcntl import struct def get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl( s.fileno(), 0x8915, # SIOCGIFADDR struct.pack('256s', ...
Contents CVS is an abbreviation for Concurrent Versions System. Nothing. CVS comes with the NetBSD base installation. First decide where you want to store all cvs repositories. Let's take /usr/cvsrepositories # mkdir /usr/cvsrepositories Now you can create directories for different projects. # cd /usr/cvsrepositories ...
I would like to add a field to a Django object with the related database column. Just adding an attribute will work if a set the attribute after initializing the model, but as usual, I'm trying to get it to work the Django way. class Stuff(models.Model): id = fields.UUIDField(primary_key=True) name = models.Cha...
I am trying to work through some code to connect to merchantos.com's rest API via Python. With some research, I have managed to get the GET access working, using the following urllib2 code: # NOTE: This api key has been made bogus lcMOS_APIKey = '07203c82fab495xxxxxxxxxxxxxxxxxxxc2a499c' # also bogus... lcMOS_Acct = '...
I just want to add the following: With multiple iterables, the iterator stops when the shortest iterable is exhausted [ https://docs.python.org/3.4/library/functions.html#map ] Python 2.7.6 (default, Mar 22 2014, 22:59:56) >>> list(map(lambda a, b: [a, b], [1, 2, 3], ['a', 'b'])) [[1, 'a'], [2, 'b'], [3, None]] Python...
gio.File — File and Directory Handling. class gio.File(gobject.GInterface): gio.File(commandline, path=None, uri=None) def append_to(flags=gio.FILE_CREATE_NONE, cancellable=None) def append_to_async(callback, flags=gio.FILE_CREATE_NONE, io_priority=glib.PRIORITY_DEFAULT, cancellable=None, user_data=None) ...
I have done a few installs of openSUSE to use as a Xen dom0 and have not got it working yet. These are the steps I followed: Installed openSUSE 11.4 from Live KDE CD. Installed all updates via YaST>Package Management. Installed Xen via YaST>Install Hypervisor (installed all xen and kernel packages required). Reboot int...
September 19th, 2014 at 9:14 am by Dr. Drang I’ve been reading reviews of the new iPhones in a sort of detached manner. I have a 5S, and although I could upgrade through a intra-family swap, my wife likes the size of her 4S and is skeptical about the advantages of moving up to a 4 inch phone. Also, my 5S is black, and ...
Yoko 12 [Résolu] Problème avec apt-get update Bonsoir à tous, Après avoir fait des changement dans mon sources.list, j'ai voulut lancer apt-get update. Mais il reste bloqué à 36%, après il me dit que le delais de connexion est dépasser pour se connecter au serveurs. Voici le contenu de mon sources.list (j'imagine qu'el...
(for an intro to GStreamer, see my previous article) You know, one thing that gets people confused in GStreamer is the idea of Dynamic Pads. Some elements, most notably the decodebin and gnlcomposition only have certain pads at certain times. This is because they figure out what kind of content they are processing, and...
Currently a bit stuck, wondering if anyone can assist. I am using django-adminfiles. Which is a neat little application. I want to use it to insert images into posts/articles/pages for a site i am building. How django-adminfiles works is it inserts a placeholder i.e <<< ImageFile >>> and this gets rendered using a djan...
When using the following code to connect to the toggl api I connect and am authorised just fine. username = token password = 'api_token' url = 'http://www.toggl.com/api/v3/tasks.json' req = urllib2.Request(url) auth_string = base64.encodestring('%s:%s' % (username, password)) req.add_header("Authorization", "Basic %s" ...
I am trying to setup this Twitter authorization without having the user to enter the pin in our screen but I am having trouble getting the correct setup I am always directed to enter the PIN. trying to use and follow this package https://github.com/simplegeo/python-oauth2 Here is my current code env = Environment(loade...
HKH Re : Cerise 0.8 - TPE, freelances, artisans effectivement ca ne fonctionne pas avec ces identifiants...! J ai crée une entreprise nom : Ubuntu login ubuntu pass ubuntu Bon test Hors ligne j1100 Re : Cerise 0.8 - TPE, freelances, artisans Hop je m'abonne. Ça va fortement m'intéresser dans 2-3 ans quand je serai patr...
To introduce the problem, USB devices are typically hot-pluggableexternal devices. Linux (the kernel) assigns a number for each device inthe system at boot time, or later when the device is plugged into thesystem. This number (the minor device number) is used internally byseveral system (kernel) functions, but the user...
Phoenamandre Re : Suivi des bogues d'Ubuntu 12.10 j'ai le même problème que toi avec mon dell xps ! autre bogue, si vous êtes touchés par un problème de maya qui ne veut pas démarrer https://bugs.launchpad.net/maya/+bug/1047599 Hors ligne vlotho Re : Suivi des bogues d'Ubuntu 12.10 Salut j'ai une ribembelle de warning ...
making a matrix scroll the *other* direction I recently learned the trick where one can make a jitter matrix seem to scroll to the right by offsetting the source and destination dimensions. I’m wondering why this isn’t reversible, in other words why making the dstdim range one value higher than the srcdim range seems t...
If I have several binary strings with compressed zlib data, is there a way to efficiently combine them into a single compressed string without decompressing everything? Example of what I have to do now: c1 = zlib.compress("The quick brown fox jumped over the lazy dog. ") c2 = zlib.compress("We ride at dawn! ") c = zlib...
Tales of Rescuing Old Hardware by Mikhail Zakharov 05/05/2005 Everything began one fine day when I visited our storage room to see if there was anything interesting for me to look at. Soon I came across an old shabby dark-gray Toshiba notebook thrown there amidst different computer rubbish long ago, from the time when ...
idragus problème python EOFError Bonjour j'ai installé hier Ubuntu 12.0.4 LTS sur une virtual Box et aujourd'hui en essayant de programmer (avec sublime Text 2 comme éditeur de texte) j'ai un problème de EOFError mais je ne comprend pas pourquoi car hier j'ai réussi à programmer sans problème et aujourd'hui j'ai ce pro...
I am using web.py framework to develop a small webpage that displays all the records from database. Below is my code list_page.html $def with ( select_query ) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en...
mauribilis Réponses : 1 Bonjour, Je viens d'installer en dual boot ubuntu 14.04.1 et windows pro 8.1 mais ubuntu voit la carte graphique intel intégré mais pas la carte nvidia gtx860m j'ai essayé de forcer en installant la version current des pilotes proprio nvidia, mais depuis j'ai écran noir et même pas de console. m...
krystoo Comment installer des mises à jour téléchargées ? Bonsoir, alors je vais faire le tour je crois ^^ après troisième installe sur le pc portable, se coup ci j'avais 197 mises à jour. J'ai fait en plusieurs fois car sinon interminable. Quand aux 6 dernières màj que j'ai téléchargé, visiblement elles ne se sont pas...
tibo69 driver nvidia sous breezy : one boot trial ??? Yop, Un problème avec les drivers nvidia, apres une upgrade de hoary64 -> breezy64. J'ai installé les drivers nvidia (pakages : nvidia-glx,nvidia-kernel-common,nvidia-settings), changé le xorg.conf comme il faut, tout marchait. Un reboot, rien ne va plus. Les driver...
In previous versions, epydoc extracted information about each module by importing it, and using introspection to examine its contents. Epydoc 3.0 still supports introspection, but is also capable of extracting information about python modules by parsing their source code. Furthermore, the new version of epydoc can comb...
Ayu Grub ne se lance pas Bonsoir, J'ai installé windows 7 et Xubuntu 11.10 sur un nouveau pc avec cette configuration:CM: Asus P8H67 B3Processeur: i5 2500kDD: 1TO 7200 RPMRAM: 2x4GOCG: Gigabyte GeForce GTX 560 Mais je boot toujours sur windows et Grub ne se lance pas j'ai essayé de réinstaller grub depuis une session l...
I'm trying to get some grip on Python's fft functionality, and one of the weird things that I've stumbled on is that Parseval's theorem doesn't seem to apply, as it gives a difference of about 50 now, while it should be 0. import numpy as np import matplotlib.pyplot as plt import scipy.fftpack as fftpack pi = np.pi tda...
spyke Re : La communauté du jeux sous Linux http://www.JeuxLinux.fr jerhum oki mais alors je ny arrive pas a les faire tourner justement est ce normale comme wolfenstein , quake4 etc..... Hors ligne foxylechou Re : La communauté du jeux sous Linux http://www.JeuxLinux.fr il faut autoriser le fichier a être exécuter dan...
Greetings Pythonists and fans of British humor. Today, we're going to take a look at a great little Python module called PyGNOME. With this piece of software in hand, we can, without fear of being forced to use some other uncomfortable programming language, dive into the big world of GUI (Graphical User Interface) prog...
pilote [résolu] impossible d'acceder au site adobe.com bonjours, voici le problème -> Firefox ne peut établir de connexion avec le serveur à l'adresse www.adobe.com -> Opéra: Vous tentez d'accéder à l'adresse http://www.adobe.com/, actuellement injoignable... etc. a priori c'est le seul site à me faire ça ! Je ne sais ...
I need to do a simple split of a string, but there doesnt seem to be a function for this, and the manual way i tested didn't seem to work. How would i do it? Please see Splitting Strings: If you are splitting a string in Lua, you should try the string.gmatch() or string.sub() methods. Use the string.sub() method if you...
Audit trail Some applications, those that deal with medical records for example, need an audit trail. I.e. they need to keep track of every database change. One way to achieve this is by time stamping and signing every records of every table storing a copy of the current record every time it is updated marking new/modi...
Danniel scripting Bonjour à tous, j'aimerais savoir comment créer des utilisateurs à partir d'une liste Hors ligne Danniel Re : scripting comment créer une unité d'organisation Hors ligne Danniel Re : scripting Bonsoir, je suis entraine de créer un script de gestion de contrôleur de domaine sur ubuntu, alors comment cr...
switched to db file scattered reads . Argh! This is not what I wanted. direct path reads For reference, when a server process asks the operating system for multiple blocks at once (for example, using the system call ) and places them into the buffer cache, Oracle records the time using the wait event facility and gives...
I tried the code below in interactive python shell and got the follow error in line 3 of code, using D-Feet I see that path and interface exists in bus, and with the command dbus-send I able to get the devices, see in end of this message. Why not work with this code in python? PS: I using ubuntu 12.04, tried too in ubu...
joko Re : Qarte arte.tv browser (ex Qarte+7) bonjour, grands compliments à VinsS et consors, vraiment épaté. bravo à tous les p'tits fouineurs ! qualité vidéo géniale, rien à voir avec celle du site d'arte +7 !!! Dernière modification par joko (Le 06/11/2012, à 12:35) Je suis un homme, quoi de plus naturel en somme ? l...
nam1962 [résolu, du coup tuto] Comment nettoyer mauvaise install de langues Comment peut on récupérer un desktop en francais sous 12.04 ou 12.10 ? Je viens d'installer un Airis pour un ami en Xubuntu 12.04 Tout est total ok, mais le desktop est en anglais (tous les fichiers locale indique pourtant fr_Fr ou fr UTF8). Y ...
doudoulolita Faire une animation sur la création de jeux vidéo libres Dans le topic Création de jeu vidéo libre - Appel à candidatures, j'ai découvert le créateur de jeu de Ultimate Smash Friends, Tshirtman. Voici ce que je lui ai écrit: Je cherche un jeu que notre Espace Public Numérique pourrait proposer aux jeunes s...
When I plug-in an USB stick (FAT) into my Mac or Ubuntu machine, all files have the executable bits set. After having copied the directory structure to my hard disk how do I remove the executable bits recursively just from the files and keep those on the directories? A single command variant (starting in the current di...
vvf Re : [résolu] install clé wifi WG111v2 sur modem routeur netgear DG834Gv3 je retrouve qqch de normal pour : $ ndiswrapper -lInstalled ndis drivers:net111v2 driver present, hardware present j'avais oublier de désactiver du network manager... Je l'avais oublié celui-là ... J'ai essayé de resuivre le tuto sans succès....
Author monkey Submission date 2012-08-17 08:36:04.365382 Rating 2201 Matches played 399 Win rate 22.31 Use rpsrunner.py to play unranked matches on your computer. import random CHOICES = ['R', 'P', 'S'] BEATS = {'R' : 'P', 'P' : 'S', 'S' : 'R'} if input == "": output = random.choice(CHOICES) distribution = {'R' : {...
Databases hieronymus — 2012-08-28T07:37:17-04:00 — #1 Hi, I have a python script that executes 3 queries in 2 transactions on a MySQL database. Today I added an index to one of the used tables to resolve speed issues reported by the slow query log. The problem is that the script fails quite fast since this change. It r...
The EFI documentation defines a simplified version of the PE32 image format, called “TE”, which is intended to reduce the overheads of the PE/COFF headers. The document in which this format is defined can be found here. Apple’s EFI firmare (or at least one version I was looking at) uses the TE image format for the SEC ...
peterp@n Re : Logiciel de CAO 2D/3D (Conception Mecanique) Cool, ca se paufine bien tout ça. C'est avec quelle versions exactement la vidéo ? Ubuntu 12.04 64bits, Raspbian “wheezy”, Tango Studio sauce debian Un bureau d'études techniques pour le bâtiment avec des logiciels libre. Entreprise de construction bois. - Form...
I have a generator and would like to find out what the first value which it generates larger than X. One way to do this is as follows, but it seems rather long-winded (it reads like it repeats itself). def long_winded(gen,X) n = next(gen) while n < X: n=next(gen) return n What I wanted to write was somethi...
I'm new to GAE and Web Programming in general so please bare with me! I have a question: Is it possible to create a textbox in HTML, type a string into it, click a "save" button, store that information onto a GAE datastore model and have the text stay displayed in the textbox and saved in the datastore? The HTML is on ...
Asynchronous Programming in Python Twisted is pretty good. It sits as one of the top networking libraries in Python, and with good reason. It is properly asynchronous, flexible, and mature. But it also has some pretty serious flaws that make it harder than necessary for programmers to use. This hinders adoption of Twis...
Here is a solution that worked for me. # models.py class MyModel(models.Model): field_A = models.CharField(max_length = 255) field_B = models.CharField(max_length = 255) def __unicode__(self): return "%s: %s, %s" % (self.pk, self.field_A, self.field_B) # forms.py class MyModelForm(ModelForm): cl...
I got some things working, but so far I haven't figured out how to make tab-completion work, because I don't see how to receive tab keypres events right away (without pressing Enter) in Twisted's LineReceiver. Here's my code so far: #!/usr/bin/env python from cmd import Cmd from twisted.internet import reactor from twi...
I am working on a chat application which uses Tornado at backend. I have used long polling to fetch the number of online users and the any new chat message available at server. I have opened two long polling connections with the server. While it is very easily to detect when a user came online. I have coded this class ...
How can I place a wx.Panel inside another wx.Panel? Just a small test program which doesn't work: import wx class TstApp(wx.App): def OnInit(self): self.frame = wx.Frame(None, -1, "TstApp", wx.DefaultPosition, wx.DefaultSize) self.pn = wx.Panel(self.frame, -1) self.pn2 = wx.Panel(sel...
nathéo Re : /* Topic des codeurs [8] */ Arf, j'ai oublié de traiter son cas je crois. C'est rarement par le sarcasme qu'on élève son âme.Le jus de la vigne clarifie l'esprit et l'entendement. De quoi souffres-tu ? De l'irréel intact dans le réel dévasté ? N'oubliez pas d'ajouter un [RESOLU] si votre problème est réglé....
We have a system that just runs as you asked. Program have a basic user login, which is tha basic site and uses hand written views and templates (as it needed to be)... There eexists a Customer part, which is the basic admin page with limited access rights. And there is admin whom are me and people like me. Logic is, a...
Ricette Ajax Sebbene web2py sia pensato principalmente per lo sviluppo lato server, l'applicazione welcome (utilizzata come base per tutte le nuove applicazioni di web2py) include la libreria base del framework jQuery[jquery], i calendari jQuery (per selezionare una data, per selezionare una data ed un orario o per sel...
With some free time, I decided to study artificial neural networks as an academic exercise (not homework). Over the course of my studies, I decided to write a Python application that would allow me to create and train arbitrary feed forward networks so I could see the concrete math. So far, the test harness only includ...