Search Results: "mak"

20 January 2006

Martin F. Krafft: alias grep=vim ... ?

I love: regular expressions and vim I hate: regular expressions of sed and grep I adore: vim's enhanced regular expressions I want: to be able to use vim from the command line to do advanced searches across sets of files, like:
# find "foo" followed by whitespace and "bar", even across lines
$ vim $SOMETHING 'g/foo\_s*bar/'
# words ending in "bar"
$ vim $SOMETHING 'g/bar\>/'
# words starting with "foo"
$ vim $SOMETHING 'g/\<foo/'
... and more. What does $SOMETHING have to be set to? Update: Neil Moore suggests the following shell function:
vgrep ()  
  local S="$1"; shift
  vim -es +"argdo g/$S" +':q!' "$@"
 
This works. I shall be posting any improvements I make over the next couple of weeks in another blog post. If there are any. But I suppose options like -i and -v might be good to have.

Brian Nelson: What does removing GFDL documents accomplish?

One thing I just don’t understand about the whole GFDL debacle is why it’s so urgently important to purge all GFDL documents from Debian. For those documents with invariant sections, I can kind of see the point. Invariant sections clearly violate DFSG3, and we’re obligated by the social contract to abide by the DFSG. Granted, we’ve been distributing non-modifiable documents since Debian’s inception, so that’s a rather shocking change in policy. Thanks to some “editorial changes” to the social contract, the Debian distribution has to change in fundamental ways. What’s even more suprising is that the changes in policy are going far beyond the requirements in the DFSG. According to the draft position statement, there are two problems in addition to the invariant sections–the “DRM” restriction and transparent and opaque copies. Note that in the GR proposal, the invariant section problem is explained by quoting DFSG3. However, the other two problems are not given any reference to the DFSG, and for good reason–there is no clear DFSG violation in either one. Sure, they’re icky, worded poorly, and no one particularly likes them. But since when is that grounds for removal from Debian? Even worse, overriding the interpretation that these problems are DFSG violations will require a 3:1 super majority thanks to the secretaries opinion on the matter. Apparently, we are being strong-armed into purging all GFDL documents from Debian, which little chance of reversing this decision. So, what does this accomplish? The only positive benefit I can see is that some people get some warm fuzzies for sticking it to the FSF and interpreting our foundation documents as strictly as possible. Is that really worth it? Instead of crippling Debian, why not work gradually to improve the state of documentation? We could work on gradually convincing upstreams to dual-license documentation, which is particularly desirable given the GPL/GFDL incompatibility. We could setup a project to produce “really free” documentation to replace current GFDL documents. We could try to educate a wider audience on the problems of the GFDL–you do realize that most of the outside free software community views us as wacky license nazis, right? Producing a totally free operating system should be a goal, not an absolute requirement. It’s something we should strive for, but realize we’ll never achieve perfection since there will always be license problems in a set of software the size of Debian. But what are we going to do instead? Just remove the stuff that’s currently irritating us while ignoring the big picture. Good bye users, good bye useful operating system. It was nice knowing you.

Thomas Hood: New way to wipe root filesystem found

Long ago I discovered the following method of wiping the root filesystem. Write a script containing commands like these:
    CONFFILEDIR=$ CONFFILEBASE /$ PROG 
    rm -rf $CONFFILEDIR
and then run it without making sure that CONFFILEBASE and PROG are set to something. Today I found another nifty way. First, while trying to fix #339023, hastily create a directory (e.g., "mntroot") in /tmp and add the following line to /etc/fstab:
    /    /tmp/mntroot   none   bind  0  0
Then just reboot!

Thomas Hood: Flood defenses

I was recently reading a report written in 2004 on the safety of Dutch flood defenses. One of the more interesting sections was a comparison of Dutch flood defense policy with that of other countries, including the United States.

In the Netherlands large sums of money are spent maintaining the dikes. It is not possible to achieve perfect safety; however, it is possible to estimate risks. In the Netherlands it is reasoned that it is justifiable to spend additional money increasing the effective height of dikes up to the point where it costs more to add the next centimeter than that centimeter will "save", where the calculated saving is equal to the reduced economic losses due to flooding. Because the cost of flooding Holland would be large, the policy that emerges from this analysis is that the dikes protecting Holland should be built to withstand water levels that occur once per 125,000 years on average.

In the United States the corresponding figure is typically once per 100 years. That is, the government chooses to accept a frequency of flooding that is one thousand times as high as that considered acceptable for Holland. (The dikes around New Orleans are built to an even lower standard.)[0] This is a deliberate policy which is paired with the view that citizens should be free to make their own choices: someone can build in an area vulnerable to flooding, but then he probably won't be able to get flood insurance and therefore won't be able to get a mortgage.

Recent events have to be considered in this light.

[0]UPDATE: I have discovered that the exact figure for New Orleans is 200 years. That is, once the current programme of levee upgrades is complete, the New Orleans levee system should fail with an annual probability of 0.5%. As yet I have found no hard figures for the failure probability of New Orleans levee system prior to the completion of the upgrade programme.
The project we're talking about here that has failed is an element of the Lake Pontchartrain project, and in its early design stages it was meant to provide protection from a two- or three-hundred-year event that might strike the city; so we were looking at a very low-probability event and we designed with that in mind. -- Lieutenant General Carl A. Strock, Chief of Engineers, U.S. Army Corps of Engineers, at a news conference on 1 September 2005
The point stands that Dutch policy makers have a very different idea of "low probability" when it comes to floods. Dutch water defenses are built to have an annual failure probability of 0.0008%.

Eric Dorland: two wishes, and a wish come true

I wish there was a better way to handle conffile renames than the method outlined at dpkg.org. Be nice if there was a way to pressed the checksum, so the conffile handler could just be used naturally, instead of bypassing it with a bit of a hack. Makes me a bit uncomfortable to just accept the users changes without prompting him on upgrade (as would happen with this recipe). If anyone has a better idea, it would really help me with #345112. Reading Jacobo's post makes me wish I had proposed a DebConf talk, BoF, whatnot on Trademarks and Free Software, and maybe promote some better discussion than the last time this was on the mailing lists. [info]ndusart is coming for the weekend! Haven't seen her in two months, so I'm understandably, ridiculously excited. Better lend [info]mricon my earplugs.

Eric Dorland: contrary to popular opinion, we do actually fix bugs

