DCSIMG
January 2007 - Posts - Just code - Tamir Khason

January 2007 - Posts

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/%d7%94%d7%99%d7%94-%d7%a0%d7%92%d7%9e%d7%a8/]


זהו, נגמר הטרוף של ה-Academy תודה רבה שבאתם והקשבתם לנו. היה מאוד נחמד לראות כ"כ הרבה אנשים שבאו. מצד שני חבל שלא לכולם היה מקום ולא כולם יכלו להכנס ולהשתתף בכל ההרצאות. (קרי מחשבה לכנס הבא)

עד שהכל יעלה באופן מסודר לאתר (כולל ההקלטה של ההרצאה שהובטח)  הנה הדמו ממצגת שלי (כולל קוד מקור כמובן). להזכרכם הנה המצגת

אגב מאוד מעניין לשמוע את דעתכם והחשוב מכל, לכל אלו שהיו בהרצאה שלי שאלה: האם הבנתם מה זה Dependency Property? אם "כן", עבודתי עשיתי :) תודה שוב לכולכם

סוכריה לסוף - בקרוב אעלה את הגרסה של ההרצאה אשר נפסלה מסיבה "מורכב מדי" :)

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/%d7%94%d7%90%d7%9e%d7%a0%d7%95-%d7%9c%d7%99-%d7%90%d7%aa%d7%9d-%d7%9c%d7%90-%d7%99%d7%93%d7%a2%d7%99%d7%9d-%d7%9b%d7%9c%d7%95%d7%9d/]


חברים יקרים, אין לכם מושג על מה ואיך אני הולך לדבר. ב-5 שעות אחרונות המצגת שלי השתנתה לחלוטין. ומי שקורא את הבלוג שלי - הרוויח כי הנה המצגת האחרונה (Attachment), אשר תופיע בכנס מחר היום. תהנו, אך דעו לכם, שהקצב המטורף וכמות החומר החדש שנלמד לא יאפשרו לכם לא להציץ במצגת מודפסת אחרונה ומעודכנת

אחרון חביב, שעות של ההרצאות שלי לא השתנו, אבל אולמות כן:
מסלול A: אולם 10, ב-13:30
מסלול B: אולם 16, ב-11:15
פנל מפתחים: לובי, ב-12:45

אני מפספס ארוחת צוהוריים לגמרי

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/dvd-iso-creator/]


How often you are looking for freeware program to burn CD and DVD images to disk. Each time you need a bootable OS CD or DVD and can not burn it with existing burners from Windows? Let me try to help you by presenting BURNCDCC from TerraByte Unlimited - ISO burner that do not need installation. Just drop it on your USB and use it when you really need it. This simple freeware utility might really help with burning ISO images directly into CD or DVD.
If you take a look on their website you'll find a lot of other great candidates (mostly for kind of bootale stuff) for you DiskOnKey.

Download from FTP

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/datagrid-or-not/]


Are WPF developers really need DataGrid component (as like the awful one in VB, .NET 1.1 and 2). My opinion - no, but there are those who want it.

Generally, Microsoft is not "Component Provider". This place is saved for 3d parties like Infragistics, Xceed etc. They are doing great work by saving valuable time for companies.

From the other hand, GridView within ListView make you able to create datagrid you really want. However in last TechEd Infragistics presented their version of DataGrid and yesturday Xceed did it as well. There are some, who like old good DataGrid incorporated with WPF by using CrossBow. So the world rolling and very soon we'll see WPF datagrids of any kind everywhere, ... or not... Hense, with outstanding possibilities of DataBinding in WPF we do not really need something very smart to create data driven control.

So, DataGrid or not in WPF - the questing remains open...

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/is-uac-good-for-jews/]


I believe, that all of us have UAC disabled in Vista. It's impossible to work, while black screen poped up on our try to run RegEdit for example. But is it good to disable really usable security feature of Windows Vista? Not really, excpessially while the computer not in domain each restart you get red baloon with security warning. Let's try to moderate it without disabling. To perform it all you have to do is make little patch to Local Security Policy.

  1. Open it with writing "Local Security Policy" in Vista serach from start menu. Is't it really great, that you do not have to find it yourself anymore?
  2. Go to Local Policy->Security Options
  3. There find out User Account Control: Behaviour of the elevation prompt for administrators
  4. Open it and change Prompt for consent to Elevate without prompting

To disable prompting for application installation change value of User Account Control: Detect application installations and prompt for validation from Enabled to Disabled

That't it. Now you have UAC up and running, but without screen blanking and nudge about security flaws while running regedit or program installation. Dont you forgot to switch UAC on before? To do it go to User Manager (just click on your picture at right upper side from start menu and check "Turn User Account Control on or off). Have a nice Vista

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/developers-academy-07-registration-is-live/]


