Kiwi PyCon 2010 in beautiful Waitangi New Zealand

The last Kiwi Python Convention (PyCon) was brilliant and the 2010 convention will be in beautiful Waitangi, Bay of Islands, New Zealand. Here is the release from the organising committee:

Hi all,

We’ve got another Kiwi PyCon lined up, and we’re all expecting it to be as
good as last year’s event. This year it will be staged in lovely Paihia/Waitangi in the sunny Bay of Islands. It is on the weekend 20-21
November.

Find a link to the “Call for Participation” below. We are encouraging everybody to come and to participate. Do not feel intimidated, this is a community conference, and we are hosting talks and sessions for all knowledge levels. Be it a tiny demo or show and tell (by doing a 5 minute Lightning Talk), or up to running an hour long tutorial. Or are you interested in the dynamic evolution of a session? Then the un-conference like Open Spaces will give you just the platform for interaction …

Also … make sure to spread the word. Tell everybody else about it. Blog about it, post it on Twitter/Identi.ca, etc.

http://nz.pycon.org/2010/talks-cfp/call-for-papers/

Code and enjoy,

The Kiwi PyCon Committee
By Tim Knapp, Plone Developer at Emerge Technology

Ubuntuzilla thunderbird 3.1 problem fixed

Ubuntuzilla is a great way of having your cake and eating it. You can have the robustness of the Ubuntu repository system without foregoing the very best of Mozilla Firefox or Thunderbird (see Getting latest Firefox and Thunderbird on Ubuntu). But I did experience a big problem upgrading to Thunderbird 3.1. Clicking on the Thunderbird icon resulted in … nothing. The reason was that the Lightning extension was now incompatible. Solution?

  1. ubuntuzilla.py -a remove -p thunderbird
  2. sudo apt-get update
  3. ubuntuzilla.py -a install -p thunderbird
  4. Download addon for lightning that is compatible with 3.1 e.g. Lightning 1.0b2
  5. thunderbird -safe-mode
  6. Install new add-on – probably you downloaded it to your desktop
  7. Restart Thunderbird

Xdebug restored on Lucid for Netbeans

[Update for Ubuntu 14.10 and Netbeans 7.4

php.ini was in /etc/php5/mods-available/

Needed the following:

zend_extension = "/usr/lib/php5/20121212+lfs/xdebug.so"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

]

When I upgraded from Netbeans 6.7 to 6.8 I lost the ability to debug line by line. Later, I upgraded to 6.9 in the hope that this would fix it. It didn’t but the Netbeans error message for xdebug gave me a better steer towards useful resources. My system is Ubuntu Lucid (10.04) so I looked at http://wiki.netbeans.org/HowToConfigureXDebug#How_to_on_Linux. The answer for me was to edit a line in an xdebug file (I had previously added recommended lines * to php.ini to no avail – at least, not in isolation).

cd /etc/php5/conf.d

sudo gedit xdebug.ini

The first line of xdebug.ini was _almost_ correct 😉

Because I was using PHP 5.3 the key was zend_extension rather than zend_extension_ts. That part was right. But the path was not quite correct. Instead of:


zend_extension=/usr/lib/php5/2006 ... +lfs/xdebug.so

it needed to be (in my case):

zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so

[Update – now /usr/lib/php5/20121212+lfs/xdebug.so]

Make sure the path actually exists and hasn’t become orphaned during an upgrade.

I then stopped and started apache and restarted Netbeans to be safe.

sudo /etc/init.d/apache2 stop

sudo /etc/init.d/apache2 start

—–

* Here are the lines you will probably already have added:

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

Restored Audigy Sound on Lucid

All sound suddenly stopped about 6 weeks after I upgraded to Lucid. Everything seemed right but still no sound. On the volume control, I could even see the sound bar pulsing in sync with the music:

Volume Control

Volume Control

Another computer in the house has identical hardware and also runs Lucid but I couldn’t find any differences. Even swapped the sound cards as a test but still no luck. Here is what worked in my case:

1) sudo apt-get install gnome-alsamixer

2) Now open GNOME ALSA Mixer from Applications>Sound & Video>GNOME ALSA Mixer

3) Untick IEC958

Unticking IEC958

Unticking IEC958

4) Enjoy music again!

UPDATE: To get the microphone working e.g. for Skype, need to enable Analog Source.

ACTA and FTA unrelated – Yeah Right

The ACTA (Anti-Counterfeiting Trade Agreement) and Free Trade Agreement negotiations are apparently not linked (ACTA not linked to free-trade agreement, say officials). We should be highly sceptical of this claim and pay very close attention to the precise words used by the officials making this denial. Remember how Clinton did not have “sex” “with” “that woman”? The statement was arguably not false if you used very particular meanings for the words. The same probably applies here. It is extremely likely that negotiators will be aware that pleasing the US in one area of negotiation may have an impact on others and act accordingly. It is hard to imagine how it could be otherwise.

Follow-up 19 Apr 2010 – Yeah Right is also the response of a local IP lawyer No ACTA-free trade link? ‘Yeah right’, says IP lawyer.

Posted in IP

Please sign the Wellington Declaration petition

Here is the email I sent to some friends, family, and colleagues recently:

Hi,

Sorry to email you out of the blue like this but I thought the Wellington Declaration might be of interest to you. It is also very important and won’t take a moment.

