text stringlengths 256 65.5k |
|---|
In Java, you can have a List of Objects. You can add objects of multiple types, then retrieve them, check their type, and perform the appropriate action for that type.
For example: (apologies if the code isn't exactly correct, I'm going from memory)
List<Object> list = new LinkedList<Object>();
list.add("Hello World!")... |
I'm having a problem with a program in which I have to load images and pickled objects: my Python software doesn't appear to be looking in the location of the program. I have my program in a folder called "King's Capture," and my images in a folder within "King's Capture" labeled "data." I want to have python find the ... |
Use reduction to show that the following function is not computable, where P is any python program that takes a single input x:
sotrue(P) = true, if P(x) returns true for every value of x,
sotrue(P) = false, otherwise (if P(x) returns False or does not halt for at least one value of x)
The proof is proof by contradicti... |
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... |
If you're trying to use HTML data from a database or a variable, you'll need to use the XML() function.
There is an explanation from Massimo:
Let's assume you have the html data in a variable called x. When you print it in a view with
{{=a}} or {{=DIV(a)}} or {{=DIV(P(a))}} etc.
the content of a is automatically escap... |
elements.send_keys() works fine in most cases, but I have a particular test case where I need to input very large strings into a textbox, and send_keys() is far too slow. (The test takes 28 minutes to execute right now!)
There is this way of doing it: http://stackoverflow.com/questions/3526361/firefoxdriver-how-to-disa... |
Python 2.3 introduced the logging module to the Python standard library. logging provides a standard interface for outputting information from a running application. The classic example of a logging mechanism is writing data to a text file, which is a plain old log file. While the log file is likely the most common for... |
Raspberry Pi Website Hit Tracker
You just made a funky neon sign flash in my living room.
How? I have just completed my latest project which is a neon lamp which lights up every time someone visits my website. It’s controlled by a little relay board I built out on an Adafruit permaproto board and connected to a Raspber... |
This brief tutorial shows the basics of installing and setting up a simple app in Django that is used to submit and retrieve information about books you’ve read:
Part 1 - Installing and Setting up Django
Part 2 - Creating the Database Model
Part 3 - Django API vs Admin site
Part 4 - Django Templates and Views
Each part... |
マージソートは整列されていないリストを2つのリストに分割して、それぞれを整列させた後、それらをマージして整列済みのひとつのリストを作ります。
マージを利用してリストを整列するのでマージソートという名がついています。
分割された部分的なリストをサブリストと呼びます。サブリストもマージソートを使って整列させます。2. の手順にはこのアルゴリズムを再帰的に適用することになります。
リストをいったんバラバラにしたあと、マージによってリストを再構築します。
マージとはいくつかの整列済みのリストをひとつのリストにまとめる操作です。
整列済みのリストAとリストBをマージして整列されたリストCを作ると考えます。
以上の手順でマージは完了します。
配... |
ljere
Re : Live Voyager 12.10
merci pour les précisions c'est vraiment cool je plains rodofr si il veut intégrer tout ça
Hors ligne
metalux
Re : Live Voyager 12.10
Le repos aura été de courte durée, qu'est-ce qu'on peut dire des C.....quand on a un coup de barre!
Quelqu'un a testé ce que j'ai exposé au post #314? De mo... |
I was wondering if it is possible to change the password for a wifi with a script instead of having to log-in to the routers firmware?
It is possible to do this with a script, but the script will have to "login to the routers firmware."
So, if you are trying to do this as a way of avoiding having to login..then no.
If ... |
I'm doing some testing on my app, and I let it run on a machine this afternoon while I was away. When I got back, I was geting 503 throttle violation errors from my API calls.
I was calling the "questions" endpoint at a rate of once per minute, passing a "min" date value to limit the returned questions to just those th... |
Downmixing/Adjust from 5.1 to 'true' 2.1
I use ALSA and Pulse Audio on my Arch Linux machine.
You want to control how downmixing to 2.0 is done, so you're going to define a custom sound device in /etc/asound.conf
You can use this output configuration:
(add the custom function to the file /etc/asound.conf)
pcm.51to20
{
... |
I was having fun with Sage when I noticed something interesting:
primes = [p for p in range(500) if p in Primes()]
primes_rev = [p for p in reversed(primes)]
sum = map(operator.add, primes, primes_rev)
mul = map(operator.mul, primes, primes_rev)
sub = map(operator.sub, primes, primes_rev)
div = map(operator.div, primes... |
#1001 Le 25/04/2010, à 17:05
oGu
Re : [ VOS SCRIPTS UTILES ] (et eventuelles demandes de scripts...)
Bonjour à tous !
Tout d'abord félicitations pour l'excellente tenue de ce forum et pour tous les scripts que j'ai piqué sur ce topic!!
Etant passé de Firefox à IceCat dernièrement, j'aimerais qu'un Ubuntero sachant scri... |
AuthorPosts
August 19, 2013 at 5:32 pm #28053
Hi, I’d like to change two things: change the meta under the images on the grid layout (comments/dates) & the informations on the articles themselves.
I – GRID LAYOUT
Currently on the grid preview layout it goes like this:
2 Comments / August 4, 2013
I’d like to do somethin... |
Hagar de l'Est
[How-To] Installer OpenOffice.org avec les RPMs officiels
Si vous n'avez pas la patience d'attendre que les dépôts soient mis à jour pour installer la dernière version d'OOo, voici la méthode manuelle à partir des RPMs officiels.
NB: avant d'installer, si vous avez modifié la configuration des dictionnai... |
Everytime I call my function def hello(self,value) I get an error : takes exactly 2 arguments (1 given) so what could I do ?
Or is there another possibility to do this: self.statusitem.setImage_(self.iconsuccess)?
EDIT:
simple representation of my code
Class A:
func_in_class_B(value)
Class B:
def finishLaunching(sel... |
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... |
When compiling a beamer presentation and using the following \author command
\author{Name \\ \texttt{my.email@domain.com}}
I get the following hyperref warning in my logfile
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\\' on input line 15.
Package h... |
xxkirastarothxx
Re : MegaUpload : BotMU v1.0.1
Tucan a l'avantage de gérer les captcha pour les services qui en ont (enfin... un popup s'ouvre avec l'image, et l'utilisateur doit saisir lui même le texte)
Aaah ok c'est comme ça qu'il fait.
Par-ce que j'ai déjà essayé de pété des capcha avec des OCR, pour certains ça fo... |
JavaScript
busboy — 2014-03-17T15:01:48-04:00 — #1
I use Lightbox Evolution, from ThemeForest.net and can't get the second link below to work. Can someone point out what I'm overlooking?
Thanks!
<a href='#' onclick='window.parent.jQuery.lightbox().close();' class='button medium green'>Works</a>
<a href='#' onclick='par... |
15.06.12
Explored gnumach code. First I was reimplementing vm_fault_page as coroutine that returns before executing of mo_data_{unlock,request} calls to vm_fault. vm_fault had to analyse state of vm_fault_page for every page in loop and make a decision regarding further behavior (call mo_data_*, go to next page, etc.).... |
Douglas Bagnall - pyserf - a shortcut for writing C extensions in C
Description
pyserf - a shortcut for writing C extensions in C
Presented by Douglas Bagnall
Abstract
There are many clever ways of connecting Python and C code together, and pyserf is one of those. It is just a short script that parses a module outline ... |
vim: add a 'use' statement without moving the cursor
You're writing Perl code in vim and have just typed a package name - maybe you want to create an object of this class:
some_statement;
my $o = Some::Class->new;
do_something_with($o);
You obviously need to write use Some::Class at the top. So you either movethe curs... |
PotatoMasher
Re : Script d'installation pour imprimantes Brother
D'accord, alors j'ai retiré brscan2 de /etc/sane.d/dll.conf. brscan-skey -l donne toujours le même device, "Not Registered".
Après avoir jeté un coup d'oeil aux groupes, je réalise que mon utilisateur n'est pas membre du groupe "scanner" et du groupe "san... |
fenix122
Re : erreur avec apache2 : « Unable to open logs » [RESOLU]
non non je sais faire les serveur sans interface j'ai fait sa surtout pour simplifier après non je ne suis pas tout a lettre car le tuto que j'ai suivi avait des erreurs pour certaine chose surtout pour c'est source pas bonne j'ai du aller sur le site... |
raspouillas
Re : Topic des lève-tôt… Faisons manger leurs caleçons aux couche-tard! [4]
Je ne faisait aucune allusion au problème de @souen.
Dernière modification par raspouillas (Le 15/06/2012, à 20:37)
ljere
Re : Topic des lève-tôt… Faisons manger leurs caleçons aux couche-tard! [4]
alors voici la première partie du ... |
JavaScript
stevemtno — 2012-01-10T12:51:47-05:00 — #1
I'm guessing this is a pretty easy problem to fix, but I can't find any code that will do what I need.
I have a group of images (all different sizes). Each image will have a corresponding text link. I need to be able to click on one of the text links and display the... |
joko
Re : Qarte arte.tv browser (ex Qarte+7)
bonjour, grands compliments à VinsS et consors, vraiment épaté. bravo à tous les p'tits fouineurs !
qualité vidéo géniale, rien à voir avec celle du site d'arte +7 !!!
Dernière modification par joko (Le 06/11/2012, à 12:35)
Je suis un homme, quoi de plus naturel en somme ?
l... |
hectorau_ben
Re : [tuto]Installation de Dofus 2.0 par paquet debian et rpm (pour la doc)
Même si tu m'as toujours pas répondu, dofus marche parfaitement, sans AUCUN ralentissement, mais le son ne marche pas ... Même si l'Updater est ouvert et que j'ai activé le son dans le options et biensûr, je n'ai pas trouvé la solu... |
Kubke Lab:Research/ABR/Notebook/2013/10/29
From OpenWetWare
Hearing development in barn owls Main project page
Previous entry Next entry
General Entries
Personal Entries
Fabiana
Trying to apply a low pass filter to ABR data
Using package signal
install.packages("signal")
library(signal)
Read test file
dir()
## [1] "... |
My Django 1.3 project serves the static files on a development server but with the gunicorn server static files are not served. I followed the steps of this Heroku guide.
When I used the contents of my procfile like in the guide (web: gunicorn myproject_django.wsgi -b 0.0.0.0:$PORT) my project was not recognised by Her... |
When I was programing a basic UFO game in python 2.7 and with pygame I came accross an error, However it didn't come up in the consol. What happend was:
I was programing
Made a little change in the code
The Menu Screen worked fine and I go to play the game
It then keeps restarting.
I edited a few more bits of code so i... |
JavaScript
newguy99 — 2012-10-06T10:37:52-04:00 — #1
Hello Every one
Im using window.open(URL,name,specs,replace) to open a new page
it works fine with Chrome V22 and Firefox 12
But when i use it with IE9 it gives me a strange behavior
When i click it open a new page but the original page changes to the main root of th... |
Being able to reload code modules is one of the many nice features ofPython. This allows developers to modify parts of a Python applicationwhile the interpreter is running. In general, all that needs to be done ispass a module object to the imp.reload() function (orjust reload() in Python 2.x), and the module will be r... |
#1676 Le 29/03/2013, à 06:12
nassertom
Re : [ VOS SCRIPTS UTILES ] (et eventuelles demandes de scripts...)
re bonjour,
voici les scripts que j'utilise pour faire la conversion à la volé de vidéo.
je sais que ce type de script est en abondance sur le réseau cependant je n'ai jamais trouvé mon bonheur.
en quelques mots :... |
After I've booted up, what's the easiest way to obtain and display the IP address that the device is currently using?
I'm using Raspbian, and ifconfig doesn't appear to be installed.
Are there any widgets that display this information in LXDE?
The if family of tools including ifconfig are being deprecated and replaced ... |
I've finally decided to make some tests for my apps but I'm stuck on testing if a user can change another user (depends on the type of the user -- I use django-rules to be able to do logical permission checks, but this is not important)
Here's the code I have so far
class RulesAndPermissionsTests(TestCase):
fixture... |
I'm going to disagree with some of the earlier posters, and say that an object oriented approach is the wrong thing to do here, as it makes things more complicated.
All you need is to track the position of each player, and a vector to represent the board. If the board position is empty of a chute or ladder, it is 0. If... |
Is it possible to increase the size of tab bar? I need to increase the height of tab bar in one of my projects!
Try this:
CGRect viewFrame = yourTabBar.frame;
viewFrame.size.height = 20;
self.tabBar.frame = viewFrame;
or...
[self.tabBarPropertyName setFrame:CGRectMake(
self.tabBarPropertyName.frame.origin.x,
s... |
Scipy version 0.10.0
Consider the following:
>>> import math
>>> from scipy.optimize import fsolve
>>> import numpy as np
>>> def p(s, l, k, q):
p = q * np.maximum(s - k, 0.0)
return (p + math.copysign(l, -q)) * math.fabs(q) * 100.0
>>> x0 = fsolve(p, np.arange(33.86, 50.86, 1.0), args=(1.42, 41.0, -1.0), xtol=... |
I'm trying to get Appstats to work on my GAE Python app. I'm using webapp2 with python 2.7.
I've followed the instructions from https://developers.google.com/appengine/docs/python/tools/appstats#Setup which includes creating the appengine_config.py file:
def webapp_add_wsgi_middleware(app):
from google.appengine.ex... |
I stumbled upon this LINQ query while reading a book.
var binary = new int[] { 0, 1 };
var q = from b4 in binary
from b3 in binary
from b2 in binary
from b1 in binary
select String.Format("{0}{1}{2}{3}", b4, b3, b2, b1);
foreach (var element in q)
Console.WriteLine(element);
The res... |
I've got a couple django models that look like this:
from django.contrib.sites.models import Site
class Photo(models.Model):
title = models.CharField(max_length=100)
site = models.ForeignKey(Site)
file = models.ImageField(upload_to=get_site_profile_path)
def __unicode__(self):
return self.title... |
galanga
Re : Qarte arte.tv browser (ex Qarte+7)
@Christophe: content de voir que cela a commencé à fonctionner... Pour le second cas qui fait une erreur, c'est parce qu'il manque un back slash sur le guillemets fermant de ...3789-visual-crop-medium.jpg ; essayez avec cela :
items.append("<item>\n <title>Dominique ... |
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... |
Zakhar
Uploader sur votre Freebox Révolution à distance
UPLOAD de fichiers sur votre Freebox "distante" !
Free a récemment ouvert la possibilité d'accéder à l'interface de gestion de la Freebox V6 à distance.
Vous pouvez donc facilement "récupérer" (download) des fichiers de la Freebox distante vers votre PC, via l'int... |
I was looking for exactly the same thing, and I came across this post. (the indenting provided in xml.dom.minidom broke another tool that I was using to manipulate the XML, and I needed it to be indented) I tried the accepted solution with a slightly more complex example and this was the result:
In [1]: import pxdom
In... |
v3.2.1
Not sure why 'count' is coming up nil and index won't render, as 'count' it's been fine in every model until I do the uniqueness with scope validation.
Any suggestions?
MODEL
Class FeatureIcon < ActiveRecord::Base belongs_to :user validates_presence_of :img_size, :feature_name, :image, :user_id validates_uniquen... |
So say, for example I have two classes:
Base = declarative_base()
class Vendor(Base):
__tablename__ = "vendor"
id = Column(Integer, primary_key=True)
name = Column(String(45))
def __init__(self, name):
self.name = name
def __repr__(self):
return "<Vendor id=%d>" % self.id
class Site(Ba... |
I'd like to implement drag&drop in wxPython that works in similar way that in WordPad/Eclipse etc. I mean the following:
when something is being dropped to WordPad, WordPad window is on top with focus and text is added. In Eclipse editor text is pasted, Eclipse window gains focus and is on top.
When I implement drag&dr... |
rezzakilla
Re : [Info] Installation du driver Libre ATI Radeon
Je dis ça comme ça...mais ça marche terrible sur ma 7500.....:D
Hors ligne
hugo69
Re : [Info] Installation du driver Libre ATI Radeon
ton tuto est dans la doc officielle mais ca naide pas beaucoup ma 9700ATI Hercules à fonctionner correctement.
Si je mets l... |
Python...
I have a file of e-mail addresses and i need to create a script to import all these addresses as accounts, so there is some text manipulation going on, and i need to learn more python.
the file is in the form of
user1@domain1.co.uk
user1@domain2.com
user2@domain4.com
user3@domain4.com
This is basically a user... |
As another answer stated, the problem you're seeing is called "tunneling" It's the "bullet through paper" problem, the bullet is moving fast, the paper is thin, how do you know that a collision happened?
It's easy if your world boundaries are simple. E.g. in Tetris, the blocks are only allowed to move left and right un... |
Download All Podcasts from A Html Page
(Cross-Post from main website)
I love the excellent uctv TV program 'conversation with history', with Harry Kreisler (podcast url). I like it so much that I want to listen to them all. The problem is that I don't want to bother downloading them one by one to my mp3 player. The web... |
Is there anyway to determine if a windows computer is running IPV6 using native utilities, python or php?
This is how I solved the issue, by trying to open up an IPV6 socket. If the system did not throw an error, then it is using IPV6.
import socket
def isIPV6():
ipv6 = True
try:
s = socket.socket(so... |
#2301 Le 28/10/2012, à 16:38
ynad
Re : TVDownloader: télécharger les médias du net !
Re
@11gjm
la liste des correctifs, dans la dernière il y a 4h les deux nouveaux fichiers main.py (v 0.9.3) et PluzzDL.py
qui permettent le changement url
@+
Hors ligne
#2302 Le 28/10/2012, à 16:56
11gjm
Re : TVDownloader: télécharger l... |
Well, this is quite a long time I haven’t been writing a post to my blog. Not that I have nothing to write, but these days, I have learnt a lot a very new topics; it requires some time to really assimilate them, and writing a post is a quite time consumming task as well.
Enough with telling the story of my life, today,... |
I had some problems with nsolve having a difficulty to find a solution for some functions giving some initial guesses. I wanted then to try numpy/scipy solvers.
Here is a program using sympy and works quite well giving this solution: [0.0, -9.05567e-72, 9.42477, 3.14159]
from sympy import *
# Symbols
theta = Symbol('th... |
I want to construct a context menu with a menu item for selecting a date. (The use case is selecting a bunch of items in a treeview and then setting a new due date for all the items.)
Since a menuitem is a Gtk.Bin, I can specify any widget in place of a label. However, I can't seem to interact with the widget. If I cli... |
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... |
inconnu
Re : Petit guide pour aider au choix d'un langage
Encore une fois merci pour toutes ces références (j'ai déjà trois bouquins de 300 pages à m'infuser ). Bon c'est quand même passionnant, dès fois un peu complexe, mais je suis globalement assez surpris de la qualité. Pour tout dire, je ne pensais pas qu'il exist... |
Web2py supports multiple database connections since Fall 2007.
It also supports distributed transactions (for postgresql, mysql and firebird)
Assuming you have two (or more) connections let's say:
db1=DAL('postgres://...')
db2=DAL('firebird://...')
in your models or controllers, you can commit them both explicitly wit... |
ValentinWFP
[résolu] apt-get et lien symbolique
Voilà mon problème: à chaque fois que j'utilise apt-get pour installer ou supprimer un programme, j'ai (et ce depuis quelque jours seulement) ces lignes qui s'affichent a la fin:
/sbin/ldconfig.real: /usr/lib/libgtk-1.2.so.0 n'est pas un lien symbolique
/sbin/ldconfig.rea... |
Historical data is now stored in Redis. The plan is to keep the last 48 hours in Redis and then move it to some sort of aggregated data files, to complement the daily full log files.
Lots of features in NVD3 which I haven’t explored yet. Out of the box, it supports hovering over a datapoint with a call-out to display t... |
How to make Bang open a Window
Hey,
So I want to make a bang object open a window (which will have some text about the project, help info, blah blah…) Sounds simple, but eludes me.
Check out the thispatcher object. You can send messages there to open/close/resize… windows
Did that, and only figured out how to CLOSE a p... |
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 use cv.CaptureFromCAM in a Django app, but my script block a this command.
Without Django, it works and I can see my webcam turns on.
Here's my script :
import cv, Image
def takePhoto():
"""Return a PIL img"""
print "Taking photo"
cv_img = cv.QueryFrame( cv.CaptureFromCAM(0) )
pil_img ... |
This is my config file:
[loggers]
keys=root
[handlers]
keys=TimedRotatingFileHandler
[formatters]
keys=simpleFormatter
[logger_root]
level=DEBUG
handlers=TimedRotatingFileHandler
[handler_TimedRotatingFileHandler]
class=handlers.TimedRotatingFileHandler
level=DEBUG
formatter=simpleFormatter
args=('driver.log', 'midnigh... |
I'm Nicola, a new user of Python without a real background in computer programming. Therefore, I'd really need some help with a problem I have. I wrote a code to scrape data from this webpage:
Basically, the goal of my code is to scrape the data from all the tables in the page and write them in a txt file. Here I paste... |
Update: September 3, 2012
You certainly have already used render_to_response to render your templates, it's a very convenient shortcut:
from django.shortcuts import render_to_response def myview(request): ... return render_to_response('template.html', {'foo': ['one', 'two']})
At least until you need to use context pro... |
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... |
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... |
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 use revision control (Subversion, to be exact) to keep track of the edits to my LaTeX documents. Is there a LaTeX package that interfaces with revision control? Specifically, it would be nice to see the revision number and time and date inside the document. (Obviously, I'd turn this off in the final version.) Also, i... |
Hello Talal,
Sure, no big deal. As I described before, the basic HTTP communication framework is already in place. You can just make a copy of default.py from the "Be My Lips" application, and add the following code.
# top of the default.py
import messaging
# scroll to the bottom of the default.py file and replace code... |
This article continues a review of advanced object-orientedprogramming concepts. In this installment I examine multipledispatch, which is also called multimethods. Most objectoriented languages--including Python, Perl, Ruby, C++, and Java--areintellectually descended from Smalltalk's idea of message passing, albeitwith... |
brital
[Résolu]Problème Python3, Tkinter et les canvas.
Bonjour,
J'ai recopié l'exemple du livre de G. Swinnen "Apprendre à programmer avec Python3"(chapitre 9 page 85): tracé de lignes dans un canevas.
Le problème, c'est quand j'appuie sur le bouton "changer la couleur", la couleur de la future ligne ne change pas. Et... |
I have a dataframe of historical stock trades. The frame has columns like ['ticker', 'date', 'cusip', 'profit', 'security_type']. Initially:
trades['cusip'] = np.nantrades['security_type'] = np.nan
I have historical config files that I can load into frames that have columns like ['ticker', 'cusip', 'date', 'name', 'sec... |
toma222
[HOW TO] adesklets : installation sous Ubuntu Dapper et Edgy
Il existe désormais un article sur le wiki concernant Adesklets donc je vous conseille de vous y fier, ce tutoriel n'étant plus mis à jour.
Je poste ce sujet en complément du sujet sur l'installation de adesklets sous Breezy.
Je ne reviendrais pas sur... |
I didn't find a way to set this, even via the right-click menu. Anyone could advise some? Thanks. :)
I didn't see an operator for this either, so you will have to write your own:
import bpy
class ParticleSmoothBrushSelect(bpy.types.Operator):
"""Select the smooth brush"""
bl_idname = "particle.smooth_select"
... |
I am trying to convert a python class into Java byte code with Jython (on mac osx lion)
./jython -m compileall /Users/owengerig/Downloads/Code\ Downloads/cryptPYTHON.py
but get this error, which gives no indication of whats wrong
Listing /Users/owengerig/Downloads/Code Downloads/cryptPYTHON.py ... Can't list /Users/owe... |
My problem is somewhat similar to this
Intersect multiple lists in a dictonary using python
I have a dictionary something like
a= {'t1':[{4,5},{6,7,8},{1}],
't2':[{4,5,6},{7,8},{1,2}],
't3':[{4,5,6,7},{8},{1,2}],
't4':[{4},{5,6,7},{1,2,8}]}
and i want something like
b= {'t1': [set([6, 7, 8])],
't1,t2'... |
Hello I am trying to use python's pywebsocket HTML5 server, where i use the given example file which echos back whatever is received.
def web_socket_transfer_data(request):
count = 0
while (count < 1):
line = request.ws_stream.receive_message()
print line
request.ws_stream.send_message(line)
It wor... |
There are five boxes in a row. There is robot in any one of these five boxes. Every morning I can open and check a box (one only). In the night, the robot moves to an adjacent box. It is compulsory that he moves. I need a method to ensure that I can catch the robot within ten days. How to do so?
I think 6 tries are eno... |
Provided by Richard@AWS
This example shows how to use Hadoop Streaming to count the number of times that words occur within a text collection. Hadoop streaming allows one to execute MapReduce programs written in languages such as Python, Ruby and PHP.
Source Location on Amazon S3: s3://elasticmapreduce/samples/wordcoun... |
Geotagging (also written as GeoTagging) is the process of adding geographical identification metadata to various media such as a geotagged photograph or video, websites, SMS messages, QR Codes[1] or RSS feeds and is a form o consists of latitude and longitude coordinates, though they can also include altitude, bearing,... |
I've got two code samples. The first is to get current clipboard content and print it, the second is using python-keybinder to do some action on a hotkey press. I'm stuck with combining those two together. I want my clipboard content to be printed on a hotkey press (i.e. I do a text selection, press a hotkey and this s... |
I’ve used git flow for most of my software projects â specifically for thosethat have versioned releases. The originalpost describing gitflow is still the best overview of how it works. In short, you have a masterbranch where every commit is a merge commit. Each of these merge commitsrepresents a new release, and is ... |
I think @K. Hu's suggestion of an algorithm based on Kuratowski's theorem must be the easiest to understand and implement. Let's try to write it in pseudocode:
is_planar(G):
If G is the empty graph, return TRUE.
If G is isomorphic to K_(3,3) or K_5, return FALSE.
For each vertex V of G:
Let H be a copy of G w... |
degolarson
RESOLU connexion ok mais ouverture pages web lente ou imopssible
bonjour
j'ai déjà posté ici : http://forum.ubuntu-fr.org/viewtopic.php?id=21092
mais le pb était peut être un peu différent
quand je tape une recherche dans Google ou bien dans ma barre personnelle d'onglets l'ouverture de la page est souvent l... |
I’ve been playing around a bit more with django, and writing simple web services in it. I have to say it’s cute!
Building on my simple authentication middleware I added a second decorator that extract argument out of the URL and passes them to the function as regular arguments:
def extract_arguments(required, optional)... |
Editor's note: If you missed recipes from part one of this two-part series of excerpts from Python Cookbook, 2nd Edition, then you missed how to handle international text with Unicode, and how to select elements from an unsorted sequence. For all 200-plus recipes, check out the latest edition.
Credit: Sébastien Keim, P... |
Kubke Lab:Research/ABR/Notebook/2013/10/29
From OpenWetWare
(→General Entries: feedback from Andy)
(→Feedback from Andy: more feedback)
Line 14: Line 14:
== Feedback from Andy ==
== Feedback from Andy ==
-
* Filter: Higher order is sharper cutoff.
+
* Filter: Higher order is sharper cutoff. A sharp butterworth would be... |
bowmore
Re : Qarte arte.tv browser (ex Qarte+7)
Si je lance
python /usr/bin/qarte
J'obtiens
python /usr/bin/qarte
(qarte:23575): Gtk-WARNING **: Impossible de trouver le moteur de thème dans module_path : « pixmap »
Affiché une quinzaine de fois, puis Qarte-1 démarre bien. Dans le terminal, il y a ça:
15:33:40: INFO ... |
FelixP
[Résolu] Sources de Logiciels ne veut plus démarrer…
Salut ! Je reposte mon problème car il semblerait que mon ancien post soit tombé dans les abîsses…
Lorsque je veux ouvrir la liste des sources de logiciels, j'obtiens une erreur…
Ce problème est apparu, je crois, après ajout du dépot permettant d'installer cam... |
I'm trying to send a POST message with a purely XML payload (I think) using urllib2 in IronPython. However, everytime I send it, it returns Error code 400 (Bad Request).
I'm actually trying to mimick a Boxee remove queue item call for which the actual data packets looks like this (from WireShark):
POST /action/add HTTP... |
As I regularly do; look around for new datasets that I can explore and process with Surfiki, I came across the following:
As the author Tom MacWright mentions on his site:
"I couldnât be happier to write that the project to bring DCâs laws into the digital era and put them in everyoneâs hands made a big breakthro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.