DCSIMG
DEV - YsA.Net

Browse by Tags

All Tags » DEV (RSS)
In a month I will be leaving my current position in my company. After six and so years it is time to move on. In the last couple of months I've been thinking about where I would like to work – what is the ideal workplace for me? Experienced and talented people from whom I can learn An interesting an compelling product – I think it is very important to believe I what you do. Agile environment, a team and management which believes in the agile process A place where I can have fun doing what I love...
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...
In our app, we needed to create a selection list for an input field. The obvious solution is to use a ListBox. But we wanted the ListBox to be horizontal, like this: The solution: < ListBox Grid . Row ="0" ItemsSource ="{Binding Types}" SelectedItem ="{Binding SelectedType,Mode=TwoWay}" ItemTemplate ="{StaticResource MyTemplate}" > < ListBox.ItemsPanel > < ItemsPanelTemplate > < StackPanel Orientation ="Horizontal" /> <...
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...
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...
In Asp.Net 4 the request validation model has changed (Yet another breaking change). In short, request validation is a security feature of Asp.Net which meant to prevent a user from XSS or script injection attacks. In Asp.Net the behavior of request validation has changed .  Validation of the input is know performed in the BeginRequest stage in the life-cycle . When we converted out web application to Asp.Net 4, we found out that one of our pages, which uses a control call FreeTextBox , threw...
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...
This week my team upgraded our solutions to Visual Studio 2010 and .Net framework 4. When we ran the tests of one our projects, one of our tests failed with a weird reason. The code is simple:   1: public DateTime CreateDateWithGivenTime( string time) 2: { 3: var t = TimeSpan.Parse(time); 4: ... 5: } The test was: 1: [Test] 2: [ExpectedException( typeof (OverflowException))] 3: public void CreateDateWithGivenTime_HoursNotInRange_ThrowOverflowException() 4: { 5: CreateDateWithGivenTime( "77...
In one bright day, our integration tests in the build server started to fail randomly. Each test that failed showed this message: ORA-02049: timeout: distributed transaction waiting for lock These were integration tests on our database (Oracle database). Each of these tests had opened a distributed transaction and rolled it back to prevent changes in the database (Using the System.Transactions.TransactionScope). Each time we ran them, different tests had failed. The strangest thing was that newer...
with no comments
תגים:, , ,
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 previous post I overviewed some important issues concerning st_geometry. You saw all kind of cool things you can do in simple sql queries. In order to use these queries you need to do some additional configurations to your database after you install sde. In here you can find instructions of how to do this. Example of Net configuration of st_geometry in linux: listener.ora: LSNR_MYDB = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = myDbSeverUrl)(PORT =...
In the last couple of months we have been using the new st_geometry type of the ArcSDE geodatabase. St_geometry allows us to use simple queries in order to retrieve and manipulate geographic layers. For example: 1: select * from buildings b 2: where sde.st_intersects(b.shape,st_point( 'POINT (35.122 32.999)' ,1) = 1; This query will return all the buildings that intersects the point (35.122,32.999). St_geometry is available from version 9.2 of ArcSDE (ESRI recommends to use st_geometry from...