Tuesday, April 12, 2011

Watch the MIX Keynotes Live, Apr 12 & 13

Yes you can watch it live even if you are not there,  live from Las Vegas, 
April 12 & 13 at 9am PDT (8pm UAE time), via live.visitmix.com.


And what if you are interested in more than the keynotes, you need to wait not more than 24 hours and you can online view or download them


    


If you like to know more about mix check this link MIX2011

Monday, April 11, 2011

dbForge SQL Complete

I found a very good free tool for SQL Management studio; it will make your life typing t-sql much easer.
Download link: http://ping.fm/dswd7
Select the express edition it’s free.

Note: if you installed Visual Studio SP1 on your computer and you had MS SQL Management studio 2008 R2, Intelsense will stop working, there is a very large fix from Microsoft to fix it, but this solution is much better in my eyes

Saturday, April 02, 2011

Simulating sending email

This is not new but very helpful if you build applications and in the business process need to send emails.

The old way that I was using is to go inside the code and remark some lines and put my email instead of the receiver and make some tests and see the email in my inbox, sometimes we forget to update that part and when we go to production emails come to my inbox or other problems that can appear because we marked some code.

So better than that change the email configuration in the web config to something like the following:


<configuration>
    <system.net>
    <mailSettings>
      <smtp deliveryMethod="SpecifiedPickupDirectory">
        <network host="ignored" />
        <specifiedPickupDirectory pickupDirectoryLocation="c:\email" />
      </smtp>
    </mailSettings>
  </system.net>
After running and sending email you will get these emails in a directory and you can check them with there there format. This will even be helpful if you don’t have the email server setting at the time your developing.

In the end when you go to production only use the correct web.config file setting. In my work I don’t deploy my testing web.config because of all the db connection setting and other stuff. So when you test your application locally you will receive the emails in the C:\email directory and when you go to production it will be there for you working without the need to change code, recompile and test.