Thursday·25·November·2010
Useful but Unknown Unix Commandline Options: touch -d //at 20:42 //by abe
You may wonder how I manage to write one “Useful but Unknown Unix Something” blog posting per day. Well, I don’t. I write them in bursts, but don’t want to flood Planet Debian and Planet Symlink with more than one such posting a day.
The first bunch of postings were mostly slides (or part of a slide plus what I tell while showing the slide) from my Unknown but Useful Unix Tools talk and written somewhen last week. And this blog posting and yesterday’s blog posting were written in a row, too.
What does that have to do with Unix commandline tools? Well I use Blosxom as blogging engine and it’s based on simple text files lounging around in some directories, and the last modification time stamp is the posting’s date – which is cached after first time seen by the entries_index plugin so that I can fix typos without resetting the posting’s release date. Postings with a modification date in the future won’t be shown before that time.
So how do you set the last modification date to a date in the future? With “touch” from GNU Coreutils of course. Like “date”, “touch” also knows the option “-d” to explicity set a date and time instead of using the current date and time.
Now in my humble opinion the cool feature is that you can easily describe dates by giving touch values like “now + 1 hour”, “12:00 tomorrow” or so:
$ touch bla $ ls -l total 0 -rw-r--r-- 1 abe abe 0 2010-11-23 22:59 bla $ touch -d 'now + 1 day + 23 hours - 42 minutes' bla $ ls -l total 0 -rw-r--r-- 1 abe abe 0 2010-11-25 21:17 bla $
To see all the possibilities you have to describe relative dates with “touch”, “date”, and maybe other GNU Coreutils tools, check that you have “info” installed and call:
$ info '(coreutils.info.gz)Relative items in date strings'
Oh, and this whole story about setting modification dates manually to arbitrary values also means that the “Tattletale Statistics: Blogtimes November 2010” image in my blog’s side bar is absolute nonsense, at least this month. Well, never trust any statistic you haven’t faked yourself. ;-)
But on the other hand, the dates in the example may give a hint when I really wrote that blog posting. Or not. ;-)
And I wonder what my backup tools think about last modification times
in the future. Well, they probably only check for modification dates
newer than last backup and therefore should be fine. *phew*
Tagged as: Blogging, Blosxom, date, dates, GNU Coreutils, Myon, Statistics, touch, UUUCO, UUUT
// show without comments // write a comment
Related stories
Saturday·26·July·2008
Blosxom 2.1.0 released //at 02:03 //by abe
Today I had the honour to prepare and announce the first Blosxom release after exactly two years and six days.
The primary cause for the Blosxom 2.1.0 release date this week was to get our development efforts of the last two year into Debian Lenny with a nice version number (i.e. one without snapshot dates in the package version ;-). The second biggest cause was that it just was time. But Debian Freezes always give you a good kick in the ass. ;-)
Rhonda plans to prepare an updated blosxom package for Debian during the day. (Update 25-Jul-2008: Packages are available.) So if Planet Debian is broken in a few days, you know whom to blame: Me and my last minute bug fixes. ;-)
But since you seem to be able to read this, the release shouldn’t be
too broken – because of course my blog already runs the very fresh
Blosxom 2.1.0 release. ;-)
Tagged as: 2.1.0, Blosxom, Debian, Freeze, Hack, Lenny, Perl, Planet Debian, Release
// show without comments // write a comment
Related stories
Sunday·10·February·2008
WTF per minutes and yet another popular Blosxom-alike I didn’t know about //at 02:44 //by abe
Today while reading Planet Webtuesday, I stumbled upon a nice cartoon about the one and only measurement of code quality: WTF per minute.
Somehow I noticed that the blog in which this cartoon was posted in is powered by Blojsom, a Blosxom derivative written in Java (and nowadays database powered). I already have heard of a lot of blogging software which works similar to Blosxom and often is also named similar, e.g. Pyblosxom or Blosxonomy, but Blosjom hasn’t been noticed by yet although it is mentioned in Children of Blosxom where I first noticed Blosxonomy.
So far, so good, but what really surprised me is that a blog engine
developed after Blosxom’s ideas officially made into MacOS X 10.4 Server. (BTW at a time, I
neither had a blog nor knew about Blosxom. :-)
Tagged as: 10.4, Blojsom, Blosxom, Blosxonomy, MacOS X, Planet Webtuesday, PyBlosxom, QA, Tiger, units, WTF
// show without comments // write a comment
Related stories
Wednesday·10·October·2007
Plugins in the Blosxom Project CVS //at 00:34 //by abe
Since yesterday, my Blosxom plugins are versioned in the Blosxom Project CVS repository together with those of most other Blosxom developers.
Cause for this is, that — besides first steps towards Blosxom v4 (we better forget about v3… ;-) and intergrating existing patches (e.g. the Debian config file patch) to Blosxom v2 — the Blosxom developers want to release a Collection of common Blosxom Plugins as a Plugin distribution so that no one needs to gather the often needed plugins from various sites on the net but get them from first hand and also in some kind of a supported way. A first release candidate is on it’s way.
And for those who thought good ol’ blosxom is dead: There never was so much traffic on the blosxom developer’s list like in the past two months — over 160 mails each!
Now playing: Eiffel 65 — Blue
Tagged as: Blosxom, Blosxom Plugin, Blosxom v4, CVS, Hacks, Now Playing, Perl, SourceForge
// show without comments // write a comment
Related stories
Wednesday·25·April·2007
Das Web 2.0 Stöckchen //at 01:57 //by abe
Kaum bloggt man mal wieder, kommt einem auch gleich wieder ein Stöckchen entgegen geflogen, dazu auch noch zu einem solch brisanten Thema wie Web 2.0.
Also fangen wir an: Ich nutze Apache 2.0, Blosxom 2.0, Emberl 2.0, WML 2.0, CSS 2.0, Firefox 2.0, HTML 2.0, Debian 2.0, äh, moment, nee, so altbacken bin ich nun auch wieder nicht. Ach, das war gar nicht die Frage? Achso. Na dann wollen wir mal die eigentlichen Fragen beantworten…
- Nutzt Du Social Bookmarking/Networking Seiten wie Digg, Yigg, Mister Wong oder Del.Icio.Us? Wenn ja, welche?
- Kaum. Einen Yigg-Account habe ich, wenn auch schon lange nicht mehr benutzt, Digg ist mir aufgrund ihres Abmahnwahns unsympathisch, Mister Wong sagt mir sowas von gar nix und Del.Icio.Us finde ich durchaus interessant, denke aber nicht, daß es mir wirklich etwas bringt, da ich meine Bookmarks — sofern Zeit ist *hüstel* — selbst von Hand zu Fuß als HTML tippe und damit genauso browserunabhängig bin. Flock nutze ich dementsprechend auch nicht.
- Nebenbei: Digg und Yigg sind für mich keine Bookmarking-Seiten sondern Newsportale. Und unter einer Social Networking-Seite verstehe ich Orkut (Ja, habe ich einen Account, aber vernachlässigt), OpenBC (das neuerdings heißt wie ein Filmchenabspieler für Windows, nein habe ich keinen Account und will auch keinen. Ich mache kein “Business”.) oder LinkedIn (wirkt auf mich noch viel mehr auf Business abgestimmt als OpenBC). Und gute Jobs habe ich bisher auch immer ohne solche Seiten bekommen. Das einzig nette daran, ist festzustellen, wie klein die Welt doch ist.
- Schaust Du Dir Videos bei Videoportalen wie YouTube, Sevenload oder DailyMotion an? Wenn ja, was für Videos guckst Du Dir meistens an?
- Manchmal. Meist dann, wenn sie sowieso grade im Büro umgehen und alle Kollegen gemeinsam vor einem Monitor rumlachen. Sprich, meist sind’s irgendwelche witzigen Sachen. Manchmal auch Filmtrailer. Wobei ich eigentlich außer Google Videos und YouTube kein anderes solches Portal wirklich kenne. Zumindest sagen mir die anderen genannten sowas von gar nix.
- Kennst bzw. nutzt Du Flickr?
- Kennen kommt man wohl kaum drumherum. Nutzen? Ja, manchmal, zum Bilder anschauen, die mir irgendjemand zeigen will oder über die ich sonstwo gestolpert bin. Account habe ich jedenfalls keinen. Ich war mit allen Webgalerie-Lösungen bisher unzufrieden und hab mir meine eigene geschnitzt. Web 2.0 brauche ich an der Stelle bisher nicht. Aber wer weiß, vielleicht bekommt das Ding auch mal RSS-Feed-Support.
- Was hälst Du von Diensten wie Twitter oder Frazr?
- Ich kenne sie nicht einmal. *draufklick* Nix.
- Wie viele RSS-Feeds hast Du abonniert?
- Ich meine mich zu erinnern, dass neuere Versionen von Lilina nur bis ca. 50 Feeds skalieren. Ich hab ein paar mehr, vermutlich so ca. 60-70 Blogs und ähnliches. Dazu noch unzählige Newsfeeds (wohl so um die 40-50, Tendenz steigend, vor allem Symlink wegen), die ich aber von den Blogfeeds getrennt halte und auch nicht mit einem Feedreader sondern so einer Art Cheesy Portal lese. Wobei es so aussieht, als ob sich bei Lilina wieder was tut, jedenfalls hat die Seite ein neues Design und eine neue URL. Müßte ich mir mal wieder mal ansehen.
- Liest Du die alle täglich?
- Nicht mal mehr monatlich oder sonstwie regelmäßig. Seit das letzte Upgrade meines Lilinas eine katastrophale Performance an den Tag legte eigentlich gar nicht mehr. Und zum Flicken hatte ich bisher keine Lust. Genausowenig wie ich bisher Muße dazu hatte, mein “Cheesy Portal” wieder in Sachen Feeds auf den aktuellen Stand zu bringen. Deswegen auch keine Links. Liegt wohl daran, daß mir die Arbeit seit dem Stellenwechsel vor einem Jahr wieder richtig Spaß macht und deswegen keine Zeit mehr für solche weniger wichtigen Dinge ist. ;-)
- In wie vielen Weblogs bloggst Du? (Eigene oder Mitautor)
- Da ich Symlink nach wie vor nicht als Blog ansehe (und auch nicht unbedingt den ISG Newsticker oder den LUG-Camp 2007 Newsticker) nur in zweien: In diesem meinem eigenen Blog wenn mir gerade danach ist (also nicht mit dem Zwang täglich was zu posten, wie manch andere Leute) als auch in der inoffiziellen Blosxom User Group, dort im Normalfall dann, wenn’s was neues (aber nicht notwendigerweise wichtiges) in der Blosxom Community gibt.
- Kommentierst Du in anderen Blogs? Wenn ja was?
- Hin und wieder mal. Meist bei Freunden, manchmal auch bei Leuten, die ich nicht kenne. Was es dann ist, ist recht unterschiedlichen. Von hilfreichen Informationen bis hin zu blöden Kommentaren ist sicher schon alles dabei gewesen. ;-)
- Wer ist Dein persönlicher Blog-König von
Deutschlandder Schweiz? - Was ist ein “persönlicher Blog-König”? Jemand, der Blogs schreibt so wie das Klischee sie erwartet, eben täglich, mit viel persönlichem oder unwichtigem Zeugs? Hmm, in der Schweiz die RUBIs sind recht fleissig und viel persönliches ist da auch dabei, dazu ist’s noch witzig, weil praktisch die ganze Familie bloggt. Und informativ ist es ab und an außerdem noch. In Deutschland kenne ich zu wenige Blogs, aber da fand ich immer das Daily Ivy Blog ganz gut, auch wenn es als Blog keinerlei wirklichen Ersatz für Ivys Bar sein kann. *seufz*
- Gehört Weblogs Deiner Meinung nach die Zukunft oder sind sie nur ein vorübergehender Hype?
- Weder noch. Sie sind eine Nuance eines Mediums mehr, die das letzte Jahrzehnt hervorgebracht hat. Mit eigenem Charakter und nicht eigentlich kaum mehr wegzudenken, aber sicher auch nicht die Krone der Web-2.0-Schöpfung.
- Wird es Dein Blog / Deine Blogs dann auch noch geben?
- Es ist glaube ich gemeinhin bekannt, daß ich selten was wegschmeiße oder gar Webseiten lösche, nur weil ich sie grade nicht brauche, nutze oder pflege.
Und bevor’s zu Ende ist, füge ich hier grade noch zwei Fragen ein, weil ich doch das eine oder andere zum Thema Web 2.0 in diesem Stöckchen vermisse.
- Welchen Feedreader nutzt Du?
- Webbasiert: den bereits erwähnten Lilina für Blogs und einen auf einer PHP-Feedreader-Bibliothek basierender Eigenbau, der nach dem Vorbild von Slashdots Cheesy Portal gebaut ist — nur mehrspaltig, für News. Sonst Opera, allerdings nur mit wenigen Feeds. Ich habe zwar auch schon raggle und snownews ausprobiert und so schlecht sind die beiden sicher auch nicht (snownews ist einen Tick intuitiver zu bedienen), aber wirklich begonnen sie zu nutzen habe ich nicht. Gregarius fürs Web und Newsbeuter für die Textkonsole wollte ich mal noch ausprobieren.
- Was gehört für Dich sonst noch zum Web 2.0?
- Google Maps, maps.search.ch und Konsorten inklusive API. Könnte man auch unter dem Überbegriff AJAX laufen lassen. Dann natürlich Wikis. Und nicht zu vergessen Microformats wie z.B. XFN. Wundert mich eigentlich, das das vorher kaum vorkam in dem Stöckchen.
- Wo gehts weiter mit dem Web 2.0 Stöckchen?
- Also sicher mal bei Venty sei’s in seinem leider schon wieder aufgegebenen Gopher-Blog oder in seinem PodCast, dem ich nicht wirklich folge, weil ich keine PodCasts höre.
- Dann vielleicht noch bei Dieter Schlabonski, weil der es sicher schafft, auch daraus einen stilechten Rant zu machen.
- Und Myon bastelt ja bei Debian gerne mit Web-2.0-Methoden rum, dem werfen wir das grade auch mal zu.
- Sonst fallen mir nur noch Leute ein, die kein Blog haben und daher auch kaum Stöckchen fangen können oder das Stöckchen schon bekommen haben. :-)
Now playing: El-Vez — Mexican Radio
Tagged as: 0x1b, AJAX, Apache, Blogging, Blosxom, Comic, Debian, del.icio.us, Embperl, Flickr, Google, Google Maps, Gopher, HTML, Ivy, Lilina, maol, map.search.ch, Meme, Microformats, Myon, newsbeuter, OpenBC, Opera, Orkut, Other Blogs, Quiz, raggle, Schlabonski, Slashdot, snownews, Social Networking, Stöckchen, Symlink, Ventilator, Web, Web 2.0, WML, XFN, Yigg, YouTube
// show without comments // write a comment
Related stories
Thursday·25·May·2006
New talk proposal, new Linux distribution found //at 01:47 //by abe
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:
- DeLi Linux is no bad distribution, since it’s designed especially for 386 to Pentium I, but I have some strong disagreements with the maintainer of DeLi Linux, since he sees a very small package list as necessary requirement for a distribution for old PCs. He states that distributions for old PCs “don’t have that many harddisk space” (beyond other, more realistic arguments — but it seemed to be his main argument) while I see a rich package diversity as an quality criteria. (One of the reasons, why I like Debian and dislike Ubuntu.) So I’m not sure if I should present a very raped DeLi Linux to the audience, just to make it fit my needs, although I’m quite curious about his upcoming 0.7 release with the low end, KHTML based ViewML webbrowser. (Apart from me seeing PHP5 and KDE as a big nono on old PCs…)
- Although I still like Debian Woody very much (you know that old story… ;-), it is just too old for making a talk about how to turn old PCs into being usable again. Sarge would be fine, but it was suggested to showcase an easy and fast way to get something ready to run, and I can’t give the auditors a list of all the Debian packages with low resource consumption and therefore usable on low end PCs.
- I haven’t used it yet, but fli4l seems to be very good distribution to turn an old PC into a ISDN or DSL router, even without harddisk. The last time I had a look at fli4l, it used an Apache as (optional) webserver, which wouldn’t fit into my scheme, since I would like to show an alternative to Apache. But as I found out today the recently released version 3.0 of fli4l uses the already mentioned ACME mini_httpd. Cool! They’re on the right way! ;-) Unfortunately it only seems to be used for serving information pages about the fli4l status and not as common webserver. (Please correct me, if this is wrong! I would appreciate it, if I’m wrong at this point. :-)
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
Tagged as: 386, Blosxom, Browser, BSD, Debian, Debian GNU/kFreeBSD, DeLi Linux, Dillo, Epiphany, Events, Firefox, fli4l, FreeBSD, KHTML, KISS, Linux, LinuxTag, micro_httpd, mini_httpd, Minimo, Mozilla, Now Playing, Open Source, Opera, Other Blogs, Pentium I, Pentium MMX, Planet Debian, pony, Sarge, Talk, Text Mode, thttpd, Ubuntu, Ubuntu Lite, ViewML, Vintage, WML, Woody, WWW
// show without comments // write a comment
Related stories
Thursday·16·March·2006
Editor at The Unofficial Blosxom User Group //at 03:43 //by abe
A few days ago I joined Douglas Nerad as an editor of The Unofficial Blosxom User Group, an of course Blosxom running blog about Blosxom and full of quite up-to-date information (in comparision to the neglected official site).
Today I posted my first article there which covers an FAQ coming up again recently on the mailing list.
Tagged as: Blogging, Blosxom, FAQ, Other Blogs, UBUG, Yahoo! Group
// show without comments // write a comment