My family, books, photos, technology, language and some math משפחתי, ספרים, תמונות, טכנולוגיה, שפה, וקצת מתמטיקה
Thursday, July 31, 2008
JavaScript casting from string to numeral -- The 0 trick
javascript: typeof("17" - 0)
This type casts the string "17" to the number 17. Your result will be number.
BUT:
javascript: typeof("17" + 0)
will type cast the number 0 to the string "0" and will concatenate it to the string "17", so you will get "170". Your result will be string.
AHA!
This looks like a thing that can result in bugs in implementations.
17th USENIX Security Symposium

17th USENIX Security Symposium: http://www.usenix.org/events/sec08/sec08.html
I found some very interesting stuff there in the technical sessions.
Here's the ToC: http://www.usenix.org/events/sec08/tech/contents.pdf
F5 ASM on DevCentral

F5's ASM has its own DevCentral forum: http://devcentral.f5.com/Default.aspx?tabid=53&view=topics&forumid=47
x6 zoon lense for your cell phone

My friend, Dima Rovniagin, referred me to a site that sells gadgets, where they sell a x6 zoon lense for cell phone cameras: http://www.dealextreme.com/details.dx/sku.3570
Wednesday, July 30, 2008
Snapshot of a web page

If you want to have an instant snapshot image of a web page as one would view it in a web page do the following (this is a firefox trick, I think that IE and other browsers have similar tricks):
1. add a bookmark to http://images.websnapr.com/?size=size&key=key&url=%s
2. edit the bookmark's properties: and give a keyword. I used "snap".
3. save
4. goto your browser's location bar and type snap URL where URL is some URL of a web page. Try for example: snap http://shlomoyona.blogspot.com
Cool!
jslint

JSLint -- The JavaScript Verifier.
Online tool to verify and check your JavaScript code.
See: http://www.jslint.com/
לאמיר הערן גוטע בשורות -- שנשמע בשורות טובות -- ברכות וקללות ביידיש
את הספר רכש בעבורי (החזרתי לו את הכסף!) חברי אמיר אהרוני לאחר ששמע שהתלהבתי מתאור הספר
מאז שיש לי את הספר על שולחני בעבודה נשמעות באויר קללות וברכות ביידיש מפי כל עובד ועובדת וזה מכניס עוד הנאה להוואי בעבודה.
שלא לומר שאני מתחיל להיות מסמר הערב במפגשים משפחתיים עם המשפחה מצידה של אשתי (מצד הורי, התורכים, אין ידע ושפה אידיים...).
הארגון בספר לא כ"כ מוצלח לדעתי וגם לא המפתחות שמפנים לעיול על פי מספרו ולא גם או רק לפי העמוד בו הוא מופיע.
מאידך, התרגומים גם לעברית גם לאנגלית וגם לרוסית הם שימושיים מאד מאד.
ספר מהנה ומומלץ.
שמחתי לראות כי יש ספרים נוספים של אותו המחבר בסגנון:
- 2000 בילדערישע אויסדרוקן אין יידיש (2000 מטבעות לשון ביידיש)
- חמש מאות דימויים ביידיש והמקבילות בעברית, באנגלית וברוסית
- אלף ניבים ביידיש והמקבילות בעברית, אנגלית ורוסית
- אויפן שפיץ צונג - על קצה הלשון 500 פתגמי יידיש
גם את אלה אנסה להשיג. מי יודע היכן ניתן להשיג?
"Understanding Shutter Speed" by Bryan Peterson
Here's the link to the title itself on Amazon: http://www.amazon.com/gp/product/0817463011/ref=cm_rdp_product_img
I already own previous titles from this author " Understanding Exposure", "Learning to See Creatively", " Beyond Portraiture" and " Understanding Digital Photography". This book is very similar: it contains great pictures as examples, it contains short text paragraphs that can be read and understood separately and it provides useful tips and examples.
It is unfortunate that some of the pictures are re-used from previous titles. This also happened in his previous titles. I fail to understand why Peterson does this. Being a photographer for so many years, he surely has enough photos available to be able to exemplify without such re-use of material.
Nonetheless, the pictures are AMAZING and worth alone buying the book. The tips are very useful.
I like the style very much and appreciate the fact that the text is short and without useless "filler text".
Tuesday, July 29, 2008
Bulletproof AJAX by Jeremy Keith
Here's a link to the book's page on Amazon.com: http://www.amazon.com/gp/product/0321472667/ref=cm_rdp_product
My book review for Bulletproof AJAX by Jeremy Keith
bought this book in order to get an easy and speedy up-to-date with the AJAX buzzword. This book does the job.
It is a short book (less than 200 pages). The writing style is very inviting and easy to read. I actually read it cover to cover easily in a very short time period.
The examples that walk you through are easy to understand and give the feel for the material.
Terms are very well explained. Jargon is explained too, which helps positioning yourself within the hype buzzword soup you read on the web.
The book explains nicely what AJAX is and what it isn't. It explores a few different ways of doing the same thing. It touches the important topics, giving a feel to them and understanding of "their trick". This is just enough to understand the material.
After reading the book I feed confident to be able to do ahead with my work: I have the basic understanding and the terminology so whenever I need something, I know if it is available, or even relevant or not and then can use an on-line resource or a reference book and complement the necessary knowledge to do the task.
I liked the fact that the author doesn't take for granted a specific browser. He explains how to do things in a way that will be compliant with all browsers. I liked the fact that the author promotes fallbacks, that is, alternative things to happen in case JacaScript is not supported, or that a certain operation is not supported. I liked that the examples and explanations are "backward compatibility motivated".
It is clear that the author is not possessed by the technology itself but thinks primarily about the user and the user experience, thus, compliance and backward compatibility are considered, but also feedback on progress and on changes made to the page and other accessibility issues.
I recommend the book as an introduction to the topic.
Monday, July 28, 2008
אפשר לתרגם מונחים בעברית לויסטה ולאופיס

Microsoft Terminology Community Forum
מיקרוסופט מזמינה להגיב, להעיר, להציע ולהצביע על התרגומים שלהם למספר שפות רשמיות. ביניהן עברית.הנה קישור להזמנה שלהם ביומן הרשת של פורטן (כן, זאת המלה העברית ל-portal הלועזית) השפה של חברת מיקרוסופט.
קמבק בעברית
הוא עשה קמבק == הוא קימבק == הוא חיזבג == הוא עשה חיזבוג
חיזבג מבוסס על "חזר בגדול" וגם פונטית מזכיר he's back
יש הצעות מתחרות?
לא לסרטן
לא לסרטן
ד"ר דויד סרוואן-שרייבר
קישור המפנה לטקסט על הספר מאתר ההוצאה לאור
לספר שני חלקים עיקריים:
האחד על תזונה והשפעותיה על גידולים סרטניים
השני על השפעות של עקה על הסרטן ודרכים להתמודדות עם לחץ ובעיות פסיכולוגיות
בעוד שהחלק הראשון שזור בצפיפות במראי מקומות מתוך ספרות מדעית כדי לגבות את הכתוב, חלק השני נראה שיש פחות תימוכין והמקורות פחות סמכותיים מאשר בחלק הראשון.
מה למדנו?
ניתן להשפיע רבות על היכולת של הגוף שלנו להתמודד עם מפגעים לרבות סרטן ע"י שינוי משטר האכילה וסוג האוכל שאוכלים והרכבו
למזון שאוכלות החיות שמניבות לנו חלב, ביצים ובשר יש השפעה רבה מאד על מה שאנו צורכים גם בהיבט של חומרים שגופנו זקוק לו והן בהיבט של תרופות וחומרים אחרים שאנו מקבלים בעקיפין
מסקרן הדיון על פרדוקס ההשמנה האמריקני וזה הישראלי שדנים בהם בספר.
מסקרן מאד הדיון באיזון בין אומגה 6 לאומגה 3. מפתיע עבורי היה אי ההתייחסות לזיהום אויר ולקרינה אלקטרו מגנטית בספר -- אולם אני יכול לנסות ולהסביר את זה בכך שהמחבר לא דן במקורות לסרטן כ"כ אלא במה שניתן לעשות כדי להתמודד עמו. עוד הוא לגבי יכולתו של המחבר לתמוך את דבריו ממקורות מהימנים שמבוססים על מחקר מדעי.
ספר מעניין ומחכים.
אני מתכוון וכבר התחלתי לנסות ולשלב יותר תה ירוק וכורכום ושום ובצל במזון שלי בדרך קבע. אני מסכים עם הקביעה בספר שאומרת שלא ברור אם זה משפיע ובאיזו מידה אבל ללא כל ספק אין זה מזיק.
הנה קישור שמסכם כמה מהתובנות בספר על תזונה
ועוד אחד.
ספר מומלץ בסה"כ -- ולו משום שהוא גורם למודעות בנושא פשוט שבו לכל אחד יש יכולת לבצע ולהשפיע על חייו ועל חיי משפחתו ועוד בגלל הנימוקים והגיבוי המדעי לטענות.
Sunday, July 27, 2008
Unicode Security Considerations
Unicode Security Considerations
This technical report gives a nice introduction to security issues that are facilitated by Unicode. The exposition is divided into two main categories: visual and non visual security issues.I think that this is a very good and important read.
