Wednesday, April 30, 2008

Caught Microsoft with the pants down ;)

and thanks to Rael Kahn that draw my attention!

Posted by: Eran Nachum (c)
Post Date: 4/30/2008 12:37:46 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #
 Tuesday, April 29, 2008

Are you a SVN users? I am one of them...

I will not outline here the great benefits of SVN, this related to other topic (if you don't know it yet, you must check it out here - {it's a source control software}), but I want to introduce you the plugin for the Visual Studio IDE.

The software allows you to perform the most common version control operations directly from inside the Microsoft Visual Studio IDE.

You can find it here.

BTW, AnkhSVN (the creator) is an active open source project with multiple committers from around the world, you can also get be involved of one or be a part of them (details on their site).

Enjoy...

Posted by: Eran Nachum (c)
Post Date: 4/29/2008 9:36:47 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #

I want to recommend you about a great article that was written by a friend of mine - Boaz Davidoff, about duplex web services.

He found a great way for multiple clients to communicate through web services that push events/messages to the client.

I will not get down on details here (this you can read on the article), but this is a great example of server-side multi-threading techniques.

I read some related stuff about this issue on the web and found that Microsoft covered this solution under the WCF environment, but my POC has proven that Boaz's solution is much more easier to understand (if you don't have the minimal knowledge on WCF) and to implement or customize to your own requirements.

So if you have a client application that requires real time information to be pushed from the server, or from other clients, this might be the ticket. 

The article is on the codeproject.com site here.

Posted by: Eran Nachum (c)
Post Date: 4/29/2008 9:23:55 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #
 Tuesday, April 08, 2008

I want to share with you a great experience that I was a part of it on the last weekend. This post is a continues post to the one I published few weeks ago about the StartupWeekend Israel event.

We gathered up - a bunch of 56 amazing and talented people, each one with its own professional skills (technologic developers, BizDevs, project managers,  UI experts, graphic designers and more...) for 56 hours of hard work, philosophies, work plan, branding (marketing and advertising), programming developing and more. At the end of this weekend we succeeded to raise a prototype version of the project to the air.

First of all, I want to mention my friend Erez Eden that was the main engine behind the event, organized it in a perfect way - well done!

After voting for an idea from a pool of nice ideas that brought by some of the event members, the majority votes were given to a website that has called in the end of the event TribiU.com.

I won't give a spare words about the website - you can watch it in here. More details about the whole event, participants, work, idea and stuff you can check out in out community here.

So, some final words, I want to thank to all of the people that participated in this event, it was a pleasure, great time and fun; and I hope that we could do some more business together and don't forget the hard work has just began, we have to switch a gear and continue working as much as we can...

Me and Erez Tison
Me and Erez Tison
Dev Team
Dev Team
Architecture Team
Architecture Team
UI Experts
UI Experts
Members
Friends
Posted by: Eran Nachum (c)
Post Date: 4/8/2008 4:09:07 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #
 Monday, April 07, 2008

I just wanted to give you some 'development' status ;)

Here is Ori after 8 months... - in our terms is something around 5760 programmer's hours (but who counts.... ;)).

Ori - 8 Mothnes old

Remember him here?

Posted by: Eran Nachum (c)
Post Date: 4/7/2008 9:03:40 AM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [3] | Trackback   #
 Tuesday, March 25, 2008

This is quite strange story... but I decided to publish this post because I didn't find any proper solution anywhere; and I mean it ANYWHERE!

It begins like that: I am running an asp.net 2.0 web application that as part of its work, it has to communicate 3rd party assembly, which suppose to retrieve some validation data. Until here everything is just fine right?

In order to invoke the 3rd party service (using an API of course), there is a need to install a X509Cerificate with 'secret' password and to install it on the server that runs the web application. After doing it you must  impersonate the ASP.NET process with the logged-in user that installed the certificate in order to 'grant' this user permission (administrator) to the current context of the web application.

Note: the user credentials will be kept in the web application web.config encrypted of course.

When running this application in my dev box, everything was working just fine, but when done with unit testing and was ready to QA, only when the user that installed the X509Certificate was logged in to the system (windows) the access to this specific certificate could be done. When the user was logged off, the Initialize method that initializes the certificate, couldn't find it in the CurrentUserStore:

public void Initialize(some parameters...)
{
   X509CertificateCollection certificates;
   X509CertificateStore store = X509CertificateStore.CurrentUserStore("My");
   
   store.Open();
   certificates = store.FindCertificateBySubjectName("<subject>");
   if (certificates.Count <= 0)
   {
      throw new Exception("<message>"));
   }
}

I admit that I didn't have any clue of how solving this acute problem, which of course stuck all the process of dev.

After consulting with some colleagues, we decided to try a 'detour solution', that will raise the user up into the system (will keep it alive, unlike doing log off to the user that terminates it from the OS).

Finally the solution (what you've waited for of course): 

We created a blank window service (with an installer) that actually does nothing, complied it and installed it in the QA server. Now here is the catch: First, the window service's startup type is set to Automatically (will be started always when the OS is up). secondly we adjusted the service's log on to a specific account that held the credentials of the user that installed the certificate of course. The purpose of this action is to keep this user up all time in order let our 3rd party application find its certificate in its store.

Outcome - it is working smoothly like magic. We can continue working...

Posted by: Eran Nachum (c)
Post Date: 3/25/2008 8:49:00 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #
 Sunday, March 16, 2008

For those of you that are not working with VS 2008 and still want to create their web application in MVC model, Matias Woloski created the VS 2005 templates just for you ;).

You can download it here and start playing with that.

P.S

Don't forget to install the ASP.NET MVC: http://www.asp.net/downloads/3.5-extensions/

Posted by: Eran Nachum (c)
Post Date: 3/16/2008 9:54:54 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [3] | Trackback   #

Hey, how are you doin'? I know long time no written, this is not because I became a lazy guy or something, that's because I am now in the end development's phase of our (the rest of the members were kept in secret - for now...) private web application called crashcourt.com (temporary name)  - I have to say that the outcome is very impressive - the hard word has worthwhile.

BTW, if you want to be a part of our unique friends & family BETA testers/users, just leave me a comment here, I will be glad to send you an invitation soon...

Regarding the post' subject, if you are using the great AJAX toolkit from Microsoft, it's important you to know that a new version was released by this project members. The major improvements (by the authors) are: ListSearch and AutoComplete.

You can read some more details about it at Delay's blog here.

Posted by: Eran Nachum (c)
Post Date: 3/16/2008 9:19:46 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #

Hi,

Great post that gathers around 100+ resources that could make the web developer life much more easier; code snippets, sites that automate processes, cheat sheets and more and more...

This priceless list is listed here.

BTW, don't become confused from the first image - I also know that this is not a common vision in our world of code... ;)

Posted by: Eran Nachum (c)
Post Date: 3/16/2008 3:35:27 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #
 Wednesday, February 06, 2008

I read a great article about performance and scalability. Some of the issues there were helped me a lot and the rest were sharpen my knowledge.

So, if you are an ASP.NET developer (beginner or senior), It is recommended for you to read that one by Omar Al Zabir at the codeproject site here.

Some if the things that he talks about are: ASP.NET pipeline optimization, Things you must do for ASP.NET before going live, Caching AJAX calls on browse and more...

Worth a reading...

Posted by: Eran Nachum (c)
Post Date: 2/6/2008 5:08:10 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #