Developing Async apps using WCF and MSMQ -- Part 1

by Hari Mukkapati 30. June 2009 17:38

Software Requirements

  • Visual Studio 2008  (Also works in 2005, but not tested for this tutorial.)
  • MSMQ Installed and Running.  To Implement Security MSMQ installation must be integrated to AD.
  • .NET 3.0 Framework or higher
  • IIS
  • Distributed Transaction Coordinator (DTC) Must be installed and running.

The Goal here is to setup an asynchronous communication between a client and server using WCF and MSMQ.  To do that I use a “WCFQ” solution which contains 3 projects.

The Goal here is to setup an asynchronous communication between a client and server using WCF and MSMQ.  To do that I use a “WCFQ” solution which contains 3 projects. 

   WCFQ.Service – Hosts Queued WCF Service.
    WCFQ.Contract – Contains the Data and Service contracts for the Queued WCF Service.
    WCFQ.Client – A Console application to call WCFQ.Service

 

Step 1:  Open Visual Studio 2008 IDE and Create a “WCF Service Application”

image001 

 

 

Step 2: Add another “Class Library” Project and Delete “Class1.cs” from the project.

 

Step 3: Delete IService1.cs in WCFQ.Service and add IService1.cs to WCFQ.Contract and replace the code with below.  The trick here is when building WCF-MSMQ services is to ensure that all the operation contracts are defined with IsOneWay=true.

using System; 
using System.Runtime.Serialization; 
using System.ServiceModel; 

namespace WCFQ.Contract 
{ 
    [ServiceContract] 
    public interface IService1 
    { 
        [OperationContract(IsOneWay=true)] 
        void SendData(QData composite); 
    } 

    //An object for Data Contract 
    [DataContract] 
    public class QData 
    { 
        [DataMember] 
        public string Name { get; set; } 
    } 
}
 

Step 4: Add references of “System.ServiceModel” and “System.Runtime.Serialization” to WCFQ.Contract. This is where you define the contract.

Step 5: Reference WCFQ.Contract project in WCFQ.Service and change the Service1.svc.cs code should look like this.

using System; 
using System.Diagnostics; 
using WCFQ.Contract; 
namespace WCFQ.Service 
{ 
    public class Service1 : IService1 
    { 
        public void SendData(QData qdata) 
        { 
            //Do something with the data 
            Trace.WriteLine(String.Format("Name : {0}", qdata.Name)); 
        } 
    } 
}

Step 6: Now, The configuration comes into picture. Here is how the ServiceModel part of web.config should look like. We don’t need wsHttpBinding to get net MSMQ to be working.  That is default and I left it that way to make it easy to understand the WCF Service is working.

<SYSTEM.SERVICEMODEL>
    <BINDINGS>
        <NETMSMQBINDING>
            <BINDING name="WCFQNonTransactional" exactlyonce="false">
                <SECURITY mode="None" />
            </BINDING>
        </NETMSMQBINDING>
    </BINDINGS>
    <SERVICES>
        <SERVICE name="WCFQ.Service.Service1" behaviorconfiguration="WCFQ.Service.Service1Behavior">
            <ENDPOINT contract="WCFQ.Contract.IService1" binding="wsHttpBinding" address="http://localhost/WCFQService/Service1.svc">
                <IDENTITY>
                    <DNS value="localhost" />
                </IDENTITY>
            </ENDPOINT>
            <ENDPOINT contract="WCFQ.Contract.IService1" binding="netMsmqBinding" address="net.msmq://localhost/private/WCFQService/Service1.svc" bindingconfiguration="WCFQNonTransactional" />
        </SERVICE>
    </SERVICES>
    <BEHAVIORS>
        <SERVICEBEHAVIORS>
            <BEHAVIOR name="WCFQ.Service.Service1Behavior">
                <SERVICEMETADATA httpgetenabled="true" />
                <SERVICEDEBUG includeexceptiondetailinfaults="false" />
            </BEHAVIOR>
        </SERVICEBEHAVIORS>
    </BEHAVIORS>
</SYSTEM.SERVICEMODEL>

Step 7:  The WCF service to work with MSMQ there is one more rule. That is the queue name which must be same as the URI that is used to Access the WCF Service. So, if the URL is http://localhost/WCFQService/Service1.svc, then the Queue Name will be “WCFQService/Service1.svc”. This has to be created manually by going to “Computer Management/Services and Applications/Message Queuing/Private Queues”.  When creating the Queue, Do not check “Transactional”. Computer Management can be accessed from Right click on My Computer and click on Manage or “Start -> Run” and typing “Compmgmt.msc” and Hit enter. 

 image002

 

 

