Search Results: "mak"

5 February 2006

Joey Hess: unix tools, vidir

I'm a fan of the unix tools philosophy, but I sometimes wonder if there's much room for new tools to be added to that toolbox. New programs that fully partake of the philosophy (like rename, netcat, par, bloxsom, grepmail, and xwit) are fairly few and far between compared to all the new programs that don't. I've always wanted to come up with my own general-purpose new unix tool. vidir doesn't quite qualify as a real unix tool, since it doesn't (normally) operate on stdio, but it's as close as I've gotten, and it does seem to fill in a nice hole in the toolbox. The idea is very simple, it just displays the files that are in a directory as lines in a text editor, then you can make any changes you like, and when you quit the editor it renames and/or deletes files to match your changes. No need to worry about quoting issues and the full ad-hoc editing power of a good text editor make cleaning up messy directories fun. Like any good utility, there is plenty of obvious room for improvement, it would be nice if it had a --recursive switch to edit whole directory trees at a time. And it needs to have some support added for swapping pairs of filenames. I challange others to try to make general purpose unix tools..

David Pashley: SQL::Translator

Today, I discovered SQL::Translator, which seems to have some very interesting use cases. Basically, it is a perl module for translating a database schema from one of a number of formats and turning it into another format. Parsers include: Output formats include: Several things spring to mind with this:
  1. Defining your Schema in XML and using SQL::Translator to convert it into SQL for several databases and a set of classes for Class::DBI, which would make your application immediately target any of the supported databases.
  2. Documenting an existing database for which you've lost existing documentation by pointing it at a running database instance and outputting HTML page and, thanks to the Diagram output module, visual representation of the structure.
  3. Convert one database from product to another. Point it at a MySQL database and generate SQL for postgresql. If you generated some Class::DBI stuff you could possibly quickly write a script to copy data too.
  4. Using the sqlt-diff script, compare you current SQL to what is running on the database and generate a SQL script to upgrade the database structure using ALTER TABLE etc. Presumably you'd need to convert any data yourself, but is still a time saver for large databases.
I'm sure other people could think of some interesting uses for this. Having looked at the Class::DBI stuff, I think it could do with some improvements. I can't see a way to set the class names, although I haven't spent that much time looking and it insists on having all the classes in one file. Also the XML and YAML formats generated are rather verbose and I haven't looked to see how much I could cut them down to use as the source definition. I suspect that I can make it a lot shorter and rely on sensible defaults. My initial reason for wanting to use SQL::Translator is that Class::DBI::Pg has a large start up time and isn't really suitable for CGI use if you have a complex database. This might be mitigated by using mod_perl, but in the mean time I was hoping I could speed up startup by telling Class::DBI my column names, rather than it querying the database. SQL::Translator should allow me to save duplicating the database structure, whilst allowing me to support multiple backend databases. If I get this working, I'll write up a short HOWTO.

Andreas Metzler: exim4.conf for *.debian.org II

Following up on the previous entry I have now got a exim4.conf that has survived basic testing. I have checked exim4 -bt for all major routers and found and fixed a fair number of bugs in the initial version. Any further changes I would (like to) make would result in different behavior than the current exim v3 setup, so I am not wasting time on that until somebody from debian-admin says they want me to. Conservative suggestions include copying the "deny local_parts = funky characters" settings from the default configuration, disabling domain-literals (or at least accepting only incoming postmaster@[local.ip] instead of only outgoing), and perhaps recipient verification.

Erich Schubert: On window placement

John Williams, of GNOME fame, recently blogged on window placement as part of his "things about gnome that suck" series. Well, I basically agree with him - but he doesn't propose a solution. Devil's Pie isn't a solution, because it's not configurable by the average user. Or even by me, I failed to have it tell apart my terminal windows and use a sane placement for them. Just remembering the last window position doesn't work either - I'm annoyed by this "feature" by nautilus, for example. I tend to have a default position for my windows, by I occasionally have to move them away, and I do not want to have them reappear at this different position ever. My personal approach basically is to run all windows (except my terminals and popups such as IM windows) fullscreened, on dedicated desktops. Even the IM windows are usually on my "IM & Chat" desktop. This works really well, especially since I keep my terminal windows open all the time, and the default placement to minimize overlap works fairly well. Still I couldn't specify a general rule how any window manager could learn where to place my windows... so just complaining that Gnome doesn't do this good isn't all - we need to find a way to make this work just fine without the user noticing... I don't know about OSX - how does this work there? In windows it definitely is horrible. When you watch windows users, you'll often see them stating their Internet Explorer, then clicking on the maximize button. All the time.

Erich Schubert: Shouldn't Debian be Alsa by default now?

Some time ago, I installed Debian on my mothers new laptop (which worked fine once the Xorg drivers supported PCI Express and I did a Bios update). Since my Laptop is currently being repaired, I'm using hers now (she works 95% of the time on her Desktop anyway). And I noticed a couple of odnesses:
Package: libsdl1.2debian
Depends: libsdl1.2debian-oss (= 1.2.9-0.1)   libsdl1.2debian-all (= 1.2.9-0.1)
  libsdl1.2debian-esd (= 1.2.9-0.1)   libsdl1.2debian-arts (= 1.2.9-0.1)
  libsdl1.2debian-alsa (= 1.2.9-0.1)   libsdl1.2debian-nas (= 1.2.9-0.1)
This makes SDL install OSS support by default, not alsa. IMHO we should now make alsa support default. Maybe even some dmix configuration, since that is what most users will need. Similarly, lots of stuff depends on libesd0, which is the OSS library. Or to be precise, they all depend on "libesd0 libesd0-alsa", tons of packages. Each single one preferring to install the OSS version instead of the ALSA version. :-( Is it just me thinking that OSS is deprecated, while ALSA works like a charm and can do much more than OSS? Sure, you can use ALSA via it's OSS emulation, but then you lose e.g. the ability to use dmix.

Junichi Uekawa: Re-checking that dvipdfmx mess.

I've motivated myself to check how it is possible to make dvipdfmx working from a clean environment. It's pretty hard, really.It's not written anywhere in the dependency, but to create a Japanese PDF file from DVI file, ptex-base, cmap-adobe-japan1, and gs-esp are required.After installing these three, I can get a basic document build inside chroot.

Jose Carlos Garcia Sogo: Unique way of thinking.

The latest burning of different consulates by outrageous and uncivilized muslims only shows again one thing: they ask for respect for his way of thinking while at the same time they don't respect at all others way of thinking. Clearly, islamic movement is being used lately as comunism was used some time ago in Europe, as a way of control people and make them not thinking freely. Watching those images on TV makes me change my mind on respect to the islamic world. And while I think that perhaps those Mohammed cartoons could be offensive for muslims, their reaction makes me think that they deserve those. But what can you say of people that behave as the year they live in: 1441.

Jesus Climent: The right to critizise.

I can't agree more with Per-Arne Hellarvik. Globalization is making this whole thing of personal offenses a ridiculous thing: for every sentence I write in my blog, which might reach every corner in this planet, someone, somewhere, might feel offended. As I have stated before, it offends me that my life is affected everyday in many ways by people's believes in god(s). Yet I don't go around burning churches and killing the offenders. Note to anyone offended by this post: live your life, that I will take care of living mine. PS: Demonstrators in London claimed: "The government must control the media". I thoght one of the purposes of the media was to keep the government under control. And interestingly enough, the countries dubbed as offenders are listed on top of the countries with more freedom of speach in press, while Syria is 145.

4 February 2006

Kevin Rosenberg: Console Password Manager

I'd been looking for a fairly secure way to store an increasing number of passwords. There's a large number of methods one can use. While the most secure might be an encrypted file on a system that has no network access, I do want to have access to the information over a network while I'm traveling. Remote access makes using a graphical client a poor choice. After a moderate search and trying a number of candidates, I settled on Console Password Manger (CPM) written by Harry Brueckner. It's close to an ideal match to my needs: it's console-based, had an emphasis on security and uses my existing GPG key for encryption. The program is maintained and I've had no issues while using the last three beta versions of the program. Thanks, Harry for the very good tool. Recommended.

Benjamin Mako Hill: If You Thought the Flessenlikker Had a Good Name...

I just created a stub in Wikipedia for the Hydrodaktulopsychicharmonica. I will visit the Music Library today for more information on this wonderfuly named instrument. If you have more information already, please contribute to the page.

Benjamin Mako Hill: The News Makes You Stupid

I've been spending what is increasingly clearly too much time reading the news lately and think it might have a negative impact on my intelligence. Here's one example of why I think this, taken from local news:
A teenager accused of going on a rampage at a gay bar with a hatchet and a gun sometimes glorified Nazism and had a swastika tattoo but never previously expressed any prejudice toward gays, friends say.
I'm sure he was the tolerant, sensitive, pro-gay-rights, secure-in-his-own sexuality kind of Nazi. Thanks Forbes for filling us in. Even if his friends are in fact ignorant enough to believe this, I'm don't see how this is newsworthy. Here's another bit from international news
The United States is expelling a Venezuelan diplomat after the Caracas government Thursday ordered an American naval attach to depart for alleged spying. ... State Department Spokesman Sean McCormack did not accuse Figueredo of any wrongdoing and did not explain why she was designated for expulsion other than to say she was the "most appropriate" choice. McCormack said the United States does not like to engage in what he termed "tit-for-tat diplomatic games," but said that Venezuela initiated the action and U.S. officials were forced to respond.
Copyrighteous spokesman Benjamin Mako Hill reminds McCormack of the definition of "tit-for-tat diplomatic games."

Amaya Rodrigo: Lovely Weekend

* Temperature in Spain raised after the cold wave (mild cold wave for cold wave values anyway).
* Upgraded my Linksys running OpenWRT to White Russian RC4. This toy makes me so happy.
* Upgraded my 3Com OfficeConnect 11g to 2.06, to deal with the router being Dos by using p2p software (even though it is just a acting as an ATM bridge). This toy makes me so unhappy. I miss my 3Com OfficeConnect with no nothing that did nothing but what it was told to (a simple ATM bridge). But this old friend does not support my new DSL 2 connection. His loyalty and rock solid operation for over 4 years 24x7 non-stop will be missed.
* After all the upgrades were done, I realized that the reason my host was unreachable from the Internet was that my fixed IP address (that I pay 12 EUR a month for) was changed to IP 1. Lovely!
* My old skates were ABEC1. If you know anything about skating, you know the fucking thing does not move, which was good while I learned. I felt a bit more adventurous, and wanted to go faster! Today I found the 150 EUR skates I dreamed of for 79 EUR. God bless Credit Cards and January sales. I am now the proud owner of a new pair of K2 Exo 6. ABEC 5, aluminum-titanium alloy frame... a dream. I just hope not to break a leg in these. Wish me luck!

Old New



Yay!

Daniel Stone: [tech] i am too elite to understand your design process

Usually I try not to get involved in the mind-numbingly pointless desktop wars, but Benjamin produces one of the most flawed arguments I can remember having seen.

Fair enough that you want to use the keyboard. I'm much quicker on the keyboard than on the mouse, and presumably so are you. After a long time using computers, and CLIs in particular, this is no surprise.

Most people are not this way. I can assure you that my mother is not this way, and prefers the comfort of the mouse whne navigating around. I don't see what your assertion that 'stating that a typical Gnome user does not want keyboard is simply false' is grounded in. Have you done studies? Do you know the exact breakdown of geeks vs normal people using GNOME? Remember that it's not just for the cool kids who can write their own code anymore -- I know plenty of 'normal' people using Linux now, typically with a GNOME-based desktop.

But, it's 'but don't say it is for users sake' that really throws me. Why do you think they do it? For fun? To see how many people bitch on blogs about it when they do it? Because they hate people and this is the best practical way to take out their anger on the world? They've done studies on their userbase (e.g. the Sun usability study), and they're doing what they believe is best. This is true of every desktop: they simply do what they believe will produce the best desktop for their userbase. Sometimes this results in decisions which people think are bad. Fine then, so be it. This is what's happened here, as opposed to your suggestion of a deep-seated hate for all their users, individually and collectively, or something.

Your claim to be a normal user is simply false. I can't claim the same thing. A good rule of thumb is that if you're capable of writing the application you're using, then you're not a normal user. In some cases, this means you're not its target userbase (not always: this holds more true for, say, Evolution, than mutt).

If you have truly constructive suggestions (not using the words 'crap' and 'simply false'), then provide feedback to the developers through the appropriate channels. If you don't think GNOME is for you, try some of the many excellent other desktops (KDE, XFce, GNUstep, whatever else is around). If you like GNOME otherwise and would like to make a concrete improvement, then submit patches.

Daniel Burrows's point was simple: you are probably not GNOME's target audience (this is not specific to benj; if you are reading my blog, then odds are you aren't GNOME's target audience). So, assertions that they've got it all wrong and they should listen to you on matters of interface design aren't really going to be helpful, because you just aren't the primary target market.

PS: Just because you write it in Latin, doesn't make someone else's argument a logical fallacy.
PPS: If you're still having trouble wrestling with this entry, imagine instead someone bitching about Debian being crap because they don't include the proprietary Flash plugin, a bunch of closed-source games, VMware, etc. That's not what Debian's about. Make sense now?

Joerg Jaspert: packages.debian.org

Well, packages is still down, but there is a temporarily replacement until a new machine is running now on pdo.debian.net (anything except changelogs/copyright files). The new, final, place for it is scheduled to be up and running mid of next week, but until then you get the information, including searches (ie. pdo.debian.net/$PACKAGENAME) from that other host. debian-admin is informed that they can point the DNS for packages.debian.org there, to make it easier to access, lets hope one of them is doing this simple change. :) Update: Meh, just copied in the search form from http://www.debian.org/distrib/packages and replaced packages.debian.org in it, so you now can search with the usual form there if you want.

