text stringlengths 256 65.5k |
|---|
C++ Needs Better I/O Facilities
C++ is not well liked by a large number of non-C++ programmers, much in the same way that some people don’t like burritos. These people are wrong and there’s nothing we can do to change their minds. They will continue to hate on the purity of burritos for their entire lives never knowing... |
I was thinking about generating passwords with combination of English, Arabic, Chinese charac. Is this pass secure enough against brute force attacks?
Selecting characters from a larger character set should increase security; if you use a rare character like ⥠or ಠin your password that a brute force isn't trying to... |
k3c
Re : TVDownloader: télécharger les médias du net ! [2]
Merci Julien
J'ai testé avec succès pour plusieurs vidéos comme
par contre le --resume devrait être optionnel
python d8_julien.py http://www.d8.tv/d8-art-de-vivre/pid5205-d8-a-vos-regions.html
rtmpdump -r "rtmp://geo2-vod-fms.canalplus.fr/ondemand/geo2/1304/A_V... |
Issues
ZF-2375: Zend_Db_Statement_Mysqli::_execute() causes too much memory to be allocated.
Description
Zend_Db_Statement_Mysqli::_execute() calls mysqli_stmt_bind_result() *before* calling mysqli_stmt_execute(), and it does not call mysqli_stmt_store_result() or mysqli_stmt_free_result().
Modify the following test ca... |
Watir::Browser.default = "firefox"
ie = Watir::Browser.start("http://cars.com")
ie.select_list(:id, 'make_1').set('Chevrolet')
ie.select_list(:id, 'model_1').set('Cobalt')
ie.select_list(:id, 'pricehighnew').set('No Max')
ie.select_list(:id, 'rdnew').set('30 miles')
ie.text_field(:name, "zc").set "44109"
... |
Test-Driven Development in Python
by Jason Diamond
12/02/2004
Introduction
Python's unittest Module
Motivation
Sample Input
Getting Started
Baby Steps
Refactoring
Conclusion
Introduction
Test-driven development is not about testing. Test-driven development is about development (and design), specifically improving the q... |
Kedoc
Re : script install wifi BCM94311MCG
Petit point...
Je me suis aperçu ce soir qu'il me suffit d'utiliser l'interrupteur matériel de ma carte pour l'éteindre et la rallumer, un coup au démarrage sous Ubuntu, et je peux ensuite l'utiliser (en wifi ouvert, et en WEP, ça fonctionne).
Je n'ai pas encore bien compris, ... |
We’ve been doing some work where we really needed “direct” machine to machine access between an number of staff and their local file servers. The obvious way to approach this sort of thing is to use a Virtual Private Network technology, but which one?
There are a lot of VPN solutions out there. Quite a number of propri... |
Here I am playing with python regex and here is my uname command output
$ uname -n
usa-ca-app01.example.com
Here is my python script
#!/usr/bin/python
import os
from time import strftime
import commands
status, output = commands.getstatusoutput("uname -n")
backupfile = output.split('.')[0] + "-backup-" + strftime("%m-... |
The Objective: A script which cycles through a list of proxies and sends a post request, containing a file to a PHP page on my server, which then calculates delivery time. It's a pretty useless script, but I am using it to teach myself about urllib2.
The Problem: So far I have got multipart/form-data sending correctly ... |
I'm using the python API for Google App Engine, and what I am trying to do is load a list of files from a server if it has passed more than an interval of time (e.g 1 hour).
For this I tried to store the last operation hour of execution to a file and read it the next time to know the difference with the current time of... |
Trudy
Résolu ! Ouvrir fenêtre Dépôts
Bonjour, Je voudrais savoir comment ouvrir la fenêtre Dépots, si je ne l'ai pas dans Système-Aministration ... Merci pour vos réponses !
Dernière modification par Trudy (Le 04/12/2005, à 15:57)
Hors ligne
Express
Re : Résolu ! Ouvrir fenêtre Dépôts
Ca s'appel "Gestionnaire de paquet... |
gtk.Image — A widget displaying an image
class gtk.Image(gtk.Misc):
gtk.Image()
def set_from_pixmap(pixmap, mask)
def set_from_image(gdk_image, mask)
def set_from_file(filename)
def set_from_pixbuf(pixbuf)
def set_from_stock(stock_id, size)
def set_from_icon_set(icon_set, size)
def set_f... |
I'm writing a small sqlalchemy shim to export data from a MySQL database with some lightweight data transformationsâmostly changing field names. My current script works fine but requires me to essentially describe my model twiceâonce in the class declaration and once as a list of field names to iterate over.
I'm tr... |
11 Sep 2014
I'm relatively new to the Rails community. I come from the Python/Django world, but I've been enjoying the transition, except for one minor part; Models.
When I dig around looking for info on how to structure my code, I keep running into Best Practices that advocate for a skinny controller/fat model pattern... |
I’ve been reading Peter Harrington’s “Machine Learning in Action,” and it’s packed with useful stuff! However, while providing a large number of ML (machine learning) algorithms and sufficient example code to learn how they work, the book is a bit dry.
So I’ve decided to make my contribution to democratizing ML by post... |
Here is a video by CJ.
(by coconutrandom)
You should have Putty by now, right? If not by all means get it form here You also need Firefox and Switchproxy.
1) log into your control panel and make your domain name
2)go to app and add a type "Custom Install script", click "View/hide script" and paste this:
#!/bin/env pyth... |
I’ve over-ridden several of the built-in django auth and bitbucket.org/ubernostrum/django-registration/ templates so I can have my own custom-styled login and registration pages. This all worked fine until i tried to run the built-in django and django_registration test suites, when everything fell apart :
1 2 3 4 5 6 7... |
Yoshiball
Dépots indisponibles
Une petite question au sujet des dépôts, en fait depuis quelques jours certains des dépôts se trouvant sur mon source list sont indisponible (erreur 404), je voulais savoir si ce genre de problème était temporaire ou alors si ils seront à nouveau disponible dans un certain temps, je ne m'... |
Bismut
Re : [HOW TO] adesklets : configuration des desklets
Bon, je ne trouve toujours pas le moyen d'afficher mes desklets au bon endroit, voici le contenu de mes fichiers :
.adesklets
# This is adesklets configuration file.
#
# It gets automatically updated every time a desklet main window
# parameter is changed, so ... |
hi
i need to save all the layers as separate image files. i've written a simple python script to do that and it saves images, but every image contains only the first layer. here's the script:
#!/usr/bin/env python
from gimpfu import *
def python_pytest() :
image = gimp.image_list()[0]
# hiding all layers
for laye... |
I have a model Zone, a model Entity and a model Transit. Transit is minimally defined as:
class Entity(db.Model):
__tablename__ = 'entities'
id = db.Column(db.Integer, primary_key=True)
contained_by = db.Column(db.Integer, db.ForeignKey('entities.id'))
contains = db.relationship('Entity', backref='conta... |
I need to read data in from a wav file in 24 bit pcm format, and convert to float. I'm using Python 2.7.2.
The wave package reads the data in as a string, so what I've tried is:
import wave
import numpy as np
import array
import struct
f = wave.open('filename.wav')
# read in entire wav file
wdata = f.readframes(nFrames... |
clark17
[Script Bash] Problème avec l'utilisation de sed
Bonjour à tous,
J'essaye d'adapter un script bash pour l'utiliser sur mon NAS Synology. Il s'agit d'un script qui télécharge un fichier xmltv sur Kazer.org, puis je lui applique quelques traitements avec sed pour remplacer les catégories fr en catégorie eng.
Voil... |
I'm bad at math and hope I explain this right(please don't be upset if I don't, I'm not trying to be lazy or a jerk, I really don't understand what information is sometimes required and focus on the wrong part I think is important).
Basically I have a program that looks for combinations. The best way to explain is it v... |
I just come across a challenging problem (from programming competition practice) that contain recursive sequence as following
given 3 numbers m n k find element a[k] where
a[0] = m
a[1] = n
a[i] = a[i-1] + a[i-2] ; if floor(i/2) mod 2 = 1
a[i] = a[i-1] - a[i-4] ; if floor(i/2) mod 2 = 0
example case: for m=2 n=3 k=6 a... |
I've written a program to check if my thought about solution on paper is right (and it is).
The task: how many zeros is in the back of multiplication of all numbers from 10 to 200.
It is 48 and it is a simple to calculate manually.
I never write on python seriously and this is what I get:
mul = 1
for i in range(10, 200... |
cherrak
Re : A quoi ressemble votre environnement - automne/hiver 2011/2012
Ok merci pour la precision !
Dernière modification par cherrak (Le 07/03/2012, à 03:09)
Major Grubert
Re : A quoi ressemble votre environnement - automne/hiver 2011/2012
Question bête : quel est le paramètre à modifier pour avoir un affichage "... |
I'm trying to add all the .tiff files in a directory together using ImageChops, but I keep on getting the error 'IOError: cannot identify image file'. I thought it was just a problem with trying to use a file path instead of an image object, but similar codes in other places don't have this problem.
def imadd(): #subc... |
Related Reading
An excerpt from Chapter 20 of O'Reilly's book Python Programming on Win32.
Another GUI toolkit available for Python is called wxPython. The current incarnation is fairly new to the Python scene and is rapidly gaining popularity amongst Python developers. wxPython is a Python extension module that encaps... |
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...
664 users here now
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Please t... |
First post, hope it's not ignorant.
How can I use a Python script to obtain the exact coordinates of an object? I have not been able to find out how to do this in the documentation. Please forgive me if this is a stupid question.
To get the input location you can simply do:
To get the output transformation you can only... |
CKDevelop
Flee☠ un bureau en HTML/CSS Python-Webkit/JavaScript
Bonjour à tous,
je me permet de faire un nouveau poste, car je vais vous présenter un projet basé sur un projet déjà présenter par AnsuzPeorth à cette emplacement: http://forum.ubuntu-fr.org/viewtopic.php?id=388885
je dois avouer qu'a l'origine quand je sui... |
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 ... |
Splitsch
[résolu]Installer OpenOffice 2 (beta) ,avec Synaptic
Bonjour à tous,
voila, j'ai esayé d'installer OOo avec Synaptic. J'ai sélectionner les paquets qu'il fallait, puis, je lance le téléchargement.La, il en télécharge quelque un, il les configure, mais pour les autres, voici ce qu'il indique
W: Échec de la récu... |
I have an ordered (i.e. sorted) list that contains dates sorted (as datetime objects) in ascending order.
I want to write a function that iterates through this list and generates another list of the first available dates for each month.
For example, suppose my sorted list contains the following data:
A = [
'2001/01/01'... |
Sometimes while testing you may want to be able to simulate network latency, or packet loss, or low bandwidth. I have done this with Linux and tc/netem as well as with Shunra on Windows, but I had never done it on Mac OSX.
It turns out that Mac OSX includes ‘dummynet’ from FreeBSD which has the capability to do this WA... |
The most common configuration to use cherokee with django is described here and to put is in a nutshell it was based on flup using SCGI or FASTCGI protocol.
However a couple of weeks ago a new contender pop up on my radar. It is called uWSGI and it might become in the near future very popular to power django applicatio... |
Context
In Astronomy the de facto standard for images and data is FITS. I would like to export heterogenous data sets into a single fits file.
Attempt
I am interested in exporting into a fits file some data, say.
dat = Table[i, {i, 5}]
(* {1,2,3,4,5} *)
and additionally some metadata, say a range of $\nu$s:
rnus = ("n... |
Auf den Trichter hat mich CrackPoD gebracht :) Anhand einer PDF für Python Neulinge
bringe ich mir zur Zeit Pyhton bei! Ist eigentilch Recht einfach. Aber ich glaube das liegt auch ein bisschen an meinen 2 Jahren C++ in der Berufsschule. Hier meine ersten paar kleinen Skripte:
Variablen und Operatoren
1 2 3 4 5 6
#!/us... |
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... |
FTG
[script/python] Nautilus et picasaweb!
Bonjour à tous,
depuis longtemps je voulais réaliser un petit script python a l'aide des API Google, me permettant d'uploader en 2 temps 3 mouvements un paquet de photos de Nautilus vers Picasaweb par un clic droit de souris.
Je n'avais pratiquement rien à faire aujourd hui et... |
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... |
I'm trying to determine if a variable with a variable name is defined. Please help with my syntax... my attempts so far:
<cfif isDefined(Evaluate("session['#url.sessionSQL#']['SQL_ALL']"))>
<cfif isDefined('Evaluate("session[#url.sessionSQL#]")["SQL_ALL"]')>
<cfif isDefined(Evaluate("session['#url.sessionSQL#']['SQL_AL... |
Sometimes one solves problems for problem solving sake. This project has engaged me over the years and in studying it, I have been exposed to many interesting concepts which I would like to share with you. So without further ado, the problem:
The construction above defines an iterative map, and the task is to find the ... |
I'm in the learning phase and I have a problem with import
I've created a module named test, the folder has my test.py, setup.py & python.exe, after running sdist and install, I got MANIFEST file, build, lib inside build & dist folders.
Now, I tried to make use of my module in IDLE and produced the following
>>> import... |
You might want to take a look at the Canari Framework (https://www.canariproject.com/4-3-transform-development-quick-start/). It's an awesomely simple transform development framework that let's you do some pretty rad things ;).
UPDATE 1:
Canari now has some additional support for complex field types. So far we've added... |
I am trying to send an email using the below code:
s = smtplib.SMTP("smtp.live.com",587, timeout=120)
s.ehlo()
s.starttls()
s.ehlo()
s.login(user, pass)
msg["To"] = string.joinfields(bundle, ", ")
s.sendmail(usuario, bundle, msg)
However I get the error below:
File "C:\Python27\lib\smtplib.py", li... |
Having tests that verify only one thing makes troubleshooting easier. It's not to say you shouldn't also have tests that do test multiple things, or multiple tests that share the same setup/teardown.
Here should be an illustrative example. Let's say that you have a stack class with queries:
and methods to mutate the st... |
I used python multiprocessing and do wait of all processes with this code:
...
results = []
for i in range(num_extract):
url = queue.get(timeout=5)
try:
print "START PROCESS!"
result = pool.apply_async(process, [host,url],ca... |
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... |
I've got stored data that's not needed and therefore I want to clean it. I could migrate from datastore to blobstore and therefore at least the field small=db.BlobProperty(default=None) is redundant so I'd like to remove it and also remove it from the entities that are in the datastore since the variable called "full" ... |
Wireless access is all the rage. Wireless this, wireless that. Hot spots are turning up everywhere. Many are free. Many have absolutely no security. There are several in my neighborhood. I have no idea who is running them, but at least one is wide open.
This article will show you one method for locking down your wirele... |
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... |
vector<ANY> v;
v.push_back("TEST")
v.push_back('\n')
v.push_back(10.1)
Klass obj;
v.push_back(obj)
metulburr wrote:
Is there an equivalent in c++?
I personally don't see the point of a container that you just throw any old data into.
But why would you need a container to hold vastly different data types?
for (i=0; i<1... |
I’ve been in the habit of declaring a 62.5% font-size in the body for quite a while and then using EM’s throughout my CSS. It makes it super easy as 1em is then 10px and so forth.
I was thinking about it earlier today but this is probably wrong isn’t it? I use a standard CSS reset beforehand but I’m thinking there’s go... |
Il linguaggio Python
Python
Python è un linguaggio di programmazione general purpose (utilizzabile quindi per gli scopi più diversi) estremamente di alto livello. La sua filosofia di progettazione pone l'accento sulla produttività del programmatore e sulla leggibilità del codice. Il suo nucleo ha una sintassi minimale ... |
The task is to format numbers, currency amounts and dates as unicode strings in a locale-aware manner.
First naive attempt with numbers gave hope:
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>... |
Claude LENDREVIE
Re : [Résolu] Libérer de la place sur le disque
Voici le résultat :
root@claude-System-Name:~# sudo add-apt-repository ppa:tualatrix/ppa
You are about to add the following PPA to your system:
The official Ubuntu Tweak stable repository
More info: https://launchpad.net/~tualatrix/+archive/ppa
Press [E... |
A simple GAE application threw the following error on self.jinja2.render_template() on only one computer, but not on any others (both macs and pcs):
ERROR 2012-02-14 21:54:04,987 webapp2.py:1528] [Errno 13] file not accessible: 'templates/test.html'
Traceback (most recent call last):
File "/Applications/GoogleAppE... |
Consolidate Map (Data Management)
Summary
Consolidates a map document and all referenced data sources to a specified output folder.
Usage
A warning is issued when this tool encounters an unsupported layer type (a schematics or tool layer). The unsupported layer will not be written to the output.
When Convert data to fi... |
sheep
Xubuntu moitié en français moitié en anglais
Bien le bonjour à tous
J'ai remonté un vieux pc pour que mes gosses puissent jouer à leurs jeux sans me piquer le mien
Comme il est vieux j'ai donc installé une xubuntu 12.04, elle fonctionne bien, cependant certains menus ne sont pas traduits en français.
Au début tou... |
Mathieu11
[ VOS SCRIPTS UTILES ] (et eventuelles demandes de scripts...)
Edit admin : le sommaire renvoyant vers les différents scripts se trouve désormais sur cette page de la documentation.
Les nouveaux scripts peuvent donc être discutés ici, puis inclus dans le sommaire
J'ouvre ce sujet pour proposer a chacun de pos... |
I'd like my python program to place some text in the Mac clipboard.
Is this possible?
This page suggests:
Apparently so:
is a simple script demonstrating how to do it.
Edit: Just realised this relies on Carbon, so might not be ideal... depends a bit what you're using it for.
The following code use PyObjC (http://pyobjc... |
Adobe Flash Professional version MX and higher
Adobe Flex
This technique relates to:
See User Agent Support for Flash for general information on user agent support.
The objective of this technique is to show how non-text objects in Flash can be marked so that they can be read by assistive technology.
The Flash Player s... |
Consider the following piece of Markdown code:
The is some regular text.
>>> def factorial(n):
... return 1 if n < 2 else n * factorial(n - 1)
...
* This is a list item.
>>> def factorial(n):
... return 1 if n < 2 else n * factorial(n - 1)
...
Notice that the second code block is prece... |
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... |
sheep
Xubuntu moitié en français moitié en anglais
Bien le bonjour à tous
J'ai remonté un vieux pc pour que mes gosses puissent jouer à leurs jeux sans me piquer le mien
Comme il est vieux j'ai donc installé une xubuntu 12.04, elle fonctionne bien, cependant certains menus ne sont pas traduits en français.
Au début tou... |
enebre
Re : Gmediafinder : Youtube/dailymotion/vimeo.. sans flash et bien plus....
bonjour smo,
je viens de réinstaller gmf sur mon petit netbook et
git clone git://github.com/smolleyes/gmediafinder2.git gmf2
cd gmf2/Gmediafinder
python gmediafinder.py
je constate que python-mecahanize n'est plus intégré dans les deps... |
Noteout Question
I’ve searched the forums, but I can’t quite seem to find anybody who has the same problem as me, so I’m just assuming I’m overlooking something incredibly obvious.
When using [noteout], I would like to automatically set the port to "from MaxMSP". Now, in the documentation it says you can use the letter... |
hello, i have a subset of results from a search. i now that if I have a clientIP=x.x.x.x, this is proxied and i need to do another search to the outer proxy logs to retrieve the real IP address of the client; this can be achieved by doing a separate search on another sourcetype in the same exact timestamp.
what i need ... |
Hey guys, I'm just learning google app engine so I'm running into a bunch of problems...
My current predicament is this. I have a database,
class Website(db.Model):
web_address = db.StringProperty()
company_name = db.StringProperty()
content = db.TextProperty()
div_section = db.StringProperty()
loca... |
try this:
def getCode(length = 10, char = string.ascii_uppercase +
string.digits +
string.ascii_lowercase ):
return ''.join(random.choice( char) for x in range(length))
run:
>>> import random
>>> import string
>>> getCode()
'1RZLCRBBm5'
>>> getCode(5,... |
Let's have a method that would cache results it calculates.
"If" approach:
def calculate1(input_values):
if input_values not in calculate1.cache.keys():
# do some calculation
result = input_values
calculate1.cache[input_values] = result
return calculate1.cache[input_values]
calculate1.ca... |
I am learning Python at the moment, and I come from a Java/C++ and C background. I usually like to "examine" the "objects" in debuggers to get a better understanding of what is going on, so excuse my question if it seems odd for python.
I was reading the urllib2 documentation at Python's website. The following example ... |
I have the code from rauth site:
https://github.com/litl/rauth/blob/master/examples/facebook-cli.py
(The code can be found at the end of this post for reference)
running the program in the command line will open a firefox window and the following message is shown from facebook site:
SuccessSECURITY WARNING: Please tre... |
rmanf30
Re : Test de Qualité des Codecs Libre VS x264 - Septembre 2010
Ma surprise à propos des paramètres été justifiée, apparemment ils ne sont pas corrects.
-sn -vcodec huffyuv -acodec flac %1.mkv
J'ai le message d'erreur suivant : "Peut-être des paramètres incorrects tels que bit_rate , le taux , la largeur ou la h... |
From Fran. validators for LATITUDE and LONGITUDE
class IS_LAT(object):
"""
example:
INPUT(_type='text',_name='name',requires=IS_LAT())
latitude has to be in degrees between -90 & 90
"""
def __init__(self, error_message='Latitude/Northing should be between -90 & 90!'):
self.minimum=-90
self.maximum=9... |
PyRXP is a DTD validating XML parser developed by ReportLab. It is Python wrapper around RXP, a C parser developed by Richard Tobin and Henry Thompson of the Edinburgh Language Technology Group as the core of LT XML, "an integrated set of XML tools and a developers' tool-kit, including a C-based API". ReportLab is a ve... |
I have a project that has almost complete unit test coverage. There's only one statement that isn't covered and I can't work out a good way to do so. Say the project is called foo, I have foo/commands.py:
#!/usr/bin/python
[...]
def main(argv):
[...]
if __name__ == '__main__':
return main(sys.argv) # This line ... |
moe_szyslak
Erreur de connexion pendant l'installation de Dropbox
Bonjour,
J'ai installé Dropbox au travail sans problème, depuis une semaine ils ont mis un mot de passe pour le proxy, que j'ai mis dans les options de configuration de dropbox et ça a marché aussi sans problème.
Mais il y a 2 jours j'ai mis la version 1... |
Its main purpose is to provide all the necessary for managing (converting,installing,upgrading, removing) of 32-bit part of the multilib. However, it can also be used for other packages which are part of Slackware-32 like firefox, seamonkey, jre.
Compat32pkg provides the following features:
Downloads, from a Slackware-... |
sheep
Xubuntu moitié en français moitié en anglais
Bien le bonjour à tous
J'ai remonté un vieux pc pour que mes gosses puissent jouer à leurs jeux sans me piquer le mien
Comme il est vieux j'ai donc installé une xubuntu 12.04, elle fonctionne bien, cependant certains menus ne sont pas traduits en français.
Au début tou... |
I recently found a code to send emails using python. It was only for a single user so I modified it to take emails from a txt file which stores the email on every line and then send them mails. However what I found is that the mails end up in the spam folder(in case of Gmail) or the Junk folder (in case of hotmail or l... |
I'm writing an command-line application which listens for Control key release events in X Windows and alerts another process when it detects them.
Being new to GNU/Linux, I'd prefer avoiding to fumble with GCC and therefore I'm looking for a scripting-based solution. Since I know a bit of Python, it seemed natural to g... |
I'm tring to run a simple scheduled periodic task on a Django app on Heroku using Celery. It works locally and I can watch the task running with:
python manage.py celerybeat
But when I push to heroku and run:
heroku run pythonm manage.py celerybeat
I get:
[2012-08-24 13:31:43,185: WARNING/MainProcess] __ - ... __... |
I'm trying to build two functions using PyCrypto that accept two parameters: the message and the key, and then encrypt/decrypt the message.
I found several links on the web to help me out, but each one of them has flaws:
This one at codekoala uses os.urandom, which is discouraged by PyCrypto.
Moreover, the key I give t... |
Sorry if that sounds extremely confusing, but basically I've got a two column array storing a list of 2D coordinates:
array([[ 0.31730234, 0.73662906], [ 0.54488759, 0.09462212], [ 0.07500703, 0.36148366], [ 0.33200281, 0.04550565], [ 0.3420866 , 0.9425797 ], [ 0.36115391, 0.16670599], [ 0.95586938, 0.52599398], [ 0.13... |
Is there an Elisp command which can return "Mac", "Windows", "linux", etc??
system-type is a variable defined in `C source code'. Its value is gnu/linux
Documentation: The value is a symbol indicating the type of operating system you are using. Special values:
`gnu' compiled for a GNU Hurd system.
`gnu/linux... |
PHP4+mySQL4 based project post to Django 1.1 project and it mixes up some letters.
What is the best way (most efficient) to replace in this fashion?
The problem for me is that i cannot get values for those letters. Is there an online tool to do that?
I have textField with various letters and i want to replace those in ... |
I want to implement a simple button in pyqt which prints "Hello world" when clicked. How can i do that?
I am a real newbie in PyQt. I am using fedora.
Thanks all
If you're new to PyQt4, there are many useful tutorials on the PyQt Wiki to get you started.
But in the meantime, here's your "Hello World" example:
from PyQt... |
Often when the syntax of the language requires me to name a variable that is never used, I'll name it _.
In my mind, this reduces clutter and lets me focus on the meaningful variables in the code. I find it to be unobtrusive so that it produces an "out of sight, out of mind" effect.
A common example of where I do this ... |
XML-RPC: It Works Both Ways
by Dave Warner
01/17/2001
In my previous XML-RPC article, I showed how to access the Meerkat XML-RPC server (written in PHP) from Python. This time around, we will go behind the scenes to view the structure of an XML-RPC method call and response. Then we will develop an XML-RPC server using ... |
I have the following code to overplot three sets of data, count rate vs time, for three different sets of time ranges:
#!/usr/bin/env python
from pylab import rc, array, subplot, zeros, savefig, ylim, xlabel, ylabel, errorbar, FormatStrFormatter, gca, axis
from scipy import optimize, stats
import numpy as np
import pyf... |
Lets say I have a record with this string 'hairdresser doing great job' in the search index.
How do I make a search query 'hairdresser in Auckland' still return the record above in the search result?
I tried this but I feel it's not the right way to do it:
for word in query.split(' '):
result = SearchQuerySet().filte... |
I am attempting to learn Python, and I got stuck on one of my practice problems.
Answered* First question: I understand how to get the average of a list, but is there a better loop to use?
Second question: In my second function, why am I not appending the ints greater than zero in x?
Instructions:
Implement the followi... |
I am working with Django forms and for some reason, this form will not validate! It submits alright, or at least the runserver shows an http post response with code 200 (ok). For some reason though, my form will not pass the is_valid test!
views.py:
def new_show(request):
if request.method == 'POST':
img_form = Ima... |
I've been testing my application and got stuck into error that does not seem to have anything to do with the application itself. I have a unit test like this:
class TagSaveAndLoadTest(TestCase):
fixtures = ['users.json']
def setUp(self):
self.client = Client()
self.client.login(user='test_user',... |
Damian Conway's Object OrientedPerl improved my programming more than any other book, when I firstreturned to programming. By the time I joined thePerl Renaissance, I'd learned more about how Perl 5 worked and how to thinkabout approaching problems from Damian's book and my own experiments based onhis writings.
Perl 5'... |
Meerkat: The XML-RPC Interface
by Rael Dornfest
11/14/2000
Editor's note: Meerkat predated the popularity of syndication, feed services, and feed readers. Now that other groups are providing this service, we have removed Meerkat in favor of their better solutions. We maintain these articles for the sense of historical ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.