Step 8: After creating the queue, enable Journal by Right click and select properties on the queue. Check the Enabled checkbox inside Journal Area. This is just for tracking purpose that your messages reached MSMQ. Next go to security tab of the properties and Add user “Network Service” and give full control to the user. This is the user who writes and reads out messages from the queue.

image003

 

image004

 

Step 9: Configure the WCFQ.Service to Run in IIS by setting the project properties. Remove the DOT from the WCFQ.Service and Create virtual directory. [Note: Windows 7 or Windows 2008 server must create an application pool which runs with “Network service” User, instead of “ApplicationPoolIdentity” and assign the application pool create to the WCFQService from IIS, INetMgr]

 

 image005

 

Step 10:  In order to make the WCF to work with MSMQ we need to enable MSMQ WAS listener on the WCFQService application that is just created by running following command from command prompt from location C:\Windows\System32\inetsrv.

appcmd set app "Default web site/WCFQService" /enabledProtocols:net.msmq,http

 

 image006

 

This enables the net.msmq protocol on WCFQService application on IIS.

Step 11: Now, The WCFQService application is ready to roll. So, let’s get to the client. Add a Console Application to the project.  And add references for WCFQ.Contract project, System.ServiceModel.

Step 12: Without having to create a proxy and access the WCF service, Add a new class called “WCFQService1Client.cs”. The proxy class derives from the class ClientBase<T>. ClientBase<T> accepts a single generic type parameter identifying the service contract that this proxy encapsulates. The Channel property of ClientBase<T> is of the type of that type parameter. The generated subclass of ClientBase<T> simply delegates to Channel the method call.

using System; 
using System.ServiceModel; 
using WCFQ.Contract; 

namespace WCFQ.Client 
{ 
    internal class WCFQService1Client : ClientBase, IService1 
    { 
        public WCFQService1Client(string endpoint) : base(endpoint) 
        { 

        } 

        //IService1 Members 
        public void SendData(QData data) 
        { 
            Channel.SendData(data); 
        } 
    } 
}
 

Step 13: Now configure the Client app.config to access the WCF Service.

<?xml version="1.0" encoding="utf-8"?>
<CONFIGURATION>
    <SYSTEM.SERVICEMODEL>
        <BINDINGS>
            <NETMSMQBINDING>
                <BINDING name="WCFQNonTransactional" exactlyonce="false">
                    <SECURITY mode="None" />
                </BINDING>
            </NETMSMQBINDING>
            <WSHTTPBINDING>
                <BINDING name="WCFQwsHttp">
                    <SECURITY mode="None" />
                </BINDING>
            </WSHTTPBINDING>
        </BINDINGS>
        <CLIENT>
            <ENDPOINT name="WCFQNonTransactional" contract="WCFQ.Contract.IService1" binding="netMsmqBinding" address="net.msmq://localhost/private/WCFQService/Service1.svc" bindingconfiguration="WCFQNonTransactional" />
            <ENDPOINT name="WCFQwsHttp" contract="WCFQ.Contract.IService1" binding="wsHttpBinding" address="http://localhost/WCFQService/Service1.svc" bindingconfiguration="WCFQwsHttp" />
        </CLIENT>
    </SYSTEM.SERVICEMODEL>
</CONFIGURATION>

 

Step 13: To use the proxy, the client first needs to instantiate a proxy object and provide the constructor with endpoint information from the endpoint section name from the config file. The client can then use the proxy methods to call the service, and when the client is done, the client needs to close the proxy instance. The program.cs will look like this after implementing the code.

using System; 
using WCFQ.Contract; 

namespace WCFQ.Client 
{ 
    class Program 
    { 
        static void Main(string[] args) 
        { 
            QData data = new QData(); 
            data.Message = "Hello World!";            

            //Send Message 
            using (WCFQService1Client proxy = new WCFQService1Client("WCFQNonTransactional")) 
            { 
                Console.WriteLine("Sending Message {0} ", data.Message); 
                proxy.SendData(data); 

                //Close the client. 
                proxy.Close(); 

            }//Dispose 
            
            Console.Read(); 
        } 
    } 
}
 

Step 14: Set WCFQ.Client as the startup project and run……. Here is what needs to be observed to make sure the service and client ran fine.

Command window of client will show

image007 

MSMQ Window will show the journal message count increased by 1.

