Search Results: "ag"

25 May 2007

David Moreno Garza: On the Towel Day

Holger’s reminder of the Towel Day made me remember an excellent quote from The Simpsons:

“You’ll have to speak up, I’m wearing a towel” Homer, while speaking on the phone

Heh :-)

David Welton: ShopList updates

I did some work on my mobile phone shopping list ShopList today. Thanks to a bug report from Sven Mueller, I think I managed to correct an encoding issue. If you use ShopList and enter non-ascii text into the shoplist web application, let me know if things are working for you. I also did some work on the back end to enable statistics, but only for users who are logged in to their accounts. Not surprisingly, the most common things people buy at the store are: Which probably hasn't changed in hundreds of years. Sort of reassuring, I guess?

Biella Coleman: Pricefull and Priceless

$ 5000 medical bill (that insurance won’t pay for)
$ 450 water bill in Puerto Rico
$ 150 library fine for one lost book that normally costs under 20 dollars Anxiety and rage from dealing with these ludicrous bills: priceless. Ok seriously I am now dealing with these three things and it has been really really really unpleasant. I sometimes wonder if I was once a bad as* Roman tax collector by the name of Biella Plebius and now, reincarnated as Biella Coleman, I am suffering the karmic consequences of extorting people in the 3rd century A.D. Other times I take a lighter approach to all of this and console myself that if nothing else, I am learning a lot. For example, as I had mentioned awhile back, Blue Cross Blue Shield Horizon of New Jersey is stalling and denying health insurance bills for my mole surgery. Because I had a pre-existing clause in my contract, they are trying to squirrel out of it. However, since I never had a pre-existing issue with moles, I am pretty sure they are required to pony up the cash but getting them to do this has been a Herculean, no Sisyphean task. Since it was clear they were not going to pay if I alone was applying pressure, I was about to file a claim in Special Civil court (the bill is too high for small claims court) but I wanted to see if I had any other options. So hours and hours after diligent web research, I finally found on lawyers.com that I can file a complaint against my health insurance via the Department of Banking and Insurance. I am amazed that NO ONE in the doctor’s office, including those whose only job is to deal with health insurance, had a clue about this option. And even when you go to the Dept of Insurance website it is not totally obvious that you can file a complaint (it is under the “file for assistance” category). But once I got in touch with them, they have been incredibly helpful. Now, my detailed complaint letter is with them, and some other documentation and apparently they have an investigator on the case. I am not sure if this route will be enough pressure to get the job done but at least by the time this is over, I will be in the greater NY area so that I can move to the court option. The take away lesson here is that if you are having any trouble with claims and health insurance, do do do do file a complaint with your state Department of Banking and Insurance. This is a great first option to use.

Alastair McKinstry: Jets seen from a Brown Dwarf Star

Artists impression of Jets from Brown Dwarf
Outflows have been discovered from a Brown Dwarf star, 2MASS1207-3932, the lightest yet. Found by Emma Whelan and Tom Ray of DIAS and others , using the ESO's Very Large Telescope (VLT), this is the first time that Jets have been seen from an astronomical object as small as this. The Brown Dwarf is 2MASS1207-3932, a 24-Jupiter mass 'near star'. Jets of material are a common feature in astrophysics, seen from Galaxies and young stars, but this is the first time they have been seen in something this small. It opens the possibility of similar outflows from smaller objects, such as giant planets. The brown dwarf 2MASS1207-3932 is full of surprises. Its companion, a 5 Jupiter-mass giant, was the first confirmed exoplanet for which astronomers could obtain an image, thereby opening a new field of research - the direct detection of alien worlds. It was then later found that the brown dwarf has a disc surrounding it, not unlike very young stars. Tags , ,

Bastian Venthur: Using zeroconf to resolve local hostnames

If you bought one of those cheap WLAN-routers which provides a DHCP server but no DNS (why again?), you probably miss the feature to access your hosts in the LAN by their name, right? If you’re running a fairly recent Linux distribution (yes, Etch works too), just try to ping them with the .local DNS suffix, like phoibe.local or hades.local. If that doesn’t work, check if avahi-daemon is installed on the machines you want to resolve. If not (which is unlikely on recent desktop machines), just install it and your machine will be available via hostname.local. I wasn’t aware that I would ever need this “zeroconf crap” until I replaced my rusty old Dell Optiplex GXa router with a less energy consuming and much more silent Linksys WRT54G. Unfortunately I bought Version 7 which only comes with 2MB flash and is therefore not supported by openwrt. So without my precious dnsmasq on my router, I was suddenly blind in my own LAN — and very thankful to find out that zeroconf already took care of my problem.