The Microsoft Developers Academy '07 website went live. This year's edition is promise to be really interesting, due a lot of new technologies revealed this year. As Yossi poins out, WPF will play a very large role in this year's Academy. Take a look at the list of sessions here or here. WPF is well represented. I'll be presenting at Academy about WPF and it's too long until January 30th.

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/%d7%a1%d7%95%d7%93-%d7%94%d7%94%d7%a6%d7%9c%d7%97%d7%94-%d7%91%d7%90%d7%aa%d7%a8-%d7%94%d7%92%d7%93%d7%92%d7%98%d7%99%d7%9d-%d7%a9%d7%9c-%d7%95%d7%99%d7%a1%d7%98%d7%94/]


בוא אני אסביר לכם איך גדג'טים מכאן מגיעים לכאן (שזה מה שרואים משתמשי ויסטה). האמת שזה נורא פשוט. כל גדג'ט אשר ציונו מעל חצי (2.5) באופן אוטומטי מופיע באתר של ויסטה. מה זה אומר? שאם לא תצביעו בעבור הגדג'ט, האנטישמים יורידו אותו מהאתר (שזה מה שקרה היום). אז יהלה, להצביע (רק אם אתם באמת חושבים הדווחי תנועה זה טוב יהודים!)

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/%d7%97%d7%93%d7%a9%d7%95%d7%aa-%d7%98%d7%95%d7%91%d7%95%d7%aa/]


     מהיום ניתן להוריד את הגדג'ט של מוקד התנועה גם מאתר של Windows Vista. ואל תגידו לי שהם לא תומכים בעברית להלן הקישור. תהנו

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/gadgets-download/]


Yesturday, I noticed about interesting problem - how to make download gadget. Seemed stupid? No. Try to upload your gadget to any web server (it might be even apache). While you'll try to download it you'll get following in IE and FF. What's the hell? Why it's ZIP??? I uploaded .Gadget!

 

You see .ZIP extention just because .Gadget is really .ZIP, so "smart" IE knows to "translate" extention in order to prevent fraud. Very nice, but I want do download and install gadget. As like as I can do in in http://gallery.live.com

How to configure my server to do it. Simple answer is right MIME type. It's application and it's zipped, so we can use  application/octet-stream, application/x-compressed or even application/x-msdownload. Let's try. Just register .gadget type with one of those. In first case you'll get octet stream :) Obviously. And this looks like that

Bad one. The next x-compressed will return us to previouse state with .ZIP renaming. Let's see what will be with x-msdownload.

You able to download gadget as requested, but you can not install it (Open->Run) from the web (like in Live.Gallery)

So such thing is not suitable for us. After some digs of my friends from Redmond (from Live team - they are only 3 :) ) I found it. The right MIME type for Vista SideBar Gadget is application/x-windows-gadget. Register .gadget extention with application/x-windows-gadget MIME type and you'll able to provide your visitors Live.Gallery like installation option for gadgets

Yossi, do it here for us as well :)

Have a nice gadget :)

[This blog was migrated. You will not be able to comment here.
The new URL of this post is http://khason.net/blog/%d7%9e%d7%95%d7%a7%d7%93-%d7%94%d7%aa%d7%a0%d7%95%d7%a2%d7%94-%d7%a9%d7%9c-%d7%a7%d7%95%d7%9c-%d7%99%d7%a9%d7%a8%d7%90%d7%9c/]


מזל טוב, רשות השידור (בפרט מוקד התנועה) מציגים SIDEBAR GADGET של דווחי התנועה. וכך זה נראה

 

מה זה גדג'ט? נורא פשוט - דף HTML שרץ אצלכם בבית עם הרשאות מופרזות. למה? ככה! לדוגמא: CROSS SCRIPTING נהיה אפשרי. לא יפה, אבל נחמד ומשעשע.

איך מתחילים? קודם כל קוראים על הAPI. ואחר כך מקודדים את הHTML שלנו. חשוב לא לשכוח להרשם לארועים ספציפים של SIDEBAR GADGET API כנו DOCK, UNDOCK, SETTINGS CLOSE וכד'. כל הדברים האחרים - שטויות, האמינו לי, זה באמת פשוט. והכי חשוב, אנחנו לא איסתא, לכן מוקד התנועה של קול ישראל אישר רשמי את הגדג'ט.

להוריד את הגדג'ט של מוקד התנועה של קל ישראל

עכשיו אנחנו מחכים לחברה של LIVE TEAM לעלות את הגדג'ט לאתר ולCERTIFICATION

שימו לב! כאשר מורידים את הגדג'ט ב Internet Explorer הוא יורד עם סיומת ZIP, להיות ו"חכמים מאיתנו" מגלים את סוג התוכן. בכדי להתקין אותו תשנו את הסיומת של הקובץ ל.gadget