text stringlengths 256 65.5k |
|---|
#1251 Le 05/02/2012, à 19:35
chaoswizard
Re : TVDownloader: télécharger les médias du net !
Voilà, la version 0.5 est arrivée dans le PPA !
Ubuntu ==> Debian ==> Archlinux
Hors ligne
#1252 Le 05/02/2012, à 20:08
ynad
Re : TVDownloader: télécharger les médias du net !
@Greg_lattice
comme f.x0 avec la même ligne de comma... |
Daemon666
Carte son SB live 24 bits external + kubuntu breezy
Salut a tous, depuis heir soir je scrute ce forum a la recherche d'un solution que je n'ais point trouvé
(ou alors elle est passée sous mes yeux mais en relisant plusieurs fois je pense pas )
J'ai une Sound Blaster Live 24-bits External, le mixeur me la dete... |
This series of two articles will show you how to participate in the global Internet. The architects of this greatest advance in communications since the printing press have strived to make such participation possible. The Internet is — by design — a simple network, engineered only to route data from one location to ano... |
I decided to switch from windows 7 to Ubuntu 12.10. I had windows 7 on partition C: and other files (photos, music etc.) on partition D:. During installation I chose C: partition for Linux and checked box to encrypt drive. Now on Ubuntu I can't mount d: partition. It seems that partition doesn't exist. What to do? Did ... |
I have an optimization issue and I'm not sure if I can improve the overall speed of my function.
The function draw_w is my actual implementation that gives me the right update for my vector w. You can see that the code is running for 1000 iterations in 9s.I had a first implementation (draw_w_fw) that was quiet good bec... |
How can I control fan speed? On windows there is wonderful program called speedfan.
Note before starting:
This functionality depends on both your hardware and software. If your hardware doesn't support fan speed controls, or doesn't show them to the OS, it is very likely that you could not use this solution. If it does... |
For some AJAX requests you’ll need an rpc urls returning a serialized objects. In principle its simple just use JSON serialization build in in Django or simplejson module itself. Here are sample view methods:
def entity_list(request, entity_key=None):
user = users.get_current_user().email().lower();
col = model... |
I've written a script using the Django ORM to store 'configuration settings' and interacting with the Google Drive API and another API. The script creates a base project folder and subfolders in Google Drive for a list of records, and posts links back to the source database. I'm a beginner in Python, so I'm not sure if... |
mariodessuti
Problème de redémarrage système
Bonjours,
Lorsque je clic sur REDÉMARRER mon PC s'éteint complètement.
Comment résoudre le soucis?
PC : DELL Latitude E6320 / Distribution : Xubuntu 14.04 LTS (64 bits) / Bureau : Xfce 4 / Navigateur : Firefox 30.0 & Google Chrome 35.0.1916.153 /
Kernel : Linux 3.13.0-30-gen... |
alex2423
Plus d'accès à la TV de SFR via VLC sur le PC
Hello tout le monde,
Je fais partie de ceux qui n'ont pas de TV. J'ai juste un bel écran Dell 24" que j'utilise comme TV. Je regardais la TV avec VLC via le flux SFR.
Depuis 1 mois à peu près, je n'ai plus d'image. J'ai encore le son.
Est ce que vous avez ce meme s... |
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 story talking about the Qt authoring environment: Cameron Laird, Boudewijn Rempt, Thomas, and Paul. Cameron and Boudewi... |
I'm a Python beginner, I installed quickly, I wrote a "quickly tutorial" in terminal and I did all the steps before at:
"However, the application is not complete. There are a few things left for you to do:"
All the next steps aren't finished yet because when I use open dialog and select one of the files saved, the con... |
Audiofeeline
Modifier GRUB avec GRUB CUSTOMIZER
Bonjour à tous,
alors que je surfais paisiblement, je suis tombé sur un article de Tux-Planet qui présente GRUB CUSTOMIZER : http://www.tux-planet.fr/grub-customizer/
Je tenais à vous en faire part car ça faisait un petit moment que je cherchais une telle solution.
Bien à... |
swapof
Re : 13.04 et lourdeur
l'histoire de l'installateur , c'est lourd,de lourd à ce niveau , c'est clair !
j'ai résolu le problème avec "sudo apt-get remove ubiquity-slideshow-ubuntu" une fois démarré sur le livedvd.
pour moi,cela a été radical,et l'installe ne bloquait plus juste avant le tableau de partitionnement... |
Community
aksaini — 2013-11-17T08:54:47-05:00 — #1
I am using this forum from past few months. Now I am enable to add my own signature. So I want to know how many links I can add in my signature? And what is the time period to change them?
What if I want to use new signature every month? Right now I have four links in ... |
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... |
Pusher gem
Installation & Configuration
Add pusher to your Gemfile, and then run bundle install
gem 'pusher'
or install via gem
gem install pusher
After registering at http://pusher.com configure your app with the security credentials.
Global
The most standard way of configuring Pusher is to do it globally on the Pushe... |
#1001 Le 10/02/2014, à 13:13
daniel38100
Re : [Conky] Alternative à weather.com (3)
tu m'as macher le boulot mais au moins c'un fonctionnement que j'ai compris
en faite j're repris toute la fonction Recherche et RemplissageListBox
j'ai juste changer
def OnChercherButton(self, event):
self.listVilles, self.ville... |
This is a flavour of question that has been asked before, but not quite covering the same issues. I've read through these (question, question, question, and question) but the issue is slightly different.
I have a blog post model (pseudocode for speed), which contains title, abstract and body, and associated Images.
cla... |
I came across this error that is apparently pretty common among Linux Systems.
"Too many files Open"
In my code I tried to set the Python open file limit to unlimited and it threw an error saying that I could not exceed the system limit.
import resource
try:
resource.setrlimit(resource.RLIMIT_NOFILE, (500,-1))
exce... |
Help needed with two patterstorage in the same patch
Hello,
I would like a patterstorage to control one part of my patch and another patterstorage to control another part of my patch. The first one can see all the parameters existing in the patch (and I can select the ones I want) So far so good.
But… when I open the c... |
So I'm making a game, and all objects derive from one GameObject class, which looks something like this;
class GameObject(pygame.sprite.DirtySprite):
actions = dict()
def __init__(self):
pygame.sprite.DirtySprite.__init__(self)
self.rect = None
self.state = None
def update(self):
... |
I keep receiving an internal server error - 'BadValueError: Property content is required. It seems to happen when I pass blog_table into the template to render. Here's the code:
main.py:
import os
import webapp2
import jinja2
from google.appengine.ext import db
jinja_env = jinja2.Environment(loader = jinja2.FileSystemL... |
Not sure why on_touch_up is being fired when the button is released. The other two events, on_touch_down and on_touch_move are not fired.
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.button import Button
class MyPaintWidget(Widget):
def on_touch_down(self, touch):
print "on_touc... |
Apart from asking Guido directly, I don't think your going to find any explanation of this.
The syntax has been around from the very beginning. The earliest version of python sources I could find was python 1.0.1. Looking at the changelog in the Grammar file we find references to even earlier versions. In version 2 of ... |
El món de les class based views dóna per molt, la possibilitat de sobreescriure funcions, canviar paràmetres i anar combinant mixins fins a obtenir el que necessitam ens permet reutilitzar molt de codi i de manera elegant.
En aquest darrer post de la sèrie veurem algunes de les situacions més habituals en les que ens p... |
When trying to upgrade my release from 12.10 to 13.04 I get this output in terminal:
axept@aXept-Lifebook:~$ sudo do-release-upgrade
Ser etter ny utgave av Ubuntu
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 144, in <module>
fetcher = get_fetcher(options.frontend, m.new_dist, option... |
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... |
import urllib2,urllib
data = urllib.urlencode({"username" : "usr", "password" : "pass", "lang" : "eng", "usertype" : "cashier", "submit" : "Enter"})
req = urllib2.Request("https://website/index.php", data)
opener = urllib2.build_opener()
response = opener.open(req)
the_page = response.read()
print the_page
OUTPUT:
<sc... |
I've been working through the Udacity Web Enginnering course and have got stuck, on one of the homeworks.
I've created a basic blog that allows me to create posts and displays them on the main page. Furthermore, each time a post is created a permalink is generated and the page displayed. However, while my HTML renders ... |
How can I delete the contents of a local folder in Python?
The current project is for Windows but I would like to see *nix also.
Updated to only delete files and to used the os.path.join() method suggested in the comments. If you want to remove
import os
folder = '/path/to/folder'
for the_file in os.listdir(folder):
... |
Mathieu11
Re : [ VOS SCRIPTS UTILES ] (et eventuelles demandes de scripts...)
Désactivation du touchpad lors d'un branchement de souris
Le crédit va à l'auteur du blog (un Cyril apparement )
Dernière modification par Mathieu11 (Le 17/04/2008, à 17:44)
Vostro 1400
Hors ligne
kuri
Re : [ VOS SCRIPTS UTILES ] (et eventuel... |
I'd like to create a custom scope that searches and returns results from an online source for personal use.
Is this possible? And if so, how?
Yes it is absolutely possible and really easy to create new scopes. The Ubuntu App Developer site has lots of content to get you started writing scopes:
For development in python... |
I have an issue with graphing data within wxPython - this code below works but it's not exactly right: For now I plot random numbers which are multiples of an entry box, this is done every 100ms.
My issue is that the entire history of numbers is shown as a pose is a (say) running window of 25 samples. I initially tried... |
OnionSkin‘s goal is to provide a consistent caching API between the server and the browser. It has ephemeral, IndexedDB, localStorage, Memcached, and Redis drivers (with more on the roadmap).
Nice shieldage and API docs to boot.
At it’s core it’s just a way of transforming HTTP requests into redis commands, but it come... |
Python in the Cloud
A basic introduction to using the Python boto library to interact with AWS services and resources.
This article explores using the boto library to work with resources in the Amazon Web Services (AWS) cloud. For those wondering, the boto name refers to a species of freshwater dolphin found in the Ama... |
I dam trying to do this: http://docs.djangoproject.com/en/dev/topics/db/models/#be-careful-with-related-name
Using this style
This is saved as common/abstract.py
class OtherModel(models.Model):
something = Charfield(max_length=100)
class Meta:
abstract = True
class Base(models.Model):
fk_model... |
I am doing the tutorial in the link http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html
When I run the gtk-builder-convert tutorial.glade tutorial.xml I get the following error
Traceback (most recent call last):
File "/usr/bin/gtk-builder-convert", line 799, in <module>
sys.exit(main(sys.argv))
File ... |
Not many are aware of this feature, but Python's functions (and methods) can have attributes. Behold:
>>> def foo(x):
... pass
...
>>> foo.score = 10
>>> dir(foo)
['__call__', '__class__', '__delattr__', '__dict__', '__doc__', '__get__', '__getattribute__', '__hash__', '__init__', '__module__', '__name__', '__... |
Below are two tables that have a one to many relationship:
contact= db.define_table('contacts',
Field('name'),Field('email')
)
groups = db.define_table('groups',
Field('contact',contacts, readable=False,writable=False),
Field('group')
)
For entering data using two data models, is used SQLFORM.factory... |
Introduction
In this post I will demonstrate how to parse and calculate an arithmetic expression a general-purpose parser. When we're done, we'll be able to handle expressions such as 1 + 2 * -(-3+2)/5.6 + 3, and hopefully you'll have gained the tools to handle much more.
My motivation is to provide a simple and fun le... |
I have a need to have multiple sections of name/value pairs with a header on some pages. Something like:
<div class="row">
<div class="span6">
<div class="row"><div class="span3"><h2>History:</h2></div></div>
<div class="row"><div class="span2">Date added to fleet:</div><div class="span2">{{plane.da... |
I'm using Python 2.6. I'm new at Python programming, so forgive my ignorance. I have multiple directories with multiple packages. My directory structure looks like this:
/disconfig __init__.py /LLE __init__.py /DIS __init__.py /Data __init__.py/common __init__.py /LLE __init__.py
I need to be able to import both of the... |
Python-Powered Templates with Cheetah
by Andrew Glover
01/13/2005
XML transformation via XSL Transformations (XSLT) is quite popular and indeed powerful. Well-constructed XSL can produce HTML, PDF, XML, and just about any other text format imaginable. XSLT, however, requires that the subject data be a well-structured X... |
I know you can't get friends of friends, but can you get mutual friends using some query, in a computationally efficient manner?
Could I even iterate through my friends to see which of them is friends with a target?
You can do it like this:
$facebook = new Facebook(array(
'appId' => FB_ID,
'secret' => FB_APP_SECRE... |
From lemonodor auxiliary.
I’ve been daydreaming about this for a while. I took some time to write out my thoughts. They’re still half-baked.
Blogs and RSS feeds are pretty good. I don’t have to manually go to sites. My reader polls the sites I subscribe to and it pulls the feeds. But the situation could be a lot better... |
This post details an outage I caused this week by making several poor decisions.
Each point contains lessons I have learned over the past 10 years, and in this instance studiously ignored. Things I am typically very careful to avoid doing. My record for not breaking things is actually pretty decent, but when I do break... |
cherrak
Re : A quoi ressemble votre environnement - automne/hiver 2011/2012
Ok merci pour la precision !
Dernière modification par cherrak (Le 07/03/2012, à 03:09)
Major Grubert
Re : A quoi ressemble votre environnement - automne/hiver 2011/2012
Question bête : quel est le paramètre à modifier pour avoir un affichage "... |
I have been hitting my head against the wall for a while with this, so maybe someone out there can help.
I'm using PIL to open a PNG with transparent background and some random black scribbles, and trying to put it on top of another PNG (with no transparency), then save it to a third file.
It comes out all black at the... |
I've got an application that runs Twisted by starting the reactor with reactor.run() in my main thread after starting some other threads, including the CherryPy web server. Here's a program that shuts down cleanly when Ctrl+C is pressed on Linux but not on Windows:
from threading import Thread
from signal import signal... |
In the paper "Fibonacci Series Modulo m" by D.D. Wall (found here), there is a table in the Appendix listing values for the function $k(p)$. This function is defined as the period of the Fibonacci numbers mod p before any repeats occur. For instance, k(7) = 16 since
\begin{align} F(p) \mod 7 = \{0, 1, 1, 2, 3, 5, 1, 6,... |
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 ... |
Stefan Cornelius discovered that libgdiplus incorrectly handled certain image files. If a user or automated system were tricked into opening a crafted image file, an attacker could cause a denial of service or possibly execute arbitrary code with the privileges of the user invoking the program. Updated packages are ava... |
py2port
Py2port is a tool for performing two-port and one-port analysis on linear circuits. It was developed for analyzing PCB Power-Distribution-Systems and lossy-transmission lines but can be used as a more general purpose simulation tool.
Latest Release
Added phase to the forward and reverse gain plots, cleaned up s... |
Accessibility
doubledee — 2014-01-07T19:43:25-05:00 — #1
When a User views a PM, there is a "Star" icon placeholder which can be used to denote if a PM is "Important".
By default, a PM is "Normal" and so a Grey Star is displayed.
However, by clicking on the "placeholder", the User can mark the PM as "Important" and a R... |
I have a collection on objects that I need to assign a random order. I wrote a pretty dumb java style loop to do it, but what is a fancier pythonic way to achieve the same?
from random import shuffle
class pair(object):
def __init__(self, name):
self.name = name
self.order = 0
def __repr__(self)... |
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... |
A singleton object can exist exactly once during a programs execution. A singleton
Needs to be only initialized once – Only one object is ever created
Needs to be accessed (with the same data) by several different functions and objects
Below is the code to create a singleton class.
Java Singleton Class
public final cla... |
I'm trying to install openjdk on an Ubuntu 11.04 VM in a Mac. However, I'm running into 404 errors on the command line which I can't diagnose why.
sudo apt-get install openjdk-6-jre-headless
...
Err http://ph.archive.ubuntu.com/ubuntu/ natty-updates/main openjdk-6-jre-lib all 6b22-1.10.2-0ubuntu1~11.04.1
404 Not Found... |
I just purchased a new phone. I’m convinced that this was not a brilliant time to introduce a great source of distraction, given I’m frantically working towards finishing my thesis and preparing for my defense. But it’s so shiny!
We had a paper at the last SOSP on transaction chains. Our original analysis of chains was... |
I am making a webapp in python using web.py, I have set up the tables and can login the user and everything, but the initializer for sessions doesn't seem to work.
I have the following in my code:
store = web.session.DBStore(db, 'sessions')
session = web.session.Session(app, store, initializer={'logged_in': 0, 'usernam... |
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... |
Coeur Noir
[résolu] Langue du système ...pas d'interface KCmodule...
Hello,
je viens de réinstaller Kubuntu12.04 - seul - sur partition dédiée avec son propre utilisateur dans un /home sur un 2nd DD.
Sur une autre partition il y a Ubuntu12.04 et son autre utilisateur, dans le même /home (/home contient donc 2 utilisate... |
I feel like this is a new issue since I upgraded to ubuntu 12.04.
Now, if I enter the interactive shell and import a standard module like urllib2, I get the following error:
$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more inform... |
One of the saving graces of Memcached is its use of a stable, static address space; that is, client X and client Y can each manipulate datum D as long as they both know its key. But because the space of addresses is static and flat (not hierarchical), it also tends to be huge, and sparse. This can make it difficult to ... |
I couldn't install any software using apt-get command in my VPS and the terminal prints:
root@ubuntu:~# apt-get install python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3 is not available, but is referred to by another package.
This may mean that the package... |
Storing Passwords Securely
Time and time again you hear about a company having all of their users' passwords, or "password hashes", compromised, and often there's a press response including one or more prominent security researchers demonstrating how 1,000 users had the password "batman", and so on. It's surprising how... |
I have a Lenovo ThinkPad e531 laptop. This model has both a touchpad and a trackpoint. I'd like to use the Trackpoint, because I'm used to it from my previous laptop, but I'd also like to disable the touchpad, to prevent accidentally touching it.
Problem is, there are no dedicated trackpoint buttons on e531.
This is a ... |
I am trying to understand how genetic algorithms work. As with everything, I learn by attempting to write something on my own;however, my knowledge is very limited and I am not sure if I am doing this right.
The purpose of this algorithm is to see how long it will take half of a herd to be infected by a disease if half... |
I'm trying to stick an image on top of some simple line plots which are arranged using the subplot() function of pylab. However when I call imshow it appears that the bounds of the subplot are altered and I am unable to change these bounds even using the set_position function.
Basically, I would like the top subplot to... |
A list of 1000 zeroes is created called M. A random number is picked from 1 to 1000. Each time one of these is picked, the zero in the list ( at that index ) is changed to a 1. For instance if the random number is 276 then M[276]=1. What is the average number of random numbers that must be picked to have 200 ones in th... |
python
zlib library supports:
The python zlib module will support these as well.
choosing windowBits
But zlib can decompress all those formats:
to (de-)compress deflate format, use wbits = -zlib.MAX_WBITS
to (de-)compress zlib format, use wbits = zlib.MAX_WBITS
to (de-)compress gzip format, use wbits = zlib.MAX_WBITS |... |
Наивный Байесовский классификатор один из самых простых из алгоритмов классификации. Тем не менее, очень часто он работает не хуже, а то и лучше более сложных алгоритмов. Здесь я хочу поделиться кодом и описанием того, как это все работает.
И так, для примера возьму задачу определения пола по имени. Конечно, чтобы опре... |
rtcwake
The command that you are interested in is rtcwake:
This program is used to enter a system sleep state until specified wakeup time.
testing
To find the correct syntax that works for you try the following:
sudo rtcwake -u -s 60 -m mem
This should suspend the computer for 60 seconds before restoring. The sig... |
In this tutorial, I will be looking at the installation and development of a simple web application using Python's Flask web framework. You will see how in a matter of minutes, you will have a simple but powerful skeleton with which to build your application upon.
Installation
If you refer to my previous article on Tec... |
I'm designing an API with SQLAlchemy (querying MySQL) and I would like to force all my queries to have page_size (LIMIT) and page_number (OFFSET) parameters.
Is there a clean way of doing this with SQLAlchemy? Perhaps building a factory of some sort to create a custom Query object? Or maybe there is a good way to do th... |
I am trying to do some communication between my ruby process and Python process; and I want to use UNIX socket.
Objective: ruby process "fork and exec" the Python process. In ruby process, create a UNIX socket pair, and pass it to Python.
Ruby code (p.rb):
require 'socket'
r_socket, p_socket = Socket.pair(:UNIX, :DGRAM... |
#2826 Le 12/03/2013, à 22:08
k3c
Re : TVDownloader: télécharger les médias du net !
@ mulder29
Tu ne donnes pas de renseignements pour qu'on puisse t'aider
as-tu passé la commande sudo apt-get ...
tu as eu un message d'erreur ?
Hors ligne
#2827 Le 12/03/2013, à 22:57
mulder29
Re : TVDownloader: télécharger les médias d... |
I'm drawing a large number of bouncing shapes similar to an old 1990s screensaver. I'm just doing this to study (but not hopework) For some reason my object clearing (simply blitting a black shape over the prior position) is missing parts of the shapes and leaving fragments behind. I could just black the whole screen b... |
Assuming table db.person has a field password and the user id is stored in session.person_id
def form_factory(*a): return SQLFORM(SQLDB(None).define_table(*a))
def change_password():
if not session.authorized:
redirect(URL(r=request,f='index'))
form=form_factory('myform',
SQLField('old_password',requires=... |
Introdução
web2py[web2py] é um Livre e open-source web framework escrito em Python[python] e programável em Python, para desenvolvimento ágil de aplicações web seguras baseadas em banco de dados. web2py é um framework auto contido, o que significa que ele contém todos os componentes que você precisa para desenvolver co... |
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 ... |
Here's a somewhat dense one-liner that doesn't use NumPy:
>>> from itertools import combinations
>>> a = [10, 7, 3, 6]
>>> closest_pair = min((abs(x-y), (i, j)) for (i,x), (j, y) in combinations(enumerate(a), 2))[1]
>>> closest_pair
(1, 3)
Here's how it works...
combinations is used to create all the pairs:
>>> list(c... |
I'm implementing a callback function in C++, but I'm facing some leak problems.
The implementation of array creation:
jshortArray convertShortArrayToJNI(JNIEnv* env, short* arr, size_t count) {
jshortArray retval = env->NewShortArray(count);
env->SetShortArrayRegion(retval,0,count,arr);
return retval;
}
Here the... |
jegougou
Re : [Info] Installation du driver Libre ATI Radeon
j'ai suivis ton conseil voila le resultat
4294 frames in 5.0 seconds = 858.715 FPS
4254 frames in 5.0 seconds = 850.774 FPS
4190 frames in 5.0 seconds = 837.903 FPS
3269 frames in 5.0 seconds = 653.660 FPS
4400 frames in 5.0 seconds = 879.915 FPS
4398 frames ... |
Chris__
Re : gReemote, télécommande + prog TV pour Freebox HD
Hmmm l'upload du fichier deb a raté... Désolé :-) Cette fois il a réussi
Hors ligne
tocks
Re : gReemote, télécommande + prog TV pour Freebox HD
Pour la barre sa fonctionne très bien.
Moi aussi en regardant, je ne trouve pas vraiment d'endroit pour rajouter c... |
I'm trying to store objects in a std::set. Those objects are boost::shared_ptr<>, coming from the python environment. adding values to the set won't cause any troubles. But when I try to erase a value, even though I'm passing the very same reference, it won't work. Here is an example :
#include <set>
#include <iostream... |
Raze
[Résolu] Conseils partition
Salut !
Je souhaite installer Ubuntu en dual-boot avec Windows 8.1, et malgré mes nombreuses lectures je me pose certaines questions, notamment au niveau du partitionnement du disque ! Je viens donc vous demander quelques conseils.
En effet, à ce que j'ai compris, il est possible de cré... |
I want to display a list of things on my template. So I have a view to generate that list and pass it to template like this:
newlinks = []
try:
links=urllib2.urlopen("<<Some HTML file link>>").readlines()
except (urllib2.HTTPError):
links = ''
pass
for link in links:
newlinks.append(link[0:-1]) ... |
With the inclusion of Gnome 3, starting in Ubuntu 11.10 the gconf mechanism is deprecated and while some apps still honor it, Unity is not one of them.
Gconf was replaced by gsettings, so to do what you want you need to :
Figure out which path and key you need to set, and which value you need to set it to.
This can be ... |
Django's ORM is great for fast development, but it is sometimes all too easy to write inefficient queries in the language. There are a few options to help find rogue queries sucking all that process time. My favorite is of course Django Debug Toolbar. However, sometimes this is not a viable option, such as when writing... |
If you want a row for each unit test, and for the command to either add a row or update an existing row then you need to have a key column. I've written&used this python library for similar problems: http://sheetsync.readthedocs.org/en/latest/
Once you've installed it with:
pip install sheetsync
You could write a gdocs... |
#1 Kopretinka
žeby jejím jménem?
vysledek:=ExtractText(zadani,znak1,znak2);
napriklad:
vysledek:=ExtractText('nejaky text','j','x');
melo by to vratit:
vysledek='aky te'
#1 wrany
Skutečné parametry funkcí a procedur jsou v jazyce C předávány pouze hodnotou, tj. hodnota skutečných parametrů je zkopírována na zásobník (p... |
If you review the sidebar "wxPython Window Layout," you'll see a number of choices available, but we have chosen to use the brute-force mechanism for the Edit Transaction dialog:
# Create some controls
wxStaticText(self, -1, "Date:", wxDLG_PNT(self, 5,5))
self.date = wxTextCtrl(self, ID_DATE, "",
... |
In three of my four Restful Web columns, I've been describing the design of a REST web service for creating and managing web bookmarks. It's now time to get down to some coding. The major part of creating such a service is implementing the method of dispatching: how does an incoming HTTP request get routed to the right... |
An Introduction to Haskell, Part 1: Why Haskell
Pages: 1, 2
Writing this function in a more modern language like Java, C++ or C# isn't as odious, because automatic memory management takes care of the first half of this function. Writing the expression 'filter even [1..10]' in dynamic languages like Perl, Python and Rub... |
The Flask Mega-Tutorial, Part XVI: Debugging, Testing and Profiling
The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.
Here is an index of all the articles in the series that have been published to da... |
Polyline (arcpy)
Summary
A Polyline object is a shape defined by one or more paths, in which a path is a series of connected segments.
Discussion
In many geoprocessing workflows, you may need to run a specific operation using coordinate and geometry information but don't necessarily want to go through the process of cr... |
Those answers are hard to search for, but next time it would be better if you mentioned where you looked for before.
What is a default-parameter
When a function has "standard" values for some parameters. Example:
def add_to_list(list, index=0):
You can call this function by passing just a list, or both a list and an i... |
bidou10
mise à jour de sécurité importante
bonjour à tous,
depuis un petit moment, j'ai une mise à jour de sécurité importante qui ne veut pas se faire, elle apparait à chaque fois décochée.
j'ai essayé cette commande dans le terminal, mais je ne suis pas très fort dans ce domaine et j'aimerai avoir un petit coup de ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.