image008


    Next time I will post on working with transactional messaging.

Tags: , , , ,

Problem SSIS Package Scheduling

by Hari Mukkapati 26. June 2009 04:45

 

While scheduling the SSIS package some of you already might have seen the following problem.

Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent.JobObjectKey'. (Microsoft.SqlServer.Smo)

The reason for this problem is that you the SP2 patch is not applied properly. Why I said properly here is because that the SQL Server installed first and then installed SP2. Later you might have decided to install SSIS later in the game. SP2 is missing on the SSIS. This can happen any changes that you make to .Net Framework 2.0 (either uninstall or do some changes to it) to SQL server adding or removing features. So, Patch it up when you see the above problem or some thing like

Unable to cast object of type 'X' to type 'Y'.

Tags: , ,

SQL Server | SSIS | Database

Windows Live Sync : Keep it all in sync!!!

by Hari Mukkapati 26. June 2009 04:45
 
Sync your files between computers so you always have the latest copy.

Download Live Sync Below :
For Windows :
Version: 14.0.8064.0206
Requires: Microsoft Windows XP SP2 or later, Microsoft Windows 2003 SP2 or later, Windows Server 2008 or Windows Vista (Windows XP Professional x64 Edition is not supported)
For Mac :
Version: 14.0.6067.1212
Requires: OSX 10.5 or later
Need More information for Sync :
More info can be found directly at :
       
 

Tags: , , , ,

Internet Tools | Tools

--F-U-N--S-T-U-F-F--

by Hari Mukkapati 26. June 2009 04:44
                                      .,.               .,;;;;;,
                                     ;;;;;;;,,        ,;;%%%%%;;
                                      `;;;%%%%;;,.  ,;;%%;;%%%;;
                                        `;%%;;%%%;;,;;%%%%%%%;;'
                                          `;;%%;;%:,;%%%%%;;%%;;,
                                             `;;%%%,;%%%%%%%%%;;;
                                                `;:%%%%%%;;%%;;;'
            ..,,,.                                 .:::::::.
         .;;;;;;;;;;,.                                  s.
         `;;;;;;;;;;;;;,                               ,SSSs.
           `:.:.:.:.:.:.:.                            ,SSSSSSs.
            .;;;;;;;;;;;;;::,                        ,SSSSSSSSS,
           ;;;;;;;;;;;;;;;;:::%,                    ,SS%;SSSSSSsS
          ;;;;;;,:,:::::::;::::%%,                  SS%;SSSSSSsSS
          ;;;;;,::a@@@@@@a::%%%%%%%,.   ...         SS%;SSSSSSSS'
          `::::::@@@@@@@@@@@a;%%%%%%%%%'  #;        `SS%;SSSSS'
   .,sSSSSs;%%,::@@@@@@;;' #`@@a;%%%%%'   ,'          `S%;SS'
sSSSSSSSSSs;%%%,:@@@@a;;   .@@@a;%%sSSSS'           .%%%;SS,
`SSSSSSSSSSSs;%%%,:@@@a;;;;@@@;%%sSSSS'        ..,,%%%;SSSSSSs.
   `SSSSSSSSSSSSs;%%,%%%%%%%%%%%SSSS'     ..,,%;sSSS;%;SSSSSSSSs.
      `SSSSSSSSSSS%;%;sSSSS;""""   ..,,%sSSSS;;SSSS%%%;SSSSSSSSSS.
          """""" %%;SSSSSS;;%..,,sSSS;%SSSSS;%;%%%;%%%%;SSSSSS;SSS.
                 `;SSSSS;;%%%%%;SSSS;%%;%;%;sSSS;%%%%%%%;SSSSSS;SSS
                  ;SSS;;%%%%%%%%;%;%sSSSS%;SSS;%%%%%%%%%;SSSSSS;SSS
                  `S;;%%%%%%%%%%%%%SSSSS;%%%;%%%%%%%%%%%;SSSSSS;SSS
                   ;SS;%%%%%%%%%%%%;%;%;%%;%%%%%%%%%%%%;SSSSSS;SSS'
                   SS;%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%;SSSSSS;SSS'
                   SS;%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%;SSSSS;SSS'
                   SS;%%%%%%%%%%%%%;sSSs;%%%%%%%%;SSSSSS;SSSS
                   `SS;%%%%%%%%%%%%%%;SS;%%%%%%;SSSSSS;SSSS'
                    `S;%%%%%%%%%%%%%%%;S;%%%%%;SSSS;SSSSS%
                     `S;%;%%%%%%%%%%%'   `%%%%;SSS;SSSSSS%.
                     ,S;%%%%%%%%%%;'      `%%%%%;S   `SSSSs%,.
                   ,%%%%%%%%%%;%;'         `%;%%%;     `SSSs;%%,.
                ,%%%%%%;;;%;;%;'           .%%;%%%       `SSSSs;%%.
             ,%%%%%' .%;%;%;'             ,%%;%%%'         `SSSS;%%
           ,%%%%'   .%%%%'              ,%%%%%'             `SSs%%'
         ,%%%%'    .%%%'              ,%%%%'                ,%%%'
       ,%%%%'     .%%%              ,%%%%'                 ,%%%'
     ,%%%%'      .%%%'            ,%%%%'                  ,%%%'
   ,%%%%'        %%%%           ,%%%'                    ,%%%%
   %%%%'       .:::::         ,%%%'                      %%%%'
