Luc Stepniewski's Blog
Luc Stepniewski's Blog
Skip to content
  • About
  • Author
  • Privacy Policy

python

There are 19 posts filed in python (this is page 1 of 2).

Post navigation

Combining jQuery Mobile and Flask-WTF may give you headaches, or why dashes suck in Python variable names

I thought developing using Flask on the backend and using jQuery on the front-end (navigator) would be quite easy. In fact it is, but there are some small traps that can take you time to resolve. A regular case would be, when developing a form, to use Flask with WTForms (Flask-WTF to the rescue!). No […]

in flask, framework, javascript, python, web | 202 Words

New version of chess PGN to TeX to PDF converter

OK, I’m shameful. After fighting with Scid’s exporter, and then correcting bugs in pgn2ltx’s source, I finally decided to take a look at that PGN file format. And guess what? It’s already composed of FEN notation. And guess what? that super-über cool new skaknew module for LaTeX gets its input as FEN!!

in chess, kid, latex, python | 353 Words

How to make the simplest unittests in Python

Testing your code is nearly a requirement (even more so in Ruby). Unittests are now the most vital elements for evaluating the quality/viability of a project. I was a little jealous of Ruby where you don’t have so much to write to implement unittests. Here is a simple example: require “mymodule” require “test/unit” class TestMyModule […]

in python, ruby | 376 Words

Default behaviour in implementation of STOMP protocol in RabbitMQ with python

Why STOMP? Why STOMP, and not directly AMQP, as I’m using RabbitMQ. No real reason, but the fact that there are less dependencies on a STOMP client, as it’s just a socket with text sent. Implementations There are several implementations of the STOMP protocol for Python. The module I chose is python-stomp (version 0.2.9), from […]

in network, python, rabbitmq | 465 Words

Django: How to find the url/path you’re into, in a template loaded by a generic view

In a Django project, I have a template that is used by two urls, which is quite common (generic views, using ‘create_object’ and ‘update_object’). The problem is that I had to add a supplementary menu just when the template is loaded from the ‘update’ generic view, and not from the ‘create’ generic view. Making the […]

in django, python, software | 483 Words

Python snippet to get Mediawiki/Wikipedia Recent Changes externally

Mediawiki allows one to send Recent Changes (RC) to a UDP port. The ip address is defined by the variable wgRC2UDPAddress, and the port by the variable wgRC2UDPPort. It’s a really good idea that it’s a UDP transfer, since there is no need for any ACK, so Mediawiki doesn’t block if there is nothing listening […]

in mediawiki, python | 176 Words

How to dial a number using Asterisk and Python

I didn’t find any example in Python on how to Dial a number from an Asterisk server and link it to another channel. So here’s a quick code to do it. You just need to have a manager defined in your /etc/asterisk/manager.conf defined. import socket   HOST=”192.168.1.116″ PORT=5038   p = “””Action: login Events: off […]

in asterisk, python, voip | 176 Words

TurboGears and Pylons will merge! (and CleverHarold RIP)

Mark Ramm, one of TurboGears‘s core developers announced on TurboGears’s mailing list that they will merge with Pylons! To be more precise, the API of TurboGears will be implemented on top of Pylons. It seems they already made some test/proof of concept that are, as they say “a huge success”. That’s really good news for […]

in framework, python, web | 124 Words

Videos of every presentation of Journée Python 2007 are now online!

As the title says it, each presentation was filmed, and has just been uploaded for everyone’s pleasure! Here is the two-part video presentation of Twisted, done by Michael SCHERER. [google 8739163173039026567] [google 1837647658089311574] Oh, by the way, please take a minute to vote for your favourite Internet Engine!

in language, python, twisted | 46 Words

Journées Python Francophone 2007 Conference at La Villette, France

I went today to the Journée Python 2007 Conference in France. I managed to see half of the Twisted intro, some lightning talks, and most of the afternoon presentations (thanks to Ido’s mid-day nap). Most of the talks were introductory type, but they were finely presented (alas most of the audience already knew python). I […]

in python | 74 Words

Post navigation

Bitcoin Donations

Recent Posts

  • Blocking NAPTR DNS queries from Asterisk pjsip
  • Three different ways to connect two Go services with gRPC
  • Unexpected change in Neovim configuration storage
  • Bye bye vim powerline, hello airline
  • Combining jQuery Mobile and Flask-WTF may give you headaches, or why dashes suck in Python variable names

Recent Comments

  • Portable Franz on HOWTO Installation of OpenWRT on a WGT634U usb router
  • Security Company Manchester on Security patching WordPress themes against Cross-Script Attacks (XSS)
  • Murat on Security patching WordPress themes against Cross-Script Attacks (XSS)
  • güvenlik kamerası on Security patching WordPress themes against Cross-Script Attacks (XSS)
  • Pim Bollen on How to recover from Cyrus when you have some DB errors

Blogroll

  • Aïkido Club Asnières
  • All Japanese all the time
  • Cours de Japonais
  • Gradstein Family Tree
  • OxyRadio, Webradio Libre
  • Twisted Matrix

Subscribe in a reader

Chess Puzzle of the Day

Tag Cloud

Advanced Message Queuing Protocol asterisk automatic autoprovisioning chess children click to dial code consumers deployment Development Tools dhcp direct example http server Internet protocols kid latex learning mate mate in one mediawiki one originate pdf pgn programming protocol provisioning puppet python python projects round-robin ruby script sip sip phones stomp stompy Technicolor tests tftp Thomson unittests voip

Archives

  • December 2024
  • September 2018
  • January 2016
  • February 2014
  • February 2013
  • December 2012
  • December 2011
  • December 2010
  • September 2010
  • August 2010
  • January 2010
  • December 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • September 2008
  • April 2008
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • September 2006
  • June 2005
  • February 2004
  • December 2003
  • November 2003
Independent Publisher empowered by WordPress
Mastodon