Search Results: "ag"

9 November 2005

Adeodato Sim : More on the Mutt y key

Martin, Steinar presumably means y in the index or the pager, not in the compose menu. It takes you to the list of mailboxes, similarly to mutt -y in the command line. For the sake of Steinar’s peace of mind, let’s mention that this is in fact a quite recent feature, added by upstream to the default Muttrc (yes, it’s not native) in response to their 2069. That was on 2005-09-17, and entered Debian on 2005-09-25: certainly a lot less than 5 years ago!

Martin F. Krafft: The y key

Steinar, five years of mutt and not a single message sent? :_) And of course I know you meant the index-y key. Spiffy feature, but not what I want/need. For one, it's missing counts of read/total mail. Mh, noone seemed to notice the smiley in my initial post.

Junichi Uekawa: oprofiling debuild.

referring to Red Hat Magazine article for rpm, I tried doing similar with Debian debuild.Rough information is available, but since Debian does not come with debug infos per default,really meaningful result is not easy to get at.To obtain a vmlinux file, I can invoke make vmlinuxfrom the kernel build directory that I invoked make-kpkg.I am not sure how I can use make-kpkg to obtain a debug kernel.On my amd64 box, csum_partial_copy_generic is taking a large chunk of time.arch/x86_64/lib/csum-copy.S.I tried getting the call graph using -c option,but it didn't give me a meaningful answer, maybe I'mmissing something.

Andres Salomon: the problem with print

I’ve always disliked the manual labor part of GPG key signing (that is, writing down my GPG key for people). When I started a new job 6 months ago, I was determined to get business cards with my GPG key on them, so that I could simply hand them to people. Due to various delays, I finally got my business cards about a month ago. Two weeks later, my laptop (with my private key on it) is stolen. I’ve just now revoked my key. My one-month-old business cards are now obsolete.

Matthew Palmer: Redhat Considered Harmful

I try hard not to hate Redhat, I really do. I don't visibly grimace when someone says "I'm running $REDHAT_DERIVED_DISTRO", and my first solution to "I can't get this to work on $REDHAT_DERIVED_DISTRO" is almost never "just install Debian,Ubuntu ". But Redhat makes it so hard to not beat them with a stick. For instance, I'm working on building a SOE for a client, and so I've got a bunch of scripts (calling random poorly documented and hard-to-find utilities) to help me do that. Naturally, I'm pruning the package list, which requires me to rebuild the list of packages which are on the CD. No problems, I can handle that. Oh, but the tool that builds the package list can't deal with the correct "ordering" of packages in the list. Why is ordering important? Because, and this will make you laugh, the installer can't actually deal with dependencies. Yes, that's right, anaconda will install your packages in any old order you specify, regardless of what is actually needed. Brain-damaged, certainly, but I've dealt with Windows, so this is ultimately a minor setback. The tools for building the packages lists are in a certain package, which I dutifully install. They then proceed to fail horribly. Why, do you ask? Because the script requires python modules from another package. Gee, wouldn't be handy if there was a mechanism by which a package could specify that it needed another package to operate? OH WAIT, THERE IS -- IT'S CALLED DEPENDENCIES, FOR $DEITY'S SAKE! YOU WROTE THE GODDAMN RPM SPECIFICATION, REDHAT, WHY CAN'T YOU ACTUALLY USE SOME OF IT'S FRIGGING FEATURES! But wait, there's more! Installing the package which contains the module doesn't actually make the module accessable to anything else on the system, because the module is installed in some god-forsaken, out of the way location, where Python fears to tread. You need to specify PYTHONPATH to make it work. Apparently someone was sure that specifying absolute paths in scripts (instead of letting the system search it's environment) was a bad idea, but didn't have problem with not putting modules in standard, well-known locations. Then, of course, the (other) tool segfaults. Why? Because it's reading an empty file. Wow. An empty file causes this thing to fall over in a screaming heap. Not "Sorry bub, but your file's empty" just an unceremonious segfault. Wow. Thanks. And that's even before we get around to actually doing an install...

