DCSIMG
Bug - Ido Flatow's Blog Veni Vidi Scripsi

Ido Flatow's Blog

Veni Vidi Scripsi

News

Have you heard me speak?
Powered
<style type='text/css' media='screen' id='sm_css'> #smix {overflow: visible;height: auto;border-radius: 10px;max-width: 250px;background-color: #323232;text-align: left;font-size: 12px;line-height: 16px;font-family:'Lucida Sans Unicode','Lucida Grande',Verdana,Arial,Helvetica,sans-serif;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;} #smix a {color: #0056CC;text-decoration: none;} #smix .sm_head {color: #fff; line-height: 1em;font-size: 1.4em;padding: 10px;color: #fff;} #smix .sm_lanyard_wrapper {background-color: #fff;;clear: both;width: 97%;margin: 0 auto;margin-bottom: 0px;} #smix .sm_lanyard_content {padding: 7px;}#smix button.sm_rec, #smix a.sm_rec, #smix input[type=submit].sm_rec { padding: 6px 10px; -webkit-border-radius: 2px 2px;-moz-border-radius: 2px; border-radius: 2px; border: solid 1px rgb(153, 153, 153); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(255, 255, 255)), to(rgb(221, 221, 221))); color: #333; text-decoration: none; cursor: pointer; display: inline-block; text-align: center; text-shadow: 0px 1px 1px rgba(255,255,255,1); line-height: 1; }#smix .sm_rec:hover { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(221, 221, 221))); }#smix .sm_rec:active { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(204, 204, 204)), to(rgb(221, 221, 221))); }#smix .sm_rec.medium { padding: 3px 7px; font-size: 13px; }#smix .sm_rec span.icon.thumbs_up {background-position: 0px 36px;vertical-align: text-top;display: inline-block;margin-right: 4px;height: 18px;width: 16px;background-image: url(http://speakermix.com/images/new/thumbsold.png);}#smix .sm_rec:hover span.icon.thumbs_up {background-position: 0px 18px;} #smix .sm_events {padding:2px 0px 4px 0px;} #smix .sm_section {font-size: 10px; border-bottom: 1px solid silver; margin-bottom: 6px;} #smix .sm_subline {font-size:120%;margin-top:4px;font-weight:bold} #smix .powered {text-align: right} #smix .powered img {margin: 7px} </style>
Sela Technology Center

Advertisement

Browse by Tags