.:::::        :::::'       ,%%%'                       ,%%%%
:::::'                   ,%%%%'                        %%%%%
                         %%%%%'                         %%%%%
                       .::::::                        .::::::
                       ::::::'                        ::::::'

Tags: ,

Fun stuff

-F-u-n--S-t-u-f-f-

by Hari Mukkapati 26. June 2009 04:43
                 ,_
       _,..._  ,d$$ccc_
      d$$$$$$hc$$$$$$$$h.
    ,d$$$$$$$$$$$$$$$O$$$.
   ,$$$$h$$$$$FF$$$$$$$$$|
  ,d$$$$$h$$F;' `F$$;':?$'
  d$$F?$$$F'      ',c. +'
d$$h     c$$h    $$$$'|
d$$$h    $$F'     `' ' |
$$$$$L   `',-.    ,`.  |
$$$$$$h   .'  `      | |
d$$$$$$   |        O ' `.
$$$$$F   | O  , __. , | |
  Y$FF'      ,' '  )"  |_|
  ;"'      "'   __/    |'
|,`.        /      ,  |
|  |      .'`--..-'   |
`. `       (.___,/    |
   `._,.     \   .'   |
        \     \_,'    | 
         \           /
          `.        /
            `-....-'

Tags: ,

Fun stuff | ASCII Art

Measurement Tables

by Hari Mukkapati 26. June 2009 04:41
Liquid and Dry Measurement Equivalents

It is generally not a good idea to scale a recipe up or down by more than 3 or 4 times.

Liquid Measurements

In the United States, liquid measurement is not only used for liquids such as water and milk, it is also used when measuring other ingredients such as flour, sugar, shortening, butter, and spices.

  teaspoon tablespoon fluid
ounce
gill cup pint quart gallon
1 teaspoon = 1 1/3 1/6 1/24 - - - - - - - - - - - -
1 tablespoon = 3 1 1/2 1/8 1/16 - - - - - - - - -
1 fluid ounce = 6 2 1 1/4 1/8 1/16 - - - - - -
1 gill = 24 8 4 1 1/2 1/4 1/8 - - -
1 cup = 48 16 8 2 1 1/2 1/4 1/16
1 pint = 96 32 16 4 2 1 1/2 1/8
1 quart = 192 64 32 8 4 2 1 1/4
1 gallon = 768 256 128 32 16 8 4 1
1 firkin = 6912 2304 1152 288 144 72 36 9
1 hogshead = 48384 16128 8064 2016 1008 504 252 63

 

MISCELLANEOUS EQUIVALENT
1 pinch 1/8 teaspoon or less
1 teaspoon 60 drops

Dry Measurements

Dry measurements are not typically used in U.S. recipes; dry measurements are used mainly for measuring fresh produce (e.g. berries are sold by the quart, apples by the bushel, or peck). Do not confuse dry measure with liquid measure, because they are not the same.

 

  Pint Quart Gallon Peck Bushel Cubic Feet
Pint 1 1/2 1/8 1/16 1/64 0.019445
Quart 2 1 1/4 1/8 1/32 0.03889
Gallon 8 4 1 1/2 1/8 0.15556
Peck 16 8 2 1 1/4 0.31111
Bushel 64 32 8 4 1 1.2445
Cubic Feet 51.428 25.714 6.4285 3.2143 0.80356 1

Liquid Measurements vs. Dry Measurements

The table below shows the differences between dry measurement and liquid measurement.

 

DRY UNIT LIQUID UNIT
1 pint, dry = 1.1636 pints, liquid
1 quart, dry = 1.1636 quarts, liquid
1 gallon, dry = 1.1636 gallons, liquid

Weight

The two most commonly used units of weight (or mass) measurement for cooking in the U.S. are the ounce and the pound. Do not confuse the ounce of weight with the fluid ounce, because they are not the same; there is no standard conversion between weight and volume unless you know the density of the ingredient. To make matters worse, there are different kinds of weight measurement; Avoirdupois weight, Troy weight, and Apothecaries weight. In the U.S., when someone refers to pounds and ounces of weight (especially in cooking) they are usually referring to Avoirdupois weight.

Basic Cooking Rule:

16 ounces = 1 pound

 

 


TEMPERATURE CONVERSIONS

ºC               ºF ºC               ºF
-30               -22 40               104
-25               -13 45               113
-20               -4 50               122
-15               5 60               140
-10               14 65               149
-5               23 70               158
0               32 75               167
5               41 80               176
10               50 85               185
15               59 90               194
20               68 95              203
25               77 100              212
30               86 105               221
35               95 110               230


To Convert ºF to ºC .556 x (ºF -32) = ºC

To Convert ºC to ºF (ºC x 1.8) +32 = ºF



LIQUID EQUIVELANTS

30 ml =
1 U. S. Gallon =
1 U. S. Gallon =
1 Liter =
1 Kilogram =
10 Six Packs =
7.5 Six Packs =
6 Six Packs =
60 12 oz. Bottles =
42 12 oz. Bottles =
36 12 oz. Bottles =
40 British Pints =
30 British Pints =
Acid Blend 1 oz. =
Yeast Nutrient 1 oz. =
Grape Tannin 1 oz. =
Stabilizer 1 oz. =
1 Ounce
3.7854 Liters
128 Ounces
34 Ounces
2.2 Pounds
60 12 oz. Bottles
42 12 oz. Bottles
36 12 oz. Bottles
5.6 U.S. Gallons
4.2 U.S. Gallons
3.3 U.S. Gallons
6.0 U.S. Gallons
4.5 U.S. Gallons
6 Teaspoons
5 Teaspoons
12 Teaspoons
8 Teaspoons


APROXIMATE BATCH YEILDS

BATCH SIZE BOTTLES & CASES
(12 oz. Bottles)
5 Gallon = 640 oz. 53.3      Bottles
8.88      6-Packs
2.2        Cases
10 Gallon = 1280 oz. 106.6     Bottles
17.7       6-Packs
4.4         Cases
15 Gallon = 1920 oz. 160       Bottles
26.6      6-Packs
6.6        Cases
BATCH SIZE BOTTLES & CASES
(22 oz. Bottles)
5 Gallon = 640 oz. 29         Bottles
7.25      4-Packs
2.4        Cases
10 Gallon = 1280 oz. 58.2       Bottles
14.5       4-Packs
4.85       Cases
15 Gallon = 1920 oz. 87.3       Bottles
21.8       4-Packs
7.3         Cases


CONVERSIONS

To convert

Liters





Grams



Pints



Quarts



Into

Cups
Pints
Gallons
Milliliters
Quarts

Ounces
Pounds
Kilograms

Liters
Quarts
Gallons

Pints
Liters
Gallons

Multiply by

4.226
2.113
0.264
1000
1.057

0.035
0.002
0.001

0.473
0.5
0.125

2.0
0.946
0.25



Tags:

Measurement-Tables

Useful Measurements Information

by Hari Mukkapati 26. June 2009 04:40
Planting Estimating Guide

Put plants 4 inch apart, you will need 9 plants per square foot.

4" 9.0

6" 4.0

8" 2.25

10" 1.45

12" 1.0

15" 0.64

18" 0.44

24" 0.25

Equivalents and Conversion Tables

1 sq. foot = 144 sq. inches
1 sq. yard = 9 sq. feet
1 sq. foot = .11 sq. yards
1 acre = 43,560 sq. feet
1 acre = 4, 840 sq. yards


1 cu. yard = 27 cu. feet or 22 bu.
1 cu. foot = 4/5 bu.
1 1/4 cu. foot = 1 bu. 1 cu. yard = 3 inch layer over 108 sq.feet
1 cu. yard = will fill 190 1 gal. cans
1225 - 4" pots-- or --3000 - 2 1/4" pots

 

Calculating Measurement

Triangle

Perimeter = A + B + C

Area = B x H

2

Volume = B x W x H

2

To find the length of one side of a right angle triangle:

C2 = A2 + B2 where C is the longest side

Square / Rectangle / ParallelogramPerimeter = 2L + 2W

Area = L x W

Surface Area (of solid) = 2 (LW + LH + WH)

Volume = L x W x H

Ellipse
Area = d1 x d2 x .7854

Cylinder
Surface Area = 2 p r (r + H)Volume = p r2 H

Circle
Perimeter / Circumference = 2 p r
Area =
p r2
Volume = p r3
p
is equal to 3.1416

the radius (r) is equal to half the diameter (d)

Soil Conditioners

Pine Bark - One 3 cu. foot bag covers 35 sq. feet to a depth of 1".
Soil - One 3 cu. foot bag covers 21 sq. feet to a depth of 1".
Peat Moss - One 6 cu. foot bale covers 70 sq. feet to a depth of 1".


 

 

 

 

 

 

 

 

Units of Area

144 sq. inches

=

1 sq. foot

 

9 sq. feet

=

1 sq. yard

 

30.25 sq. yards

=

1 sq. rod

 

160 sq. rods

=

1 acre

 

640 acres

=

1 sq. mile


 

 

 

 

Units of Liquid Volume

16 fl. ounces

=

1 pint

 

2 pints

=

1 quart

 

4 quarts

=

1 gallon

 



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Units of Area

To Convert:

Multiply By:

 

sq. centimetres into sq. inches

0.1550

 

sq. metres into sq. feet

10.7639

 

sq. metres into sq. yards

1.19599

 

hectares into acres

2.47105

 

sq. kilometres into acres

247.105

 

sq. kilometres into sq. miles

0.3861

 

sq. inches into sq. millimetres

645.16

 

sq. inches into sq. centimetres

6.4516

 

sq. feet into sq. centimetres

929.0304

 

sq. feet into sq. metres

0.092903

 

sq. yards into sq. metres

0.836123

 

acres into sq. metres

4046.8564

 

acres into ares

40.468564

 

sq. miles into hectares

258.9988

 

sq. miles into sq. kilometres

2.589988

 


 

 

 

 

 

 

 

 

 

Units of Dry Volume

To Convert:

Multiply By:

 

cu. centimetres into cu. inches

0.06102

 

cu. metres into cu. feet

35.3147

 

cu. metres into cu. yards

1.30795

 

cu. inches into cu. centimetres

16.387064

 

cu. feet into cu. metres

0.0283168

 

cu. yards into cu. metres

0.7645549


 

 

 

 

 

 

 

 

 

 

 

Units of Liquid Volume

To Convert:

Multiply By:

 

litres into cu. inches

61.03

 

litres into pints

1.7598

 

litres into quarts

0.8799

 

litres into gallons

0.219976

 

litres into US gallons

0.264178

 

fl. ounces into millilitres

28.413063

 

cu. inches into litres

0.016387

 

cu. feet into litres

28.316847

 

pints into litres

0.5682613

 

quarts into litres

1.1365225

 

gallons into litres

4.54609


 

 

 

 

 

 

 

Units of Length

To Convert:

Multiply By:

 

millimeters into Inches

0.03937

 

centimetres into inches

0.3937

 

centimetres into feet

0.0328

 

metres into feet

3.281

 

metres into yards

1.09361

 

kilometres into yards

1093.61

 

kilometres into miles

0.62137

 

inches into millimetres

25.4

 

inches into centimetres

2.54

 

inches into metres

0.0254

 

feet into centimetres

30.48

 

feet into metres

0.3048

 

yards into metres

0.9144

 

chains into metres

20.1168

 

statute miles into kilometres

1.609344

 

Tags:

Measurement-Tables

USCIS Green card category codes

by Hari Mukkapati 26. June 2009 04:38
 
The Social Security Administration has been good enough to post the
USCIS Codes, although the USCIS itself has not put them online. I thought it is going to be useful for some of you out there. I may not be updating this one. but if you have any updates feel free to post a comment.

C20
Child of an alien classified as C24 or C29 - conditional.

C21
Spouse of a lawful permanent resident alien (subject to country
limitations) - conditional.

C22
Stepchild (under 21 years of age) of a lawful permanent resident
alien (subject to country limitations) - conditional.

C23
Child of an alien classified as C21, C22, C26, or C27 (subject to
country limitations) - conditional.

C24
Unmarried son or daughter (21 years of age or older) who is a
stepchild of a lawful permanent resident alien (subject to country
limitations) - conditional.

C25
Child of an alien classified as C24 or C29 - conditional.

C26
Spouse of a lawful permanent resident alien (subject to country
limitations) - conditional.

C27
Stepchild (under 21 years of age) of a lawful permanent resident
alien (subject to country limitations) - conditional.

C28
Child of an alien classified as C21, C22, C26, or C27 (subject to
country limitations) - conditional.

C29
Unmarried son or daughter (21 years of age or older) who is a
stepchild of a lawful permanent resident alien (subject to country
limitations) - conditional.

C31
Married son or daughter who is a stepchild of a U.S. citizen - conditional.

C32
Spouse of an alien classified as C31 or C36 - conditional.

C33
Child of an alien classified as C31 or C36 - conditional.

C36
Married son or daughter who is a stepchild of a U.S. citizen - conditional.

C37
Spouse of an alien classified as C31 or C36 - conditional.

C38
Child of an alien classified as C31 or C36 - conditional.

CF1
Alien whose record of admission is created upon the conclusion of a
valid marriage contract after entering as a fiance or fiancee of a
U.S. citizen - conditional.

CF2
Minor stepchild of an alien classified as CF1 - conditional.

CR1
Spouse of a U.S. citizen - conditional.

CR2
Stepchild of a U.S. citizen - conditional.

CR6
Spouse of a U.S. citizen - conditional.

CR7
Stepchild of a U.S. citizen - conditional.

CX1
Spouse of a lawful permanent resident alien (exempt from country
limitations)- conditional.

CX2
Stepchild (under 21 years of age) of a lawful permanent resident
alien (exempt from country limitations) - conditional.

CX3
Child of an alien classified as CX2 or CX7 (exempt from country
limitations) - conditional.

CX6
Spouse of a lawful permanent resident alien (exempt from country
limitations)- conditional.

CX7
Stepchild (under 21 years of age) of a lawful permanent resident
alien (exempt from country limitations) - conditional.

CX8
Child of an alien classified as CX2 or CX7 (exempt from country
limitations) - conditional.

E10
Child of a priority worker classified as E11, E16, E12, E17, E13, or E18.

E11
Priority worker - alien with extraordinary ability.

E12
Priority worker - outstanding professor or researcher.

E13
Priority worker - certain multinational executive or manager.

E14
Spouse of a priority worker classified as E11, E16, E12, E17, E13, or E18.

E15
Child of a priority worker classified as E11, E16, E12, E17, E13, or E18.

E16
Priority worker - alien with extraordinary ability.

E17
Priority worker - outstanding professor or researcher.

E18
Priority worker - certain multinational executive or manager.

E19
Spouse of a priority worker classified as E11, E16, E12, E17, E13, or E18.

E21
Professional holding an advanced degree or of exceptional ability.

E22
Spouse of an alien classified as E21 or E26.

E23
Child of an alien classified as E21 or E26.

E26
Professional holding an advanced degree or of exceptional ability.

E27
Spouse of an alien classified as E21 or E26.

E28
Child of an alien classified as E21 or E26.

E30
Child of a skilled worker or professional classified as E31, E36, E32, or E37.

E31
Alien who is a skilled worker.

E32
Professional who holds a baccalaureate degree or who is a member of a profession.

E34
Spouse of a skilled worker or professional classified as E31, E36, E32, or E37.

E35
Child of a skilled worker or professional classified as E31, E36, E32, or E37.

E36
Alien who is a skilled worker.

E37
Professional who holds a baccalaureate degree or who is a member of a profession.

E39
Spouse of a skilled worker or professional classified as E31, E36, E32, or E37.

EW0
Child of an alien classified as EW3 or EW8.

EW3
Other worker performing unskilled labor, not of a temporary or
seasonal nature, for which qualified workers are not available in the
United States.

EW4
Spouse of an alien classified as EW3 or EW8.

EW5
Child of an alien classified as EW3 or EW8.

EW8
Other worker performing unskilled labor, not of a temporary or
seasonal nature, for which qualified workers are not available in the
United States.

EW9
Spouse of an alien classified as EW3 or EW8.

F11
Unmarried son or daughter of a U.S. citizen.

F12
Child of an alien classified as F11 or F16.

F16
Unmarried son or daughter of a U.S. citizen.

F17
Child of an alien classified as F11 or F16.

F20
Child of an alien classified as F24 or F29 (subject to country limitations).

F21
Spouse of a lawful permanent resident alien (subject to country limitations).

F22
Child (under 21 years of age) of a lawful permanent resident alien
(subject to country limitations).

F23
Child of an alien classified as F21 or F26 (subject to country limitations).

F24
Unmarried son or daughter (21 years of age or older) of a lawful
permanent resident alien (subject to country limitations).

F25
Child of an alien classified as F24 or F29 (subject to country limitations).

F26
Spouse of a lawful permanent resident alien (subject to country limitations).

F27
Child (under 21 years of age) of a lawful permanent resident alien
(subject to country limitations).

F28
Child of an alien classified as F21 or F26 (subject to country limitations).

F29
Unmarried son or daughter (21 years of age or older) of a lawful
permanent resident alien (subject to country limitations).

F31
Married son or daughter of a U.S. citizen.

F32
Spouse of an alien classified as F31 or F36.

F33
Child of an alien classified as F31 or F36.

F36
Married son or daughter of a U.S . citizen.

F37
Spouse of an alien classified as F31 or F36.

F38
Child of an alien classified as F31 or F36.

F41
Brother or sister of a U.S. citizen.

F42
Spouse of an alien classified as F41 or F46.

F43
Child of an alien classified as F41 or F46.

F46
Brother or sister of a U.S. citizen.

F47
Spouse of an alien classified as F41 or F46.

F48
Child of an alien classified as F41 or F46.

FX1
Spouse of a lawful permanent resident alien (exempt from country limitations).

FX2
Child (under 21 years of age) of a lawful permanent resident alien
(exempt from country limitations).

FX3
Child of an alien classified as FX1, FX2, FX7, or FX8 (exempt from
country limitations).

FX6
Spouse of a lawful permanent resident alien (exempt from country limitations).

FX7
Child (under 21 years of age) of a lawful permanent resident alien
(exempt from country limitations).

FX8
Child of an alien classified as FX1, FX2, FX7, or FX8 (exempt from
country limitations).

IF1
Alien whose record of admission is created upon the conclusion of a
valid marriage contract after entering as a fiance or fiancee of a
U.S. citizen.

IF2
Minor child of an alien classified as IF1.

IR0
Parent of a U.S. citizen.

IR1
Spouse of a U.S. citizen.

IR2
Child of a U.S. citizen.

IR3
Orphan adopted abroad by a U.S. citizen.

IR4
Orphan to be adopted by a U.S. citizen.

IR5
Parent of a U.S. citizen.

IR6
Spouse of a U.S. citizen.

IR7
Child of a U.S. citizen.

IR8
Orphan adopted abroad by a U.S. citizen.

IR9
Orphan to be adopted by a U.S. citizen.

NA3
Child born during the temporary visit abroad of a mother who is a
lawful permanent resident alien or national of the United States.

XE3
Child born subsequent to the issuance of a visa. Parent is
employment-based preference immigrant.

XF3
Child born subsequent to the issuance of a visa. Parent is a
family-based preference immigrant.

XR3
Child born subsequent to the issuance of a visa. Parent is an
immediate relative immigrant.


http://policy.ssa.gov/poms.nsf/lnx/0500502215#C

You'll note above that IR6 refers to the spouse of a U.S. citizen

Search terms used:
ir6 chart site:.gov
 
-Hari

Tags: , ,

USCIS | immigration | Greencard

Data Mining Concepts

by Hari Mukkapati 26. June 2009 04:26

Data mining is frequently described as "the process of extracting valid, authentic, and actionable information from large databases." In other words, data mining derives patterns and trends that exist in data. These patterns and trends can be collected together and defined as a mining model. Mining models can be applied to specific business scenarios, such as:

  • Forecasting sales.
  • Targeting mailings toward specific customers.
  • Determining which products are likely to be sold together.
  • Finding sequences in the order that customers add products to a shopping cart.

An important concept is that building a mining model is part of a larger process that includes everything from defining the basic problem that the model will solve, to deploying the model into a working environment. This process can be defined by using the following six basic steps:

Here is the link to the Microsoft web site for

Data mining concepts

Tags: , , ,

Time out issues in cube processing SSAS 2005 Options

by Hari Mukkapati 26. June 2009 04:25
 
Right click on Analysis Services in Management Studio
=> Properties.
=> Show Advanced (all) Properties
=> ExternalCommandTimeout 0
=> ExternalConnectionTimeout 0
 

Tags: , , ,

Mukkapati.com

About the author

Hello! This is Hari Mukkapati.

Month List

Page List

Calendar

<<  July 2009  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar