<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Programming on dennogumi.org</title>
    <link>https://www.dennogumi.org/tags/programming/</link>
    <description>Recent content in Programming on dennogumi.org</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>&amp;copy; 2026 Einar under a CC-BY-SA 4.0 license. Some images are AI-generated. Header design by [Melissa Adkins](https://melissaadkins.com) with [assets from Freepik](https://freepik.com).</copyright>
    <lastBuildDate>Sat, 06 Mar 2010 08:04:48 +0000</lastBuildDate><atom:link href="https://www.dennogumi.org/tags/programming/feed/atom.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>PyKDE4: new style signals and slots</title>
      <link>https://www.dennogumi.org/2010/03/pykde4-new-style-signals-and-slots/</link>
      <pubDate>Sat, 06 Mar 2010 08:04:48 +0000</pubDate>
      
      <guid>https://www.dennogumi.org/2010/03/pykde4-new-style-signals-and-slots/</guid>
      <description>&lt;p&gt;Those who use PyQt and PyKDE4 are certainly familiar with the syntax used to connect signals and slots:&lt;/p&gt;&#xA;&lt;p&gt;[python]&#xA;from PyQt4 import QtCore&#xA;from PyQt4 import QtGui&#xA;from PyKDE4 import kdeui&lt;/p&gt;&#xA;&lt;p&gt;class MyGUI(QtGui.QWidget):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;def __init__(self, parent=None):&#xA;    super(MyGUI, self).__init__(parent)&#xA;    self.pushbutton = kdeui.KPushButton()&#xA;    self.pushbutton.setText(&amp;quot;Push me!&amp;quot;)&#xA;    &#xA;    QObject.connect(self.pushbutton, QtCore.SIGNAL(&amp;quot;clicked()&amp;quot;), &#xA;                           self.button_pushed)&#xA;&#xA;def button_pushed(self):&#xA;    print &amp;quot;Button clicked&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;[/python]&lt;/p&gt;&#xA;&lt;p&gt;The main advantage of this syntax is that it&amp;rsquo;s very close to the C++ equivalent, and so you can translate easily from C++ to Python. Unfortunately the advantages of this syntax end here. The disadvantages, at least from a Python coding perspective, outweigh the advantages:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>DataMatrix page up</title>
      <link>https://www.dennogumi.org/2008/10/datamatrix-page-up/</link>
      <pubDate>Sun, 12 Oct 2008 20:14:14 +0000</pubDate>
      
      <guid>https://www.dennogumi.org/2008/10/datamatrix-page-up/</guid>
      <description>&lt;p&gt;Ok, ok&amp;hellip; my definition of &amp;ldquo;tomorrow&amp;rdquo; is not like what most people use, apparently. Although I took quite a while, now &lt;a href=&#34;https://www.dennogumi.org/projects-2/datamatrix&#34; &gt;there is a static page on DataMatrix&lt;/a&gt;. There you will find a summary of wht I wrote in my other blog posts regarding this module. Of course, it will be kept up-to-date should I release a new version.&lt;/p&gt;&#xA;&lt;p&gt;Aside that, I put a contact form on this blog. It may be useful for reports that aren&amp;rsquo;t directly related to the posts.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>DataMatrix 0.5</title>
      <link>https://www.dennogumi.org/2008/09/datamatrix-0.5/</link>
      <pubDate>Fri, 19 Sep 2008 19:54:58 +0000</pubDate>
      
      <guid>https://www.dennogumi.org/2008/09/datamatrix-0.5/</guid>
      <description>&lt;p&gt;At last, since it&amp;rsquo;s been like ages, I decided to put out a new version of DataMatrix. For those who haven&amp;rsquo;t seen my previous post, DataMatrix is a Pythonic implementation of &lt;a href=&#34;http://stat.ethz.ch/R-manual/R-patched/library/base/html/data.frame.html&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;R&amp;rsquo;s data.frame&lt;/a&gt;. It enables you to manipulate a text file by columns or rows, to your liking, using a dictionary-like syntax.&lt;/p&gt;&#xA;&lt;p&gt;In this new version there have been a few improvements and correction to a couple bugs (for example saveMatrix did not really save) and the start (only a stub at the moment) of an append function to add more columns (I&amp;rsquo;ll also think about a function to add rows).&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>data.frames in Python - DataMatrix</title>
      <link>https://www.dennogumi.org/2008/06/data.frames-in-python-datamatrix/</link>
      <pubDate>Sun, 29 Jun 2008 08:13:55 +0000</pubDate>
      
      <guid>https://www.dennogumi.org/2008/06/data.frames-in-python-datamatrix/</guid>
      <description>&lt;p&gt;For a long time I have tried to handle text files in Python in the same way that R&amp;rsquo;s &lt;a href=&#34;http://pbil.univ-lyon1.fr/library/base/html/data.frame.html&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;data.frame&lt;/a&gt; does - that is, direct access to columns and rows of a loaded text file. As I don&amp;rsquo;t like R at all, I struggled to find a Pythonic equivalent, and since I found none, I decided to eat my own food and write an implementation, which is what you&amp;rsquo;ll find below.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>QSql vs DB-API?</title>
      <link>https://www.dennogumi.org/2007/12/qsql-vs-db-api/</link>
      <pubDate>Fri, 28 Dec 2007 12:58:40 +0000</pubDate>
      
      <guid>https://www.dennogumi.org/2007/12/qsql-vs-db-api/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve recently begun trying to create GUIs for my Python applications with &lt;a href=&#34;http://www.riverbankcomputing.co.uk/pyqt/index.php&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;PyQt&lt;/a&gt;, and I can say I&amp;rsquo;m absolutely loving the toolkit, relatively easy to use and featureful. As I&amp;rsquo;m trying to create a GUI for some module I wrote that deals with databases (using MySQLdb), I also learnt that Qt has a series of classes for dealing with databases, mainly QSql.&lt;/p&gt;&#xA;&lt;p&gt;My question, directed to whoever has experience with QSql and the Python DB-API, is: what are the advantages of one approach to the other? I&amp;rsquo;m leaning towards DB-API because like that I can create modules which work also in command line applications.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