A recent post by Ingo Juergensmann lamenting m68k not making the cut in this round of architecture qualifications. While it is a shame I think, I don't think it's necessarily the end of the world and his complaint that developers will now stop fixing bugs is crazy. Just because they're suddenly not release critical doesn't mean (good) maintainers will be unwilling to fix them. Most architecture bugs are toolchain bugs (ie not the package maintainer's fault), general types of architecture bugs (eg endianess, int size) that affect more than one architecture and tend to get fixed quickly and easily and really freaking hard problems that most package maintainers don't have the skill to fix on their own (eg #343687, help!). But if someone submits a bug that's trivial to fix, or gives me a patch, that bug will get fixed. I don't like bugs in my packages and probably most other developers don't either.

Amaya Rodrigo: ZzZzZzZzZz

For the first time in more that 10 days, I slept like a baby last night. It might hurt the xlibs-dev transition, but I hope it actually helps in the long run, I will make less mistakes, bug vorlon and dato a bit less, be more aware and awake. Now I just need to keep a balanced sleeping schedule again. I think have good allies.

I have started a small experiment that is against all rules but might spread some package love. So far, I have been successfully working with Victor Seva, Justin Pryzby, Thomas Viehmann and Nico Golde. Join us if you care about this transition!

On the other hand, I find recent threads in debian-devel, debian-private and several posts in debian-devel-announce very distracting. Although I am strongly opinionated on the subjects being discussed, I'd rather remain semi-silent and work in my "NMU love".

Amaya Rodrigo: Let's do some Vorlon cheerleading this morning

Give me a V, give me an O, give me an R, give me an L, give me an O, give me an N... Vorlon!

Thanks for the patience, thanks for the tips, thanks for making #347397 history.

Amaya Rodrigo: Hilarious: Meme Time again!

Best Meme ever!

Long time, no blog. I know. And all you get is a meme. But... I found this so hilarious. ROTFL.

* Amaya needs all the effort the developers can put into.
* Amaya needs to be close to someone, especially a guy.
* Amaya needs to expand their vegetarian variety by adding items that have gravy.
* Amaya needs a warm body!!!
* Amaya needs a friend
* Amaya needs attention
* Amaya needs someone around all the time
* Amaya needs a TCP/IP (networked computer) or SLIP (dial up) connection to access the webpages.
* Amaya needs to find remote or local copies of the XHTML DTDs.
* Amaya needs not have the woman-scorned attitude she brings forth.
* Amaya needs a comprehensive update.
* Amaya needs some female friends.
* Amaya needs to stand up for herself.
* Amaya needs further evaluation.
* Amaya needs a friend now... a WOMAN friend!
* Yes, Amaya needs X.
* Amaya needs to have a talk with him.
* Amaya needs to check that each NAME and ID attribute values
* Amaya needs wchar.h (and presumably the respective library).
* Amaya needs stabilization on some designs.
* Amaya needs lesstif too.
* Amaya needs all the back up she can get.
* Amaya needs an oxygen mask.
* Amaya needs my help.
* Amaya needs something to Help her get past all this lying.
* Amaya needs to go tonight
* Amaya needs The buzz of conversation around her and The comfort of Friends nearby.
* Amaya Needs to stop crying so damn Much
* Amaya needs a chance at winning a game.
* Amaya needs to keep in shape
* Amaya needs time to get material
* Amaya needs to be stopped and invulnerable.
* Amaya needs her kindergarten checkup

There is a paper sheet sitting on my table, with all the stuff I would want to blog about regarding these last months. To make a long story short, I turned 30, Life is good, very good, too good to blog, even. (ie: I got quoted *twice* in Michael Banck s quote file).

Adam Rosi-Kessel: Privacy is for Google&#8230;

Ed Felten at Freedom to Tinker makes an excellent observation while discussing Google’s video service digital rights management scheme: “Privacy is for Google what security is for Microsoft.”

Benjamin Mako Hill: Sharing Chat Accounts

<@biella> I can't speak for biella, but... Oh, I think you can.

Brett Parker: Why oh why...

Why does Oracle complete an import with... "Import terminated successfully with warnings." when what it actually means is... "I ran out of table space mid import, but I'm only going to tell you that in an obscure way in the log, and otherwise make you think that it was alllll OK"? Surely in this day and age it could just say "Import terminated unsuccessfully: ran the hell out of table space", wouldn't that be nice?

Adam Rosi-Kessel: In Defense of Piracy and Openness

Interesting commentary by Chinese documentary filmmaker Hao Wu on Marketplace. Wu explains that it is not possible to obtain most films in China except as pirated versions, and when there are official legal releases they are edited and censored by the government. If the United States is successful in getting China to devote substantial police resources to enforcement of international copyright law, a perhaps unintentional side effect is that access to information and openness will be squelched. This raises the question of whether it is really in Hollywood’s long term interest to crack down on piracy in otherwise repressive regimes. It’s at least an interesting perspective to bring to the issue that I hadn’t really considered.

19 January 2006

Christine Spang: GNOME Women Bug Day

Want to help fix bugs and make GNOME better? GNOME Women is hosting a bug day on Saturday, January 28th. Come one, come all! (Yes, that’s guys too.) Now, to defend that Saturday from all other possible engagements with my life…

Riku Voipio: Debconf5 directions photographs

In the inspiration of guadec travel instructions, I took time to take the trip from Helsinki-Vantaa Airport to Debconf accommodation building in Otaniemi. Apart from camera running out of battery (twice), total lack of graphics skills, and initially uploading images as png's, the results seem acceptable.

Directions from airport, relatively easy

.
Finding the bus station, annoyingly enough, the bus from airport does not stop at the main bus terminal, but at railway station. The new kamppi terminal is still under construction, so it is not impossible that the route changes before debconf starts.. Sigh.


Walk to dorm from the final stop of bus 102/102T taking to otaniemi is short, but may be confusing, with many similar buildings around. There should be proper "Debconf 5 this way" signs by the time you get there.</br/>


Thanks for Christian Perrier, we also added Google satellite map link to our otaniemi page.

Otherwise, our Debconf5 site seems to have a confusing structure, but I don't have concrete ideas what to fix to make it easier to navigate. Still Work in progress..

Riku Voipio: Stupid April 1st.

For some odd reason, nobody seems to believe me, when I tell them that I signed today papers for a job that would be basicly developing Debian. Grah. Anyways I am more than happy to leave coding propierty code based on Oracle databases.

So far, I know Scratchbox is the central point (This Article for a short introduction). I'm thinking of wetting my feet by experimenting an scratchbox based crosscompiling buildd. Now I need to find something really close to doorstep to get impressive speed increase numbers ;)

On the other hand, I'ts kinda scary that A hobby will become a job. Does this mean I need to invent a new hobby? I guess sports wouldn't be bad.

I noticed that I have become quite passionate in autoconfiguring vs force everyone to configure by hand discussions. It makes my heart bleed when I see someone suggesting that populating /etc/modules shouldn't be a problem for a newbie. Writing mails under strong emotions leads to harsher than necessary words, so I guess need to chill down. It's just software, like Liws Advocating Linux essay reminds.

Axel Beckert: New talk proposal, new Linux distribution found

After talking with some LinuxTag guys about which kind of talks are still missing for the upcoming LinuxTag, I submitted another proposal for a still only roughly sketched talk: KISS – Keep it simple and stupid, also on the web.
KISS – “Keep it simple and stupid” is an old and successful principle in the Unix world: Small and simple programs, doing only one thing, but they’re doing perfect, fast and reliable. This principle can also work on the web and make webservers or surf terminals out of already discharged computers.
I planned to show “simple” (or at least “simple to use”) tools like Blosxom or the Website Meta Language, a more slim webserver than Apache (e.g. fefe’s fnord or one of the ACME webservers thttpd, mini_httpd or micro_httpd), slim web-browsers (e.g. like Dillo, Opera, glinks, ViewML or Minimo) and one or more Linux distributions optimized for low end PCs. While thinking about low end PCs, usually the following distributions come to my mind: DeLi Linux, fli4l and Debian Woody. But none of them seems to fit for my talk as perfectly as I would like: Since I first read about viewml on the DeLi Linux page, I looked for Debian packages of viewml today. apt-cache search hasn’t found anything on Woody or Sarge and packages.debian.org is still down, so I used Google. I found out, that there at least was a viewml package in Debian since at least 2001, so I expect, it just didn’t make it to stable. But I also found this interesting page on a webserver called www.ubuntulite.org. Ubuntu Lite? That sounds very interesting, since I see Ubuntu not as the baddest idea (expect for it’s horribly resource hunger and only offering one package per application by default ;-), but having an Ubuntu derivative prepackaged for low end PCs and with several webbrowsers instead of only Epiphany (and probably Firefox, don’t they?) would be perfect for my purpose. So I’m currently downloading an Ubuntu Lite ISO and will give it a try on one of my Pentium MMX boxes. Unfortunately it doesn’t seem to support Pentium I or AMD K5 since Ubuntu itself only supports i686 and upwards. :-/ But this also means, that it’s no occasion for my Pentium I Compaq LTE 5100 (which I probably will name pony), but currently, after Bartosz’ recent post on Planet Debian, it looks like Debian GNU/kFreeBSD could also be an interesting OS, since it fits all requirements perfectly: Free, Modern, Exotic and all conveniences of Debian. ;-)

Now Playing: Jefferson Starship — We Built This City

Meike Reichle: Web stuff

I've never been much of a web stuff person, I don't like pointless Look, I am online! web pages and never felt the urge to have one myself. Though, over time, I kinda slipped into it as well. First there was my student homepage, then the blog, and a number of other machines I have accounts/stuff on ... A few months ago I finally got fed up with this patchwork structure and decided to get everything together on one machine and under one domain. This is still work in progress, since most things are done in the evenings after work and my current occupation is one of that kind where you get home in the evening and feel like doing braindead things or crawling straight into bed. But, relocation is advancing step by step and as a first result I can now proudly present a domain of my own :) It's still hosted on someone else's machine (Thanks aba! :)) and there's not much there yet, but it's going to grow slowly ... Also, this time I tried to do it right from the start and make the pages as simple and accessible (without looking too 1992) as possible. I didn't know much about these things when I designed my student homepage and the blog, so another task on my todo list is to properly redo them and also put them there.