David Pashley: Trading_A ert starting 01-25-06

EVER-GL0RY_INTERNATI0NAL_GR0UP_INC. (E.G.L.Y) WE CALLED IT AT .38 CENTS NOW ITS AT $2.00! WITH ALOT MORE ROOM TO MOVE! WE EXPECT IT TO BE TRADING AROUND 5-6 D0 ARS BY EARLY NEXT MONTH! A MAJOR PR CAMPAIGN IS STARTING WEDNESDAY FOR THE REST OF THIS WEEK INTO THE NEXT!! THIS ONE IS GOING BACK ON THE MOVE! GET IN EARLY!! ** ACT QUICK AND TRADE OUT THE TOP ** About the Company: Shares issued and outstanding: 10.5mi i0n Profits for the 9 months ended Sept, 30 2005: $1.1mil This means that this company is earning over 10 cents per share in only nine months! In our view, this in itself is reason to buy. About the Company: EVER-GL0RY_INTERNATI0NAL_GR0UP_INC(E.G.L.Y) is an American public company engaged in international business and garment manufacturing mainly for high grade well-known casual wear, outwear and sportswear brands such as Reebok, North Face, Levi's and many more. It has a wholly-owned subsidiary company in mainland China-Nanjing Goldenway Garment Company Ltd. The company has over 700 team members, total assets near US$7.5 mi i0n, and annual revenue of approx. US$8 mi i0n. We here at Smart Money feel that the fundamentals of this company and the hot market sector make it a winner. But what is really going to make this company take off is expected BIG NEWS! Please go read the latest news now!! We all know it's the big announcements that make these gems move. We believe the time to get in is now. Watch this one go higher and higher all MONTH! **GOOD LUCK AND TRADE AT THE TOP**

