text stringlengths 256 65.5k |
|---|
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 ... |
What is MongoTor ?
(MONGO + TORnado) is an asynchronous toolkit for accessing mongo with tornado.
Features
ORM like to map documents and fields
Advanced connection management (replica sets, slave okay)
Automatic reconnection
Connection pooling
Support for running database commands (find, find_one, count, sum, mapreduce... |
Have the latest django from svn.
$ svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk
If you haven't already done so, continue setting up as per the instructions at Django's site.
Get the latest jython from svn. Pre 2.5 will NOT work.
$ svn co https://jython.svn.sourceforge.net/svnroot/jython/trunk/ j... |
PenguinCoder
less info
101 reputation
1
bio website penguincoder.com
location United States
age
visits member for 1 year, 10 months
seen Nov 8 '12 at 17:29
stats profile views 2
You want to know a bit about me?? Run the following code; or not.
from random import shuffle
alphabet="abcdefghijklmnopqrstuvwxyz+!@#$%^&*"
ke... |
I'm trying to build an admin control panel that brings together 4 different ecommerce sites. The sites all have identical database structures (all MySQL).
What's Going Wrong?
I get 404 Not Found on any order ID and site I put in. No matter how I mix it I can not get any record to come up. Always a 404 and I have no ide... |
from collections import Counter
a = [10, 10, 10, 20, 20, 20, 30]
c = Counter(a)
# Counter({10: 3, 20: 3, 30: 1})
If you really want to convert the keys to strings, that's a separate step:
dict((str(k), v) for k, v in c.iteritems())
This class is new to Python 2.7; for earlier versions, use this implementation:
http:/... |
#0 Re : -1 » Virtual box/TOM TOM » Le 29/12/2009, à 17:16
#1 Re : -1 » Virtual box/TOM TOM » Le 29/12/2009, à 18:11
awala
Réponses : 67
je ne pense pas que cela vienne de windows virtualisé (pour une fois que windows n'est pas en tort) car j'arrive à installer d'autre .exe et notamment l'ancienne version de tomtomhome ... |
I would suggest the ravel or flatten method of ndarray.
>>> a = numpy.arange(9).reshape(3, 3)
>>> a.ravel()
array([0, 1, 2, 3, 4, 5, 6, 7, 8])
ravel is faster than concatenate and flatten because it doesn't return a copy unless it has to:
>>> a.ravel()[5] = 99
>>> a
array([[ 0, 1, 2],
[ 3, 4, 99],
[ 6... |
I'm translating a Python code to C in order to take advantage of the parallelism available on HPC systems (its a painful process) and I've come across a conditional in Python the original programmer used that confuses me
if rnum <> current_res:
alim = 0
if len(f): alim = f[-1]
What does if len(f) satisfy? ... |
There are very few cases where you want to use except:. Doing this captures any exception, which can be hard to debug, and it captures exceptions including SystemExit and KeyboardInterupt, which can make your program annoying to use..
At the very simplest, you would catch urllib2.URLError:
try:
urllib2.urlopen("htt... |
ADcomp
Re : ADesk Bar : Barre de lancement rapide [python/gtk/cairo]
@sam7 : je suppose que tu parles de mon live "Madbox" .. comme je te l'ai dit sur l'autre post, il n'est pas prévu pour une installation "normale" et les paquet *-fr ne sont pas installés. Sinon , j'ai une mise à jour de mon live en cours ( plus conve... |
I'm doing some pyplotting of generic data and converting it from a power value to a dB value. Due to the system these values come from, 0 is used as a 'the useful data ends here' indicator (the nature of the mathematics, not a defined value).
My usual way of dealing with these is wrapping the conversion in a try/except... |
CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
The golden rule of CoffeeScript is: "It's just JavaScript". The code compiles one-to-... |
In the following example, say you have a model where supp is a factor variable.
lm(len ~ dose + supp, data = ToothGrowth)
but I want to use different base level for the factor. I could specify this directly in the formula:
lm(len ~ dose + relevel(supp, "VC"), data = ToothGrowth)
and the output would be:
Call:
lm(form... |
I made Conway's Game of Life in JavaScript and was hoping someone could give me some pointers regarding my logic of checking adjacent cells. I know there must be a better way, but at the same time, it works.
JS:
var board = [["","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
... |
bibichouchou
Re : TVDownloader: télécharger les médias du net ! [2]
à Xun
malheureusement, je crois qu'il n'y a plus grand chose de fonctionnel dans TVDownloader tel qu'il est proposé au téléchargement. MAIS heureusement, des petits programmes indépendants ont fleuri pour beaucoup de chaines et sont dispersés sur ce fo... |
I'm new to python and programming in general and I've written some code for a Guess the Number game in Python. It allows the user 6 attempts at guessing a random number. It works, however I am not sure if this is the best way or most efficient way of writing it and would appreciate it of I could get get some constructi... |
Really, really basic block in Ruby:
list = (1..125).to_a
list.each do |x|
print x if 125 % x = 0
end
Gives me:
ZeroDivisionError: divided by 0
from (irb):3:in `%'
from (irb):3
from (irb):2:in `each'
from (irb):2
Yet the block "puts x" returns 1 through 125, just like it should.
What is going on? |
I am trying to parse an XML document that contains repeating child elements using Python. When I attempt to parse the data, it creates an empty file. If I comment out the repeating child elements code (see bolded section in python script below), the document generates correctly. Can someone help?
XML:
<?xml version="1.... |
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 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 highly recommend epdb (Extended Python Debugger).
https://bitbucket.org/dugan/epdb
One thing I love about epdb for debugging Django or other Python webservers is the epdb.serve() command. This sets a trace and serves this on a local port that you can connect to. Typical use case:
I have a view that I want to go throu... |
I recently went to my App Engine site which has been running just fine and no errors and got the big ugly error page. In the admin tool App Engine was logging this error:
2012-09-06 10:53:43.938
Traceback (most recent call last):
File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", ... |
Composite Manager Retained Drawing Protocol RFC
Robert Carr
02/28/07
Outline and justification:
Results from development in the creation of 'first generation' mainstream composite window managers has outlined the need for several reconsiderations in regards to applications interacting and communicating with the composi... |
The Python 2.7 update note says:
A new version of the io library, rewritten in C for performance.
I've played with Python 2.7 a bit, but I don't see any performance gain:
>>> from timeit import Timer
>>> t = Timer('f = open("E:\\db.txt", "r"); f.read(); f.close()')
>>> t.timeit(10000)
And the result:
Python 2.6.5 -- 1... |
Premium
Programmation sous Ubuntu
Bonjour,
je me suis installer Ubuntu Breezy et je suis débutant
Dans mon sources.list,qu'est ce que je dois faire car il me semble que rien n'est installé.
Je ne peux pas faire de C,C++,Java,Perl,SQL,...
Je voudrais savoir comment faire pour installer ces langages et d'autres selon mes... |
I have written a program which will create and transmit the icmp packets over the network.
Now, I want to write a program which will identity the processes (PID) in the system which are transmitting the icmp packets. If I am not wrong, possible output of these program will be PID of the previous program that I have cod... |
I try to use Picasa API with AuthSub. My code:
GD_CLIENT = gdata.photos.service.PhotosService()
def login(request):
def GetAuthSubUrl():
callback = 'http://127.0.0.1:8000/callback'
scope = 'https://picasaweb.google.com/data/'
secure = False
session = True
return GD_CLIENT.Gen... |
While I was searching for a good scraper in python, I encountered many of the scrapers written in python. Finally I tried with ScraperWiki and it was quite interesting.
Everything can be done within the browser and very simple to use. We can write python scrapper scripts in the browser and it allows you to run and test... |
I log in to a server via public key authentication and then mount a container (using e.g. LUKS/dm-crypt or truecrypt). At the moment, I have to enter the container password manually. Is there a way to secure that container using e.g. the ssh agent? Or if that is not possible directly, can I encrypt the container passwo... |
I'm having a strange problem where the last 10-20 characters of my email are being truncated.
The code that sends the email is as follows:
#Get the runtime arguments.
subject = args[0]
content = str(args[1]).replace("\\n","<br/>") #Python automatically escapes the backslash in runtime arguments, so "\n" turns into "\\n... |
Retrieving Mails with Twisted
Programming a POP3 client to retrieve mails in the Twisted framework is more complex and takes more code. The logic to retrieve mails is all in a class that subclasses POPClient (from twisted.mail.pop3client). Due to the event-driven nature of Twisted, it's easier to define a method for ea... |
I'm using Turbogears2 and SQLAlchemy to develop a webapp. I have two mapped tables O1 and O2. O2 has a sorted list of O1s in 'ones'. At some point I want to query all O2's and the referenced O1's.
Unfortunately the query below fails because table O2 is aliased in the query and the column referenced by the order_by phra... |
It seems that the "Notes" tab in the "File Properties" dialog is gone in Nautilus 3.2.1/Ubuntu 11.10. How can you use the notes feature now? What do you do about notes that you have already made? Is there a patch or an extension for this, or is it planning to be fixed in the future? (Why was it removed?) (Related quest... |
tomtom
Re : [HOW TO] adesklets : installation sous Ubuntu Breezy
raaah ! j'ai un probleme d'interpreteur python !
J'ai installé toutes les librairies via synaptic et adesklets aussi.
J'ai DL YAB (Yet Another Bar) et j'ai ca :
[i]tomtom@barad-luin:/mnt/config/programmes/adesklets/yab-0.0.2$ [/i][b]ls -l[/b]
total 56
-rw... |
I'm trying to implement NTLM authentication on IIS (Windows Server 2003) from Windows 7 with python. LAN Manager Authentication Level: Send NTLM response only.
Client machine and server are in the same domain.
Domain controller (AD) is on another server (also running Windows Server 2003).
I receive 401.1 - Unauthorized... |
Tutorial 4: Authentication & Permissions
Currently our API doesn't have any restrictions on who can edit or delete code snippets. We'd like to have some more advanced behavior in order to make sure that:
Code snippets are always associated with a creator.
Only authenticated users may create snippets.
Only the creator o... |
For 12.10
We have created a script that lets you enable/disable show-desktop icon. If you dont want to install a separate tool, grab our script and run it.
It is hosted on bitbucket at https://bitbucket.org/jpmahesh/unity-reset
Or if you are lazy and prefer not to open another page, here's the snippet.
#!/usr/bin/pytho... |
Usually when starting a new project with commonly used apps, you will need some default data for the database, for example, default categories. Django provides fixtures for that. A fixture is a collection of data that Django knows how to import into a database.
They say:
If you create a fixture named initial_data.[xml/... |
Home » Tip Bank » .NET » VB.NET » String Manipulation
Email Article
Comment on this Article
Digg
del.icio.us
Newvine
furl
StumbleUpon
BlinkList
Newsvine
Magnolia
Facebook
Tailrank
Slashdot
Technorati
Google Bookmarks
Yahoo Favorites
Windows Live
Ask
Language: C++
Expertise: Advanced
Jan 8, 2001
Converting Strings From ... |
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "uploader.zip/__main__.py", line 10, in <module>
File "uploader.zip/__main_... |
I am working on a an application to stream live video on iPhone from IP cameras through rtsp. I am using open source projects like live555, DecoderWrapper and RTSPClient. I get the following error while compiling my project.
Undefined symbols for architecture i386:
"_av_register_all", referenced from:
+[VideoD... |
Alright, So I have a dictionary as following:
{'A': ('0.1', '0.1'), 'C': ('0.3', '0.5'), 'B': ('0.2', '0.9'), 'D': ('0.4', '0.5'), 'I': ('3.0', '0.9'), 'H': ('2.2', '0.9')}
And the keys and corresponding 2 values are defined as such:
d[nodeName] = nodeDistance, parentD
The variable key names are being called by [nodeN... |
I just installed Python 3.3.2 on my Windows XP machine. I have been practicing Python using both Idle and PyScripter. I installed several packages to go with it, among them SciTools. The installation of SciTools 0.9.0 appears to be unsuccessful - after installing (I got the .exe file from http://code.google.com/p/scito... |
So, probably like many hackerspaces, Diyode spends a lot of time on our IRC channel. We also have a good few members who compulsively check the webcam whenever someone enters the shop. So when April first rolled around on a Monday this year, I figured it was time to put the CodeShield to work. I present: the IRC trigge... |
I've implemented a Pivotal Tracker API module in Python 2.7. The Pivotal Tracker API expects POST data to be an XML document and "application/xml" to be the content type.
My code uses urlib/httplib to post the document as shown:
request = urllib2.Request(self.url, xml_request.toxml('utf-8') if xml_request else None, se... |
JavaScript
maya90 — 2013-04-21T22:01:22-04:00 — #1
how would I sort this array so the member with the highest points prints first?
<font face='Courier New'>
var members = [{
name: "stephen gupta",
points: 52
},{
name: "laura kowalski",
points: 67
},{
name: "John Rodriguez",
points: 33
}];
</font>
how ... |
Chromaphyo
Problème de mise à jour après installation
Bonjour
Je viens d'installer Ubuntu et ma connection internet Wifi (firefox fonctionne ainsi que Evolution) mais je me retrouve avec une impossibilité de mettre à jour les paquets (donc impossible d'installer Thunderbird, OOo en français etc ...)
Le message d'erreur... |
Olivier_Dev
Re : Magic Collection, pour gérer votre collection de cartes Magic
Bonjour
Une de mes filles est fan des poks, j'y comprend pas grand chose mais je trouve l'idée et la qualité de ton travail trés interessante, bravo !!!
Bon en tant que dev, ma curiosité se tourne sur le code, pas dans un esprit critique, ma... |
We publish an asp.net API on:
http://API.domain.com/v3/service.svc
https://API.domain.com/v3/service.svc
Had a problem last week with a corrupt SSL certificate which meant connecting to the HTTPS ref fails with an internet explorer connection problem. HTTP ref was fine, was confirmed the SSL corruption was the issue.
... |
In all the posting and hype about full-featured frameworks, you may have overlooked a very small "un-framework", the Python web server gateway interface (WSGI). It's generally an option for deploying the large frameworks such as TurboGears or Django. What follows is a very simple and brief overview of how you can creat... |
You can do this easily from NetworkManager's pygi bindings:
from gi.repository import NetworkManager, NMClient
nmc = NMClient.Client.new()
devs = nmc.get_devices()
for dev in devs:
if dev.get_device_type() == NetworkManager.DeviceType.WIFI:
for ap in dev.get_access_points():
print ap.get_ssid()
... |
Gaara
[script] Notification de mise à jour automatiques
Bonjour à tous,
J'ai créé un script en GTK-python (2.7) qui permet l'affichage d'une notification lors du téléchargement et de l'installation des mises à jour automatiques via le paquet unattended-upgrade.
Ce paquet est installé par défaut, mais n'est pas activé.
... |
Our members save between $294 and $2,994 on their first year of continuous integration and deployment with Codeship. Become a member today for just $20 and get access to this and many more member benefits.
Testing
From Tim’s post Mocking the file system:
When writing tests, it’s common to run up against code that relie... |
A I couldn't find anything concerning in the PEP 8. I'm interested in your thoughts about the most pythonic syntax of function which have no return?
Are there any reason to prevent functions without a return line(example 3)?
Example 1:
def foo():
print 'foo'
return None
Example 2:
def foo():
print 'foo'
pa... |
nesthib
[JEU] challenge bash #6
Espaçeur de paragraphes
Imaginons un texte, celui-ci est composé de différents paragraphes. La plupart du temps un paragraphe sera coupé en deux à la fin d'une page. Le but de ce challenge est de réaliser un script qui formate le texte de façon à ce qu'un paragraphe ne soit jamais coupé ... |
I try to create a class which will add data from a form to a db.model, but my problem is that when I will try to add an existing book, I want to update the copies and not to add a new object. I really try to find an answer, I read books for programming in GAE, but I find nothing for my problem. Thank you in advance and... |
My sudo file has two commands in it right now that are allowed to run without logging in as root.
It looks like this:
user ALL=(root) NOPASSWD: /home/user/prog1.py
user ALL=(root) NOPASSWD: /home/user/prog2.py
The prog1.py file runs fine without password needed. The prog2.py file fails on permissions denied?
The first... |
foreman is not recognized as an internal or external command, operable program or batch file
So I added the location of the foreman file (version 0.63.0) to my path:
C:\Program Files (x86)\Heroku\ruby-1.9.2\bin
and restarted the command prompt and reran foreman start. Now, I'm getting this error:
Microsoft Windows [Ver... |
I tried to tap into Belkin Home Base (model #F5L049au) print server. I want to access a printer hosted by it. I set it up as a CUPs printer with the below specifications:
Description: Via Belkin @ 192.168.1.10
Location: Peter's Bedroom
Driver: Brother HL-4050CDN BR-Script3 (color, 2-sided printing)
Connection: soc... |
Code for the Resource
The straightforward code for the GET method is shown below--the basic process is to retrieve the basket name (or reference) from the servlet request path info, and then loop through the matching basket object (if found), updating the price and quantity fields. The object is then marshalled to XML ... |
In case you really just need to cache the result, see below (very similar solution to another question you posted):
class MyChild(Base):
__tablename__ = 'MyChild'
id = Column(Integer, primary_key=True)
parent = relation('Parent')
# ... other mapped properties
def __init__(self):
_parent_cach... |
I need to access a configuration file from a Makefile, and thus seek for a short-readable-maintanable way of doing. The file is a python ConfigParser compliant file.
#foo.cfg
[foo]
bar = baz
I use this python oneliner which I found cumbersome
python -c "import ConfigParser; config = ConfigParser.ConfigParser(); config... |
The tracker in the lower-right corner (highlighted in red) reports y-values relative to the y-axis on the right.
How can I get the tracker to report y-values relative to the y-axis on the left instead?
import matplotlib.pyplot as plt
import numpy as np
np.random.seed(6)
numdata = 100
t = np.linspace(0.05, 0.11, numdata... |
Rotate Sprite Towards Point
Smoothly turn a sprite towards a desired located based on a turning speed. Implemented in python for use with pygame, however the concepts can easily be taken to any other programming language.
class a_sprite():
TURN_SPEED = 5.25 # radians degree's
def change_direction(self, desired_... |
I get the following error when I execute the gui.py script on my newly installed Ubuntu 12.04 LTS. Please help as I have recently started using Ubuntu, I am not too good at debugging yet.
I get this error when I am trying to open the GUI of an open source software RevKit
sushanttrivedi@ubuntu:~/project/revkit-1.3$ ./to... |
I can't find the definition of a function $f(x); x \in [-1;1]$ where $(x|f(x))$ is a point on the unit-circle.
Can you please give me a hint?
---------- Edit -----------
Background:
I want to render a filled circle (programatically) onto a screen using an iteration from $x-rad \rightarrow x+rad$ where $x$ is the x-posi... |
I have an issue to access the related data from a class which inherit from another. My code (models.py) is below :
class AbstractTransaction(models.Model):
compte = models.ForeignKey(Utilisateur,
verbose_name='Compte',
related_name='%(class)s_set',
)
operateur = models.ForeignKey(Util... |
Everyone knows that we should always use DOM techniques instead of regexes to extract content from HTML, but I get the feeling that I can never trust the SimpleXML extension or similar ones.
I'm coding a OpenID implementation right now, and I tried using SimpleXML to do the HTML discovery - but my very first test (with... |
gtk.LinkButton — a button bound to a URL (new in PyGTK 2.10)
class gtk.LinkButton(gtk.Button):
gtk.LinkButton(uri, label=None)
def get_uri()
def get_visited()
def set_uri(uri)
def set_visited(visited)
Functions
def gtk.link_button_set_uri_hook(func, data=None)
+--gobject.GObject+-- gtk.Object ... |
Node.js on OpenEmbeded
The successful build instructions in a nutshell:
opkg install python python-modules python-distutils python-misc
opkg install task-sdk-native
opkg install openssl openssl-dev
wget http://nodejs.org/dist/node-v0.1.102.tar.gz
tar xf node-v0.1.102.tar.gz
cd node-v0.1.102
export CC='gcc -march=armv7-... |
First, it seems proper to me to state that I've read over the following questions:
And, I don't feel like they address my use case. That said, here's my question:
How can I dynamically import from a configuration file like this:
[imports]
/var/imports/foo.py = baz monkey
/var/imports/bar.py = ape
So that I can call th... |
phiphi076
Re : La mise a jour clamAV et clamtk
@awass
la commande te permet de lancer le programe en mode graphique
avec les droits "root" administrateur (avoir accès au système) .
lorsque tu lance clamav "normalement" sans les droits administrateur
, tu peut pas faire les mises a jour des liste de virus et programe
de... |
So using SqlAlchemy, I'm creating a fairly simple many-to-many relationship between a users model and a comments model.
users.py
class UsersModel(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
username = Column(String(50))
email = Column(String(50))
issues = relationship(Issue... |
AnsuzPeorth
Re : [Gm9diaCenter] Interface graphique pour mediacenter neuf/sfr
Re,
La suppression des logs se fait au démarrage de l'appli, pas du mediacenter ! (en tout cas chez moi ça marche).
Pour le systray, je t'ai ajouté une petit image clicable gnome
J'ai ajouté la possibilité de créer/supprimer les lanceurs depu... |
Remove Duplicate Array Tests
JavaScript performance comparison
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js">
</script>
<script>
Benchmark.prototype.setup = function() {
var array = [
"sample1",
"sample1",
"sample1",
"sample2",
"sample2",
"samp... |
I think you have the right idea, except that the colors will be more distinguishable if you pass the colormap hsv numbers which are spread out over the range (0,1):
hsv(float(i)/(len(data)-1))
For example:
import matplotlib.pyplot as plt
import matplotlib.dates as md
import numpy as np
import datetime as dt
import sci... |
jbfabin
mise à jour / téléchargement des paquets impossibles
Bonjour, quand je veux mettre à jour mon système, j'obtiens le message :"le téléchargement des informations du dépot a échoué".
si quelqu'un peut m'aider, je lui serai reconnaissant.
PS : au terminal, j'obtiens ces messages :
W: Impossible de récupérer http:/... |
It sounds like you may be confused about the difference and proper usage of Form vs ModelForm
Regardless of which type of form you use, the templating side of forms stays the same:Note: all of the values in your form (as long as its bound to POST or has an instance) will be prepopulated at render.
<form class="well" ac... |
I am using CentOS 6.5 64 and use xen to create a virtual machine (CentOS)
ifconfig
[root@CentOS ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:54:B3:FA
inet6 addr: fe80::a00:27ff:fe54:b3fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10087 errors... |
web.py 0.3 新手指南
开始
你知道Python同时你希望制作一个网站。 那么web.py正好提供了一种简单的方法。
如果你希望读完整个指南, 你需要安装Python, web.py, flup, psycopg2, 和Postgres (或者等价的数据库和Python驱动)。 详细,可以查看 webpy.org.
如果你已经有了一个web.py项目,请看看升级 页面的相关信息。
准备开始。
URL 处理
任何网站最重要的部分就是它的URL结构。你的URL并不仅仅只是访问者所能看到并且能发给朋友的。它还规定了你网站运行的心智模型。在一些类似del.icio.us的流行网站 , URL甚至是UI的一部分。 web.py使这类强... |
I recently installed Ubuntu on my new MacBook Air 4,2 (Mid 2011). Everything has worked great so far, with a few minor issues with screen resolution. However, I am now completely stuck on how to get my touchpad to recognize gestures such as scrolling, tap to click, and right click. I have run the post-install script he... |
Apt-get is broken for unresolved dependencies. I follow other answers and I do:sudo apt-get -f installI get
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
ac... |
I'm trying to accomplish a task, but having some difficulty.Can someone set me straight on the following:
#This worked for me
myFormats = {'audio': ('.wav', '.wma', '.mp3'), 'video': ('.mpg', '.mp4', '.mpeg')}
myFile = '5DeadlyVenoms.mp3'
f_exten = (x for x in myFormats['audio'] + myFormats['video'] if myFile.endswith(... |
One of the questions that has arisen several times recently is validation using REST.
The scenario is that a client, a web page or some other agent, needs to do some quick validation for feedback to the user. For example, when entering a zipcode into a form we'd like to check that zipcode as it's entered and display so... |
Hizoka
Re : [glade2script-GTK2] Interface graphique pour script bash ou autre.
bah le principe en lui même je le pige.
mais c'est son application où j'ai du mal.
Il va falloir que je me penche bien sur tes exemples.
Hors ligne
frafa
Re : [glade2script-GTK2] Interface graphique pour script bash ou autre.
CouCou !
oulah ... |
WebLogic Scripting Tool
You can use the WebLogic Scripting Tool (WLST) to automate the creation and management of WebLogic Server domains, servers, and resources. WLST provides commands that create, get and set values for, invoke operations on, and delete instances of configuration MBeans and commands to get values and... |
peterp@n
Re : Logiciel de CAO 2D/3D (Conception Mecanique)
Cool, ca se paufine bien tout ça.
C'est avec quelle versions exactement la vidéo ?
Ubuntu 12.04 64bits, Raspbian “wheezy”, Tango Studio sauce debian
Un bureau d'études techniques pour le bâtiment avec des logiciels libre.
Entreprise de construction bois. - Form... |
McPeter
Re : Un 'autre' générateur de sources.list en ligne
Je viens de rectifier le soucis sur le nom du fichier bash.
Par contre je ne vois aucun soucis à l'exécution :\
pourrais tu me dire quel navigateur tu as utilisé et quel message d'erreur ça te renvoit ? (un copié/collé du message)
le chmod +x est inutile là pu... |
AlexandreP
Re : Generateur de sources.list en Francais
Euh... en même temps, je suis pas totalement sûr que ce soit ça : si on regarde le message d'erreur, Ubuntu tente de rejoindre l'adresse IP 1.0.0.0. Je doute très très fortement que se soit la bonne adresse du serveur
Un connaisseur, siouplease ?
«La capacité d'app... |
Trees
Parse trees are an in-memory representation of the input with a structure that conforms to the grammar.
The advantages of using parse trees instead of semantic actions:
Example
Now that you think you may want to use trees, I'll give an example of how to use them and you can see how easy they are to use. So, follo... |
Over the past year, the WebKit project made tremendous progress on the ability to optimize JavaScript applications. A major part of that effort was the introduction of the Fourth Tier LLVM (FTL) JIT. The Fourth Tier JIT targets long-running JavaScript content and performs a level of optimization beyond WebKit's interpr... |
nesthib
[astuce/awk] pourquoi awk est si puissant ? un petit exemple
une petite astuce pour montrer la puissance d'awk (et plus généralement des « petits » programmes en ligne de commande)
j'avais un fichier de log de la forme :
20xx-xx-xx xx:xx:xx username1 Lorem ipsum dolor sit amet
20xx-xx-xx xx:xx:xx username2 cons... |
I know that dosbox is not yet integrated with wine, but whenever I double click on a DOS program (with wine) it just opens dosbox and closes it in the next moment. Why does this happen?
Here is the terminal output:
tachyonsos@tachyons-desktop:~$ wine '/home/tachyonsos/Desktop/TC.EXE'
DOSBox version 0.74
Copyright 2002... |
I am new to python and trying to extract the contents of a page. When I do urlopen('http://www.google.com'), I get the following error :
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py"... |
How much time is left for the start of Brazil 2014 cup? If you want know the answer, just give an eye to www.cup2014countdown.com
UPDATE: I had to power off meteosemplice.com, because i was doing too many calls at the api web site. Any suggestion for a cheap and affordable api service about meteo?
Another django site i... |
Handling multiple variables over serial from Max/MSP to Arduino
Hi,
I’m a third year at university in the UK working on a project which is essentially (for the time being) controlling a 4×4 Matrix of LEDs that have been multiplexed through programming using Arduino, via Max/MSP. Without Max/MSP, I’m able to program the... |
Pierre Thibault
Comment fonctionnent les pipes et les commandes shell avec Python
Bonjour,
J'ai de la difficulté à comprendre comment les redirections fonctionnent avec les commandes shell et Python. Par exemple, si dans un shell bash je tape:
aa | bb
Si je tape la commande précédente, cela veut dire que la sortie de l... |
Is there anyway to determine if a windows computer is running IPV6 using native utilities, python or php?
Every computer ships with IPv4 at standard. IPv6 is only enabled on specific machines. But if you parse ifconfig/ipconfig then you should find yourself a IPv4/6 address in the output
Sure. If
Jakob's approach is th... |
I get the error "Key Error: 'tempMax'".
Can anyone tell what the problem is with the following code:
def catagorise(self, day, cat, f):
self.features.setdefault(cat, {f:{'high':0,'mid':0,'low':0}})
if f == 'tempMean':
if day.tempMean > 15.0:
self.features[cat][f]['high'] += 1
elif da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.