April 23rd, 2008
This is not really a script – more of a snippet. I don’t have a lot of spare time these days, so I can justify posting a snippet and calling it “script day” 😉 .
A lot of unix configuration files use the # sign to add comments to configuration files, and a lot of software comes with very well documented files – i.e. has lots of comments. So much that if you just want a quick glimpse at the configuration that is active (not commented out) its very difficult to wade through all the documentation.
Here’s a simple grep that will filter out all the junk and leave you with just the active configuration settings:
egrep -v '^(#|\s*$)' <config file>
and on the standard output you’d get only lines that are not commented out or empty.
Do note that some configuration files can also use ; as a comment character, but modifying the grep to support this is trivial.
Posted in Projects, Script Day, Software | 2 Comments »
April 18th, 2008
כמו כל שנה באפריל ובאוקטובר.
כדי “לחגוג” את המאורע הנה שני מונים לשחרור של גרסות הלינוקס שאני הכי משתמש בהן היום (וספציפית בגרסאות העומדות לפני שחרור):
מנדריבה, שזו הפצה אחרת שאני מחבב – אם כי לא יצא לי להשתמש בה לאחרונה – כבר שיחררה גרסה אביבית.
עדכון [25.4]: אובונטו החדשה שוחררה, ובאיחור של רק יומיים ניסיתי להריץ שדרוג במחשב הביתי שמריץ עדיין 7.10 (לא מסובך – מנהל העדכונים כבר צריך להתחיל להציק לכם, תפעילו אותו ותלחצו על כפתור ה-upgrade למעלה. שדרוג של פדורה הולך להיות הרבה פחות נעים), וזה לא נראה שזה מתקדם לאן שהוא – השרתים של אובנטו בטח מפוצצים כי תהליך השדרוג לא מצליח להוריד אפילו את רשימות העדכונים, שלא לדבר על החבילות עצמן.
עדכון נוסף: הצלחתי להגיע לשלב העדכון של אובנטו בו מנהל העדכון מודיע מה הוא הולך לעשות וכמה זמן זה יקח. שימו לב לתמונה הבאה:
Read the rest of this entry »
Posted in Evangelism | 4 Comments »
April 9th, 2008
לפני כמה חודשים התקינו דואר ישראל בכל סניפיהם מערכת ממוחשבת ומשוכללת לניהול תורות – בכניסה לכל סניף דואר יש עמדת מחשב הכוללת מסך מגע המציג בצורה ויזואלית ומושכת עין את סוגי התורים הזמינים בסניף. בלחיצה אחת על המסך, המערכת מנפיקה ללקוח מספר תור. בתוך הסניף מותקנים מספר מסכי טלוויזיה שטוחים המציגים את המספרים שכרגע משורתים על ידי הפקידים בכל תור, ובנוסף פרטי מידע אחרים (כגון שערי מט”ח) ופרסומות לשרותים של חברת דואר ישראל. כשלקוח מסיים לקבל שרות, מערכת כריזה ממוחשבת מודיעה על המספר הבא בתור המתאים ומפנה את הלקוח לעמדה הפנויה. תענוג!
יום אחד אני מגיע לסניף הדואר הקרוב למקום מגורי ורואה שאחד התורים בוטל – איך אני יודע את זה ? שימו לב לתמונה:
Read the rest of this entry »
Posted in Funny | 4 Comments »
April 5th, 2008
A collection of links that I find useful for web development these days (IE6/7, FF2/3, Safari/KHTML):
Read the rest of this entry »
Posted in Software | No Comments »
April 3rd, 2008
IETF’s RFC process has almost always been a good place to get a laugh, come April 1st – and this year is not an exception: I present to you RFC 5241 – Naming Rights in IETF Protocols which discusses (to some merit, one might say) the requirements and methods by which the IETF might lease protocol field names to commercial interests.
A few examples presented by the authors of the RFC include: Princess Cruise Lines Port Number, Sharpie Marker field and White & Day Mortuary Time-to-live. Additionally RFC 5241 scores bonus points by referring to RFC 3514 :-).
Determining whether RFC 5242 is an April Fool’s post is left as an exercise to the reader.
Posted in Funny | No Comments »
March 23rd, 2008
אני בד”כ לא כותב פוסט של קישורים טיפשיים, אבל בזמן שעשיתי קצת סדר בסופ”ש בקורא הרסס שלי, ראיתי כמה דברים שכדאי לשתף:
(אזהרה – מדובר בדברים טיפשיים במיוחד, כך שאם אין לכם כמה דקות לבזבז, חבל על הזמן)
Read the rest of this entry »
Posted in Funny, Stuff | No Comments »
March 15th, 2008
I’ve been meaning to write about the Linux codec problem for a while now but didn’t have a good enough reason, but I recently listened to the (not-podcast) The Linux Link Tech Show, episode 233 where one of the guys (apparently Dann, but for the life of me I can’t distinguish between them on the broadcast) discusses his new Eee PC (the tiny Linux laptop that has taken over the world or at least the blogosphere), and how it handles video playing.
To sum the Linux codec issue for people who haven’t been listening – it is one of the major hurdles for “Linux on the desktop” (the effort to have Linux operating systems be a viable Desktop operating system for everyday users). One of the key parts for providing a good desktop experience is being able to play multimedia files that users get regularly through email and the web. To be able to play a video or audio file you need a good player (and that Linux has plenty) and the software codec (“enCOder/DECoder”) that understand the file format and can play it. Different file formats – such as MP3, AVI or WMV – require different codecs from different manufacturers, and for legal reasons these are not always available out of the box with your choice of Linux operating system.
Read the rest of this entry »
Posted in Evangelism | 2 Comments »