Here is the petition: http://www.gopetition.com/online/35443.html

Here is the declaration: http://publicacta.org.nz/wellington-declaration/

Please sign the petition. Why? Because the exciting future offered us by the Internet (think of everything that could come after Trademe, Amazon books, Youtube, Wikipedia, Google Earth, Streetview, iTunes etc) is under threat by an excessive focus on the commercial interests of Big Media. Some multinationals would happily cripple the 21st century for their own gain and they need to be stopped before it is all locked up in binding international treaties.

Here is part of the text of my submission to the Ministry of Economic Development:

Excessive enforcement of “rights” will hinder innovation – PSAL believes that overly zealous enforcement of intellectual property “rights” could have a chilling effect on innovation. As a society, we will gain more if we let new technologies develop on a loose leash. Letting representatives of old industries shape the direction of the new is like letting stagecoach and railroad interests control the development of the automobile industry.

In the late 19th Century, the introduction of the automobile resulted in opposition from special interest groups, including railroad corporations and stagecoach lines. These interests promoted legislation to regulate operation of motorized vehicles and prompted lawmakers to impose command and control policies under the guise of safety, with which to regulate behavior of, and impose nonpecuniary costs upon the motorists driving the new machines. [emphasis added]

In the United Kingdom, the Red Flag Law, a policy requiring self-propelled vehicles to be led by a pedestrian, waving a red flag or carrying a lantern, to warn bystanders of the vehicle’s approach.(http://en.wikipedia.org/wiki/Red_flag_laws)

ACTA could be the Red Flag Law for modern times.

Some of these issues are complex but if you don’t have time to explore them thoroughly please sign the petition while it still counts.

Why mightn’t you already know about this if it’s so important? Because most of the ACTA negotiations are being conducted in secrecy and the media is ambivalent about the whole issue.

All the best, Grant

Posted in IP

Software patents are a proven bad idea

Software patents are a proven bad idea. Yes, you read that correctly – a “proven” bad idea. There is no need to speculate or philosophise. A brief look at history will suffice. The software industry experienced decades of innovation before software patents existed and we have had decades to observe their impact since they were introduced. The results are in – they don’t work. Here are some snippets and links which explain why (new links will be added over time):

So it’s not that software patents are a necessary evil that realists learn to accept – they aren’t good at all. And the sooner we roll them back internationally the better.

Posted in IP

ACTA Submission to Ministry of Economic Development

Here is the text of my submission to the Ministry of Economic Development:

Excessive enforcement of “rights” will hinder innovation – PSAL believes that overly zealous enforcement of intellectual property “rights” could have a chilling effect on innovation. As a society, we will gain more if we let new technologies develop on a loose leash. Letting representatives of old industries shape the direction of the new is like letting stagecoach and railroad interests control the development of the automobile industry.

In the late 19th Century, the introduction of the automobile resulted in opposition from special interest groups, including railroad corporations and stagecoach lines. These interests promoted legislation to regulate operation of motorized vehicles and prompted lawmakers to impose command and control policies under the guise of safety, with which to regulate behavior of, and impose nonpecuniary costs upon the motorists driving the new machines. [emphasis added]

In the United Kingdom, the Red Flag Law, a policy requiring self-propelled vehicles to be led by a pedestrian, waving a red flag or carrying a lantern, to warn bystanders of the vehicle’s approach.(http://en.wikipedia.org/wiki/Red_flag_laws)

ACTA could be the Red Flag Law for modern times.

Issues of bias and democracy – PSAL is concerned that the interests of some sectors are being privileged over others in debate about intellectual property rights enforcement. There is a risk that the correct balance will not be struck between the interests of ordinary citizens and large international media conglomerates. Secrecy does not co-exist well with democracy.

Who benefits, who should pay – PSAL is uncomfortable with the idea that taxpayers should fund enforcement and thus subsidise the profits of primarily international companies at the expense of their own rights and interests.

The internet is increasingly vital to citizenship – termination is disproportionate – The importance of the internet for access to information, goods and services (e.g. Trademe), social connections etc is growing. Increasingly, the delivery of government services will be via internet technologies and it will become difficult for citizens to exercise their free speech rights and the other rights of citizens without access to the internet. Termination should not be a standard punishment for copyright or other intellectual property violations. Other sanctions must be used that are proportionate.

Setting up the means of controlling the free flow of information is a bad idea – PSAL is concerned about the use of technologies which enable centralised filtering/censorship of data around the internet. There will always be the temptation to misuse the power this gives government and enforcement agencies (e.g. the Great Firewall of China). It also provides hackers a single point of control for each ISP.

Posted in IP

Reducing Single Vendor Lock-in in NZ Health System

Single-vendor lock-in is great for the lucky vendors – but terrible for competition and consumers. So it is great to see fresh steps to develop a standard desktop based on open source software for a major District Health Board in New Zealand HealthAlliance restarts open-source desktop project. Let’s hope it’s for real this time. A Microsoft monoculture is a bad idea when you’re entrusted to store sensitive health information (Nothing to see here, move along at Waikato DHB, ‘Virulent’ virus takes down Health Ministry email system, and UK National Health Service hit with malware infection). It will take a long time to shift so we need to get started ASAP.