text stringlengths 256 65.5k |
|---|
Secure Your Wireless with IPsec
Pages: 1, 2
Racoon Likes to Keep Secrets
Instead of manually changing the shared secrets in your /etc/ipsec.conf file, you can keep one shared secret and use the IKE protocol to negotiate a key. Racoon speaks IKE (ISAKMP/Oakley), which is a key management protocol.
I installed Racoon fro... |
In Arduino:
#include <Wire.h>
unsigned int watt;
unsigned int watt1;
byte watt2;
byte watt3;
void setup()
{
Wire.begin(30);
Wire.onRequest(requestEvent);
Serial.begin(9600);
}
void loop() {
delay(100);
int sensorValue = analogRead(A0);
int sensorValue1 = analogRead(A1);
watt = sensorValue * ... |
Shanx
Re : /* Topic des codeurs [8] */
Gnagnagna...
J'ai corrigé l'indentation, par contre pour découper le main je vais attendre que le programme fonctionne...
/**** PENDU ****/
#include<stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#define TAILLE_MAX 50
void clean_stdin(void);
... |
Find Duplicate Files
This is a simple script to search a directory tree for all files with duplicate content. It is based upon the Python code presented by Raymond Hettinger in his PyCon AU 2011 keynote “What Makes Python Awesome”. The slides for the keynote are here. As an exercise, I decided to convert the “find dupl... |
This looks like a patent on all native advertising systems. Has anyone seen any prior art to this?
Patent application title: PRESS RELEASE DISTRIBUTION SYSTEM
Inventors:
Assignees: NATIVO INC.
IPC8 Class:
USPC Class: 705 1445
Class name:
Publication date: 2013-09-19
Patent application number: 20130246165
Abstract:
A p... |
class Num:
def __init__(self,num):
self.n = num
I read that the __init__ method returns None.When I perform a=Num(5), Num(5) will call __init__ method of the class.But if __init__ returns None then a should reference nothing.But instead a is referencing the object of Num Class.How does it happen?So does __ini... |
November 21, 2008, [MD]
Update:Round-upof comments from this blog and Reddit, with some great new ideas andsites.
I remember discussing with a friend of mine whether it would ever be possible to program in Chinese. Of course, computer language isn’t quite human language, but most computer languages today are heavily ba... |
text file in the format:
1,2,3,4,5 tab 10,11
5,6,7,8,9 tab 12,10
def open_nums():
nums =[]
for line in open('numbers_file.txt').readlines():
datafile = (line.strip().split('\t')[1].split(','))
for n in datafile:
nums.append(int(n))
return nums
This returns correctly the last two n... |
Learning From Mistakes
12/13/2000
Shortly after I wrote my news article on the Python wiki program MoinMoin, Jürgen Hermann announced a new version with this notice:
This is a security update, which explains the short release cycle. It replaces someexec()calls by__import__(), which is much safer (or actually, safe in c... |
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... |
So what exactly is a word, in the context of our N-Gram service? The devil, it is said, is in the details.
As noted in earlier blog entries, our data comes straight from Bing. All tokens are case-folded and with a few exceptions, all punctuation is stripped. This means words like I'm or didn't are treated as two tokens... |
Since upgrading to django 1.5 my logs show several SuspiciousOperation exceptions with the text:
Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): <my server's ip>
Is this genuinely a 'suspicious' request, or should I always be including my server's IP address in the ALLOWED_HOSTS setting in addition to my... |
As always Anonymous comes through. This works perfectly.
And being a true genius he prefers to remain anonymous.
I gotta take a look at this.
Offline
Known bugs:
Doesn't handle characters like '&' well because Openbox's XML doesn't much like them.
You have to escape '&' as '&', also > < " or ' if they should appear... |
Given a data set of various currency pairs, how do I efficiently compute the implied fx rate for a pair not supplied in the data set?
For example, say my database/table looks like this (this data is fudged):
GBP x USD = 1.5
USD x GBP = 0.64
GBP x EUR = 1.19
AUD x USD = 1.1
Notice that (GBP,USD) != 1/(USD,GBP).
I would... |
The function urllib2.urlopen freezes. So my question is simple:
Why does urlopenfreeze my script for ever even though timeout is set?
How can I access data at an URL (in this case: http://api.own3d.tv/live?channel=FnaticTV) without the possibility of my Python process freezing up for all eternity?
This is the part wher... |
So I've updated the script to add some useful features.
UPDATE
I've updated the code with the new Travian server names and I incorporated a little bit of error handling in the case that unzipping doesn't produce a file. I also changed the dictionary of servers to a list of tuples, which keeps the ordering of the server... |
I use metaclasses with some frequency, and they're an extremely powerful tool to have in the toolbox. Sometimes your solution to a problem can be more elegant, less code, with them than without.
The thing I find myself using metaclasses for most often, is post-processing the class attributes during class creation. For ... |
Is there a received wisdom on how to clean up (e.g. remove temp files etc.) in a fabric task? if I use the atexit module, as I would normally, then I have difficulty because I can't use the @roles decorator to decorate the function passed to atexit.register(). Or can I? How are other fabric users dealing with this?
Is ... |
I need some help with Python's map function. I am trying to execute this code, though I get an error:
Updated Post
This is my exact code, along with the outputs of each function:
infinity = 1000000
invalid_node = -1
startNode = 0
#Values to assign to each node
class Node:
def __init__(self):
self.distFromSo... |
I'm building a webapp that has optional Facebook Login. The users created through the Facebook API are handled differently at several points in my application. I want to encapsulate these differences in a subclass of Person that overrides methods.
class Person(Model):
def get_profile_picture(self):
return p... |
I was also trying to fine my rank, but since I am not Jon Skeet or Marc Gravell it involves a lot of clicking through pages for me. Since I started learning Python I typed together a little script which would do the clicking for me. If you are a low reputation user like I am, it takes quiet a while. When asked for user... |
Create a Python script called whatever you want (say mystartup.py) and then set an environment variable PYTHONSTARTUP to the path of this script. Python will then load this script on startup of an interactive session (but not when running scripts). In this script, define a function similar to this:
def _(v):
if typ... |
While trying to find cases that showed the cross product is not associative, I found some that were. I'm trying to show that
$(\mathbf{A}\times \mathbf{B}) \times \mathbf{C} \ne \mathbf{A}\times (\mathbf{B} \times \mathbf{C})$
And if
$\mathbf{A} = \hat{x}$
$\mathbf{B} = \hat{y}$
$\mathbf{C} = \hat{x}$
I find the the in... |
I have 3 models
class A(models.Model):
...some fields..
class B(models.Model):
a = models.ManyToManyField(A, through='C')
class C(models.Model):
a = models.ForeignKey(A)
b = models.FoeignKey(B)
...some extra fields..
I am using django signals to do some calculations whenever the relationship is changed.... |
A Django Captcha without Freetype or the Python Imaging Library (PIL)
If, like me, you've had trouble installing the Python Imaging Library or FreeType, you may have also had trouble getting a captcha to work. Here's my quick and dirty workaround — be warned, this is
verylow level security, and shouldn't be used on hig... |
What is a good command line tool to get the video bitrate of a divx or xvid avi file for linux?
You can use MPlayer to get that information.
$ mplayer -vo null -ao null -identify -frames 0 foo.avi
In particular, you want the
You can combine this with
$ mplayer -vo null -ao null -identify -frames 0 foo.avi | grep kbps
... |
Guía de SAMBA:
Muchas empresas que quieren incorporar a Linux dentro de su staff de sistemas operativos tienen que seguir luchando con sus empleados para que éstos lo acepten.
Ellos ya están acostumbrados a usar la interfaz gráfica que les facilita Windows 9x ® y no la quieren cambiar.
Sin embargo usted como administra... |
If you just want a recursive strength-length function, that's easy:
def len_recur(a_str):
if not a_str:
return 0
else:
return 1 + len_recur(a_str[1:])
Of course that's not tail-recursive, but then Python doesn't optimize tail recursion anyway, so it doesn't matter.
And if you want it to be tail... |
import MySQLdb
# Connect to database.
db = MySQLdb.connect(host="localhost",
user="root",
passwd="newpassword",
db="new_schema")
# Setup cursor.
cursor = db.cursor()
# Create try table.
cursor.execute("DROP TABLE IF EXISTS try")
sql = """CREATE TABLE try (C... |
An alternative to datetime.datetime.strptime would be the python-dateutil libray. dateutil will allow you to do the same thing without the explicit formatting step:
>>> from dateutil import parser
>>> date_obj = parser.parse('2011-09-04 23:44:30.801000')
>>> date
datetime.datetime(2011, 9, 4, 23, 44, 30, 801000)
It's ... |
I build a short url translator engine in Python, and I'm seeing a TON of "broken pipe" errors, and I'm curious how to trap it best when using the BaseHTTPServer classes. This isn't the entire code, but gives you an idea of what I'm doing so far:
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import m... |
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... |
Shis is the error I am getting while I'm trying to import models from django.contrib.gis.db using following command
from django.contrib.gis.db import models
I want to do this to define geographic model. I am getting the below mentioned error.
Guys plz help me out.
from django.contrib.gis.db import models
Traceback (mo... |
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... |
I have a DataFrame that consists of many stacked time series. The index is (poolId, month) where both are integers, the "month" being the number of months since 2000. What's the best way to calculate one-month lagged versions of multiple variables?
Right now, I do something like:
cols_to_shift = ["bal", ...5 more colum... |
I'm trying to get to grips with pythons multiprocessing module, specifically the apply_async method of Pool. I'm trying to call a function with arguments and keyword arguments. If I call the function without kwargs it's fine but when I try to add in a keyword argument I get:TypeError: apply_async() got an unexpected ke... |
There are times, when you need to export the data from your database to different formats. For example, you want to create some diagrams in Office program for a presentation. In this post I will show you how to create admin actions which export selected items as files for a spreadsheet application (like MS Excel, OpenO... |
I think there are three general approaches that could help you avoid repeating code at the end of the loop. For all three I'm going to use an example problem slightly different from your own, counting words in a string. Here's a "default" version that, like your code, repeats some logic at the end of the loop:
from col... |
Use this site to validate and view your GeoJSON. For details about GeoJSON, read the spec.
If you need progrmmatic access to validate your GeoJSON you can simply use the same /validate endpoint that this site uses. It's CORS enabled so you can use it from the browser as well as any back end.
POST to the /validate endpo... |
Designing a RESTful API with Python and Flask
In recent years REST (REpresentational State Transfer) has emerged as the standard architectural design for web services and web APIs.
What is REST?
The characteristics of a REST system are defined by six design rules:
Client-Server: There should be a separation between the... |
Networking is an essential task in software applications nowadays. Many programming languages have support for network programming to various extents. While the core libraries of most languages allow low-level socket programming, other libraries and third-party extensions often facilitate higher-level Internet protocol... |
bibichouchou
TVDownloader: télécharger les médias du net ! [2]
A k3c
j'ai fait les mêmes constats quand à l'utilisation du script de KSV.
le flux rtmp était bien utile car les séries n'étaient pas chiffrées. avec la version fragmentée, ce n'est pas le cas
ci-dessous une version corrigée de ton script pour tf1 et compag... |
i have looked for an answer to this question as it seems pretty simple, but have not been able to find anything yet. Apologies if I missed something. I have pandas version 0.10.0 and I have been experimenting with data of the following form:
import pandas
import numpy as np
import datetime
start_date = datetime.datetim... |
I am inserting urls in a mysql table. For example i have inserted 8 entries as below:
url
-----------------------------
http://example.com
http://www.example.com
http://example.com/
http://www.example.com/
http://example.com/sports
http://www.example.com/sports
http://example.com/sports/
http://www.example.com/sp... |
I am using package listings to import my Python source code into my LaTeX document. I use the command \lstinputlistings. I have a Python source like
class MyClass(Yourclass):
def __init__(self, my, yours):
bla bla bla...
What should I write in my \lstset command in order to highlight words MyClass, __init_... |
kr2sis
configauration de Apache --- help please !!!
bonjour
autre souci que j'ai négligé par nécessité (il a fallu s'occuper du lourd avant de faire le léger...) : apache
je ne sais pas si c'est moi qui comprends rien, mais meme en cherchant partout, je ne trouve pas de tuto qui veuille que je réussisse une bonne confi... |
blob: b9201902de64405770945d763fd6072cee2b99ab (
plain
)
#!/usr/bin/python3
# (C) 2011 Sebastian Heinlein
# (C) 2012 Canonical Ltd.
# Authors:
# Sebastian Heinlein <sebi@glatzor.de>
# Martin Pitt <martin.pitt@ubuntu.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of th... |
naingenieu
CSyD - divisez vos données
Bonjour tout le monde
Je viens vous présenter un projet tout droit tiré de mes cours de maths, j'ai nommé Can Split your Data
Le principe
Ce petit logiciel en python permet de décomposer un mot de passe, une phrase en plusieurs clés qui pourront être, toutes ou en parties, réunies ... |
With today's technology, creating your own Internet services can be a relatively easy, one-person project. You may not produce the next Google, but helping your business, not-for-profit organization, school, or friends with a useful Internet application is thoroughly feasible — even on a part-time basis.
In fact, simpl... |
Courtesy Card Usage
Hello all,
It has been requested that all the libraries review the use of courtesy cards when it comes to helping patrons. Magrath Circulation has a courtesy card with $10 in value in our locked key box. This value is reset to $10 at the beginning of every month.
When to use this card to help patron... |
With the launch of our Mozillians.org community phonebook, I wanted to talk about it’s unusual data access model.
Typical Web Apps
Most web applications use a single shared authentication account to access data.
Users authenticate to the site as themselves, but the web app has business logic to control who sees what fr... |
I would like to know if it's possible to clear CloudFront's cache,
The file concerned has changed on Amazon S3 but it's not being updated on CloudFront.
I would like to know if it's possible to clear CloudFront's cache,
The file concerned has changed on Amazon S3 but it's not being updated on CloudFront.
I found the an... |
mars
Connaissances de base pour Kubuntu
Bienvenue à tous les lecteurs.
Ce sujet a pour but d'apporter les connaissances de base à toute personne débutant sous Kubuntu.
Il est très bon pour tout débutant de lire ce post, mais il est aussi très conseillé aux personnes plus expérimenté, car il contiendra des conseils de b... |
How is the commit percent decided for Area 51? I know it is based on rep, but how exactly does it work?
My answer here:
With that caveat, the formula we use right now works like this: We give each user a "score" based on how likely we think they are to contribute to the site. It's a bit kludgey right now because we don... |
I am getting this error, and I dont know what it means. How can I fix this problem?
my code looks like this, I've used it before and it has worked:
parentdir = os.getcwd()
dirlist = os.listdir(parentdir)
for dir in dirlist:
if not dir == "pubs_edits": continue
if os.path.isdir(os.path.join(parentdir, dir)):
... |
Here we go:
From this link do download: https://github.com/jgorset/facepy/tree/master/facepy:
from downloads, you will have:
signed_request.py to parse signed_request that will be posted by facebook in your canvas url: https://apps.facebook.com/myapp in POST method
and graph_api.py to make operation to graphapi https:/... |
Answering a specific question, I stumbled upon while trying to interpret the Python Document
Availability: recent flavors of Unix.
Availability: most flavors of Unix, Windows.
How to determine what recent and most means. How do I know if my Python Script is supposed to work properly on a particular system I am targetin... |
I'm trying to build an application that will prompt the user for a string, and then add that string to a Scrolling Listview object using quickly and PyGTK.
I've been following this tutorial:
When I hit the add button, the prompt comes up properly and I'm able to enter the string. The column appears correctly but the li... |
I'm using pycurl to access a JSON web API, but when I try to use the following:
ocurl.setopt(pycurl.URL, gaurl) # host + endpoint
ocurl.setopt(pycurl.RETURNTRANSFER, 1)
ocurl.setopt(pycurl.HTTPHEADER, gaheader) # Send extra headers
ocurl.setopt(pycurl.CUSTOMREQUEST, "POST") # HTTP POST req
ocurl.setopt(pycurl.CON... |
michcauch
my-weather-indicator ne fonctionne plus après mise à jour
my-weather-indicator ne fonctionne plus, juste après une mise à jour de my-weather-indicator sous 12.04. J'ai ce message d'erreur quand je le lance depuis un terminal :
michel@bureau:~$ my-weather-indicator
Traceback (most recent call last):
File "/usr... |
I wrote a decorator factory that takes input and output filenames:
def run_predicate(source, target):
'''This is a decorator factory used to test whether the target file is older than the source file .'''
import os
def decorator(func):
'''This is a decorator that does the real work to check the ... |
Hello I am a programming in python to make a xml parse. And While I can get it to parse out the first xml tag. I want to be able to do it all in the file. but I dont know how to do it. Here is the code I am sure I am missing something I know I gotta replace the 0 with something that can be counted but can't seem to fig... |
I know that the object refguess becomes 95^n characters long and that's what's being stored in the memory. Is it possible to load and iterate one element into memory at a time, erasing it before loading a new element? Eventually, I want to port this to run on a GPU to take advantage of the shader cores' superior number... |
I'm trying to implement URL slugs in my app (python-based). I want the slugged URL to be of the format myhost/{post_id}/{post_title}.
When I try to access the page using the above slugged URL format, I get an error and (in Chrome, the error says - unexpected token <). If I delete the /<post_title> from the URL, the pag... |
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 ? ... |
bishop
Re : Qarte arte.tv browser (ex Qarte+7)
VinsS !
J'ai réinstallé Qarte.
Avant de lancer Qarte j'ai refait un test avec rtmpdump... pas de problème.
J'ai supprimé le dossier caché .qarte puis testé Qarte:
bishop@JC:~/Bureau$ qarte -d
lang: /usr/share/locale/fr/LC_MESSAGES/qarte.mo
11:44:14: WARNING - utils Config ... |
To test a polling function I want to mock the calling of a sub function so that the first time it is called it will fail, and the second time it is called it will succeed. Here's a very simplified version of it:
poll_function(var1):
value = sub_function(var1) # First call will return None
while not value:
... |
flist = [os.path.join(pdir,f) for pdir, dirs, files in os.walk('/home/user') for f in files]
(os.path.join should be used instead of string concatenation to handle OS-specific separators and idiosyncrasies)
However, as several have already pointed out, multi-level list comprehension is not very readable and easy to ge... |
how can i write as code notation (like on programming languages like ansi-basic, C, pascal, etc.) all the math notations we can get from OpenOffice's Math editor? these can be functions or algoritms
I don't use OpenOffice (though it sounds good!), so could you give some examples?
"The physicists defer only to mathemati... |
I am trying to come up with a simulation for the Pig dice game. I want it to simulate for the number of games the user wants(each game to 100 points) and report the average points and percent wins for each player. My program is running but it is only running for one game. I think there is something wrong with my loop b... |
I am new to python and just trying to set everything up. I've tried reinstalling but still keep getting an error when I try "import matplotlib.pyplot as plt", anyone know what this means?
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
import matplotlib.pyplot as plt
File "/Library/Fr... |
What does functional reactive programming (FRP) mean in practice? What does reactive programming (as opposed to non-reactive programming?) consist of? My background is in imperative/OO languages, so an explanation that relates to this paradigm would be appreciated.
If you want to get a feel for FRP, you could start wit... |
I would suggest not to use bpy.ops and instead access the selection directly.
# assume you the active object is the parent
for obj in bpy.context.object.children:
if obj.type != 'EMPTY':
obj.select = True
This is a little more clever, you can do it recursively (to select children's children).
def select_ch... |
When you use
fh = codecs.open(fname,'r','utf8')
fh.read() returns a unicode. If you take this unicode and use your database driver (such as mysql-python) to insert data into your database, then the driver is responsible for converting the unicode into bytes. The driver is using the encoding set by
con.set_character_se... |
Hello everybody,
i am using Zenoss Core Version 3.2.0 and want to have a global search function for the interface descriptions. In the IRC Channel hackman238(i think he was Shane Scott) told me that his ZenPack Device Search does this job after a little modifcation.
I have to add "device.os.interfaces.interface.descrip... |
As per the title, I have a nested lists like so (the nested list is a fixed length):
# ID, Name, Value
list1 = [[ 1, "foo", 10],
[ 2, "bar", None],
[ 3, "fizz", 57],
[ 4, "buzz", None]]
I'd like to return a list (the number of items equal to the length of a sub-list from list1), where... |
I am trying to implement a threaded timer to control a timeout for a serial process.
def tst_setMaxTimeFlag():
lock.acquire()
maxTimeFlag = 1
lock.release()
print "timeout!"
return
def tst_setMaxTimeTimer(maxResponseTime):
global responseTimer
lock.acquire()
maxTimeFlag = 0
lock.rele... |
The problem is that %Z isn't documented to give you any specific format at all; it just gives you:
Time zone name (no characters if no time zone exists).
With CPython 2.7 or 3.3 on POSIX platforms, it will usually give you something in the format EST/EDT for the major US timezones, but it may give you something in the ... |
Hace apenas un par días me encontraba con Sergio Calderón revisando un tema muy interesante: como escribir en el registro de Windows utilizando Win32 API en C++. Sergio tenía un par de dudas al respecto y creo que es una buena oportunidad para compartir la respuesta a sus inquietudes con ustedes. Gracias Sergio por gen... |
I'm trying to time some code. First I used a timing decorator:
#!/usr/bin/env python
import time
from itertools import izip
from random import shuffle
def timing_val(func):
def wrapper(*arg, **kw):
'''source: http://www.daniweb.com/code/snippet368.html'''
t1 = time.time()
res = func(*arg, **... |
Deploying Flask to Apache
I'm still slowly plugging away with my new Python + flask static blogging system. I thought I'd share the details of my most recent exploration.
Out of the box, the flask framework comes with its own development server, so far I've only used this but eventually I would be deploying it onto my ... |
I would like to create a 2x3 plot of 2d histograms in matplotlib with a shared colorbar and a 1d histogram at the top of each subplot. AxesGrid got me everything except for the last part . I tried to add a 2d histogram to the top of each subplot by following the "scatter_hist.py" example on the above page using make_ax... |
Topic: iRedMail in jail?
Do iRedMail is working in jails?
----
Urgent issue? Pay iRedMail developer to solve it remotely at $39.
Works on Red Hat Enterprise Linux, CentOS, Debian, Ubuntu, FreeBSD, OpenBSD
You are not logged in. Please login or register.
Do iRedMail is working in jails?
----
Sorry, you didn't explain cl... |
I have three models: Customer, Contract, Report
class Customer
pass
class Contract
customer = models.ForeignKey(Customer)
class Report
customer = models.ForeignKey(Customer)
contract = models.ForeignKey(Contract, null=True, blank=True, default=None)
In admin when edit Report I want to select Customer O... |
johnatan57950
Re : [tuto]Installation de Dofus 2.0 par paquet debian et rpm (pour la doc)
bj quand je clique sur l'icone dofus je suis venue a telcharger dofus mise a jours et tout le reste et une fois fini je clique sur jouer et sa me met adobe air L'installation de cette application est endommagée. Essayez de la réin... |
I'm trying to use mkstemp with Python 3:
Python 3.2.3 (default, Jun 25 2012, 23:10:56)
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from tempfile import mkstemp
>>> mkstemp()
(3, '/tmp/tmp080316')
According to the documentation, the first element of the tuple is sup... |
I'm working on my first app ever to use Google Api for Calendar. I've read the Google examples at: https://developers.google.com/google-apps/calendar/instantiate
The first time I ran the program below it was successful. I allowed my app to access my Google account and the application made a calendar.dat file with the a... |
Two part question. I am trying to download multiple archived Cory Doctorow podcasts from the internet archive. The old one's that do not come into my iTunes feed. I have written the script but the downloaded files are not properly formatted.
Q1 - What do I change to download the zip mp3 files? Q2 - What is a better way... |
naingenieu
CSyD - divisez vos données
Bonjour tout le monde
Je viens vous présenter un projet tout droit tiré de mes cours de maths, j'ai nommé Can Split your Data
Le principe
Ce petit logiciel en python permet de décomposer un mot de passe, une phrase en plusieurs clés qui pourront être, toutes ou en parties, réunies ... |
I am trying to install pywinauto on my 64 bit machine. I have dealt with the issues with the Assertion error and removed them from the win32structures file. However now when I go to import pywinauto i get this error:
>>> import pywinauto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C... |
doudoulolita
Re : Faire une animation sur la création de jeux vidéo libres
Bibliographie:
- La 3D libre avec Blender d'Olivier Saraja - ed Eyrolles - 35 € pour la 1ère édition. Disponible à la FNAC ou chez Eyrolles pour la 4ème édition.
- Blender, Créez des animations 3D de Marie-France et Jean-Michel Soler - ed. Pears... |
sqlite> DELETE FROM mails WHERE (`id` = 71);
SQL error: database is locked
How do I unlock the database so this will work?
sqlite> DELETE FROM mails WHERE (`id` = 71);
SQL error: database is locked
How do I unlock the database so this will work?
In windows you can try this program http://www.nirsoft.net/utils/opened_... |
Introduction
web2py[web2py] is a free, open-source web framework for agile development of secure database-driven web applications; it is written in Python[python] and programmable in Python. web2py is a full-stack framework, meaning that it contains all the components you need to build fully functional web applications... |
You can write your setup function and apply it using the with_setup decorator:
from nose.tools import with_setup
def my_setup():
...
@with_setup(my_setup)
def test_one():
...
@with_setup(my_setup)
def test_two():
...
If you want to use the same setup for several test-cases you can use a similar method.First... |
I've been working on installing Ruby on my mac, OSX Lion. I've installed XCode, GCC, Readline, Homebrew, and JewleryBox, but I have no idea what's going on. Any pointers?
Here's what my terminal says?
hugo-pc:ruby-1.9.3-p125 squantowalks$ rvm install 1.9.3
Fetching yaml-0.1.4.tar.gz to /Users/squantowalks/.rvm/archives... |
I got this:
class CoworkersContractedPlans(models.Model):
start_date = models.DateField(blank=True, null=True)
end_date = models.DateField(blank=True, null=True)
coworker = models.ManyToManyField(Coworkers)
service = models.ManyToManyField(Services)
status = models.ForeignKey(Status)
class Meta:... |
In Lektion 16 hast du einen ersten Eindruck von objektorientierter Programmierung (abgekürzt OOP) bekommen. Die prozedurale Programmierung im Spiel Tic-Tac-Toe führte dazu, dass wir eine Methode nach der anderen implementierten, die aber alle irgendwie zusammengehören. In Lektion 17, der Abschlußlektion des Spiels, wol... |
nesthib
[script/python] Télécharger les émissions quotidiennes de Canal+
Pour faire suite à cette discussion, et parce que les émissions de Canal sont parfois difficilement accessibles sous Linux (flash…), j'ai écrit un script qui correspond mieux à mes attentes. Je pense que cette version est plus efficace que ceux pr... |
I am developing a web service using python and i want to filter out the videos which can not be played outside of the youtube page .
Like on this link [https://www.youtube.com/v/SC3pupLn-_8?version=3&f=videos&app=youtube_gdata] you have to watch video on the youtube page is there is any way of filter which videos belon... |
DJ Raging-Bull
Carte PCMCIA WiFi non détecté sur ThinkPad 600X
Bonjour,
J'ai récuperé un IBM ThinkPad 600X équipé d'un Penium III @ 500 MHz et de 446 Mo de RAM, le disque dur fait environ 12 Go et il dispose d'un lecteur CD.
J'aimerais le refiler à ma mère qui s'en servirait pour de la bureautique de base. Je lui ai do... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.