Decklin Foster: Dear Lazyweb

I just wasted half an hour (mostly finding a dead motherboard and bending wire) making one of these: http://www.rupamsunyata.org/~decklin/blogfiles/20060622/usbport.jpg I then threw out the cap to my USB storage device. Why doesn t anybody sell them? Why are the holes for your keyring always on the part you use (thus weighing it down, particularly if it's sticking out of the front of a tower) and not the part that comes off? It's not easy to unplug by accident (I did squeeze it a bit removing some of the metal). I think I m just not looking in the right place. I can t be the first person to have been annoyed with this. Lazyweb, please tell me where to go. (Yes, the only thing I use it for is my SSH key.)

Jonathan McDowell: Thoughts on calendars

I keep having what I've started to think of as the "calendar conversation" with various people. I start by outlining what I think are some fairly reasonable requirements. I'd like to have multiple calenders viewable by different sets of people. So Simon would be able to view my work calendar, while Katherine could see my personal calender (and possibly small bits of work calender where I was going to be away from home). I also want to be able to view my calenders from a variety of devices. My desktop, my phone and my laptop, for example. A web interface might be nice too, though less important to me. This doesn't seem like a lot to ask. My general hope is that whoever I'm boring about this will then say "Oh, you need to look at foo and maybe bar". After all, that's the case with most software related things I need - it's already been done, and there's a good solution available. What actually happens is the person I'm talking to nods in agreement and says they'd like the same sort of things but don't know of anything that manages it. I think the problem comes down to syncing. Sharing my calendars with other people is effectively allowing them to sync their calendar(s) with mine, with some sort of filtering so we each see only what the other wants to see. Likewise, multiple devices is all about syncing. Changes made via one method need to be visible on all of them (ideally as soon as possible). Decent syncing also brings another advantage; client independence. If I can reliably sync my information to a variety of devices/clients then I can try a different client with little risk. We have this already for mail - anything that can talk POP3, IMAP and/or mbox is easy to try out and if you don't like it then you can just change back to what you had before or try something else. Calendaring doesn't seem to have that. I don't think that the interface a client exposes needs to be complex. At a basic level what you need is a way to find out what the client thinks has been added, removed or changed. You also need to present this information in a standard format. Unfortunately iCal (RFC2445) appears to be what we've got here. I think it's a bit overly inclusive, which seems to lead to incomplete implementations. Is there a complete iCal parser library out there? The best hope for syncing that I'm aware of is OpenSync. And I haven't been that impressed; while I managed to get it to move the contacts from my SonyEricsson v600i to my Nokia E70 some of the details got mangled on the way. And lack of things like recurring event support in some of the plugins (eg the Google Calendar syncing adaptor) or warnings about data loss in the Sunbird plugin aren't encouraging. Speaking of Sunbird, I'm not impressed. Last time I looked (and it doesn't appear to have moved very far since then) it didn't make any attempt to support syncing. I'm sorry, WebDAV isn't a syncing system. It's a way of storing files remotely. Sure, I found the interface ok, but I need to make my calendaring data accessible for it to be useful. The Windows approach to all of this seems to be ActiveSync and the use of Outlook. I don't believe that it really handles more than the desktop client and a remote device though? And group calendar sharing requires an Exchange server? Not exactly the flexible solution I'm looking for. I think a key point is that all of this needs to be reliable. I didn't spend time debugging my OpenSync contact syncing issues partly because I didn't notice straight away that there was a problem (it was with additional details like email addresses rather than names/numbers IIRC), but also because it was a lot of work to delve into the code and find out just what on earth was going on. A while back I started looking at writing some calendar syncing code (called Pony) and hit a problem with complete inconsistency in handling time zones between clients that put me right off. If it's not reliable it's not useful. If it's not useful people won't test it and fix it. I think a starting point is a reliable iCal implementation that can handle everything in the spec. From there you can write plugins that will take whatever bastardised variant your device/client supports and translate to and from it. The syncing tool will need to keep a master copy of all the data, because there's no guarantee anything else will be able to support all the fields. A local complete copy should enable appropriate frobbing of data to/from any device/client without losing the information if a new device/client that can handle the data is added. Of course almost all the above applies to contacts as well; I have work contacts, personal contacts, boring house contacts (plumber, garage etc). vCard is the appropriate interchange format for that (why did vCalendar become iCalendar, but vCard not change?), but contacts feature similar issues to calendars I believe. Does this seem reasonable? Please tell me someone has already done it. Point me at Debian packages that will let me sync my phone, my Google Calendar and a local client and make me very happy. I have visions of a suite of tools all chatting over DBus; a little client that looks for my phone to appear over bluetooth and then syncs when it does, a little client that monitors Google Calendar for changes. Sunbird reporting when something changes (and accepting notification of changes). Some other client ([Dates http://www.pimlico-project.org/dates.html]?) doing the same. Another sending the data over WebDAV or SFTP so that my laptop can pick up the info when I'm on the move. I don't think I'm the only person looking for this sort of stuff. Where is it?