8 November 2005

Erich Schubert: On a binary driver interface for Linux

Some japanese companies have requested that the Linux kernel gets a "stable" (whatever) kernel interface for binary drivers. The obvious reason is, that they want to be able to add (illegal!) closed source drivers to the linux kernel. This is a bad idea for a couple of reasons, that have been discussed in a couple of places. Instead I want to show you a couple of examples to illustrate that. First of all, let me name the binary, closed-source drivers of ATI and Nvidia. They totally suck. They are unreliable, cause system crashes, don't work with power management and so on. Is this the type of driver you want? Commercial driver development is not capable of supporting the development speed and models of opensource. Other examples to show you the problems with all the closed source stuff include many wireless access points such as the isl3893 platform or broadcoms AR7. They duefully released the kernel code they used and maybe some drivers, but even the kernel code they touched is broken to large extends (that's why Intersil/Conexant doesn't support https on their isl3893 accesspoints, because they broke their libc in a way they can't get SSL to work on it any more). Now let me give you a good example: USB. There the interface to the hardware was openly and clearly specified, also for many many uses. The result is, that today basically any memory stick and digital camera adhers to this standard, and there is only one driver for it. Thats why they "just work". So instead of requesting a binary driver API in the kernel, these japanese manufacturers should instead start an industry initiative just like USB to standardize on a common stable hardware interface so we don't need a different driver for every hardware. Our real problem is that no hardware is like the other, and nothing is properly documented. And hardware manufacturers earn their money with hardware and haven't got much expertise on software...

Clint Adams: Feel the zsh of the rhythm of the night

Say, for example, that you were a rabid Miami Sound Machine fan, but you were subjected to grave trauma, and now you are so emotionally handicapped that a mere reminder will send you into hysterics. Perhaps you keep your diary in multiple files in a directory somewhere, and you decide that you want to revise history and wipe out any files that mention Gloria Estefan.
rm $(grep -l "Gloria Estefan" diary/*)
That's pretty easy, but, maybe you want to preserve as much as you can stomach, and you've learned that you can handle seeing Gloria Estefan every once in a while. So you only want to delete files that have Gloria Estefan more than once.
rhythmisgonnagetyou()  
[[ $(grep -c "Gloria Estefan" $REPLY) -gt 1 ]] 
 
rm *(+rhythmisgonnagetyou)
Of course, you can make it much more complex.

Alexis Sukrieh: Backup Manager 0.5.9b is out

A new release of Backup Manager has just been published: 0.5.9b
This release provides DVD burning support with growisofs and two new
methods for generating archives: one for backing up SVN repositories
(with svnadmin), the other for making generic archives based on the
output of a given command. Some bugs have also been closed, the
generated MD5 files are now compliant with the md5 program.
The Debian package will come soon…

Lars Wirzenius: Debian: My BTS spam rant

In recent times, the Debian bug tracking system has been suffering from slowness due to having to handle much spam. When it takes many hours to get a response from the system, usability and productivity hurt a lot. Having waited for a response for an hour again, I wanted to rant about the evilness of spammers, but luckily I did not. My aunt had called me and I had forgotten to press "send" (specifically, I had pressed control-backspace, instead of control-Enter). Oops. So, instead, I'd like to express my gratitude to Blars Blarson for coping with the BTS spam load. Despite occasional hickups, he and others make sure spam is not something BTS users need to worry about much. Thanks!

Wouter Verhelst: belpic_2.3.13.full-1

Close to uploading that one. Previous versions of my belpic packages did not include the eidviewer, or libeid, because I couldn't find a license statement. As it turns out, that license statement was there all along--just in a different place than I suspected. This means the package now has the (ugly) 'upstream' version number of 2.3.13.full rather than 2.3.13, which is what upstream calls it; but at least that allows me to build everything. Anyway, after weeks of fighting and one desperate call for help, I've finally been able to produce working packages. If you've got a SmartCard reader and/or a Belgian eID card (a real or a specimen one), I'd appreciate tests reports. (Note that there are no i386 packages, yet. If I get a trusted i386 upload, I'll include it there.)

Steve Kemp: Things I have never written #1

Coding Mistakes
I broke my debian administration website yesterday. Predictably enough I’d woken up around 9AM and thought that it would be a good time to make significant refactering changes. Tested them on my laptop, committed them to CVS, then updated the live site. Had a quick play to make sure nothing had obviously broken - but didn’t try to leave a comment on an article. Went to sleep and woke up around 4pm to find 15 emails telling me things were broken. Most mails on the site in a single day! Should be fixed now. But I’ll never again make changes before lunchtime, I’m just not good with the whole sleepy-coding thing.
Things I have never coded: 1
Inspired by Joey Hess’s “Ten years of free software”. Things I have never coded part 1. I have never coded a text editor. *shock* In the past I have written simple wrappers around the various text controls in different environments - for example under Windows I once coded a tabbed text editor called MyNotepad, which featured a novel dockable tree-control to the side which allowed navigation and loading of files easily. When I first started working with Java I coded a similar thing, but with the ability to load external Java .class files as plugins. This editor was called Rosetta, inspired by the band Rosetta Stone (who were in turn inspired by the actual Rosetta stone ) At times I think about text editors. I use them daily, obviously, and I love working with some more than others. My editor is usually GNU Emacs but I’m also partial to Vim. I will use both happily; although neither is pleasant without my personal customizations. Simple text editors are a traditional project for coders, and freshmeat is littered with their discared corpses. Probably the only reason I’ve not started - that and apathy. My ideal editor would be:
  • Both curses and x11 based.
  • Scriptable (Lua is love?)
  • Extensible.
  • Portable between (at least) GNU/Linux and Solaris.
  • Modeless.

Wouter Verhelst: That's why C is usually preferred.

As I wrote earlier, I've been playing with m68k assembly lately. My first program looked somewhat like this:
.LFORMAT:
	.string	"%c"
	.text
	.align	2
.LENDL:
	.string	"\n"
	.text
	.align	2
	.globl	main
	.type	main, @function
main:
	link.w %a6,#-4		  allocate a stack frame		
	moveq #65,#-4(%a6)	  Move 65 (ASCII A) to an address on our
				  local address space
.L0:
	move.l #-4(%a6),-(%sp)    push the address to the stack
	pea .LFORMAT		  push the format to the stack
	jbsr printf		  run printf
	add.l #1,#-4(%a6)	  add one to the letter
	cmpi.l #91,#-4(%a6)	  compare with 91 (ASCII Z + 1)
	jblt .L0		  if less, jump to label L0
	pea .LENDL		  push format to the stack
	jbsr printf		  run printf
	unlk %a6		  clear stack frame
	clr.l %d0		  store 0 in %d0 (return value)
	rts			  return
	.align 2
	.size	main, .-main
IOW, print out the alphabet. Nothing spectacular, and it worked. Then I decided to take it one step further, and rather than using an address in memory, I switched to using a register, which is supposed to be a tiny bit faster—even if that shouldn't be noticeable in this case:
main:
	link.w %a6,#-4		  allocate a stack frame		
	moveq #65,%d0		  Move 65 (ASCII A) to %d0
.L0:
	move.l %d0,-(%sp)	  push the address to the stack
	pea .LFORMAT		  push the format to the stack
	jbsr printf		  run printf
	add.l #1,%d0		  add one to the letter
	cmpi.l #91,%d0		  compare with 91 (ASCII Z + 1)
	jblt .L0		  if less, jump to label L0
	pea .LENDL		  push format to the stack
	jbsr printf		  run printf
	unlk %a6		  clear stack frame
	clr.l %d0		  store 0 in %d0 (return value)
	rts			  return
	.align 2
	.size	main, .-main
(that's only the main section, but please assume the rest is still there:-) When I ran that, it bombed. It would print out the A, and then whole lines of nothingness. When I ran it inside gdb, it wouldn't even print out the A. It took me quite some time to figure out what went wrong.
main:
	link.w %a6,#-4		   allocate a stack frame		
	moveq #65,%d7              Move 65 (ASCII A) to %d7
.L0:
	extb.l %d7	
	move.l %d7,-(%sp)	   push the address to the stack
	pea .LFORMAT		   push the format to the stack
	jbsr printf		   run printf
	add.l #1,%d7		   add one to the letter
	cmpi.l #91,%d7		   compare with 91 (ASCII Z + 1)
	jblt .L0		   if less, jump to label L0
	pea .LENDL		   push format to the stack
	jbsr printf		   run printf
	unlk %a6		   clear stack frame
	clr.l %d0		   store 0 in %d0 (return value)
	rts			   return
	.align 2
	.size	main, .-main
%d0 is used to store a function's return value. If I store my data in %d0, then the next time I call a function, that data is overwritten. Since I do call a function inside my loop, that function overwrites my data every time. Using a different register (say, %d7) fixes this. Right. Apart from the fact that it's totally non-portable, assembly language also has quite a few quirks that you don't learn about when taught structured programming. It'd be nice if there were a document somewhere that would explain how C functions expect to be called. I found out most of the above through trial and error, and through compiling stuff with -save-temps and looking at the result, comparing it with the 68k Programmers' Reference Manual. That works, but it's not really efficient—and not totally error-proof, too.

Ross Burton: Loving Open Source

This article on debugging and fixing a bug in Windows without the source is engrossing, in the way that an accident is engrossing. Sometimes you forget that 99% of the source code for the programs you use daily is available for free, and things like this can be changed easily. God I love Open Source... Speaking of which, do you love Open Source? Opened Hand are on the look out for interesting developers; skills in embedded Linux, GTK+, and DBus are an advantage. If you think you are up to it, email us. NP: August and Everything After, Counting Crows

Clint Adams: Covered in chicken blood

Some of the greatest Flash cartoons ever made have been unearthed again. Alas! Plenty of them are still lost. Also, a frightening Journey thing.

7 November 2005

Antti-Juhani Kaijanaho: Klingon Hommey

As I wrote earlier, I am trying to learn the Klingon language. Today, I caught up on Planet Debian postings and saw one of my fellow developer's name in a completely new light: Hommey is interpretable as Klingon. Hom means 'a bone', and -mey is the general pluralizer. Normally Hom would be pluralized by -Du', because it's a body part, but when -mey is used, it implies that the bones are used not as parts of a body but in some other usage (as weapons or something like that). In a poetic context, Hommey can also mean bones scattered all about.

Wouter Verhelst: Whoops

I svn mved my ~/data/blog/live/en/computer/lang to ~/data/blog/live/en/computer/code earlier today. Turns out I made a little error which made the commit fail horribly; as a result, an old posting turned up on Planet Debian again. Whoops. Interesting to be getting comments on it, though :-)

Wouter Verhelst: Compiling belpcscd

Dear lazyweb, please tell me:
wouter@country:~/debian/eID/belpic-2.3.13.full$ LC_ALL=C make
Making all in winscarp
make[1]: Entering directory  /home/wouter/debian/eID/belpic-2.3.13.full/winscarp'
[...]
Making all in belpcscd
make[1]: Entering directory  /home/wouter/debian/eID/belpic-2.3.13.full/belpcscd'
if g++ -DPACKAGE_NAME=\"belpcscd\" -DPACKAGE_TARNAME=\"belpcscd\" \
	-DPACKAGE_VERSION=\"2.3.13\" -DPACKAGE_STRING=\"belpcscd\ 2.3.13\" \
	-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"belpcscd\" -DVERSION=\"2.3.13\" \
	-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 \
	-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 \
	-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 \
	-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_TIMEB_H=1 -DHAVE__BOOL=1 \
	-DHAVE_STDBOOL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 \
	-DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 \
	-DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_SYS_SELECT_H=1 \
	-DHAVE_SYS_SOCKET_H=1 -DSELECT_TYPE_ARG1=int \
	-DSELECT_TYPE_ARG234=\(fd_set\ \*\) -DSELECT_TYPE_ARG5=\(struct\ \
	timeval\ \*\) -DRETSIGTYPE=void -DHAVE_FTIME=1 -DHAVE_INET_NTOA=1 \
	-DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 \
	-DHAVE_STRSTR=1  -I. -I.    -Wall -Dlinux -I. \
	-I../ObjectsMultiPlatform/Include -I/usr/include/PCSC  wx-config \
	--cppflags  -g -O2 -MT belpcscd-wxmainapp.o -MD -MP -MF \
	".deps/belpcscd-wxmainapp.Tpo" -c -o belpcscd-wxmainapp.o  test -f \
	'wxmainapp.cpp'   echo './' wxmainapp.cpp; \
then mv -f ".deps/belpcscd-wxmainapp.Tpo" ".deps/belpcscd-wxmainapp.Po";
else rm -f ".deps/belpcscd-wxmainapp.Tpo"; exit 1; fi
wxmainapp.h:88: warning: 'class MyApp' has virtual functions but non-virtual destructor
wxmainapp.cpp: In function 'int main(int, char**)':
wxmainapp.cpp:239: error: 'wxInitializer' was not declared in this scope
wxmainapp.cpp:239: error: expected  ;' before 'initializer'
wxmainapp.cpp:240: error: 'initializer' was not declared in this scope
make[1]: *** [belpcscd-wxmainapp.o] Error 1
make[1]: Leaving directory  /home/wouter/debian/eID/belpic-2.3.13.full/belpcscd'
make: *** [all-recursive] Error 1
wouter@country:~/debian/eID/belpic-2.3.13.full$ 
(line feeds added for readability) The offending bit of wxmainapp.cpp looks like:
int main(int argc, char **argv)
 
    wxApp::CheckBuildOptions(wxBuildOptions());
    wxInitializer initializer;
    if ( !initializer )
     
        fprintf(stderr, "Failed to initialize the wxWindows library, aborting.");
        return -1;
     
    MyApp *pTheApp= new MyApp();
    pTheApp->OnInit();
    
    while(1) sleep(1); /* run */
 
which doesn't look incorrect to me, but I could be wrong. class wxInitializer is defined in <wx/app.h>, which (according to gcc -E output) seems to be included (even if only indirectly), and its use is to initialize and cleanup the library automatically, so it would seem that upstream used it properly in the above bit of code. People with more C++/wx knowledge than me would make me very happy if they'd point out what's wrong. Even if they first need more info to do so. Thanks. Update: Seems I need wxbase-2.4-config, rather than wx-config. As the upstream makefile (which I'm ignoring for the time being) showed me. Really need to learn to trust other people's judgement some time...

Adam Rosi-Kessel: Boston City Council 2005 Endorsements

Hey, no one asked me, but here are my endorsements for tomorrow’s city council election: In any case, if you’re a Boston voter, be sure to participate tomorrow, whomever you choose to support.

Jesus Climent: Nokia 770 is out.

So, finally we got it out. You can buy right now from the web page http://www.nokia.com/770 and in US starting from 11.11.2005. It works with Debian GNU/Linux, so you will have a Debian machine in your pocket, right beside your Debian installation CD/USB key. If you applied for the developer program, you should be getting it soon. PS: If you think this is Spam, killfile me. But i still think this is fun, having Debian in my pocket.

Ross Burton: Google Juice!

Poor Guido Boehm is suffering a lack of Google Juice, as searching for him results in the Devil's Pie home page. Hopefully this will help Guido out!

Next.

Previous.