Search Results: "ag"

27 December 2008

Sandro Tosi: Thinkpad T30, SmartLink modem and Teleconomy

Being left in the IT medieval, thanks to my lovely telco, the only way I can (very far away) simulate a broadband connection, is stipulating a flat 56k contract (don't laugh, please). The name of this "offer" is TeleconomyInternet.

Do you think that firing up gnome-ppp on a Thinkpad T30 laptop would work at the first try? Of course not... The problem seems to be in the telephone number to call, that badly interact with SmartLink 56k modem. Here's the story, in case you'll find yourself in the same situation.

The modem on the T30 is:
$ lspci   grep Modem
00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02)
that is a SmartLink modem, supported well by sl-modem-deamon package and by alsa:
$ ps -eo command   grep slm
/usr/sbin/slmodemd --alsa -c ITALY modem:1
Remember to edit /etc/default/sl-modem-daemon file and set the right country for you.

Now, I installed gnome-ppp (just to try an easy tool), that uses wvdial under the hood.

wvdial auto-detection utility works quite well, and the found Init2 string:
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
works well if the number to call is a local one (I tried it before, and worked). Since Teleconomy provides a state-wide number (702...) with the above string the connection will fail with a sad:
NO CARRIER
No Carrier! Trying again.
But there is a fix: first, the Init1 should be ATX3 (but it seems to be enbedded in the one below), and the last arguments must be changed (well, I think it has something to do with line speed (MS=34 will result in a 33.6k line) or protocol, but don't care too much as long as it works) resulting in this Init2:
ATX3Q0 V1 E1 S0=0 &C1 &D2 +MS=90
And remember to select the "stupid mode" in gnome-ppp, and you'll have a nice:
--> Initializing modem.
--> Sending: ATX3
ATX3
OK
--> Sending: ATX3Q0 V1 E1 S0=0 &C1 &D2 +MS=90
ATX3Q0 V1 E1 S0=0 &C1 &D2 +MS=90
OK
Modem initialized.
Sending: ATM1L3DT7020187187
Waiting for carrier.
ATM1L3DT7020187187
CONNECT 52000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Dec 26 19:12:23 2008
--> Pid of pppd: 4870
--> Using interface ppp0
--> local IP address ......
I'll move to ppp soon, since gnome-ppp seems to not understand "fsck, reconnect when disconnect, dude" option.

How nice is to be in the 21st century...

Matthew Garrett

So. Burning down the house. Uniquely Welsh concept[1] or near-inevitable consequence of design failure? I present the following:

Innocent Christmas ornament or HARBINGER OF DOOM?
Note how the candle descends into the foliage. There's a good inch and a half of candle left there, embedded into a block. The foliage is, in fact, plastic. The block it's embedded into is some sort of hydrocarbon-based foam. It turns out that lighting one of these and leaving it for a while is a good way to trigger all kinds of excitement. Of the "Goodness me, there appears to be a large lump of petroleum byproduct burning quite vigorously in the hall" variety.

The software design moral: Everything is shit and will attempt to kill you when you're not looking

Now. Back to eating turkish delight and wondering what to do for New Year.

[1] Yes, yes, it's a cover. THAT'S THE JOKE.

MJ Ray: Looking Back: 2008 Part 2

This is a continuation from part 1 but can be enjoyed on its own too, like a good red wine. It s a bit early for me for red wine, though.
May
June
July
  • Standing for Election to SPI Board Again - my most popular page ever, by number of page views anyway. It was spammed to hell so often that comments are now switched off. I suspect the US Election had more to do the popularity of this article than my unsuccessful candidature for the Software in the Public Interest board.
  • Batting Against Three Strikes through the Back Door - I m a member and ambassador for ThePhoneCoop and TTLLP are agents/resellers for them, so this misguided EU law-making was worth some of my time. Writing about it here got me a response from Neil Parish MEP that I don t think I would have got otherwise. It s a terrible shame he never sent a reply from Malcolm Harbour.
  • LugRadio Live Event Review - a review of one of the most populist UK free software events by one of their most vociferous critics (back before they went all Creative Commons warm and fuzzy) was always going to be popular, which is partly why I wrote it, but not the whole reason: I m delighted that the event should return in the future. It s not perfect, but it s pretty damn fantastic. A tech conference crossed with a rocking gig by the strangest boyband ever, with a cheerleading racoon and some very cool people.
  • Good News on the Koha 3.0.0-final Approach - another surprisingly popular marginal comment. I ve currently broken/desynched/something my local git tree. I m going to repair it by New Year and then start writing up more Koha explorations and sending patches upstream.
August
More to follow in a couple of days

26 December 2008

Clint Adams: Dragon clouds so high above

In her twenty-first year, Ma t na got the blues in Sant Tropetz.

John Goerzen: ID3 tags

For Christmas, I got Terah a Sandisk Sansa m240 MP3 player off Woot. A very basic and small device, but just what she needs. There s a catch. It appears to only recognize ID3 tags in v1 format. (Some online sources claims it also recognizes v2.3, but not v2.4, but my testing shows it doesn t.) It turns out that very few, if any, modern media management tools support ID3v1. I tried Rhythmbox, Listen, Banshee, Amarok, and several others. Not one of them even had an option for ID3 version. A couple had an option for what to use when encoding from CD if I knew the magic undocumented gstreamer incantation. But they promptly deleted the ID3v1 tag whenever the information for the track was modified. I eventually wound up writing a script for Terah to run that calls eyeD3 to convert the tags to v1. But with all the devices out there that grok v1 only, I am really rather shocked at the lack of software support for it these days.

Chris Lamb: Unfortunately, we get parallel octaves at the end

A reel from Glenn Gould's 1955 recording of the Goldberg Variations contains the following dialogue between the 22-year-old pianist and the recording engineer after a take of the 30th variation, a quodlibet:
By the way, I have a quodlibet of my own which came to me in the bathtub the other night. One of these days I will be asked to perform on the fourth of July, I'm sure, and when I do I figured out that by leaving out the repeats in the Star Spangled Banner and starting your entry on the thirteenth bar of God Save The King and then playing God Save the King over again and altering the harmony in the second half of The King to modulate to the supertonic region, it has the most marvelous effect. Listen to this.. (202KiB Ogg Vorbis).

Gintautas Miliauskas: Hacker spaces

I just found out about hacker spaces. For a nice example of a hack space, see The Metalab. Such places seem quite suitable for work on individual public projects and for growing teams by sorting out the wheat from the chaff. It's a pity there are no hacker spaces east of Vienna. I wonder if one could be set up in Vilnius. There probably are enough people around. but quite a bit of organising work (see Hackerspace Design Patterns [PDF]) needs to be done to establish a hacker space. I would do it, but I am overbooked as it is. Any takers?

Sandro Tosi: Biggest -doc packages

After loosing a lot of time (because I couldn't remember awk syntax correctly), now I know what are the biggest -doc packages in sid:

$ egrep "Package:.*-doc ^Size" /var/lib/dpkg/available grep -A1 "doc" grep -v "^--$" awk ' if ( $1 ~ "Package:" ) pkg = $2 else print $2" "pkg ' sort -n tail -n 3
77647098 vtk-doc
86947420 libxmpp4r-ruby-doc
107700626 sofa-doc

don't say it's ugly, I know ;)

What's the purpose of this? I wanted to know what medal new version (0.98.5) of python-matplotlib-doc package would win, and that would be silver!!

$ ls -l python-matplotlib-doc_0.98.5-1_all.deb
-rw-r--r-- 1 morph morph 91141234 2008-12-16 10:39 python-matplotlib-doc_0.98.5-1_all.deb

I really hope to reduce it before upload it...

David Bremner: Prolegomenon to any future tg-buildpackage

So I have been getting used to madduck's workflow for topgit and debian packaging, and one thing that bugged me a bit was all the steps required to to build. I tend to build quite a lot when debugging, so I wrote up a quick and dirty script to I don't claim this is anywhere ready production quality, but maybe it helps someone. Assumptions (that I remember) Here is the actual script:
#!/bin/sh
set -x
if [ x$1 = x-k ]; then
    keep=1
else
    keep=0
fi
WORKROOT=/tmp
WORKDIR= mktemp -d $WORKROOT/tg-debuild-XXXX 
# yes, this could be nicer
SOURCEPKG= dpkg-parsechangelog   grep ^Source:   sed 's/^Source:\s*//' 
UPSTREAM= dpkg-parsechangelog   grep ^Version:   sed -e 's/^Version:\s*//' -e s/-[^-]*// 
ORIG=$WORKDIR/$ SOURCEPKG _$ UPSTREAM .orig.tar.gz
pristine-tar checkout $ORIG
WORKTREE=$WORKDIR/$SOURCEPKG-$UPSTREAM
CDUP= git rev-parse --show-cdup 
GDPATH=$PWD/$CDUP/.git
DEST=$PWD/$CDUP/../build-area
git archive --prefix=$WORKTREE/ --format=tar master   tar xfP -
GIT_DIR=$GDPATH make -C $WORKTREE -f debian/rules tg-export
cd $WORKTREE && GIT_DIR=$GDPATH debuild 
if [ $?==0 -a -d $DEST ]; then
    cp $WORKDIR/*.deb $WORKDIR/*.dsc $WORKDIR/*.diff.gz $WORKDIR/*.changes $DEST
fi
if [ $keep = 0 ]; then
    rm -fr $WORKDIR
fi

25 December 2008

Jeff Bailey: Christmas Dinner

We hosted a real live Christmas dinner this evening! We've done slight variations on it before. Y'know, invite people over and we sit on the couch and hang out. But this was a three-generational, guests-invited, have chairs to sit on, retire to the living room to hang out afterwards Christmas dinner!

I'm glad we got seating for 6, we'll have to do this again. =)

Dirk Eddelbuettel: Rcpp now in Debian

Rcpp is an interface package that makes it easier to add C++ code to GNU R. It had started as a part of my RQuantLib project but has now come into its own as blogged here and here. As of today, Rcpp is now also available as a Debian package.

Matthew Garrett

Christmas is a time to ignore such trifling details as nearly accidently burning the house down, and instead to focus on what's important in life - working out which hoops to jump through to make new hardware useful without installing less convenient operating systems. This year was more straightforward than some, and merely involved attempting to work out how to give people money in return for books that could then be read on my Sony reader thingy. Shockingly enough, the Sony Ebook Store requires a windows app, so not a good start. There's no shortage of sites that sell ebooks in a variety of formats without any platform dependent awkwardness, though - of course, most of them are inconveniently DRMed. And the only DRMed content the Sonys will read is either Sony's own or some encrypted PDFs[1].

Not to worry - the DRMed version of the Mobipocket format is based on a symmetric encryption algorithm from 1991, so finding a way around that isn't much of a problem[2]. The only real issue I had was generating the PID needed to buy one of the damn things in the first place. This 10 character string is generated when you install the Mobipocket reader software, but doing so would again involve Windows.

So here's a trivial C program that generates valid PIDs with working checksums. The PID on its own isn't a secret (given that you can get as many as you want by reinstalling the Windows software), so I can't see any awkward copyright law things going on. And, really, it's just a random string plus a checksum.

CRC code is from SSH, the checksum validation is a reimplementation of code from EBook::Tools::Mobipocket by Zed Pobre. My total creative input was generating a 7 character random string and sticking a dollar sign at the end. Go me.

[1] According to the blurb about the firmware update, though mine still seems to claim that it's not authorised to read DRMed content in the about screen. Possibly it needs keys generating, or something

[2] No, I'm not going to tell you how. The internet exists so you can work these things out without asking me

Nacho Barrientos Arias: GBP FAIL

Jose Carlos Garcia Sogo: git tips

Git is becoming my main utility for Debian packaging, as I am using it to keep my work on packages I maintain alone or in a team by using git.debian.org facilities. I am not still using tools like TopGit to keep patches, by I also intend to do so in a near future.
What does git give me over svn? Basically two things: branches and having the whole source code at hand. The first is obvious, I can easily create branches to experiment without having to change anything in the way the package is, so if a new upstream release occurs in the time it takes me to implement some change (and that usually happens) I can upload it straight, not affecting my undergoing changes.
Also I appreciate having the whole source code. This could have been also done using svn, but we preferred not to do so, and most packages only have debian dir in their svn repositories. This makes harder work with upstream sources, where they need to be patched. Git provides me the way to have always an upstream source code copy at hand, and the branch power can also be applied to it.
But I wanted to write about a couple of git tips that I found. Seems that they have already appeared on Planet Debian before, but I think that is not a bad idea to remember them (from damog s blog):

1. Changing into a directory that contains a repo and shows you on PS1 what branch you are standing on:

On .bashrc I have:

GITPS1='$(__git_ps1 ":%s ")'
export PS1="$ GREEN \w$ RS $ YELLOW $ GITPS1 $ RS \\$ "

But what I didn t want to lose was the code that was posted to paste.bin after in a comment someone pointed out that this trick was a bit annying if your home dir were also a git repo. This is one solution:

__maybe_git_ps1 ()
local BRANCH="$(__git_ps1 '%s')"
case "$BRANCH" in
master)
# silent
;;
'')
# not a git repo? -> silent
;;
*)
if [ -n "$1" ]; then
printf $1 $BRANCH
else
printf (%s) $BRANCH
fi
;;
esac

2. An alias I like to use on repos that are personal for quick tracking:

[alias]

log1 = log pretty=oneline abbrev-commit
Thanks damog for these tips!

Sandro Tosi: It's Xmas, do a gift to Debian: fix a Lenny RC bug

I know, you usually spend this day with family/friends/whatever but think even a bit to Lenny.

Look at the unofficial RC bugs page and try to find something you can fix, some package that might not be ready for primetime (i.e. be released with Lenny) and ask its removal from testing to RT, try to replicate a bug or downgrade it if the reporter exaggerated a bit with severity.

It will all help Lenny.

Do a gift do Debian, do a gift to Lenny, do a gift to us all: fix an RC bug :)

I did my (little) part, fixing #509623 (well, quite easy, I know, but still). Do the same, if you can: we will all be thankful :) Thanks to Evgeni for the heads up right after midnight.

Oh-oh-oh...

Norbert Tretkowski: OurDelta

The MySQL packages in Debian still do not (and will never) include inofficial feature patches (beside the redirect output of error.log to syslog in MySQL 5.0, which is now part of the official MySQL 5.1 releases) like the ones from Percona or Google. Of course we add important bugfixes from newer (not yet released) versions of MySQL, but no feature patches.

If you are interested in a patched version of the Debian MySQL packages, take a look at OurDelta, their builds include patches (complete list) like mirrored binlog and InnoDB freeze. Upgrading from the official Debian packages of MySQL to the builds from OurDelta should work without problems, but please use Launchpad when reporting bugs against their packages, and not the Debian Bug Tracking System.

MJ Ray: Looking Back: 2008 Part 1

Over the next few days, I m looking at the most popular articles from this site and my previous news website during 2008. I ll be doing it in three parts. Popularity is measured by page views from local access logs, but some articles were actually more popular in the months after they were first posted, so it s not completely accurate, but let s be forgiving over the holidays, OK?
January
I must have been writing rubbish because nothing got that popular at the start of the year, but some of my older pages continued to be popular throughout 2008:-
February
  • SPI Meeting Wed 27 Feb 1900Z irc.oftc.net/#spi - I think this started my regular meeting announcements, which has been a surprisingly popular series and has expanded into a whole category of SPI articles here.
  • The Myth Of Deregulation - this was meant to be a marginal rant. Its popularity (and the subsequent comments - some of which were unpublishable or their authors requested removal) surprised me and so I started writing more about social enterprise, cooperatives-sw member businesses and how they interact with GNU/Linux software and web development.
March
April
  • UK mobile micropublishing choices? - for the trip that motivated that article, I used twitter, but I m actually updating identi.ca over XMPP from my mobile now.
  • Better Free Software Organisations? - I ve read the Yunus book mentioned in the comments on the Advogato repost of this article and I ve a review which will appear on this site later. It includes a bit of a flaming of the simplistic and IMO factually-incorrect dismissal of cooperative businesses, so I wonder if it will get a few responses from Yunus-fans.
  • Explaining web site improvements: what s important to you? It seems that April was a good time for asking questions: this is a third popular question-based article. The website discussed has now been approved and ordered from TTLLP, but the work is not yet scheduled.
That s the first few months of 2008 done. I ll post the next few months in a couple of days. Hope you re enjoying the holidays if you re having them. I m sure I am ;-)

24 December 2008

Norbert Tretkowski: MySQL 5.0.75 uploaded to Debian

This week MySQL released version 5.0.75 of their Community Edition. The package in testing is in good shape, so I had time to prepare and upload 5.0.75-1 to unstable, but it should work on testing as well. I also made a rebuild for etch, which is available here.

Amaya Rodrigo: Self-steem issues?

Peace for threeWhen a cat is on your lap or very close to you, it means there is no better place for him in the whole world. And cats are very smart. And demanding. They are absolutely free souls and natural born gourmets.

But where is the tip? Just around the corner, read on.

Listen to the world around you, the more related to nature the message is, the more important and meaningful is the wisdom coming with it.

Clint Adams: A ridiculous pre-Christmas dream

Many people piled into the small bathroom. I knew this bathroom, but I did not know how it had gotten into the edifice that it currently occupied. The occupants of the bathroom began to organize a formal fight, and one of the participants, appointed without prior consent, insisted on forestalling the proceedings by taking a shower. He did not use the bathroom in question for said shower, and after what seemed like an eternity, the match was declared forfeit, which then freed us all to go about our business. The subsequent business turned out to be a strange party, replete with all manner of foodstuffs, rooms, passageways, drunks, IOIs, and reorganizations. While naked, I ran into one of the Taylor twins in a black stairwell between the room with the pizza ovens and the room with the madcap tables. I still don't know which one.

Next.

Previous.