Eddy Petrișor: PO compendiums, 1st step

This is just a proof of concept. And I think those are simple po files not po-debconf files. Anyway, I'll polish the scripts a little more and then migrate it on i18n.debian.net[*]. Of course, this will be done for all languages when the scripts are more stable.

[*] thanks to Christan Perrier, I have access to that machine now

MJ Ray: Leukemia Research Weston-super-Mare Bikeathon: More Feedback

liz radford commented:
"Thanks for the advice, your comments on the route match those of a couple of others so I think we will go ahead and make those changes but keep the hill of pain! I will ride the revised route this weekend to give it a go."
While you're out there... I heard some comments that Windwhistle Lane on the short route wasn't very easy to follow, but I suspect that's more a problem with the council's (lack of) signs than a bad route. I didn't find the black-and-white bikeathon signs easy to spot on the faster/busier stretches. The pink and the yellow(?) ones were usually easily noticeable. I wonder whether the first black-and-white signs were at Worle Moor Gate - I went so wrong there that I rode up to the marshals at Summer Lane/Diamond Batch from behind!
"On the photo web site, you can get access to a total of about 700 pictures but it's not immediately obvious how. Mind you I can't criticise - the http://www.lrf.org.uk site is even less user friendly. We have photos on it of local people getting out there and doing great things to raise money but you try and find them its like wandering the catacombs. We need our own simple West-country site! Have a look and comment if you want, an experts critic is well overdue."
Well, the LRF site isn't bad - it needs to sort out its colours and contrast, and the text alternatives to images seem to be nonsense like asterisks, but I think I can actually access all of the pages without trouble. If you'd like a westcountry site, contact me at work and I'll offer a deal.
"Anyway back to photos. Get onto the one page of photos it will let you see and then click "refine search." This will take you to the menu as follows... Start Childrens Race Bleadon Hill Finish 1 Finish 2 Finish 3 Finish 4"
I can see more photos that way, but still only the first 8 from each category. Thanks once more for organising a great event Liz! I've noticed that my page is attracting some search results for bikeathon - is anyone else who rode this event reading? Care to comment on it? (If you're reading this at swik.net or a similar irresponsible republisher, click "Read more" to get the real comments form.)

Ross Burton: Open Sourcing of eds-sync

It took a while, but Nokia finally relicensed eds-sync under the GPL. Hooray! eds-sync is one of the many components that you don't see on the Nokia N800, but is essential to the integrated chat/voip interface. It's role is basically to do full two-way synchronisation between any number of remote rosters (generally Jabber/XMPP rosters on the N800) and the Evolution Data Server addressbook. It also downloads avatars, so that they are available on disk for display in applications. NP: Live at the Jazz Café, Fink

MJ Ray: Samba, CUPS, Printing (CUPS direct comments)

Ryan Lovett commented:
"CUPS sometimes doesn't reflect accurage page counting statistics in page.log when receiving jobs from Windows clients in this manner. YMMV, however. Another nuisance is that if you have multiple printers that use the same driver they will be hard to differentiate by name and Windows 2k/XP doesn't let you rename network printers. There is a solution, but it involves modifying the windows registry."
Wow, that's a surprisingly daft bug. I also heard at work that some versions of Windows remove network printers if the network they're on is disconnected. Anyway, enough Microsoft Windows for now. I don't have to touch it very often and then only to make sure it can connect to my servers.

