Hadn’t heard of PgBouncer before, but I know of a few places where it’d be invaluable.
Given it support adding and removing of zones on the fly, it could be preferable to NSD for something that I’ve currently got in production.
Update: Turns out NSD4 solves all the issues I had with NSD3, which is nice. I gave up on Knot DNS as it kept failing to stop, and wouldn’t give me a hint of why. Checked the zonefiles and the config, and they all were fine. Oh, well…
I just wish I could use NSD4 in that production system, but it’s not available for Debian 7.3 (wheezy).
Fixing permissions issues with Lubuntu 13.10
EDIT: Never mind. Seems like it was a coincidence. I think the issue is actually with lxdm. I switched to lightdm and everything was fine. Feh.
I’ve an old Dell Mini 12, and I recently upgraded it to run Lubuntu 13.10, but ran into issues where Network Manager wouldn’t let me do anything, and attempting to reboot or shutdown while logged in would cause the machine to complain that I was not authorised to do so. After some hunting around, I discovered an IRC log with a solution to the issue.
First of all, open up the file
/etc/pam.d/common-session as root. You can do this from a terminal as follows:
$ sudo vim /etc/pam.d/common-session
Now, check that it contains the following line:
session optional pam_systemd.so
If not, add it. Once you’ve added it, have PAM update itself as with the following:
sudo pam-auth-update --force
And now the issue should be gone! You may need to log out and log back in again too.
I’m still having an issue with the wireless drivers themselves, which I haven’t been able to fix, even after installing the nonfree drivers package.
A better way to do credit card forms.
Interesting! I’m already looking at Graphite for graphing, and StatsD looks interesting for stats collection.
Protocol Buffers done better by the guy behind Protocol Buffers. Looks interesting.
Needed this for automatically generating a Pygments stylesheet on installing a project of mine. This isn’t well-documented at all, unfortunately.
Nice set of notes on writing applications in Python with WebSockets.
Incremental merge for git.
I’m not sure I quite see the value in this beyond that given by git-rebase as I’ve never encountered as situation where rebasing has ever lost any useful history, but it still looks worth checking out. Here’s a video from the git merge conference:
This specification defines a mechanism enabling web sites to declare themselves accessible only via secure connections and/or for users to be able to direct their user agent(s) to interact with given sites only over secure connections. This overall policy is referred to as HTTP Strict Transport Security. The policy is declared by web sites via the
Strict-Transport-SecurityHTTP response header field and/or by other means, such as user agent configuration, for example.
I only actually heard about this recently, though the RFC’s been published since last November. To read.
Looks like an interesting alternative to LZO.
logstash is a tool for managing events and logs. You can use it to collect logs, parse them, and store them for later use (like, for searching). Speaking of searching, logstash comes with a web interface for searching and drilling into all of your logs.
Requires Java. Looks pretty non-sucky.
LMDB is an ultra-fast, ultra-compact key-value data store developed by Symas for the OpenLDAP Project. It uses memory-mapped files, so it has the read performance of a pure in-memory database while still offering the persistence of standard disk-based databases, and is only limited to the size of the virtual address space, (it is not limited to the size of physical RAM).
I can see places where this would be useful. In particular, it looks like it would’ve been a better choice of backing store for a small daemon I wrote recently for work. It’s compact nature and the fact it performs MVCC are attractive features to me. There are also Python bindings.
Noted for future reference:
avconv -strict experimental -f x11grab -r 25 -s 1024x768 \ -i :0.0 -pre medium -f alsa -ac 2 -ar 22050 -i pulse \ cast.webm
I’ll have to decipher that myself some time, but for now it’s good enough to make note of it as I may need to do something like that at some point in the future.
Notes a number of useful packages if you’re stuck in a position (such as I am) where you need to be able to read and write .xls files.
A noise generator for Android devices. It’s open source, and the source is here.
Migration tool for SQLAlchemy.
Issues with nginx and php-fpm on FreeBSD
I spent an age trying to fix this, but the log output of neither
php-fpm gave any indication as to why I got nothing except empty responses when trying to access
Eventually, I stumbled across this post on ServerFault, which lead me to try adding this to the
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
And bingo! It starts working. I can’t fathom why php-fpm didn’t either respond with an error, either in the log or as a response, or couldn’t have fathomed it from the
SCRIPT_NAME headers. That’s some mighty good design! </sarcasm>
Omitted from this list is one that’s a big deal if you’re Irish: not every country uses postcodes.
PyPI Shields/Pins are shields for you GitHub repo, documentation or website that show your many times your project has been downloaded from PyPI or it’s latest version.
I can never remember this.
I’m going to take a look at using Jenkins for CI at work.
Irish political parties: how complex are things?
Contrary to what seems to be opinion elsewhere, the Republic of Ireland has a pretty straightforward set of political parties these days. Here’s a breakdown for the interested and bored. Links will be to the Wikipedia pages on the parties because I don’t endorse any of them.
Fianna Fáil (FF)
These days, Fianna Fáil is your bog-average vaguely centre-right, populist/big-tent party. Nominally republican, they haven’t been ideologically so since the late 1980s in any meaningful sense. They see themselves as the natural party of government, and their ideological rhetoric shifts so as to maintain that status.
They can be said to be slightly to the left of Fine Gael, but being a big tent and given their tendency to shift their rhetoric to suit the current situation, it’s almost meaningless to ascribe any particular position to them.
Fine Gael (FG)
The other centre-right party in the country. They differ from Fianna Fáil in that they’re a christian democratic and liberal conservative party, thus are easier to pin down ideologically, though they did flirt with a very mild form of social democracy in the 1980s.
The only interesting twist to all this is that due to a century-old grudge between FF and FG dating back to the foundation of the state, neither party will contemplate going into coalition with one another. Thus rather than having a single conservative party with two separate wings, one populist, the other christian democratic, we have two parties filling those roles. Aside from a lingering hate for FF, FG haven’t been anything other than nominally republican for decades. Even the ‘Christian’ bit is moderating these days.
They tend to end up in government to make up the numbers with either FF or FG. They’d likely be bigger if it weren’t for FF’s big-tent approach to organisation which keeps people whose ideological home might be more naturally Labour than a centre-right party like FF.
They were recently blown out of the water after being part of a disastrous coalition government with FF and the Progressive Democrats, a free-market liberal party that completely imploded over the course of 2008 and 2009. They ended up losing support due to a perception that they were too willing to bend to FF’s natural populism.
The only meaningfully nationalist/republican party in the state. They’re a secular democratic socialist party with a Trotskyist bent that’s giving way to pragmatism where necessary. I’m not sure I’d describe them as having ever really been sectarian, at least not under Gerry Adams anyway: any Catholic chauvinism was more of a fringe within them compared to their republican and democratic socialist core.
And that’s it: aside from Sinn Féin (who are turning into just another left-wing party anyway) and lingering political animosity between FF and FG. There’s really very little that can be said to be odd the structure of Irish politics.
Good algorithmic complexity reference!