DCSIMG
Tips and Tricks - YsA.Net

Browse by Tags

All Tags » Tips and Tricks (RSS)
Consider the following problem: We have a web app which can send messages between the users that are connected to it. A user can send a message to any number of users. The implementation is simple: When a user sends a message: The message is saved in the database Cache value is inserted for each recipient. The saved value is a time stamp which indicates when the user last received a message. Users that are suppose to see the message: The client is polling the server and asks if the server has new...
Today I'm hosting a post from Leeran Yarhi, one of the developers in my team: Hi guys, I’m Leeran Yarhi, a developer in Yossi’s team. Recently we had a problem while mapping one of our domain entities with Fluent NHibernate . We upgraded our app to use NHibernate 3 in conjunction with Fluent NHibernate 1.2. When we did that, some of our tests failed. For example, let’s have a look at this entity: public class User { public virtual int Id { get; set; } public virtual string FirstName { get; set;...
My team is working on a Silverlight project for the last three months. One of the first issues we encountered was unit testing for the Silverlight libraries. Unfortunately, this issue is not trivial. Current dev tools, including the VSTS do not support running tests in the traditional way. In order for a Silverlight test to run, it needed to be hosted inside a web page. This is quite problematic when trying to practice TDD and even running the tests on your CI server. Let's start at the beginning...
I'm using live writer since it's beta releases. I currently write in two blogs – technical blog – in English, and a cooking blog in Hebrew. One of the biggest pains in WLW was that the spell check dictionary was installed according to the installed language of Windows Live Essentials. That means that if you downloaded the English version of WLW, you had only the English dictionary. A problem for someone that writes in different languages. Today I found the solution to this problem, which...
Lately I notice that every time I insert a DoK or a disk, the AutoPlay/autorun doesn't appear. I also notice that when I click on the disk drive in My Computer window, I will get directed to the explorer view of the disk and the autorun doesn't engaged. It is especially annoying when I insert a disk for some installation and I have to search for the setup.exe file… After googling for a while I found this article: Fix Windows 7 AutoPlay Dialog Box Missing or Not Appear, Display and Pop Up...
About two months ago, we upgraded our projects to Visual Studio 2010. Since then the developers started to complain that the performance of the IDE has degraded in comparison to VS2008. From build times that doubled to stalling in the editor when you code. Other teams in our department started to complain as well. So we started to find the problem. We investigated three direction: Solution maintenance Visual studio Hardware   Solution maintenance: This is a key issue. In my previous experience...
Last week I found out that one of our admin apps on the server was not installed currently. It is an app that is installed in ArcMap, and the reason it didn’t work is that ArcMap has been installed on “d:\programs files” instead of “c:\program files”. The msi depended on the location in c:\. I opened the solution to try to fix the installer. I found out that when you install ArcDesktop it adds an environment variable named “ARCGISHOME”. I also found out it is impossible to take a dll from a primary...
You’ve upgraded your project to Visual Studio 2010 and .Net framework 4. Good for you! But when you checked in the projects and the build in TeamCity starts to run – alas – Build failed! In order to run an upgraded project in VS2010 follow these steps: Make sure your TeamCity server can run VS2010 solutions (version 5 and up of TC). Install Visual Studio 2010 and .Net framework 4 on your server. If your project is a web project which uses Web Deployment Project, install web deployment project for...
Recently, I’ve started to work on several projects in my free time. After a while, I realized that I couldn’t manage without source control (especially after you do some refactoring on a xaml code and suddenly nothing works…). So I started to search, and found a web site called Assembla . It allows you to set up a free source control space in a server which is based on SVN. The setup is pretty easy, and in less then five minutes you have source control for your projects. In addition, there are additional...
In my last post I described how to create extensions to ArcGis products. After we've finished developing to tools and commands we want to deploy them to our clients.In the development computer, the tools are registered to ArcMap when we compile the project. Now we want our clients to have access to the tools. So how do you do this ? There's a simple checklist of things you need to do in this ESRI article . Follow it and you will create a msi which you can deploy to your clients. Have fun
In Updating an UpdatePanel in the Client side , I described how I solved the problem of updating an UpdatePanel from the client side. The solution was pretty simple : Create an extender which adds an hidden button to the update panel, and performs a click on it when the "update()" method is called from the JavaScript. Recently I saw a new Webcast in the Asp.Net Ajax How Do I series which explains how to do this with and without the button . In short, the solution requires a call to a private method...
Suppose you a have a text box in an ASP.NET page. This text box needs to contains calculated values from other inputs that will be received from the user (other text boxes). The user can not change the text in the text box directly. How do you implement that ? By using the ReadOnly property in the text box. That's what one of the programmers on my team did a long time a go. Recently a bug in his page was found : After a post-back the values in the read-only text box have been reset, which is a problem...
In our latest project we encountered a problem with the usage of a Web Service. The web method we created received an object as a parameter that contained information about the operation we wanted to perform. When I created the web reference to the service a strange thing has happened : Visual Studio created a proxy class for the web service and another proxy class for the type of the object that the web method received. It even became more complicated when the object contained an enum : VS created...