Monday, August 23, 2010

"M" language, Modeling in Text

This five-part video series by Miguel Llopis, a member of the “M” language team, leads you through the step-by-step process of modeling a basic domain-specific language.

Level: 300 (core competency)

My Notes: easy video, fast intro to the M-language.

Samples show how to convert

Pat is 24 years old.
Chris is 32 years old.
Granny is 98 years old.
Billy is 3 years old.

To this:

Main[
[
{
Name => "Pat",
Age => "24"
},
{
Name => "Chris",
Age => "32"
},
{
Name => "Granny",
Age => "98"
},
{
Name => "Billy",
Age => "3"
}
]
]

Using this grammar:

module NovCTP {
language Contacts {
syntax Main = p:Person*
=> People { valuesof(p) };
syntax Person = n:Name "is" a:Age "years" "old."
=> { Name => n, Age => a};
token Name = ('a'..'z' | 'A'..'Z')+;
token Age = '0'..'9'+;
interleave Whitespace = " " | "\r" | "\n";
}
}



Modeling Services Resources and Community

http://msdn.microsoft.com/en-us/data/ee720189.aspx

Start page to SQL services new staff. It includes "M" language, "Quadrant" app and something else.

"M" looks interesting. Quadrant implementation is great. I'm loosely watching this projects for last couple years and yes, they have some progress but still no real life samples.

DSL is nice feature and M is very easy implementation of DSL. But all samples which are available so far could be easily coded in XML...

Let's wait more.

Monday, September 1, 2008

ASP.NET AJAX Control Toolkit sample website

http://www.asp.net/ajax/ajaxcontroltoolkit/samples/

Controls which could be useful for my current project (EP60):
AutoComplete
Calendar
DropDown
MakedEdit
ModalPopup
PopupControl
TextBoxWatermark
ToggleButton

Monday, August 18, 2008

Setup and Deployment Project FAQ

Setup and Deployment Project FAQ found on MSDN Forums.

There are some small hits in this FAQ:
  • How do I create an uninstall link on my shortcut
  • How do I deploy a Hybrid VB6 and VB.NET application?

and some more but not a lot..

Passign Parameters to CustomAction

How to Pass Command Line Arguments to MSI Installer Custom Actions

Install the application without user intervention and full logging:

setup.msi /qb /l* log.txt MyCustomParameter=one MyOtherCustomParameter=two

Uninstall the application without user intervention:

msiexec /x {13F62DF0-E078-45C8-B0FB-185D307DB500} /qb


If you use the logging switch on the command line, and then run the setup:
setup.msi /l* c:\setup.log

You will see a list of parameters in the log file. You can specify any of these on the command line:
setup.msi /i <parameter>=<value>

And those should pass into the dialog boxes. I believe the command line you should use would be:
websetup.msi TARGETVDIR=MyVirtualWebSiteDirectory

AJAX-Enabled Web Service

Is there special way to AJAX-enabled Web service ?
Yes, you need to add [System.Web.Script.Services.ScriptService] attibute to the class definition.

Create and Use an AJAX-Enabled Web Service in a Web Site in Visual Studio 2008?

http://msdn.microsoft.com/en-us/vs2008/bb821302.aspx

In this video, Rob Windsor shows you how to create an AJAX-enabled Web service and use its methods from client script running in a separate Web application.

Presented by Rob Windsor on October 23, 2007
Length: 12 minutes 40 seconds


Walkthrough: Redirecting an Application to Target a Different XML Web Service at Installation

Walkthrough: Redirecting an Application to Target a Different XML Web Service at Installation

http://msdn.microsoft.com/en-us/library/5k10s063(VS.80).aspx

shows how to make CustomAction dll, Add new Form in setup and pass value from that form to CustomAction. Then this value is saved in web.config/appSettings element.