Kartik Mistry: blog tag cloud

* I tried to get “tag cloud” of my blog, it works! Kartik Mistry@localized-gujarati-geek!:/# cloud

about after again all almost also amazing another any are around article back bad before better blog book books both brother build bus but came can can’t cds com come coming cool day days debian did don’t done due during end etch even festival file finally firefox first foss found free from fun gave get gnome gnu gnunify going good got great gujarati had happy has have help here his home hope how http iiimf india install installer irc its just kde know l10n language last late like linux list live long look looking lots made make many may meet met mom mono more movie mozilla much mumbai near need net new news next nice night nirav not now office old one only openoffice org other our out package packages palanpur people place post problem python read really released right rinit sat saturday see session should since site some soon start started still stuffs sunday system take talk talked team thanks there they thing things till time today too took tried two ubuntu use user using utkarsh very waiting was way week well went were what when where which while who will work working works write www year yesterday yet

Eh!

Adam Rosi-Kessel: Webloyalty Recap

My “webloyalty is a scam” blog entry from 2004 continues to get thousands of hits per month, despite the fact that it appears to have dropped off the top Google search results. It should hit 100,000 unique visitors any day now, and 2,000 comments. Every once in a while someone comments to defend the service. E.g., this, today, from “Jim”:
THIS IS THE OFFER WEBLOYALTY GIVES. yOU ARE ALL REALLY STUPID PEOPLE. MOST OF YOU OBVIOUSLY ARE UNEDUCATED BECAUSE YOU CAN’T READ. YOU ARE ALL A BUNCH OF STUPID FUCKIN PEOPLE. I FEEL SORRY FOR ALL OF YOU. YOU MAY ALL BE RETARDED, SORRY FOR THAT. THIS KIND OF THING MAY HAPPEN TO YOU FOR THE REST OF YOUR LIVES BECAUSE YOU DON’T READ WHAT YOU ARE AGREEING TO. HONESTLY WEBLOYALTY IS DOING NOTHING ILLEGAL, AND YOU WILL NEVER PUT THEM OUT OF BUSINESS OR WIN ANY KIND OF JUDGEMENT OR MONEY IN A LAWSUIT. GO BACK TO SCHOOL AND LEARN HOW TO READ,THAT IS MY ADVICE TO ALL OF YOU MORONS.
And then, a few minutes later, from the same IP address, from “Brian P.”:
I actually agree with Jim 2 posts ago. People who say these things really did not read what they were signing up for and that is all of your own faults.
I used to get more of these kinds of comments from people actually posting from their workplace, where their workplace IP address resolved to Webloyalty. Someone must have told Webloyalty employees to stop doing that, as the comments above come from an AOL IP address.

Matthew Palmer: The Real Reason Software Sucks

Although I feel that The Daily WTF has gone downhill in the last few months (since the rename and addition of different "categories" of story), today's article titled The Great Pyramid of Agile is a good, thought-provoking read. I've tried to find a good "sound bite" quote that really captures the message of the article, but the whole article meshes together a bit too tightly, so just trust me when I say "go and read the article".

24 May 2007

Nico Golde: creating (dynamic) function call graphs

I am currently writing a general purpose shared library for acpi (more on that soon).
I was interested in having a function call graph especially to see if the interface looks somehow clean and to include it in the documentation of the library. Of course I wanted to do it with open source tools. There are several tools for static call graphs but if you want dynamic call graphs you have to use additional features of your compiler to generate a graph based on code during runtime.

