DCSIMG
DEV - Rotem Bloom's Blog

Rotem Bloom's Blog

Share knowledge on .NET and web development

News

About Me

Glad to help and share knowledge on .NET and also huge fan of Dream Theater.

Contact me via messenger

View Rotem Bloom's profile on LinkedIn

Dream Theater Pics

Blogs I Read

Browse by Tags

All Tags » DEV (RSS)
CultureInfo.GetCultures High CPU and Memory problems under ASP.NET application with High Traffic
Hi, I would like to share a problem I found when working with the class: CultureInfo .GetCultures on ASP.NET application that has high traffic. It look like the implementation of CultureInfo.GetCultures does not appropriate written to ASP.NET or there is a bug in code that cause to a High CPU peeks (80%-100% CPU peeks). If you need to use this code on your ASP.NET application I would recommend to wrap the code inside a static object and not use the .NET CultureInfo.GetCultures. Rotem
Minifying HTML With ASP.NET MVC And Razor
Hi, I read nice article with cool solution for Minifying HTML With ASP.NET MVC And Razor. You can read more here . You can start use it in you MVC projects, for 25% smaller HTML pages.
firefox not executing javascript on back button
Hi, firefox has a cache behavior that uses in-memory caching for entire Web pages, including their JavaScript states, for a single browser session. This can cause to unexpected javascript and HTML behavior when pressing on the browser back button. For example: PageLoad will not fired javascript code will not executed DHTML that was created by JavaScript will be shown and more... In case firefox cache is something you want to prevent, Below are some common programmatic reasons that a page will not...
ASP.NET MVC Razor CSS and Javascript Compress and Manager
Hi, If you are ASP.NET MVC Razor developer and you are looking for a nice solution to Combine, Compress and Manage your CSS and JavaScript files, Well SquishIt can fit your needs. Razor Code Sample: @ MvcHtmlString . Create ( SquishIt . Framework . Bundle . Css () . Add ( "~/media/css/reset.css" ) . Add ( "~/media/css/style.less" ) . Add ( "~/media/css/handheld.css" ) . Render ( "~/media/css/combined_#.css" )) @ MvcHtmlString . Create ( SquishIt . Framework...
האתר של ארטיזון עלה לאוויר בטכנולוגית ASP.NET MVC 3.0
היי, היום העלינו את האתר של ארטיזון לאוויר. האתר נכתב מחדש והועבר מטכנולוגיה של SILVERLIGHT ל-ASP.NET MVC 3.0 אני חייב לציין שמיקרוסופט עשו עבודה והחלטה מעולה לצאת עם ה-MVC וכתיבת האתר בטכנולוגיה זו עשתה לנו חיים קלים בהפרדה לשכבות, שליטה על קוד ה-HTML, אין שמירה של VIEWSTATE ושאר ירקות רקובים. אומנם האתר מיועד לקנייה רק לתושבי דאלאס ארה"ב אבל אשמח אם תכנסו ותגידו מה דעתכם על האתר ובכלל תראו אתר LIVE שנכתב כולו ב-ASP.NET MVC 3.0 בנוסף אנחנו עדיין צחפשים אנשי .NET חזקים שיצטרפו לחברה. https:...
ASP.NET MVC 3.0 jquery unobtrusive ajax Failed on IE 8
Hi All, I'v notice a strange behavior when working with ASP.NET MVC 3.0 jquery unobtrusive ajax on forms HTML element on IE (internet explorer) 8. Razor code example for generating ajax call on a form element using unobtrusive ajax: @ using (Ajax.BeginForm("MyAction", "MyController", new AjaxOptions { HttpMethod = "POST" })){ Sometimes (not always) i'm getting a javascript error with the message "Falied" that come from the javascript file jquery.unobtrusive...
How to decide which WCF binding to choose??!!
Hi, I decided to share a nice diagram that can help you decide which WCF binding you should choose for your application or SOA architecture. (If you can see the entire image you can download it using right click and "Save Picture As...")
חברת ארטיזון מגייסת עובדים
חברת ארטיזון מחפשת אנשי דוט נט מנוסים וחזקים: 1. מומחה HTML, CSS, JAVASCRIPT להובלת כול פיתוחי החברה בתחום ה-UI. 2. ראש צוות דוט-נט תותח ומנוסה עם ידע וניסיון מעמיק באפליקציות WEB מרובות משתמשים. 3. תותחי דוט-נט שמחפשים לעבוד בטכנולוגיות החדשות ביותר. בארטיזון עובדים בדוט-נט 4.0 עם TFS וכול הטכנולוגיות החדשות כולל סילוורלייט ותכנון לעבודה עם AZURE. מי שנראה לו מעניין או יש לו חברים שמחפשים מוזמן לשלוח לי קורות חיים אל: rotemb@artizone.com רותם
שאלה לתותחי SQL ו-DATABASE
שלום לכולם, יש לי שאלה לכול מומחי ה-SQL ו-DATABASE והשאלה היא: רציתי לדעת מה הגישה המקובלת והמומלצת יותר היום לעבודה עם DATABASE שאמור להיות עמוס מבחינת גישות SQL ונתונים (נגיד DB כמו של פייסבוק או אמזון). 1. האם לעבוד ב-DB שונים לכול שירות? כלומר: DB למשתמשים, DB למוצרים, DB להזמנות וכו'... ככה אין כמעט JOIN אבל יש לחבר את התוצאות מהשירותים השונים במקרה שיש צורך ב-JOIN. 2. האם בכול זאת עדיף לעבוד עם DB אחד לבצע JOIN שיכולים להיות מורכבים ורק להפריד את הנתונים ל-DB שונים לפי לוגיקה מסויימת 3...
Jquery TreeView with RTL support
Hi All, Well after month of silent (7 I think) I got back with a new post on Jquery TreeView. First you can download the plugin from here . I must say this plugin is amazing very fast even with large trees. The problem of Jquery TreeView is the lack of RTL (Right To Left) support for languages like: Hebrew, Arabic etc... If you got the same problem I have and you need Jquery TreeView RTL version you can download it from my blog right here . To the AJAX fans I also add a nice cool ajax application...
Unlocker the tool that must for developers
Hi, Have you ever bump into messeges like: Cannot delete file: Access is denied There has been a sharing violation. The source or destination file may be in use. The file is in use by another program or user. Make sure the disk is not full or write-protected and that the file is not currently in use. Well when such cases happeneds you really want to know which application lock your Files or Folders. The Unlocker is the solution for you. Just look for "unlocker" in Google or Bing or you...
How to find and reproduce bugs in multi thread applications - CHESS is to tool you must use!!!
Hi All, If you want to test and reproduce multi thread applications bugs there is a new tool from Microsft called: CHESS . CHESS is a tool for finding and reproducing Heisenbugs in concurrent programs. CHESS repeatedly runs a concurrent test ensuring that every run takes a different interleaving. If an interleaving results in an error, CHESS can reproduce the interleaving for improved debugging. CHESS is available for both managed and native programs. Great movie that explain CHESS: An Automated...
Expert Days 2010 יוצא לדרך שווה ללכת
ימי המומחים מה שידוע גם כ-Expert Days יוצא לדרך ב-22 לנובמבר. אז בתור אחד שהיה בכנס בשנה שעברה אני ממליץ בחום ללכת לכנס למסלול שמעניין אתכם. השנה לפי מה שראיתי באתר הכנס שמו דגש על הטכנולוגיות החדשות שאמורות לצאת בשנה הקרובה, לכן אני חושב שכדאי ללכת ולהתעדכן בטכנולוגיות החדשות שאמורות לצאת בשנה הקרובה. מסלולים Visual Studio 2010 & .NET Framework 4.0 מסלול המה חדש בויז'ואל סטודיו 2010 ודוט-נט 4.0 סוקר את כל החידושים שיהיו בשנת 2010. המסלול מנוהל ע"י ורדי אייל. ASP.NET 4.0 מסלול הווב מכסה...
Sending .NET configuration section over the wire using WCF
Hi, Have you ever needed to implement configuration sections for the application configuration file? Well probably you have. Let's say you want to read the configuration section from your *.config file and send it thru WCF service. The default behavior when working with configuration object is use the System.Configuration namespace that doesn't support WCF. So the question is what can we do? A nice solution is to use the IConfigurationSectionHandler interface and mark the section implementation...
Insert and Update pattern for multiple threads application with SQL Server
Hi, Have you ever try to insert a row in to a SQL table if the key does not exist and update a row if a key exists. Well this is very common scenario. Usually you would achieve this goal by writing SQL like: if exists ( select * from TestTable where ID = @id ) begin update TestTable set myCount = myCount + 1 where ID = @id end else begin insert into TestTable values ( @id , 1 ) end This code will work fine for single threaded applications but will not work for multiple threads application. To solve...
More Posts Next page »