ranw

Stories submitted by ranw

Programmer’s Backdoor Trap - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 3 months, 27 days ago

Today I’ve encountered something that made a programmer happy but made me sad. He had to pull data out of Data Warehouse and use it for his system. Later, he was informed that DWH personnel made his life easy: They’ve decided to write the data into his own database so he wouldn’t have to work so hard. Unfortunately this news made him happy, and therefore he went on with it, which made me even sadder. read more...

add a comment |category: |Views: 12

tags: another

KnockoutJS–Dependencies - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 5 months, 23 days ago

After binding the data into our page, we wish to be able to create an interactive page. This means that we want to be able to add some behavior to our view-model, triggered by an event on the page. (A button being clicked for example). read more...

add a comment |category: |Views: 10

tags: another

KnockoutJS–Event binding - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 5 months, 24 days ago

After binding the data into our page, we wish to be able to create an interactive page. This means that we want to be able to add some behavior to our view-model, triggered by an event on the page. (A button being clicked for example). read more...

add a comment |category: |Views: 9

tags: another

KnockoutJS–Templates - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 5 months, 27 days ago

After being introduced KnockoutJs concept and go to know the basics of data-binding with Observable and observableArray, let’s move on to how to work with templates and our collection to them. In this post I’ll explain how to bind a collection with template. read more...

add a comment |category: |Views: 41

tags: another

KnockoutJS–The Observables - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 6 months, 4 days ago

On this post I’ll dive, not deeply, to the javascript on our view-model and explain some of it’s basics, the ones that causes it to act as a real view-model. read more...

add a comment |category: |Views: 9

tags: another

KnockoutJs–MVVM in HTML (blogs.microsoft.co.il)

submitted by ranwranw(263) 6 months, 8 days ago

One of the things I’ve cherished the most about XAML related technologies development was the ability to completely decouple behavior and UI using MVVM. I didn’t know about any possibility to implement the same pattern on HTML & Javascript based applications. read more...

add a comment |category: |Views: 16

tags: another

Your service generates odd WSDL? Search for Serializable attribute(blogs.microsoft.co.il)

submitted by ranwranw(263) 6 months, 18 days ago

A problem I’ve encountered at a customer I work for was very strange behavior regarding the WSDL being generated by it’s service. The WSDL didn’t contain any class property, moreover it did contain private members of a class being exposed by the service. read more...

1 comment |category: |Views: 9

tags: another

Handling application states on Windows 8(blogs.microsoft.co.il)

submitted by ranwranw(263) 8 months, 12 days ago

As heard on BuildWindows and over and over again throughout the sessions there is new application state called Suspended. When using the computer in Metro style mode the application changes state to “suspended” when the user moves to another application. This is mainly for power saving since Windows 8 targeted to portable devices such as tablets. read more...

add a comment |category: |Views: 5

tags: another

Internet Explorer 8 (and below) won’t show some of your jpegs(blogs.microsoft.co.il)

submitted by ranwranw(263) 8 months, 27 days ago

A very strange phenomenon I came across while developing web application for a customer. A Jpeg formatted picture wasn’t shown on IE8 browsers, while shown on others (Firefox 5, Chrome 12, IE9). The browser displayed an empty placeholder with a red ‘X’ as it does when not finding an image. This led as to searching for causes such as wrong URL, communication problems etc. . read more...

add a comment |category: |Views: 4

tags: another

Changing namespace in ASP.NET Web-Form - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 9 months, 24 days ago

When converting VS Web-Site to VS Web application One of the problem you might stumble upon is class name collisions. It is due to the fact that web-site, because of it’s compilation mode, can have the same class name (and no namespace) on different files because they will end up in different assemblies. read more...

1 comment |category: |Views: 2

tags: another

Code snippet for session wrapped properties(blogs.microsoft.co.il)

submitted by ranwranw(263) 9 months, 24 days ago

Long ago, I’ve written about session manager class which provides type safety while accession Session variables. One of it’s foundations is the very properties we write that wraps the session variables. These properties tends to be very much alike and therefore I’ve written a code snippet for them. read more...

add a comment |category: |Views: 2

tags: another

Using session manager class in Global.asax - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 1 year, 2 months ago

Long ago, I’ve written about Session Manager class. The class purpose was to wrap session variables in properties and gain type safety to them. In this class we’ve added a Session property with get accessor, which wraps the HttpContext.Current.Session. Everything went well until I’ve encountered the need to use this class on Session_End method in global.asax read more...

add a comment |category: |Views: 17

tags: another

ETW–Reading events - Ran Wahle's blog(blogs.microsoft.co.il)

submitted by ranwranw(263) 1 year, 2 months ago

On my previous post I’ve shown how to consume ETW data using Data collector sets. What we’ve done there was setting the grounds for heaving a .etl file with the data we are going to read. read more...

add a comment |category: |Views: 12

tags: another

MVVM Using commands(blogs.microsoft.co.il)

submitted by ranwranw(263) 1 year, 2 months ago

On my previous post I’ve talked about MVVM in general. I’ve also demonstrated how data binding with ViewModel works. There is, however, issue with buttons: Buttons won’t cause property changes (like TextBox, ComboBox etc. where you can have TwoWay binding mode) and therefor we cannot cause the ViewModel to run code through property setters. read more...

add a comment |category: |Views: 39

tags: another

404.2 and , ISAPI restriction and Web Service Extension - Ran Wahle's (blogs.microsoft.co.il)

submitted by ranwranw(263) 1 year, 2 months ago

A common and very misleading http error is the status with code 404.2 . It is misleading because it belongs to the 404 family which may indicate that the resource was not found, however this error indicates that the server has blocked our request by it’s lockdown policy. read more...

add a comment |category: |Views: 12

tags: another

Convert Visual studio Web site to VS Web Application project - Ran Wah(blogs.microsoft.co.il)

submitted by ranwranw(263) 1 year, 3 months ago

At the customer I work for there are several applications written as a web site instead of Asp.Net web application project In this post I’m going to demonstrate, in a few steps, hoe to successfully convert VS-Web Site to VS-Web Application Project. read more...

add a comment |category: |Views: 9

tags: another