text
stringlengths
256
65.5k
Applescript and Python are quite different, but can be used together to make very efficient tools without compromising the modularity of Python. This is a quick introduction to the major concepts with some real examples. I will also briefly cover using bash aliases with your code to make it even more effective. Before ...
Meerkat: The XML-RPC Interface by Rael Dornfest 11/14/2000 Editor's note: Meerkat predated the popularity of syndication, feed services, and feed readers. Now that other groups are providing this service, we have removed Meerkat in favor of their better solutions. We maintain these articles for the sense of historical ...
Greetings Pythonists and fans of British humor. Today, we're going to take a look at a great little Python module called PyGNOME. With this piece of software in hand, we can, without fear of being forced to use some other uncomfortable programming language, dive into the big world of GUI (Graphical User Interface) prog...
For example: {datetime.date(2000, 1, 15): [1], datetime.date(2000, 1, 14): [5], datetime.date(2000, 1, 3): [4], datetime.date(2005, 1, 10): [2], datetime.date(2005, 1, 16): [4], datetime.date(2005, 1, 5): [2]} to just: {(2000, 1): [10], (2005,1): [8]} basically omitting the day, and adding the values. I can't se...
How would one color y-axis label and tick labels in red? So for example the "y-label" and values 0 through 40, to be colored in red. import matplotlib.pyplot as plt import numpy as np x = np.arange(10) fig = plt.figure() ax = plt.subplot(111) ax.set_ylabel("y-label") for i in xrange(5): ax.plot(x, i * x, label='$y ...
This is probably a very basic question but I'm not used to Apache and I can't seem to find my way around this. I'm trying to get mod_wsgi to work with Apache so that I could get my Django app up and running. However, there seems to be some problem in getting Apache to work with mod_wsgi After following the mod_wsgi doc...
For some time I've wanted the equivalent of Java's ability to dump the stack trace of all currently running threads in Python as a means for debugging some hung processes. I finally found a solution and wired it up to the services' http console: import sys import traceback from pygments import highlight from pygments.l...
Gaara barre de progression sur notification en root [finalisé] Bonjour, J'essaie de me faire un petit script qui me prévient avec une notification quand mes mises à jours sont effectuées, en utilisant unattended-upgrades. J'ai réussi à le faire fonctionner avec yad, mais c'est pas très joli. Je voudrais donc utiliser n...
gilbert Re : [JEU] challenge bash #6 nesthib a écrit : @samuncle : ben on attend ta solution en python… allez au boulot ! Vivi, on attend ! J'aimerais bien voir comment résoudre ce problème d'encodage de caractères (le script de kanor me retourne une erreur !) +1 Voici ce que j'obtiens : gilbert@ConuxBox:~/challengeUbu...
vvf Re : [résolu] install clé wifi WG111v2 sur modem routeur netgear DG834Gv3 je retrouve qqch de normal pour : $ ndiswrapper -lInstalled ndis drivers:net111v2 driver present, hardware present j'avais oublier de désactiver du network manager... Je l'avais oublié celui-là ... J'ai essayé de resuivre le tuto sans succès....
aeacides Re : Ultimate Smash Friends: un smash bros like en python Kewl! Bon boulot! De mon côté il me reste une semaine et demi de labeur, et après je devrais pouvoir m'y mettre :- ) @+ http://www.q-be.ca Hors ligne tshirtman Re : Ultimate Smash Friends: un smash bros like en python cool . Mon petit frère (qui a dessi...
This tutorial is a fast-paced introduction to the probfit features: Please start this notebook with the ipython --pylab=inline option to get inline plots. # We assume you have executed this cell in all the following examplesimport numpy as npimport matplotlib.pyplot as pltimport iminuitimport probfit In your own code y...
l e . n o x Re : GFrun - Running - Garmin Forerunner 60 - 405CX - 310XT - 610 - 910XT Merci Sorbus pour tes retours, BUG : "UnboundLocalError: local variable 'ID_MA_MONTRE' referenced before assignment" === > FIXED Maintenant INFO : Ce bug va te bloquer quand tu voudras utiliser le plugingarmin avec firefox. Essaye à n...
Le Farfadet Spatial Re : Petit guide pour aider au choix d'un langage Salut à tous ! Sur amazon, j'ai trouvé ce livre "Python - Les Fondamentaux du langage - La Programmation pour les scientifiques. de Matthieu Brucher" Très bon livre, dans la mesure où tu sais déjà programmer et que tu es intéressé par la partie scien...
kryss Re : [HOW TO] adesklets : installation sous Ubuntu Dapper et Edgy ah la galere... etu tu crois que tu peux savoir pourquoi les desklets de gdesklet marchent pas? c est quoi un capteur rss grab? Hors ligne toma222 Re : [HOW TO] adesklets : installation sous Ubuntu Dapper et Edgy Non désolé, j'ai laissé tomber gdes...
Ok, after help from Kyss I was able to finish this out. Here's my test code and result for completion to this problem: My test.c code: #include <stdio.h> int test(unsigned char *test, int size){ int i; for(i=0;i<size;i++){ printf("item %d in test = %d\n",i, test[i]); } } int testout(unsigned char...
Eventlet is a concurrent networking library for Python that allows you to change how you run your code, not how you write it. License: MIT. To install eventlet, simply: pip install eventlet Alternately, you can download the source tarball: This is a low traffic list about using and developing Eventlet. Look through the...
I have a series of points representing animal observations. Many of them overlap, having the exact same coordinates, and this is causing me trouble when I want to run some analytical tools which requite no identical points. I was wondering if there's any tool that can add some "noise" to the coordinates, that's to say,...
Date: 2013-01-27 Things you should know how to do before starting this lab... Goals for this laboratory... The LOGO computer langauge was used to teach computer programming on Apple IIe's in the 1980's. In sharp contrast to the built-in BASIC language, LOGO was based on the drawing computer graphics using a simulated a...
I'm not sure, where to ask, so I try it here. Hello, I would be very interested in pyxfce. Is it still used. It seems, the content of the website is not so new anymore. What could be done with pyxfce? For example: In windows I had a taskbar icon, which pops up a list of alle available desktop icons and have quick acces...
I've defined a simple Xtext grammar which looks like this (simplified): grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl/MyDsl" import "http://www.eclipse.org/emf/2002/Ecore" as ecore System: 'Define System' ( 'Define Components'...
The directory structure: [app] start.py import package1 [package1] __init__.py print('Init package1') import module1 import subpackage1 module1.py print('package1.module1') import package1 # this works OK [subpackage1] ...
Leo 7 Résolu[polices] Chiffres à la place des lettres Salut à tous ! Voici mon pb: Ça me le fait qu'avec gnumeric et pantheon. Quelqu'un peut il m'aider ? mercu d'avance La police c'est ClearlyU Alternate Glyphs. Voici le résultat de la commande locale: [leo@HP-625 ~]$ locale LANG=fr_FR.utf8 LC_CTYPE="fr_FR.utf8" LC_NU...
I am a new user in python and matplotlib so be gentle. I have a plot with changed x and y labels so they correspond to chemical compounds. However as make a 10x10 plot for instance (I think the limit is 8x8) not all of my labels are showing. Of course I want that changed so that all the labels are present in a 8 x 12 p...
D-Bus Interface: Connecting to a Server NB: This scheme will very likely be changed, details about this are in this mailing list message: [https://tango.0pointer.de/pipermail/pulseaudio-discuss/2009-July/004437.html]. At the time of writing, there are no responses so it's not certain yet what the final server discovery...
I'm using Spring MVC. I want to include menu page (named menu.jsp) with a controller (named MenuController) to my main page. If I call http://localhost:8080/myWeb/menu.htm everything is fine. But I try include menu into my main page like this : <c:import url="menu.jsp"></c:import> Or <c:import url="menu.htm"></c:im...
Finally Django has implemented readonly fields in Admin interface. It's a new feature in 1.2 which is in alpha version at this moment, but will be released soon. The feature is really simple and is already documented so I won't explain how it works. But there is one implementation detail not documented that gives much ...
I am having a typical utf-8 encoding issue, but so far I haven't been able to resolve it. class StatsTandE(webapp2.RequestHandler): def get(self): conn = rdbms.connect(instance=_INSTANCE_NAME, database='origami') cursor = conn.cursor() cursor.execute('SELECT ui.displayName, ui.title, ui.costCenter FROM vi...
pilote [résolu] impossible d'acceder au site adobe.com bonjours, voici le problème -> Firefox ne peut établir de connexion avec le serveur à l'adresse www.adobe.com -> Opéra: Vous tentez d'accéder à l'adresse http://www.adobe.com/, actuellement injoignable... etc. a priori c'est le seul site à me faire ça ! Je ne sais ...
Somebody please explain me the Miller Rabin Primality test 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Humanity is still kept intact. It remains within...
anonym_user Re : Besoin de testeurs pour Pap'rass Salut, Excellente idée ce soft ! J'ai juste un petit problème : les doc ne se classe pas dans les chemises que je crée. Après chaque tentative de classement la recherche sur le classeur m'indique qu'il est vide. La recherche par mot clé retrouve le doc mais le document ...
This loop checks if a record is in the sqlite database and builds a list of dictionaries for those records that are missing and then executes a multiple insert statement with the list. This works but it is very slow (at least i think it is slow) as it takes 5 minutes to loop over 3500 queries. I am a complete newbie in...
Well, there is no switch/case statement in Python. For a small list, you want to use if/elif: def do_stuff(x, *args): if x == 'ADD': return do_add(*args) elif x == 'SUB': return do_sub(*args) # … else: raise RuntimeError('Never heard of {}'.format(x)) For a larger list, you wa...
CSS scott1964 — 2013-11-18T10:37:06-05:00 — #1 Greetings ... I am developing a site that uses a wordpress theme ... the customer wants it customized to include two login panels for Attorneys and Reporters at the very top of the screen. I've altered the index file to include the correct markup, but for some reason, the ...
Runge Kutta Implisit dengan python (3) Setelah melakukan iterasi dengan metode Newton, sekarang saatnya menggunakan metode Picard [1]. Metode ini jauh lebih sederhana dibanding metode Newton. Seperti telah dijelaskan sebelumnya, persamaan yang mendasari perhitungan Runge Kutta ada dua, masing-masing adalah persamaan un...
I am using *django_webtest* to test my views and *django_nose_selenium* to test the ajax on my site ( I could not get webtest.sel working + static files were not served since debug=False when running unit tests). I am running the full test suite using ./manage.py test project --with-selenium --with-cherrypyliveserver a...
CSS 810311 — 2013-07-15T07:27:13-04:00 — #1 Hello Good People, Please, take a look at this site http://yogastudio.atspace.com/ Issue: the following images get nudged down in Opera but look ok in Firefox and Chrome <img id="mon" src="images/mon_img.png" alt="" width="113" height="113"/> <img id="tue" src="images/tue_img...
Module Reduced source code Reduced alphabets which lump together several amino-acids into one letter. Reduced (redundant or simplified) alphabets are used to represent protein sequences using an alternative alphabet which lumps together several amino-acids into one letter, based on physico-chemical traits. For example,...
I'm trying to procedurally generate images in python to send to a node.js instance, so I can then deliver those images real-time to a browser through a websocket. My first test iteration was simply opening a jpeg file in my node.js server, encoding it into base64, and sending it to the browser using socket.io (on port ...
Ayu Grub ne se lance pas Bonsoir, J'ai installé windows 7 et Xubuntu 11.10 sur un nouveau pc avec cette configuration:CM: Asus P8H67 B3Processeur: i5 2500kDD: 1TO 7200 RPMRAM: 2x4GOCG: Gigabyte GeForce GTX 560 Mais je boot toujours sur windows et Grub ne se lance pas j'ai essayé de réinstaller grub depuis une session l...
switched to db file scattered reads . Argh! This is not what I wanted. direct path reads For reference, when a server process asks the operating system for multiple blocks at once (for example, using the system call ) and places them into the buffer cache, Oracle records the time using the wait event facility and gives...
I am trying this In [1]: class Parent: ...: def __init__(self): ...: self.a =10 ...: self.b =20 ...: In [3]: class NewParent(Parent): def __init__self(): super(NewParent,self).__init__() self.c =30 ...: When i do this In [4]: c = NewParent() In [5]: c Out[5]: <__m...
The windows version is a self-extracting zip file. You can get the files by: unzip ti83pkeys.exe Archive: ti83pkeys.exe inflating: Ti83keys.txt inflating: TI83____.PFB inflating: TI83____.PFM inflating: TI83____.TTF inflating: README.TXT You can t...
CGI deployment on Apache Here are the simple steps needed to create and run an web.py application. Install web.py and flups Create the application as documented if __name__ == "__main__": web.application(urls, globals()).run() For our example, let it be named app.py, located in /www/app and we need it accessible...
11 Sep 2014 I'm relatively new to the Rails community. I come from the Python/Django world, but I've been enjoying the transition, except for one minor part; Models. When I dig around looking for info on how to structure my code, I keep running into Best Practices that advocate for a skinny controller/fat model pattern...
lekokeliko Tictactux jeu en Python Je tient a vous présenter ma grande réalisation : le Tictactux en python développé depuis la nuit du 24 decembre 2007 morpion like parametrable a souhait quelques précisions : versions antérieures : -1.07.29 beta test -1.07.30 détails des modifs plus bas (post 7) -1.07.31 modification...
#0 Re : -1 » Ubuntu sur Playstation 3 ? » Le 01/03/2007, à 15:23 Doppler Réponses : 150 Hello Contrairement à ce que j'ai lu ici en ce qui concerne la carte graphique de la play, ce n'est pas NVidia qui bloque l'accés au RSX mais bien Sony qui cache son accés via son firmware. L'existence d'un driver n'y changera rien ...
Python: speed vs. memory tradeoff reading files February 15th 2008 I was making a script to process some log file, and I basically wanted to go line by line, and act upon each line if some condition was met. For the task of reading files, I generally use readlines(), so my first try was: f = open(filename,'r') for line...
My question is: What is it that makes those languages suitable? From what I know, they are slower than other languages, and operate at a higher abstraction level, which means they are too far from the hardware. The only reason I could think is because of their advanced string manipulation capabilities, but I believe th...
CoffeeScript Looping, Objects and Builds, Page 2 Looping with Comprehensions in CoffeeScript Another interesting CoffeeScript feature is its particular approach to looping statements. In lieu of the traditional for statement you can use what the CoffeeScript documentation refers to as a comprehension. This syntax is in...
Module buildindex Version: $Revision: 36356 $ string bang_join(S, sequence) Return a string which is the concatenation of the strings in the sequence. string null_join(S, sequence) Return a string which is the concatenation of the strings in the sequence. split_columns(nodes, columns=1) format_nodes(nodes, columns=1) f...
Request for a favour! Could someone help me with this javascript? Hi.. I’m humbly asking your help here :-) I’m programming Max/MSP and M4L for about 6 months and don’t think I can also take on Java at the moment… but there’s this little thing that I seem to need Java scripting for: changing the name of the argument in...
~~@x ~~ ~~@y is true if @x and @y have the same number of elements. This rather elegant obfuscation uses the smart match operator as well as double bitwise negation. ~~@x ~~ ~~@y is true if @x and @y have the same number of elements. This rather elegant obfuscation uses the smart match operator as well as double bitwis...
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...
I'm new to pyGTK, and now I'm trying to create a menubar with a fixed layout, but I only get a background on the items, not on the entire bar. My code: import gtk class App(gtk.Window): def __init__(self): super(App,self).__init__() self.set_size_request(640,480) self.set_position(gtk.WIN_PO...
I'm trying to save a dynamic pdf file generated from a web server using python's module urllib2. I use following code to get data from server and to write that data to a file in order to store the pdf in a local disk.: import urllib2 import cookielib theurl = 'https://myweb.com/?pdf&var1=1' cj = cookielib.CookieJar() o...
#2201 Le 22/02/2013, à 08:17 jpdipsy Re : [Conky] Alternative à weather.com (2) Bonjour, je n'apporterai pas d'aide sur les scripts, mais juste pour dire que chez moi l'intégration avec XplanetFX fonctionne parfaitement. Il y a juste un délai de quelques secondes pendant lequel la météo disparaît juste après sa mise à ...
JavaScript scott_carlton — 2014-01-07T16:08:04-05:00 — #1 I have been trying to get a google maps api query over the 10 query limit all morning with no luck. I have used this code here http://pastebin.com/X0icm1B8. I tried wrapping .each in a setTimeOut function at line 44 as well as trying it with the marker var but n...
Mindiell Re : Topic des lève-tôt… Faisons manger leurs caleçons aux couche-tard! [4] Si c'est Floyd Pepper... Eh mais c'est l'week-end ! Hors ligne PPdM Re : Topic des lève-tôt… Faisons manger leurs caleçons aux couche-tard! [4] Bonjour, Golgoth devait en bricoler un mais il n'a pas dis quand! Hors ligne raspouillas Re...
You can write to /dev/random because it is part of the way to provide extra random bytes to /dev/random, but it is not sufficient, you also have to notify the system that there is additional entropy via an ioctl() call. I needed the same functionality for testing my smartcard setup program, as I did not want to wait fo...
I have the following block of codes. it computes the 'Four color theorem'. I converted it from a java program. is there any way to write the name of the countries in map, instead of their id? from collections import defaultdict colors = ['Red', 'Yellow', 'Green', 'Blue'] mapColors = defaultdict(str) def okToColor(Map ,...
I've got some C code that I want to expose to Python. It has a calling convention like this: int add(int a, int b, int *err) where the return value would be (a+b) or whatever, but if something went wrong, then I would get an error code in *err. I want to wrap this function so that it behaves like this, from the Python...
mulder29 Réponses : 541 Ah, alors, mon souci, j'essai d'avoir l'émission TPMP du 05/03 avec ce lien python D8_02.py http://www.d8.tv/d8-divertissement/pid5 … vid=828406 que te tapes dans mon terminal... et en fait, je récupère la vidéo qui se trouve à l'accueil. Il y a un bug quelque part ? mulder29 Réponses : 541 Re-....
Le Farfadet Spatial Re : Petit guide pour aider au choix d'un langage Salut à tous ! Sur amazon, j'ai trouvé ce livre "Python - Les Fondamentaux du langage - La Programmation pour les scientifiques. de Matthieu Brucher" Très bon livre, dans la mesure où tu sais déjà programmer et que tu es intéressé par la partie scien...
Is there a way to do what classmethod does in Python in C#? That is, a static function that would get a Type object as an (implicit) parameter according to whichever subclass it's used from. An example of what I want, approximately, is class Base: @classmethod def get(cls, id): print "Would instantiate ...
I installed the Python bindings of VTK 5.1 correctly. In Python, import vtk worked, but import itk did not work yet. So I wanted to install the Python bindings of ITK 4.2. I needed to install SWIG 2.0.7, and from the error message which arose during ./configure in the SWIG source directory, I understood I needed to ins...
I'm plotting several images at once, sharing axes, because I use it for exploratory purposes. Each image is the same satellite image at different dates. I'm experimenting a slow response from matplotlib when zooming and panning, and I would like to ask for any tips that could speed up the process. What I am doing now i...
Extending GlusterFS with Python Although this behavior makes sense for many applications, the performance impact for many PHP applications can be severe. Without negative-lookup caching, you're likely to search half of those directories in vain before finding the one that contains each include file, every time the incl...
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 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...
I am using vim to write latex. I would like to highlight the latex comments using a different file type. (For example I would like to highlight the latex comments using c++ formatting). Is there a way to do this? (Edit) Example: \section{Introduction} % This is a comment. I would like to higlight comments using the %...
I have some piece of code in which I want to use a decorator on a classmethod as follows: import functools def mydeco(function): @classmethod def wrapper(cls): return function(cls) return functools.update_wrapper(wrapper, function) # return wrapper class BaseClass(object): @classmethod ...
I write a function which sets system time in linux. I write next code: import time import subprocess def SetSystemTime(val): try: val = float(val) except ValueError: return command = 'date -s"' + time.ctime(val) + '"' subprocess.call(command) On calling of that i get: File "crc....
I have one question regarding this hangman program of mine.When I guess the a letter('o') right of a word("good") which has duplicates,it's being unveiled only for the first index as list.index(value) returns only one index even if there are duplicates of that value.What do I need to change or add if I want to unveil a...
Is there a nice way to receive all messages available messages on a zmq socket? Particularly when using a Poller. Or is the only solution to keep calling a non blocking recv() and until theres nothing left? Edit : I think I might have answered my own questions. Using socket.poll() is the cleanest I can see. import zmq ...
no_spleen Re : Petit guide pour aider au choix d'un langage Le fichier de maillage est trops gros à poster ! Hors ligne tshirtman Re : Petit guide pour aider au choix d'un langage un code permettant de générer un fichier de ce type alors? je vais regarder ton code voir si je voit quelque chose de choquant pour les perf...
ADcomp Re : ADesk Bar : Barre de lancement rapide [python/gtk/cairo] Yep .. @ all : lien pour les sources rectifié ( ) @ frafa : -add n'importe quoi, puis fermer fenetre sans ajout, ajoute quand meme une entrée vide. tu devrait gerer ca... +1 -et si pas trop galere a coder avoir acces aux reglages d'un plug-in via clic...
I'm currently having an issue with the iOS simulator. I'm currently developing a Xamarin project with a bound Objective-C library (ECSlidingViewController). I built the library for the armv7, armv7s, simulator and arm64 architectures, combined them into a fat binary and bound it using a Xamarin binding project. Now the...
Almost a year ago we released a version of Patrick McKenzie’s A/Bingo, built for Khan Academy and others in need of an App Engine-optimized split testing tool. It’s been in constant production use at Khan since then. We’ve made mistakes, learned lessons, and spent plenty of time scratching our heads pondering results. ...
I am generating new raster files from vector layers on a project. I would like to save them in the same directory as the project or layer files. How do I find this path using PyQGIS? For python console: QgsProject.instance().readPath("./") # also try "../" Or with dir(QgsProject.instance()) you find something like fi...
How Khan Academy is using Machine Learning to Assess Student Mastery The Khan Academy is well known for its extensive library of over 2600 video lessons. It should also be known for its rapidly-growing set of now 225 exercises — outnumbering stitches on a baseball — with close to 2 million problems done each day. To de...
I'm making a BBS by using google apps. It works, but it's under 5000 words by each thread. I unioned 10 db.StringProperty() of db.model. I planned to union 1000 StringProperty(), but it doesn't work for more than 10.Google apps engine ignores additional StringProperty()'s. The error said: 'TypeError: coercing to Unicod...
I wound up using moin, which I installed in /opt/moin... I host it under apache2 using WSGI... I could not make moin perform automatic NTLM authentication unless I hosted it under Windows... I hosted it under linux, but it still authenticates against our local LDAP server in the NT domain. This is /opt/moin/config/wiki...
Suppose I wanted to automatically select the size for square symbols in a scatter plot to make the borders align (a question like that has been asked). In my answer to that question, I suggested that the distance between two data points measured in pixel could be used to set the size of the symbols in a scatter plot. T...
mamudu92 Crash à répétition Bonjour, J'ai récemment téléchargé Ubuntu 13.04, et je ne sais pas encore m'en servir. Je croyais lors de l'installation avoir choisi le français, mais à priori cela n'a pas entièrement fonctionné, donc je ne comprends pas tout. Lorsque je clique sur Language support pour changer la langue, ...
Send email with attachment,that attachement will be uploaded in the same FORM where from the mail gets triggered. BACKGROUND: i.e. I have an FORM that will take name, address etc details from a FROM. After filling the details user would be allowed to a browse and upload an attachment. Onclicking the Upload button the f...
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...
gtk Functions — miscellaneous functions gtk.AboutDialog Functions def gtk.about_dialog_set_email_hook(func, data) def gtk.about_dialog_set_url_hook(func, data) gtk.AccelGroup Functions def gtk.accelerator_valid(keyval, modifiers) def gtk.accelerator_parse(accelerator) def gtk.accelerator_name(accelerator_k...
mol1 Re : Hortus belli projet de tower defense (finissons le jeu d'helly) Un lien vers une esquisse de musique : http://ubuntuone.com/7RqEp9oXkT6K338qog5WlX Hors ligne Ypnose Re : Hortus belli projet de tower defense (finissons le jeu d'helly) La zike est pas mal. J'aiderai bien mais je suis pas bon codeur C, donc si v...
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...
Class: IO Inherits: IO Includes: , Direct Known Subclasses Defined Under Namespace Modules: , Constant Summary SEEK_SET SEEK_CUR SEEK_END Class Method Summary (collapse) + alloc + binread Opens the file, optionally seeks to the given offset, then returns length bytes (defaulting to the rest of the file). + copy_stream ...
Ayu Grub ne se lance pas Bonsoir, J'ai installé windows 7 et Xubuntu 11.10 sur un nouveau pc avec cette configuration:CM: Asus P8H67 B3Processeur: i5 2500kDD: 1TO 7200 RPMRAM: 2x4GOCG: Gigabyte GeForce GTX 560 Mais je boot toujours sur windows et Grub ne se lance pas j'ai essayé de réinstaller grub depuis une session l...
That's intentional. The += operator preserves the type of the array. In other words, an array of integers remains an array of integers. This enables NumPy to perform the += operation using existing array storage. On the other hand, a=a+b creates a brand new array for the sum, and rebinds a to point to this new array; t...
I have the following toy program which cyclic shifts a vector and adds it to itself (under a mod). It does that for different shifts and high number of iterations (compared to the size of the vector). Program works, but its dog slow. I am still learning Haskell, so my question is: am I doing something wrong? import Dat...
While Gearman has a nice Python implementation (python-gearman) of the client and worker, I chose to use the libgearman bindings (python-libgearman) directly since they are already packaged for Debian (as python-gearman.libgearman). Unfortunately, these bindings are not very well documented, so here's the sample applic...
It’s all about the entropy [ For more information on the Eideticker software I'm referring to, see this entry ] So recently I’ve been exploring new and different methods of measuring things that we care about on FirefoxOS — like startup time or amount of checkerboarding. With Android, where we have a mostly clean...
I hope this captcha is not used anywhere. Following is a dummy way to decode it. Basically what you need are the patterns from 0 to 9 as present in these captchas. From your examples, I have only the patterns for 0 3 4 5 7 8. Since everything is fixed on them, you know where to split each character. You also know each ...
I'm testing subprocesses pipelines with python. I'm aware that I can do what the programs below do in python directly, but that's not the point. I just want to test the pipeline so I know how to use it. My system is Linux Ubuntu 9.04 with default python 2.6. I started with this documentation example. from subprocess im...
sleep returns None, which gets printed. You could print each char without a newline and then sleep: import sys from time import sleep for c in "Hello": print c, # note the comma sleep(0.1) print # the final newline but to avoid spaces inbetween, you'll have to do something like this: impor...
My application has a main boxsizer with 3 rows. The first 2 rows are text controls and the 3 row is a selection of buttons to perform different actions When my application starts it has roughly 1/3 of the overall widow space below the button as blank space. When I resize the window to reduce that space, it actually com...