כן, אני מצטט את XKCD – תתבעו אותי
November 25th, 2011הקומיקס הזה של XKCD מתאר בדיוק את הרגשת חוסר האונים שיש לי לפחות פעמיים כל שבוע:

[מוצג כאן ללא אישור המחבר - אני מקווה שלא אכפת לו]
הקומיקס הזה של XKCD מתאר בדיוק את הרגשת חוסר האונים שיש לי לפחות פעמיים כל שבוע:

[מוצג כאן ללא אישור המחבר - אני מקווה שלא אכפת לו]
באחד הפודקסטים שאני שומע – Stack Exchange Podcast עם ג’ואל ספולסקי(1) וג’ף אטווד – ספולסקי הזכיר כבר כמה פעמים מחקר שנעשה באוניברסיטת בן גוריון על “גורמים חיצוניים בהחלטות שיפוטיות” שבו החוקר מדד את אחוז ההצלחה בבקשות חנינה בהשוואה לכמה זמן עבר מאז ארוחת הבוקר של השופט ששומע את בקשת החנינה.
ספיציפית החוקר – שי דנצינגר – מצא ששופטים הדנים בבקשות חנינה של אסירים ישראלים מחלקים את הישיבות שלהם לשלושה חלקים המופרדים ביניהם בהפסקות אוכל, ובהנתן שאנחנו מפקטרים החוצה כל שיקול אחר (בין אם הוא לגיטימי או לא – כמו אחוז מזמן המאסר המקורי שהאסיר כבר עשה, חומרת הפשע, השתייכות עדתית וכו’) אפשר לראות בצורה מובהקת ירידה דרמטית באחוז ההצלחה של בקשות חנינה בין תחילת וסוף כל חלק, כשאחרי ההפסקה אחוזי ההצלחה חוזרים לרמתם הקודמת.
זה לא באמת מתכון – יותר המלצת צרכנות: סנפרוסט הוציאה ממש לאחרונה סדרה חדשה של מוצרי ירקות קפואים בדמות לקט ירקות קפואים ביחד עם ציר למרק. אני לקוח של סנפרוסט כבר הרבה שנים ואחד הדברים שתמיד תמצאו אצלי במקפיא זה ירקות של סנפרוסט. ספציפית תמיד יש לי שקית של לקט נורמנדי ל”מרק חרום”: אם באים במפתיע מבקרים רעבים ב-2 בלילה(1) , אז אפשר תמיד לזרוק את התוכן של שקית לקט נורמנדי לסיר, להוסיף קופסאת רסק עגבניות תבלינים ומים רותחים, ותוך חצי שעה יש מרק חם וטעים.
הפעם סנפרוסט מציעים כבר את הכל בשקית אחת: גם הירקות, גם הציר עם התיבול, רק חסר מים. ניסיתי את ה”מרק שעועית” שלהם, ובגלל שאני לא יכול להשאיר שום דבר כמו שהוא היה (מסורת ארוכת שנים של לנסות לתקן דברים שלא מקולקלים), התחלתי בלאדות סלרי קצוץ עם פלפל אדום חתוך לקוביות, הוספתי כרשה קצוצה לעוד שתי דקות ואז את התוכן של שקית המרק של סנפרוסט, וכמובן למלא במים רותחים. המרק יצא קצת יותר מימי ממה שאני מעדיף (אני אוהב נזידים סמיכים), אבל טעים ואין אפילו צורך לתבל מעבר לציר שבשקית. מעולה לאנשים שנשארים בבית כי הם חולים בשפעת ולא רוצים להדביק את המשרד
גם מי שחרד ממרכיבים מלאכותיים באוכל תעשייתי יכול להרגע: הדברים הכי גרועים שיש בשקית הם חומצת לימון כמייצב, גומי קסנטן כחומר עיבוי, ותמצית רוזמרין כמעכב חימצון.
This is how to install the official Nvidia drivers on Fedora 16. Its the “wrong way” because in Fedora you should install the Nvidia drivers using RPMs provided by rpmfusion.org, or “better” yet – use the open source nouveau driver that is provided with Fedora 16 and at this point does enough rudimentary 3D acceleration to run GNOME 3.
So why do that? because you can try the latest beta drivers from Nvidia’s web site (the stable drivers are usually already supported by rpmfusion) and sometimes the rpmfusion complex kernel module setup doesn’t work well – especially if you install custom kernels.
If you still want to do this the “right way”, head over to this article on “If !1 0″ to get the simple instructions.
Warning: this procedure requires you to know the password for the “root” account and login using the text console.
This piece of script came in handy when I wrote a utility that “recycles” space on a logging partition: before log rotation archives the current log file, we move some old log files (depending on some archive freshness policy) to a remote storage that archives older files.
The problem is that the “old archive storage” also has limited disk space and I got fed up managing the archive by hand. The solution I came up is to scan the hierarchy of log files in the storage (logs are stored hierarchically according to origin and type) and delete old files until I have enough room to move some newer files in. That way the “old archive storage” is always kept full and keeps as much back-log as possible and does this automatically.
The piece of code that determines which files we want to delete works like this:
find to list all the files in the directory structureperl and collect all the file names in a listhead to get just the first fileSo it looks like this:
find /mnt/httpd_back/ -type f | perl -nle 'next unless -f; push @files, $_; END { foreach $file (sort { @a=stat($a); @b=stat($b); $a[9] <=> $b[9] } @files) { print $file; }}' | head -n1
Note: normally we use head to get some initial output and terminate the process early before it does more costly work – when head has enough data it terminates the pipe sending SIGPIPE to the upstream process and that usually terminates the process that generates the data. In this case – and in all other cases involving sort – the upstream process buffers all the data in its own memory before outputting anything, so it can sort everything, and using head here is just a filter to get what I want and does not actually save me from doing all the work. I could have easily done the same thing inside the perl script itself by replacing the block of print $file; with print $file; last; – this has the same effect as using head, because head will send SIGPIPE to perl after getting the first print and will terminate it. Deciding which way you want to go is probably more about readability of the code and I prefer my original version because its easier to read to non-perl specialists.
I can then just remove that file, see if I have enough room to move in the newer log file and if no – repeat the process.
This would work well, I believe, but it may be inefficient if I find a bunch of small files and I want to copy in a large file. So what I did next is to take advantage of the fact that all the log files I have are named using the following simple format:
<service>-<type>_log-<year><month><day>.gz
and that allows me to easily find all the log files that record the same day and eliminate them at the same time. Subsequent moving of additional files will likely succeed because I cleared out all the log files of an entire day. If not, I can always go and clear up another day’s worth of logs.
אם אתם רואים שהתקשרו אליכם ממספר שמתחיל בספרות 072-200 (לדוגמא 072-2003144), אל תתקשרו בחזרה: אלה אנשי מכירות של חברת 012 סמייל שרוצים למכור לכם משהו, ונראה שהחלט לנקוט בגישת “צלצול/ניתוק” כדי לעודד את לקוחותיהם לחזור אליהם. כנראה כדרך לחסוך בזמני המתנה של אנשי מכירות: אם המערכת האוטומטית גורמת ללקוחות להתקשר לאיש המכירות, אז איש המכירות לא צריך לבזבז זמן בהמתקנה שהלקוח ירים את הטלפון.
אני לא חושב שהשימוש הזה מתנגש עם חוק מניעת דואר זבל (תיקון מס’ 40 לחוק התקשורת), אפילו לא תחת תיקון 47 לחוק התקשורת הידוע כחוק נגד “צינתוק” (ראו גם את התביעה היצוגית בנושא) מכיוון שאני לקוח של 012 ותחת חוק התקשורת מותר להם לשלוח לי דברי פרסום, אבל עדיין מדובר בחוצפה ממדרגה ראשונה – לצפות שאני אשלם עבור משלוח דבר פרסומת אלי.
אז כל מה שיש לי לעשות הוא להמליץ לקוראי להזהר ולא לחזור לשיחות טלפון שלא נענו מחברת -012 סמייל.
Update: The latest update for CyanogenMod for Milestone – version 7.1.0.3 solves this problem as well.
Lately I’ve been having problems updating software on my Motorola Milestone (1, as in A853) running CyanogenMod 7.1 (thanks to Nadalbak who maintains an unofficial and unsupported port of CyanogenMod for this old device). When I start the Android Market and do an update of an existing application, I get the error “Package file is invalid” for any application. Sometimes removing an application and reinstalling it will work, but often not.
There could be several problems that cause this, apparently a problem with the file permissions on the file systems is common, and if this is your problem then it can be fixed by opening the terminal emulator, executing “su” to gain super-user permissions and then running “fix_permissions” (it will take a while to complete).
If this doesn’t solve the problem for you, then likely the problem is that you ran out of space on your “data” partition or “cache” partition. This is very common if you have a large “apps partition” on your SD card and you are in the habit of installing tons of applications – I know I am
.
בעקבות דיון שהיה במשרד, פחות או יותר בנושא (“אז מה היה הנושא בדיוק, המאגר הביומטרי של משרד הפנים?” “לא – מה פתאום – סתם דיון כללי בנושא מאגרים ביומטרים של אזרחים במדינה דמוקרטית הכוללים תמונה וטביעות אצבע”), ובניסיון להדגים משהו, הרצתי חיפוש קצר בגוגל – visual identification biometric. לא מצאתי מייד את מה שחיפשתי, אבל כן ראיתי – באחת התוצאות בעמוד הראשון – את המאמר המעניין הבא: Individual animal identification using visual biometrics on deformable coat patterns ( המאמר המקורי זמין להורדה ישר מתוצאות החיפוש של גוגל, אבל הקישור הנ”ל הוא ל-Google Scholar).
הכותרת נשמעת מבטיחה, והנה התקציר הלא מקצועי שלי:
המחקר התמקד בפיתוח תוכנה ואלגוריתמים לזיהוי אמין ואוטומטי של פרטים בודדים בסביבה טבעית וסואנת על ידי השוואתם לתמונות מקור איכותיות שהוכנו מראש. נשמע מוכר למישהו?
העיתונות הישראלית בסופ”ש הזה (וכמה ימים לפני וכנראה אחרי) מלאים בסיפור של יובל טופר, תחת הכותרת “הגבר הישראלי הראשון שנכנס להריון” (ראה כתבת התדמית המקיפה של ידיעות אחרונות או לפחות הקישור הזה). אתחיל ואומר שאין לי דבר בעד או נגד הבן-אדם – אני לא שונא אותה או אוהב אותו (בגלל חוסר בשפה העברית בכינויי גוף נטולי מין, ושאינם נתפסים כמבזים כמו “זה”, אני הולך לפתור את הבעיה שלי – זו שאדבר עליה מייד – על ידי זה שאני אשתמש בזכר ונקבה במידה שווה, ובצורה מבלבלת ככל האפשר). ספציפית אין לי שום כוונה שיהיה לי איזה שהוא יחס רגשי ליובל טופר ואני אדיש לחלוטין לאיך אנשים בוחרים להגדיר את עצמם (שום הגדרה עצמית מבחינתי אינה “סטיה חברתית” – או בפראפרזה על מה שידיד שלי אמר, מצידי שיגדיר את עצמו כפודל).
As most Linux users are aware, you can access network shares with your file browser of choice (Dolphin, Nautilus and probably others) by writing URLs into the file browser’s “location bar”(1).
If you ever had to work with MS-Windows file server, you should know that you can also access SMB file shares using URLs – with the schema “smb”, like this: smb://file-server/share-name.