The first variant I tried was using egypt a small perl script to generate a dot file. Dot (today included into graphviz? is a tool originally developed at AT&T to generate hierarchical or layered drawings of directed graphs.

So what is needed?
First install software (here on a Debian systen, egypt is not included in Debian):
$ aptitude install graphviz graphicsmagick (+ download egypt from the homepage)

Compile your software using gcc with the option -dr to dump an RTL file of the source.
Most of gcc's work is done in an intermediate representation of your code, called register transfer language (RTL). This pretty much describes the instructions in plain text and is inspired by LISP lists.
Ok, here we go:
$ gcc -dr list.c libacpi.c test.c
This generates three RTL files, for every source file one. Depending on the gcc version the names may vary, here the names are libacpi.c.00.expand list.c.00.expand and test.c.00.expand.

Now use egypt to create a dot file (I don't want one for test.c now):
$ egypt libacpi.c.00.expand list.c.00.expand dot -Gsize=100,100 -Grankdir=LR -Tps -o graph.ps
Egypt will create dot-output and by piping it to dot with -Tps -o graph.ps you get the resulting graph as a ps file. -Grankdir is used to generate a graph which runs from the left to the right, default is up-down which looks a bit strange.

Now convert the ps file into a png:
$ gm convert graph.ps graph.png
The result looks like this (looks cool huh? :-)):



The second variant I tested is a bit different and in my opinion the resulting graph looks a bit better.
The gcc commandline switch -finstrument-functions allows easy creations of call-graphs for C/C++ (script languages used but I haven't tried).
You need to compile every file with the -finstrument-functions switch. Then gcc places a call to the functions __cyg_profile_func_enter upon entering a function and __cyg_profile_func_exit on leaving a function.

Compile your sources with -g and -finstrumental-functions:
$ gcc -g -finstrumental-functions list.c libacpi.c test.c -o test
Now you need to get some source code by Sebastian Krahmer (SuSE):
$ wget http://www.suse.de/~krahmer/instrumental/instrumental.tgz && tar xvfz instrumental.tgz && cd instrumental
Compile a shared object file:
$ cc -fPIC -c instrumental.c && ld -Bshareable instrumental.o -o inst.so
This generates a shared object file you can preload with LD_PRELOAD
$ LD_PRELOAD=./inst.so test
.....

Now you will find a log.inst.dot.<pid> and log.inst.ascii.<pid> in /tmp (path can be modified in instrumental.c).
The first file is a dot file you can now create a ps and a png file with but you need to attach a closing bracket at the end of the file since the package is not
able to intercept exit() or aborts. echo ' ' >> log.inst.dot.<pid>
$ dot -Gsize=15,20 -Grankdir=LR -Tps -o graph.ps log.inst.dot.<pid> && gm convert graph.ps graph.png
The result looks like:


PDF file which scales a bit better

The other file represents the call graph in ascii:
~ [1000 1000 1000] -- main (0x8049ea4)
~ [1000 1000 1000] -- check_acpi_support (0x8048984)
~ [1000 1000 1000] -- get_acpi_version (0x8048782)
~ [1000 1000 1000] -- get_acpi_content (0x80486b4)
~ [1000 1000 1000] -- scan_acpi_value (0x8048837)
~ [1000 1000 1000] -- init_acpi_batt (0x80489d6)
~ [1000 1000 1000] -- dir_list (0x804a447)
~ [1000 1000 1000] -- new_list (0x804a23c)
~ [1000 1000 1000] -- append_node (0x804a309)
~ [1000 1000 1000] -- append_node (0x804a309)
~ [1000 1000 1000] -- read_acpi_battinfo (0x80497d3)
~ [1000 1000 1000] -- get_acpi_content (0x80486b4)
....

So both methods work but the first seems to be more useful if you want a graph for a specific file, not a specific program since you get an RTL file for each source file and you don't need all to create the dot file. The second method however looks better but has the limitation that you actually need to run the program (but that's dynamic and not static) and you can't (correct me if I miss something) create graphs for single files.

Have fun creating graphs for your favorite software and have a look into Sebastian Krahmers paper http://www.suse.de/~krahmer/instrumental/instrumental.pdf and http://www.ibm.com/developerworks/library/l-graphvis/. He also created a graph for openssh http://www.suse.de/~krahmer/ossh4.6.pdf.

Biella Coleman: Proportional Registration

Though I am not all that fond of Karl Fogel’s so called “cozy” San Francisco heater(because it does not work), I am more fond of his ideas on copyright. And I think his recent modest proposal that calls for a shorter term period for copyright and proportional registration is a good one. I agree with 90% of it although I am not sure that all types of creations are “created” equal in so far as I would be more comfortable with having software under a shorter term and books under a slightly longer one.

Stefano Zacchiroli: crappy ooimpress styles

Crappy OpenOffice.org Impress Styles The "GNOME suite" (mainly AbiWord and Gnumeric) is quite nice and I usually prefer it to the bloated OpenOffice.org counterparts. Unfortunately it is missing a good presenter. Yeah, I know, I should use beamer, and I fact I often do for academic stuff, but for quick and dirty presentations, where you care more than you should about visual aspects and WYSIWYG ... I often resort to ooimpress. It is not that bad, if you can stand its memory consumption and startup time, but for a long time I was convinced that I was wrong about a feature I was not finding in the UI. My reading of the ooimpress manual this morning seems to contradicts this belief. Here is the simple scenario. I do not play with fonts, the default styles inherited by the master page are fine. I just want from time to time to select some text and mark it as "verbatim text": the use cases are those you guessed: markup a shell command, a command output, or a code snippet. Of course I can't stand doing it again and again by hand, having to keep in mind each time the font I chose and its size for ensuring uniformity. I want to use a style. That's it, nothing less, nothing more. Is it asking too much? It seems so. ooimpress supports two kind of styles. One type (sorry, forgot the name) can be applied to built-in content types, e.g.: heading1-9, titles, subtitles, .... Changing such a style will affect all slides. Fair enough, that's good. The other type can be applied only to "graphics" elements, including text boxes. Fair enough as well, this way I can change at once all the text boxes or labels I've used in my document. But wait ... how can I solve my problem now? I see only two awful ways:
  1. devote a high heading level (e.g. 9) to my verbatim text
  2. use a graphic style
of course, a graphic style can not be applied inside non-floating text boxes and I do not want to use tons of text boxes, especially because they are not anchored to ordinary text Dear lazyweb, please prove me wrong.

Julien Blache: WTF Award of the week

Quoting from the Release Notes for the firmware v1.54.2 for the Thomson ST2030 VoIP telephone, in the “Relevant known limitations” section:
3.1 The display doesn’t show the name of the incoming call when received display name starts with the letter “O” (uppercase).
This raised quite a few eyebrows here, and raised quite a few concerns too. I refuse to even imagine how this kind of bug can happen. And for those who will have a hard time believing this, we did the test, and, indeed, the CallerID name doesn’t appear on the phone when it starts with an “O”. Shrug.

Joey Hess: ALS builddep discussion

John posted some old pics from ALS, and that prompted me to dig this out of the depths of my svn attic: This chat in the hotel lobby, or one like it, which also involved some developers from one of the BSDs, and at least one real Debian old timer, (Mike Neuffer?), is where we first discussed adding build dependencies to packages in Debian. It's stuck in my mind as one of the more interesting, and ultimately productive, late-might hacker talks I've participated in.

Neil Williams: Functional cross-building chroot, based on pbuilder

The pbuilder-based chroot script (empdebuild) in Emdebian SVN is now functional - that is it can run from a directory created by emsource, patch the Debian source using emdebian-patch files ( = emdebianising the package), get the build dependencies and install them, run emdebuild to cross-build the package and copy the updated patches, build log, .changes, .dsc and .deb files out to a nominal location before cleaning up the chroot. Only the basic pbuilder options and setup is supported and some values that can be configured for pbuilder are calculated automatically by empdebuild.

The embootstrap script that creates the chroot used by empdebuild needs some more work before this can be released as part of emdebian-tools 0.2.2 and there is no support (yet) for installing the cross-dependencies required for some packages. I'll be experimenting with Gyrosgeier's debian/xcontrol idea to specify these Build-Cross-Depends: using information already gathered on an ad-hoc basis. xcontrol files can then be committed to Emdebian SVN as patches. The pbuilder code is sufficiently flexible that the same code that parses debian/control for Build-Depends can be adapted to parse debian/xcontrol for Build-Cross-Depends.

In theory, empdebuild can become the basis of a cross-buildd, significantly improving the rate at which packages can be emdebianised.

The script does, currently, have to use apt pinning to retain the Emdebian toolchains because of problems with gcc-4.2 on arm.

(And yes, I do realise that emdebuild and empdebuild are very similar names but then so are debuild and pdebuild upon which the respective Emdebian scripts are based.)


http://buildd.emdebian.org/svn/browser/current/host/trunk/emdebian-tools/trunk/pbuilder

Next.

Previous.