3 February 2006

Jonathan McDowell: Friday fun with consumer routers

I'm such a funster. It's Friday night and I've spent it fighting with consumer routers in an attempt to get my home setup sorted out a bit. And I've made some progress, but it's taken a while. My old setup was an Asus WL-500g with a USB Speedtouch attached. This was running a hacked up version of Oleg's firmware, with kernel 2.4.20 (ewwwww) and the userland Speedtouch pppoa3 driver. It's been up 253 days as I type, which is quite impressive IMO. The plan was to get something else doing the same job so that I could try and get more up to date firmware on the Asus (probably OpenWRT) and give it to my parents as a wireless access point / print server. First try was my Netgear DG834G. Unfortunately the ADSL interface on it doesn't want to sync to the line for any length of time. I don't really want to faff with it at present, so I gave up on that. I do want to try and get this sorted, as it has a native ADSL interface, but the AR7Port appears to have stagnated a bit. Next was the Netgear WGT634U. I'd built an OpenWRT image for this and tried to flash it earlier in the week, but messed it up and bricked the router. So opened it up, hooked a serial console up and managed to restore it easily enough. A little bit of frobbing and I had it recognising the Speedtouch. Result. This has a 2.6.15.1 kernel, which means in kernel driver goodness and nice and up to date. Plus OpenWRT makes it easy to add various nicities like radvd and dnsmasq. I'm currently using this solution and will keep an eye on it over the weekend before reinstalling the Asus. Of course my home network has become simplified a bit by the fact I no longer factor the NTL connection into it. That's always just been a backup thing since getting ADSL from Black Cat (mmmm, IPv6 goodness) and I've decided to finally ditch it soon. However I might want to add a modem to the WGT634U at some point - probably using a USB serial dongle I guess, as I don't think the internal ports do hardware flow control. That's a battle for another day though. I also managed to get rid of a whole load of computer junk that was working but unused, thanks to Norfolk FreeCycle. Kathy will be pleased when she comes back from London tomorrow. :)

Joerg Jaspert: packages.debian.org

Well, packages is still down, but there is a temporarily replacement until a new machine is running now on pdo.debian.net (anything except changelogs/copyright files). The new, final, place for it is scheduled to be up and running mid of next week, but until then you get the information, including searches (ie. pdo.debian.net/$PACKAGENAME) from that other host. debian-admin is informed that they can point the DNS for packages.debian.org there, to make it easier to access, lets hope one of them is doing this simple change. :)

Sergio Talens-Oliag: Tired & Burn Out

I'm starting to be really tired, probably burn out, with my current work. I believe I'm doing a good work, but when it seems that the people in charge does not know what they want nor care about what is being done and the once supposed co-workers (now luckily transformed into customers) loose absolutely your respect after insulting your intelligence and, from my point of view, calumniate yourself directly (sending an e-mail) or indirectly (saying nothing about the message), things start to look bad. I understand that we don't live in Wonderland, but it is difficult for me to work on a complex technical project like the development and deployment of a distribution without a real management:
  • There are no written requirements. Well, that's untrue, there were some high level things, but nobody told me to use them as a base for anything and now that I've looked at some of them I believe that they can be used as a starting point, never as the final requirements.
  • We have deadlines, but for me they are only dates. Until very recently I've only had very high level ideas of what was expected, but there was no place to look into a written document and know which were the priorities. Luckily that is not my task, but it makes you angry to see a lot of people telling you that you should have known and making it look like all is under your responsibility, when it is not (or I would have asked for a much higher salary).
  • There is no real QA work being done, once the problem was that we didn't had the tools (IMHO a simple mailing list could have been enough for a while), but now that we have them nobody uses them until you force it.
Oh, well, I know I need a salary to eat and when you find one that looks is going to be the work, is sad to see that it is not; that is the second time it happens to me, the lack of interest on doing a good work of others, my real problem with sincerity (I usually say what I think, and people is not used to listen to it, I can be wrong, but at least I'm not going behind the back of anybody, as others do) and the climate it generates tells me that I have to move on, there's nothing to win and much to loose, at least on the personal side. I don't know how long I'll stay on my current work (I'm not going to leave without a replacement, I have a family), but I'm going to look at the job offers again and to send CV's out. Wish me luck. Ah, BTW, if someone has a decent offer for someone with experience in systems administration, programming in general or Debian development in particular please send me an email ... ;)

David Pashley: UK Acts online

I can't believe in this day and age that OPSI (formerly HMSO) still don't have copies of UK acts of parliament before 1988 online. According to their website:
Q. Why do you only display legislation back to 1988? A. The website was launched in 1996. Initially, legislation was only available from that year. In 2000 we took the decision to include older legislation for which we had electronic files. These files only dated back to 1988. Prior to this, legislation is only available in its original print format.
I don't think it's acceptable to say "Oh it's a bit of work to make them available." If Project Gutenberg can make 17,000 out of copyright works available, I fail to see why the government, who have resources at their disposal, can't make the text of approximately 3000 acts from the last 100 years available. This makes several key acts which govern us today unavailable to the UK public, including the Telecommunications Act 1984, Sale of Goods Act 1979, Supply of Goods and Services Act 1982 and Unfair Contract Terms Act 1977. On a similar note, they have only just started making PDF files avilable for download (since October 2005). They don't appear to be planning on making existing documents available in PDF. Again, I don't think it would be too hard to make all their content availble in alternative formats.

Lars Wirzenius: Rant: Secrets of Successful Programmers

The Seven Secrets of Successful Programmers article was on reddit today. I found it to be simplistic enough to be inane. Also not particularly good advice in all parts. For example, the article says that "[m]ost compilers will strip the comments from the executable program". Strictly speakig this is true: there is probably one or two compilers out there that retain comments in the binary code they put out. They're so rare, though, that it is quite utterly pointless to say anything about it. Anyone who needs to be told that comments don't impact performance or executable code size needs a course in basic programming, not secrets about being successful. "A good indication that you have got the level of comment right: could someone understand what your program does if all but the comments were removed?" I disagree with this: better advice would be "could someone understand the code if you remove all the comments?" It's the code that gets executed and so it is the code that should be used to communicate and not comments, except when code can't be made clear enough. For example: if you write a wrapper around malloc to check that it succeeds, a comment explaining why it is acceptable to just kill the application on failure would be good, and very hard to express with code. "In particular any code branch (an IF..THEN...ELSE construction) and any code repetition (a WHILE...END WHILE construction) should be indented so that it is easy to see where they start and end." Gee, that surely is a big secret that only successful programmers know about. "Expect the unexpected and deal with it. Before you open a file, make sure that the file is present." That's not a good way to deal with it. It's a race condition just waiting to blow in your face. The correct way is to attempt opening a file and then deal with an error if it failed. "Name your variables to aid readability. - - - The key is to be consistent and to be as informative as possible." Packing as much information as possible into a variable name can be a hindrance to readability. Too many people read advice like this given in well-meaning but misguided articles and then go on to name loop variables nElementIndex. The loop gets more readable if you name your loop variable just plain i. The loop variable is not significant enough to warrant all the attention from a reader that a long name requires. A short name in this context makes it much faster and easier to glance at the loop and see what it is doing. Obviously names with scopes longer than a (fairly short) loop need to be more descriptive. Here's my seven secrets of being a successful programmer.
  1. Learn to worship the goddess of simplicity. KISS a lot. This is much harder than it seems: it's more difficult to be simple and good than to be complicated and adequate. Simplicity starts with the specification of the program or system, and needs to permeate the design, and the implementation, at every step.
  2. Pick good tools, and learn them well. You need to know many tools, and know them well, or you'll waste time on doing unecessary things. Tools include software programs, books, algorithms, data structures, and mental models. Learn editors, programming languages, Unix command line tools, and so on. Learn at least three different paradigms for programming.
  3. Learn how to learn and keep on learning. New stuff is invented daily, and you need to keep up with it, or you'll end up as useless as a COBOL programmer doing a web shop.
  4. Develop debugging muscles. This is perhaps the hardest thing to learn, since no-body seems to be teaching it. You'll be spending most of your time doing it.
  5. Learn how to do testing well. Unit tests, test driven development, black-box testing, integration testing, regression testing, test automation, ... There's lots of ways of reducing the likelyhood that code escapes your hands with bugs still in it. It will inevitably happen, but if you know what you do, you can be better than most everyone else. The industry standard for commercial, proprietary code seems to be around 20 to 30 bugs per thousand lines of code; the Linux kernel has less than 1, and is known as a cesspool of bug-infested muck, so surely you can do better?
  6. Learn to write prose well. Then write a lot. If you can't write a README, a manual page, or the specification for your next work project, who's going to know about your great programming?
  7. Oh, you need to learn how to program well as well, and that isn't so easy either. Knowing how to program well merely isn't enough to be a successful programmer.

Next.

Previous.