text stringlengths 256 65.5k |
|---|
I am playing with Python's logging system. I have noticed a strange behavior while removing handlers from a Logger object in a loop. Namely, my for loop removes all but one handler. Additional call to .removeHandler removes the last handler smoothly. No error messages are issued during the calls.
This is the test code:... |
Ce cours est visible gratuitement en ligne.
Ce cours existe en livre papier.
Ce cours existe en eBook.
Vous pouvez obtenir un certificat de réussite à l'issue de ce cours.
J'ai tout compris !
Dans ce chapitre, nous allons découvrir plusieurs modules et fonctionnalités utiles pour interagir avec le système. Python peut ... |
1. 시작하기
2. Git의 기초
3. Git 브랜치
4. Git 서버
5. 분산 환경에서의 Git
6. Git 도구
8.2 Git으로 이전하기 - Git으로 옮기기
Git으로 옮기기
다른 VCS를 사용하는 프로젝트를 Git으로 옮기고 싶다면 우선 프로젝트를 Git으로 이전(Migrate)해야 한다. 이번 절에서는 Git에 들어 있는 Importer를 살펴보고 직접 Importer를 만드는 방법을 알아본다.
많이 사용하는 Subversion과 Perforce 프로젝트를 이전하는 방법을 살펴보자. 이 두 VCS에서 Git으로 이전하고자 하는 사람이 많고 Importer... |
simohamed5130
bureau 3d
bonjour, j ai iinstallé ubuntu 12.04 et je veux personnliser mon bureau en 3d,
puisque je suis debutant , j ai cru que j ai tout fais, j ai suivi les instructions au: http://doc.ubuntu-fr.org/bureaux_3d
pour glxinfo | grep "direct rendering" , la reponse etait : direct rending : yes
puis , j ai ... |
Module: ActionView::Helpers::TextHelper
Extended by:
Includes:
, ,
Included in:
, ,
Defined in:
actionview/lib/action_view/helpers/text_helper.rb
Overview
The TextHelper module provides a set of methods for filtering, formatting and transforming strings, which can reduce the amount of inline Ruby code in your views. Th... |
Testing with Paste and Nose
Problem
You want to test your web.py application.
Solution
from paste.fixture import TestApp
from nose.tools import *
from code import app
class TestCode():
def test_index(self):
middleware = []
testApp = TestApp(app.wsgifunc(*middleware))
r = testApp.get('/')
... |
I've got a web-application which is built with Pyramid/SQLAlchemy/Postgresql and allows users to manage some data, and that data is almost completely independent for different users. Say, Alice visits alice.domain.com and is able to upload pictures and documents, and Bob visits bob.domain.com and is also able to upload... |
I have used auth_user and another custom model to hold more values
my model is as follows
class ExProfile(models.Model):
user = models.ForeignKey(User, unique=True)
cell_phone = models.CharField(max_length=200, blank=True)
api_key= models.CharField(max_length=200, blank=True)
termination_date=model... |
So I have NetworkManager, connected to an AP on wlan1. I have wlan0 connected to a AdHoc network. I have Firestarter sharing my inet on the Adhoc.
I have my ipod connected to wlan0, IP 10.42.43.101.
wlan0 Link encap:Ethernet HWaddr ac:xx:12:81:7f:xx inet addr:10.42.43.1 Bcast:10.255.255.255 Mask:255.0.0.0wlan1 Link enc... |
If i create a quickly-project with the following command in terminal:
quickly create ubuntu-application helloworld
and then add in the HelloworldWindow.py the following lines,
import sys
import pynotify
the line "import pynotify" produces the following error-output on my system when i want to run the application with... |
I'm sorry if this is a ABSOLUTELY sophomoric question, but I'm curious what the best practices are out there, and I can't seem to find a good answer on Google.
In Python, I usually use an empty class as a super-catchall data structure container (sort of like a JSON file), and add attributes along the way:
class DataObj... |
Want to make a "cross-life" control on two processes started by the same parent.
If process A take too long to change a value on the Read list of process B, process B should kill and restart A, and reverse also is true.
This is how process are launched from parent:
def check():
....# ok check the value in the R lis... |
@steve's is actually the most elegant way of doing it.
For the "correct" way see the order keyword argument of numpy.ndarray.sort
However, you'll need to view your array as an array with fields (a structured array).
The "correct" way is quite ugly if you didn't initially define your array with fields...
As a quick exam... |
How to call function in quickly?
Here is my code:
def finish_initializing(self, builder): # pylint: disable=E1002
super(projectWindow, self).finish_initializing(builder)
self.AboutDialog = AboutprojectDialog
self.PreferencesDialog = PreferencesprojectDialog
def test(self,widget):
print "clicked"
def on_... |
I am working on manipulating numpy arrays using the multiprocessing module and am running into an issue trying out some of the code I have run across here. Specifically, I am creating a ctypes array from a numpy array and then trying to return the ctypes array to a numpy array. Here is the code:
shared_arr = multiproce... |
bariton
impossible de faire des mise ajour logiteque inutilisable "[ Résolu ]"
les mises a jour automatiques ne ce font plus
la logitheque me dis que que des paquets sont cassés et elle ne peux les réparer
j'ai essayer de suivre le message d'erreur de la mise a jour auto et voici ce qu'i se passe :
sam@sam-MS-7720:~$ s... |
I have this very basic problem,
>>> from django.core import serializers
>>> serializers.serialize("json", {'a':1})
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/django/core/serializers/__init__.py", line 87, in serialize
s.serialize(queryset, **optio... |
The following code will log each of your database queries to a file, along with the amount of time it took for the query to execute.
This should work on any platform except for Google App Engine (on GAE you cannot write to a file).
db=SQLDB(...)
def timer(db,f):
import time,os
import gluon.portalocker
myfile=open... |
Portability unknown
Stability experimental
Maintainer aenor.realm@gmail.com
Safe Haskell Safe-Inferred
There's no need to invoke full getOpt power in everyday use. So, here it is a most common use case implemented to be as painless as possible while retaining some functionality. It's divided into three layers, each bui... |
First, you will need the Color class from Gdk and the Gtk class:
from gi.repository import Gtk
from gi.repository.Gdk import Color
Then, in your handler, change the foreground color of the text field:
COLOR_INVALID = Color(50000, 0, 0) // A dark red color
text_field.modify_fg(Gtk.StateFlags.NORMAL, COLOR_INVALID)
If ... |
I'm sorry if this is a ABSOLUTELY sophomoric question, but I'm curious what the best practices are out there, and I can't seem to find a good answer on Google.
In Python, I usually use an empty class as a super-catchall data structure container (sort of like a JSON file), and add attributes along the way:
class DataObj... |
malbo
Re : Windows 8.1+Ubuntu...
Ton Boot-Info est là :
Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 27Sep2013]
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
175118912 of the same hard ... |
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... |
Serving multiple DNS search domains in IOS DHCP
I have a Cisco router at home which I also use as a DHCP server, and it works pretty well. Today I wanted to fix a long-standing issue on my network, in that I want multiple DNS search domains.
First off, the domain-name DHCP option doesn’t support multiple entries so we ... |
Virtualici
Re : [Tuto] - Ma personnalisation Xubuntu (et autres variantes)
j'ai tout tenté ! au mieux j'ai ça : ):
[sudo] password for boubou:
Sorry, try again.
sudo: 3 incorrect password attempts
boubou@boubou-M51SE:~$ *******
******* : commande introuvable
boubou@boubou-M51SE:~$
les : ******* c'est mon pass.
Hors l... |
Is there any equivalent to str.split in Python that also returns the delimiters?
I need to preserve the whitespace layout for my output after processing some of the tokens.
Example:
>>> s="\tthis is an example"
>>> print s.split()
['this', 'is', 'an', 'example']
>>> print what_I_want(s)
['\t', 'this', ' ', 'is', ' ', ... |
Here is cut from my code which I use to login into the remote site. My problem is that I don't know how to handle authentication pass/fail result.
def prepareLoginData(self):
self.post_login_data = urllib.urlencode({
'login': self.user,
... |
Babdu89
Re : HY-D-V1 un nouveau Desktop
Bonjour...
Alors, comme j'ai toujours du temps, de la place sur mes hdd, et de la suite dans les idées ...
Toujours au sujet de la tentative d'Hybrydiser la Cubuntu 13.04 32 bits ... Voir post ci-dessus .
J'ai réinstallé, j'ai fais les maj système en commande, j'ai été obligé d'i... |
I know of the non-standard %uxxxx scheme but that doesn't seem like a wise choice since the scheme has been rejected by the W3C.
Some interesting examples:
The heart character. If I type this into my browser:
http://www.google.com/search?q=♥
Then copy and paste it, I see this URL
http://www.google.com/search?q=%E2%9... |
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...
~18 users here now
News and links for Django developers.
fields attribute in metaclass of modelform not working (sel... |
grim7reaper
Re : Besoin de conseils pour débuter en python
Merci, cette documentation me semble plutôt complète et complexe pour un débutant python
Complexe, non je ne pense pas.
Du moins ce n’est pas le but.
Outre ce cadre universitaire assez réduit, ce cours s’adresse à toute personne désireuse d’apprendre Python en ... |
I have a simple Django project about tennis network. And I would like to prepopulate a filter horizontal in my admin interface with the name of player. Also, some player can play at 7PM and the others at 9PM. My model.py is as follow :
class thursday(models.Model):
date = models.DateField()
time_first = models.... |
I'm having trouble using vq.whiten from scipy.cluster to normalise my data. I'm passing in a numpy array which has had missing feature values filled in with the average for each feature.
The line it gets stuck on is:
data = scipy.cluster.vq.whiten(self.imputed)
This is the code I'm using to replace the missing data.
i... |
Are there any experiments I can do to derive the speed of light with only common household tools?
I don't know if it qualify as home experiment, but you can use the internet to get access to thousands of kilometres of optical fibres for free. It allows you to measure the speed of light in the fibres, which is
From Pari... |
Module _io
source code
I/O function wrappers for phylogenetic tree formats.
This API follows the same semantics as Biopython's SeqIO and AlignIO.
parse(file, format, **kwargs)
Iteratively parse a file and return each of the trees it contains. source code
read(file, format, **kwargs)
Parse a file in the given format and... |
I am trying to grab the stdout from airodump-ng using subprocess with no luck. I think my code causes a deadlock.
airodump = subprocess.Popen(['airodump-ng','mon0'],stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
# wait for 15 second... |
xxkirastarothxx
MegaUpload : BotMU v1.0.1
Bonjour à tous
Et bien voila, depuis quelques temps j'ai remarqué que le capcha de Megaupload a disparu.
Comme il s’agissait du point le plus bancale du développement d'une automatisation de téléchargement sur Megaupload, le projet était en attente.
Maintenant que ce point n'ex... |
I'm running Ubuntu 12.04.2 32 bits.
The error doesn't show up if I start gksudo virt-manager.
libvirt-binis installed.
I don't know how to check for the daemon.
I am a member of libvirtd.
Output of ps ax | grep libvirt:
9225 ? Sl 0:04 /usr/sbin/libvirtd -d
9302 ? S 0:00 /usr/sbin/dnsmasq -u libvirt-dnsmasq --strict-ord... |
¿Cuantas veces no hemos echado de menos el poder usar variables en nuestras hojas de estilo CSS a la hora de añadir colores y otros parámetros?. ¿Cuantas veces no hemos echado en falta la posibilidad de declarar funciones para código repetitivo?. Muchas ¿verdad?.
Por desgracia, CSS no es un lenguaje de programación y n... |
I'm trying to run apt-get update but there's an error i don't understand.
this is the output with the error:
Err http://security.ubuntu.com oneiric-security/main Sources
404 Not Found [IP: 91.189.88.153 80]
Err http://security.ubuntu.com oneiric-security/universe Sources
404 Not Found [IP: 91.189.88.153 80]
Err ht... |
toma222
[HOW TO] adesklets : configuration des desklets
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.
J'ouvre ce deuxième post au sujet de adesklets, afin de permettre une meilleure lisibilité de l'ensemble.Celui-ci a donc pou... |
I'm fetching and parsing a medium-large quantity of webpages. I noticed my script was spontaneously ending with a Python session restart. Thus far it only seems to happen when I try to make soup out of the nasa.gov page. i.e.:
import urllib2
from bs4 import BeautifulSoup
page=urllib2.urlopen('http://www.nasa.gov')
soup... |
I'd like to grab daily sunrise/sunset times from a web site. Is it possible to scrape web content with Python? what are the modules used? Is there any tutorial available?
Just use urllib2 in combination with the brilliant BeautifulSoup library:
import urllib2
from BeautifulSoup import BeautifulSoup
# or if you're using... |
Py3k Unified Numeric Hash Proposal
There has been a recent and interesting set of discussions on python-dev (Decimal <-> float comparisons) for what the best behavior for numeric type interoperability would be. The most prominent “mistake” in the current implementation is that certain float and int/long values compare ... |
This recipe shows how you can grab a document from the webusing urllib.py.
1234
from urllib import urlopendoc = urlopen("http://www.python.org").read()print doc
Grab a document from the web. This is an amazing example of the power of python. These one-liners are great for beginners like me who want to tap into this pow... |
I'm trying to read some xml from the world of warcraft armory (yea I'm one of those) - The url such as this returns the xml in Firefox (you need to view source to see it) but not in other browsers such as Chrome (which I don't fully understand why - though that's an aside).
Anyway I have this code which works fine when... |
This is a follow-up question to import python modules with the same name, but as the two are somewhat unrelated, it's probably better to ask a new question:
I have several python projects and they all have a conf package:
/some_folder/project_1/
conf/
__init__.py
some_source_file.py
/another_folder/project_2/... |
Ricette per l'installazione e la distribuzione
Ci sono diversi modi di installare e distribuire web2py in un ambiente di produzione; i dettagli dipendono dalla configurazione e dai servizi resi disponibili dall'host.
In questo capitolo saranno considerati i seguenti argomenti:
Distribuzione in ambiente di produzione (A... |
Manipulating ResultSet
You can delete a row by moving cursor to the row position and calling the deleteRow() method on the WebRowSet instance. Similarly, you can update one or more values in a row by moving the cursor to the row position and calling the appropriate update method. The following code example does both.
.... |
I have a fresh ubuntu 12.04 installation. When i connect to my remote server i got errors like this:
~$ ssh example.com sudo aptitude upgrade
...
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 33, in <module>
from ALChacks import *
File "/usr/share/apt-listchanges/ALChacks.py", line 32... |
I read this: "The ubuntu-support-status command will print the exact status of your system. " but when i try i get this:
$ ubuntu-support-status
Traceback (most recent call last):
File "/usr/bin/ubuntu-support-status", line 105, in <module>
(still_supported, support_str) = get_maintenance_status(cache, pkg.name, su... |
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... |
"Writing a Fault-tolerant Database Application using MySQL Fabric"with
MySQL Fabric 1.4.2 Release Candidate, some changes to the application are required. In the previous post, we used MySQL Fabric 1.4.0 Alpha and many changes have been made since this version. We can find an updated version of the application here:
Up... |
When I am running my python code that uses multiprocessing, it is using all 8 cores and my system is hanging. I added the following line, but it didn't help.
po = multiprocessing.Pool(processes=4)
recursive code is as follows:
def func(a,i):
if (a>i):
func(a-1,i)
func(a-5,i)
else print a
Now above 2... |
First transform from any CRS into geographic coordinates (lon/lat or WGS 84)
Now we can get identifier for UTM zone (called EPSG), for example 32632 (UTM zone 32N).
Transform again, this time into UTM
Interpolate in meters :-D
Transform back
Transform back
Some code:
import math
import shapely.geometry as sg
def get_ut... |
Now that you know what the debugger is, how to get it to run your code, and what the basic commands do, it's time to walk through a meatier example. The following code reads in a text file a line at a time, splits the line on white space, and converts the line to a dictionary with stringified word positions as its keys... |
I have a script where I ask the user for a list of pre-defined actions to perform. I also want the ability to assume a particular list of actions when the user doesn't define anything. however, it seems like trying to do both of these together is impossible.
when the user gives no arguments, they receive an error that ... |
I have Ubuntu 13.04 Server on a Virtual Box which is using 2GB of ram and 20GB of space. It's freshly installed and I cannot use apt-get update.
I have tried the same on an Ubuntu 12.10 Server but it still doesn't work.
Every time I type apt-get update I get
0% [Connecting to ca.archive.ubuntu.com (91.189.92.202)] [Con... |
I have an Atom feed generator for my blog, which runs on AppEngine/Python. I use the Django 1.2 template engine to construct the feed. My template looks like this:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xml:lang="en"
xml:base="http://www.example.org">
<id>urn:uuid... |
I've been searching through SO, forums, and blog posts for over 24 hours. Frankly, I have absolutely no idea what's going on anymore. This seems like a complicated issue, so I'll post as clearly as I can.
I am using Django, and am trying to switch from sqlite to mysql. I followed the instructions from this SO answer to... |
Hello. This is my first post so I hope I don't mess it up too bad .
I'm working on the audio code for a language called Unicon and am having some trouble getting the linux code to work properly with threading and playing more than one sound at a time. We are using openAL and OggVorbis for now with some support for MP3 ... |
galinux
Re : Mypaint : vos dessins & brosses
pas mal tenez regardé ça ! ça prête a sourire, il m'avait interdit plusieurs post qu'il sont rétabli en parti sauf celui là
vieux packard bell imedia, intel core2 duo 1.86 ghz, 2.5 Go ram, nvidia gt 220 LMDE (xfce) 64 b + voyager 12.10 32 b sur clef pour l emmené partout
un ... |
Running python version 2.4.3. I am using python-amazon-product-api. However in api.py the following lines of code is causing problem:
if sys.version_info[:2] > (2, 4): # pragma: no cover
from urllib2 import quote
from hashlib import sha256 # pylint: disable-msg=E0611
else:
from urllib import quote
from ... |
Is the formula same as filling it up with trapeziums?
How much n do you want me to take?
'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 ... |
DamienD
[RESOLU] problème webcam avec motion
Bonjour, je tente d'utiliser motion avec ma webcam. C'est une webcam Carrefour: Webcam cwc22
J'ai une image avec le logiciel Cheese.
Avec motion, voici le problème:
damien@damien:~$ motion
[0] could not open configfile /etc/motion/motion.conf: Permission denied
[0] Not confi... |
For me Python is the most elegant language I've used. The syntax is minimalist (significantly less punctuation than most) and intentionally modeled after the psuedo-code conventions which are ubiquitously used by programmer to outline their intentions.
Python's if __name__ == '__main__': suite encourages re-use and tes... |
JavaScript
juhusoldat — 2010-03-15T10:43:57-04:00 — #1
Hi!
Im making a little picture presentation and i have currently this working code:
<!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">
<head>
<title>Pilt</title>
... |
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 have been trying to implement a simple tree structure in Python. A tree begins at a single "root" node which has children, each of its children may have own children and so forth.
Now, I want to print the names of all nodes of the tree, that is I want to convert it to a list. I sought to employ recursiveness but unfo... |
Once in a while I need to install a new Ubuntu (I used it both for desktop and servers) and I always forget a couple of libraries I should have installed before compiling, meaning I have to recompile, and it's getting annoying.
So now I want to make a complete list of all library packages to install before compiling Py... |
I've used minidom to create an XML and it comes out correctly but I need it to be returned without the <?xml version="1.0" encoding="utf-8"?> at the beginning. Is there a way to get the XML without the <?xml?> tag?
Personally i just slice off the first 22 Chars
xml_out = doc.toxml()
return xml_out[22:]
You can try sli... |
I have a query that I'm trying to build. The query seems to work in parts, both separate parts of the query return the correct number of elements. However, the combined query returns an empty result set, which is incorrect.
Note: I know the and_'s are not needed for Query 1 and 2, but I wanted to make sure that and_ wa... |
I am having problems with installation with everything in the software center.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 968, in simulate
trans.unauthenticated = self._simulate_helper(trans)
File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", l... |
I'm new to Ubuntu (12.04.3). I'm trying to install handbrake and I've tried about 6 different ways non seem to work, so I'm now asking for help.
Step 1 sudo add-apt-repository ppa:stebbins/handbrake-releases
$ sudo add-apt-repository ppa:stebbins/handbrake-releases
Traceback (most recent call last):
File "/usr/bin/a... |
In a previous paper of mine, regrettably, I wrongly attributed the origin of the maximum segment sum problem to Dijkstra and Feijen’s Een methode van programmeren. In fact, the story behind the problem was told very well in Jon Bentley’s Programming Pearls.
The Problem, and the Linear-Time Algorithm
Given a list of num... |
This is a guest post written by Max Gutman, Senior Software Engineer at Eventbrite. Max will occasionally be contributing posts to the new “Tech Corner” section of the blog.
Very few companies track page views in-house these days. Whether needing visibility into web traffic or evaluating the effectiveness of marketing ... |
I have 1.6 Million entities in a Google App Engine app that I would like to download. I tried using the built in bulkloader mechanism but found that it is terribly slow. While I can only download ~30 entities/second via the bulkloader, I can do ~500 entities/second by querying the datastore via a backend. A backend is ... |
I’ve been coding in PHP for years now, and even though I would stray from time to time, it was always to fix a bug or add some small bit of functionality, and never to build a site in Ruby or Python “from the scratch”.
Recently, I moved all my domains onto one server and I wanted to create a basic holding page applicat... |
I'm trying to learn Django and I've ran into some confusing points. I'm currently having trouble creating a movie using a form. The idea of the form is to give the user any field he'd like to fill out. Any field that the user fills out will be updated in its respective sql table (empty fields will be ignored). But, the... |
I am developing large backend for some web apps. This is my first python and SQLAlchemy project, so I am confused with some things. And was kind of spoiled by Java programming tools and IDE`s, compared to python`s (I use pydev in eclipse anyway). I need help with how to structure the project and write tests. I`ll descr... |
When I was just starting out with R, I played with the preloaded data sets — data on cars (just use ‘mtcars’). This allows you to play around the basic commands, summarizing data sets with e.g. summary and plot.
Once you know a bit about this, you quickly notice that you want ways to cut the data, to massage it (reshap... |
Published on O'Reilly Network (http://www.oreillynet.com/)
See this if you're having trouble printing code examples
by Cameron Laird and Boudewijn Rempt
07/07/2000
Editor's note -- Seldom do I run across an article on application development that is just plain fun. I have one here. There are four characters in this sto... |
Are unix/linux sha256/sha512 passwords in /etc/shadow key-strengthened?
Yes. They use a crypt procedure that does a default of 5000 rounds of hashing. The sha256-crypt/sha512-crypt procedure is described hereand in java
Can I change the number of rounds?
Yes. Simply edit /etc/pam.d/passwd or /etc/pam.d/common-password ... |
Our home directories are exported via kerberized nfs, so the user needs a valid kerberos ticket to be able to mount its home. This setup works fine with our existing clients & server.
Now we want to add some 11.10 client and thus set up ldap & kerberos together with pam_mount. The ldap authentication works and users ca... |
More on Mapnik WMS
One of my initial complaints about the Mapnik WMS server was that it would not accept any parameters that were not in the OGC WMS spec. Some WMS clients will tag on extra parameters for various reasons and the OGC supports this in relation to vendor-specific parameters. The fix was pretty simple;in m... |
I'm trying to use Software Properties (software-properties-gtk) to install nvidia drivers. When I open the Additional Drivers tab it just says "searching for additional drivers..." and then Apport comes up telling me Ubuntu has had an internal error. The available additional drivers never show up, the list just stays e... |
Anyways, the idea is the following: you want to change the class attributes before it becomes final -- there are things you just can't do in Python after a class is already declared (Python uses this technique for creating properties -- in my specific use-case I'm using it to overcome some limitations that Django has i... |
I have a list of Spam objects:
class Spam:
def update(self):
print('updating spam!')
some of them might be SpamLite objects:
class SpamLite(Spam):
def update(self):
print('this spam is lite!')
Spam.update(self)
I would like to be able to take an arbitrary object from the list, and add ... |
I have an Ubuntu box connected to a plasma TV. Still images reduce the lifetime of plasma TVs and may cause pixel-burn. I am looking for a technique to start the screensaver if the picture on the monitor is still for a while but prevents the screensaver if the picture is moving. Here is my not-working piece of python c... |
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... |
Rangrith
Réponses : 7
Bonjour,
Suite à l'installation des drivers nVidia, ma résolution est très faible (640x480), et je ne parviens pas à la modifier (et je commence à désespérer). Après m'être authentifié, j'ai ce message d'erreur :
aucun des modes choisis n'est compatible avec les modes possibles :
Tests des modes p... |
Services
The W3C defines a web service as "a software system designed to support interoperable machine-to-machine interaction over a network". This is a broad definition, and it encompasses a large number of protocols designed not for machine-to-human communication, but for machine-to-machine communication such as XML,... |
Hmm, bug in iRedAPD-1.3.8. Please find below lines in /opt/iredapd/libs/ldaplib.py (about line 209 to 212):
# Return if recipient account doesn't exist.
if recipientDn is None or recipientLdif is None:
self.logger.debug('Recipient DN or LDIF is None.')
return SMTP... |
use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
780 users here now
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Please t... |
I'm searching for a way to remap certain keys in ubuntu.
i.e.
I'd like to change PgUp to Home or PgDown to End.
Does a built-in command or a tool exist reassign keys in Ubuntu/GNOME?
(it creates a file named
Then you have to create a file named
xmodmap .Xmodmap in.
source: Ubuntu Foruns
Bonus stuff:
If the key you are ... |
I am running into following error while calling shell script,how do I call shellscript using check_call or through anyother python function?
import os from subprocess import check_call,Popen, PIPE
def main ():
BUILD_ROOT="//local/mnt/workspace//AU"
os.chdir(BUILD_ROOT)
print os.getcwd()
check_call(['./t... |
I'm New to Cuckoo Sandbox. Why am I getting this error? I don't understand. If there is something wrong, can anyone please explain how to setup Cuckoo Sandbox? My setup works very well before I submit any kind of malicious thing. I've been working on it for the last 5 days.
Thanks !
Cuckoo Sandbox 0.5
www.cuckoosandbox... |
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... |
Let's say I have the following config log file:
[loggers]
keys=root,seeker,event
[handlers]
keys=consoleHandler,seekerFileHandler,eventFileHandler
[formatters]
keys=consoleFormatter,logFormatter
[logger_root]
level=DEBUG
handlers=consoleHandler,seekerFileHandler,eventFileHandler
[logger_seeker]
level=DEBUG
handlers=con... |
In principle, a single Django application can be reused in two or more projects, providing functionality relevent to both. That implies that the same database structure (tables and relations) will be re-created identically in different databases, and most times this is not a problem (assuming the projects/databases are... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.