Michael Janssen: Warning: Habit-forming.

Recently I have started a new diet: the No S Diet. The concept is very simple: no sweets, snacks, or seconds (except on days which start with S). I started around the holidays, which actually wasn't hard at all because holidays count as S days (they're "Special"). However, I didn't really get into it that much until recently. I can't really tell if it is working yet, because it doesn't have strict weighing guidelines like the previous diet, but I feel like something has changed in my life. There is a bunch of text on the page about why it works, but the basic concept is that you should be forming habits which are healthy. It is much easier to get into a healthy habit if it's not hard to remember what the habit you're trying to reinforce actually is. It makes it much easier to feel guilty when you fail in enforcing the habit as well, because you can't make complicated excuses ("this is okay because I excercised off those calories"). The No S Diet also has the bonus of being easily combinable with basically any other diet you can think of, unless that diet specifically requires you to eat sweets. I'm thinking of combining it with the hacker's diet, which definitely appeals to my accountant side. The problem I had with the previous attempt at the hacker's diet still exists, unfortunately - I still don't have an easy way to keep track of my calories. I am considering dropping a few bucks on a calorie counter database for my new Palm, which may help in that regard. I have noticed that most of the things which are now being termed as "lifehacks" are actually just habit-forming. The No S diet is a habit for eating, Getting Things Done is a collection of habits for todo lists and projects, and Early Rising is a habit for sleeping and waking up. These are not new ideas, they are just smashed into the new fad: improving your life through good habits. The accountant in me wants to do more than just that, so I am thinking of making a drupal module or two to keep track of my progress (and subsequently broadcast it to the world).

Simon Law: WvDial 1.55

My day at the office has been pretty grand. I got to talk with a whole bunch of people about their problems and promised to look into some of them. Then I talked to someone about sales and marketting. Then I talked to Chris and we struggled with PHP. And finally, a chat with Tim about release management. It was like a day at the Montr al office, but with people who are less bouncy. I tried to smile at people and make them feel happier, at which I think I was mildly successful. Perhaps my motivational poster will help? I had some tasty ph for lunch at Ph Vi t which is a Vietnamese restaurant run by Cantonese people. It is also within walking distance of the office. Their soup was rather filling for a small portion and they had delicious spring rolls. Alas, they are not UltimateSpringRolls, but one can't expect to find those everywhere. A special bonus was that I got to talk with Deidra, in between happy bites of noodles and soup. It is now late and I guess I should be heading out. I was hoping to hang out with people after work, but they seem to have gone home. Oh well. So to pass the time, I released WvDial 1.55. Hurray!

Next.

Previous.