All Tags » Bug (RSS)
Entity Framework 4.1– beware of the DbSet.Find method
One of the new features of Entity Framework 4.1 is the DbContext API which is basically a simplification of the ObjectContext API, and is intended to make your life a bit easier. In this new API you can find the DbSet.Find method which according to MSDN does the following: “Uses the primary key value to attempt to find an entity tracked by the context. If the entity is not in the context then a query will be executed and evaluated against the data in the data source , and null is returned if the...
Problems with WCF Scaling
Every once in a while, people ask me about problems they have when trying to use a single WCF service with multiple concurrent calls. The first think I tell them is to check their WCF throttling settings. The throttling behavior in WCF controls how many instances and session WCF can create and manage at once. These settings also depend on the binding you use. For example if you have a single proxy on the client side that sends many async calls at once, and you use basicHttpBinding, WCF will by default...
How many transactions can you see in the following picture?
Lately, I mentioned I would  write about Windows HPC Server R2 SP1 and its integration with Windows Azure. Before we get to the basics of how to use the two together, take a look at the following image and answer the following questions (click image to enlarge): I’ve started one large Azure instance under my HPC cluster and ran it for 3 hours. Why do I see 12 computing hours (line 1)? Why are there an additional 6 computing hours (line 2) showing in my bill? How many storage transactions did...
Working with binary data types and detached entities in entity framework
Entity framework supports creating an entity type that holds binary data (byte[]), this is useful if you need your entity to hold things like file streams, photos etc. But there is a problem when your entity has a property of type binary. If you’ve worked with EF and N-tier applications, you know that you can serialize your entity and pass it to the client, deserialize it the client-side, change it and the send it to the server to be updated. MS suggests using the ApplyPropertyChanges method of the...
What does Entity Framework has to do with MSBuild?
The answer to the above question should be “nothing, unless you’re trying to build a project that references entity framework”, but apparently it isn’t so. Say you have a project you’ve built, and you want to build it through code, using the Engine class of Microsoft.Build.Engine assembly. The code should look something like this (taken from MSDN): // Instantiate a new Engine object Engine engine = new Engine(); // Instantiate a new FileLogger to generate build log FileLogger logger = new FileLogger...
Entity Framework ו-JSON, שילוב בעייתי
בחודשים האחרונים אני עובד על בניית תשתית המבוססת על Ado.Net Entity Framework (ראו פוסט קודם בנושא), כרגע בגרסה שהופצה עם Visual Studio 2008 SP1 Beta 1 ולפני כן עם גרסת ה-Beta 3. מאחר והפרויקט הוא WEB-י, מבוסס ASP.NET Ajax (עם שדרוג קטן שלנו), אחד השלבים שהיינו צריכים לעבור בדרך הוא איך להעביר אובייקטי Entity Framework לצד קליינט כאשר הם מסורלזים ל-JSON לאחר כמה נסיונות, התברר שבגרסת ה-Beta 3 של ה-Entity Framework קיימת בעיה לבצע סריאליזציה לכל טיפוס המכיל Association (בין אם Reference או Collection...
התקנת VS 2008 SP1 Beta 1 על מחשבים ללא חיבור לאינטרנט
למי שתוהה, ההתקנה של SP1 שניתנת להורדה מכאן לא באמת שוקלת "רק" 451 KB אלא למעשה היא רק Bootstrap להתקנה ששוקלת 350 מגה (תלוי בסוג המעבד) שיורדים מהאינטרנט אוטומטית בהתחלת ההתקנה. מי שירצה להתקין את ה-SP1 על מחשב שאינו מחובר לאינטרנט, בוודאי יחפש כאן הסבר כיצד לעשות זאת (תחת הנושא "Administrator deployment of Visual Studio 2008 SP1 Beta") וישים לב שיורדים לו 555 מגה של קבצי התקנה (לכל הגרסאות האפשריות של מעבדים). מה שלא כתוב במסמך הזה הוא שההרצה של ההתקנה כפי שהיא מופיעה במסמך...
אז מה, הדברים לא זזים ?
הובא לתשומת ליבי שיש לאיזשהי חברה בעיה קטנה עם אתר האינטרנט שלהם - יש להם באתר Animated GIF שאמור להציג את עצמו בזמן Submit אבל אחרי שניה וחצי של Submit הוא נתקע ולא זז יותר. אם מי שצריך לפתור את התקלה הזו קורא את הפוסט הזה ואם לא הצלחת עדין למצוא פתרון, אז הנה הפתרון : 1. לתפוס את האירוע של onsubmit ובאירוע לשים פקודה אחת : window.setTimeout(someFunction, 100) 2. לכתוב את someFunction ושם לשים את הפקודה האחת הבאה : animatedControl.src = animatedControl.src באג ידוע של IE שעולים עליו רק כשמריצים...
באגים שלעולם לא יצוצו, עד ש...
לפני כמה שבועות ייעצתי לאיזשהו ארגון בנושא AJAX שמבלי להרחיב יותר מדי, מממש מעין UpdatePanel בעצמו מבלי להשתמש ב-UpdatePanel ה-AJAX-י. כשהגענו לשלב של טעינה דינאמית של בלוק Script, התחלנו להתקע בבעיות שנובעות מהרמה לא סדירה של אירועי readyStateChange ב-IE. בסופו של דבר החלטנו שאין חכם כבעל הנסיון, והשתמשנו ישירות בפונקציות ה-JavaScript של UpdatePanel עצמו (Sys.WebForms) ושם נתקלנו במשהו מוזר ... בקוד המיקרוסופטי נמצאת הפונקציה הבאה: 1: Sys._ScriptLoader.isScriptLoaded = function Sys$_ScriptLoader...
מה המקצוע שלך ?
דיברתי היום עם לקוח שלי במט"ח (מרכז לטכנולוגיה חינוכית) לגבי דרישה שיש להם במערכת ניהול היוזרים לרישום מקצוע ליוזר שנרשם במערכת והם הציגו לי דוגמה למערכת רישום יוזרים באחד האתרים שלהם : http://pshita.cet.ac.il/Login/CreateNewUser.aspx אני עדין מתלבט מה ההבדל בין גנב, שודד ופושע ... נראה לי שאני ארשום את עצמי כנוירוכירורג ... מה שבטוח, המשטרה כנראה מבקשת מדי פעם את רשימת היוזרים שסימנו את עצמם כסוחרי סמים. ומה זה בכלל אומבודסמן ? זה לא חונט גופות ? ועל זה נאמר - תזהרו למי אתם נותנים הרשאות לעדכן...
שימוש לא נכון באינדקס מערך ב-VPC ?
היום החלה לי תופעה מוזרה ב-VPC של W2K3 שמותקן לי על הויסטה - יש לי Shared Folder ב-VPC שמצביע על הכונן המקומי של ה-Host כדי שאוכל להעביר קבצים בנוחות. מהיום בבוקר - כל תיקייה שאני נכנס אליה ב-Shared מציגה את התוכן של התיקייה שבאה אחריה ברשימה. לפחות אם נכנסים לתיקייה האחרונה ב-VPC לא מקבלים Index out of bound אלא התיקייה פשוט נראית ריקה למרות שיש בה דברים. בא לי להמשיך עם זה ככה ולראות אם מתישהו זה יסתדר, אבל הויסטה עושה לי BSOD כל יום בזמן האחרון אז כנראה מחר זה כבר לא יהיה (ה-BSOD האחרון היה היום...