MDSoft Weblog Mauro Destro software blog

This is my personal blog, here you find something about .NET, SCADA software I use and games in flash

Forex Signal for everyone!

maurodx Settembre 20th, 2007

We have a Forex Trade Signals Software application. It delivers Forex Signals Alerts
in real time. It tells you the entry and exit points for every pairs of
currencies.

 

This is
a revolutionary system, managed and provided by renowned traders, who
have proved themselves on the Forex market in the major exchanges. This
is the perfect tool and ideal solution for anyone who wishes to trade
with complete confidence. It is designed for those who do not have
sufficient experience or who do not have the time to analyse the
market.

This system is designed for
those new to forex. The signals are easy to understand and enter. No
confusing terminology. If you can enter basic orders (market, limit,
stop loss), then you can be successful at this system! The signals are
so easy to enter that a nine year old child can enter them … really!

Service is available to public from October 2007 with a little monthly fee payable with PayPal.

Buy it with the button at the right!

or contact me mauroevania@gmail.com

 

See you soon

Print This Post Print This Post

xml2object (Deserialize)

CodeKeep C# Feed Novembre 11th, 2008

Description: Deserialize from xml to object

Link: http://www.codekeep.net/snippets/29f70cd3-a43a-46ca-9559-da853a27d048.aspx

XmlSerializer deserializer = new XmlSerializer(typeof(SomeType));

using (FileStream fs = new FileStream(filepath, FileMode.Open))
{
	return (SomeType)deserializer.Deserialize(fs);
}

Object2Xml (Serialize)

CodeKeep C# Feed Novembre 11th, 2008

Description: Serialize an object into xml

Link: http://www.codekeep.net/snippets/bf9ce1fe-29ba-46d5-8af1-7ae94dc5a5da.aspx

XmlSerializer serializer = new XmlSerializer(typeof(SomeType));

using (FileStream fs = new FileStream(filepath, FileMode.Create))
{
	serializer.Serialize(fs, instanceOfSomeType);
}

String hashcode from byte array

CodeKeep C# Feed Novembre 11th, 2008

Description: Handy for generating a unique (ish) filename from a file or array of bytes

Link: http://www.codekeep.net/snippets/780b5eed-ebfa-4450-b8c6-09170c186032.aspx

  	/// <summary>
        /// Generates a hashcode for use as a filename from the given byte array
        /// </summary>
        public static String GenerateHashcodeFilename(Byte[] byteArray)
        {
            Byte[] hashVal = new MD5CryptoServiceProvider().ComputeHash(byteArray);

            StringBuilder sb = new StringBuilder();

            foreach (Byte b in hashVal)
            {
                sb.Append(b.ToString("X2"));
            }

            return String.Format("{0}", sb.ToString());
        }

Basis of a simple xml serializable class inc. a collection

CodeKeep C# Feed Novembre 11th, 2008

Description: Basis of a simple xml serializable class inc. a collection

Link: http://www.codekeep.net/snippets/36ed6afe-5067-44d3-91df-e23b41d17584.aspx

namespace Name.Space
{
    [Serializable]
    [XmlRoot("RootName")]
    public class SerializeSomething
    {
        private String x;

        private List<x> listOfx;

        public SerializeSomething()
        {
            listOfx = new List<x>();
        }

        [XmlArray(ElementName = "ListName")]
        [XmlArrayItem(ElementName = "Item")]
        public List<x> SomeList
        {
            get
            {
                return listOfx;
            }
        }

        [XmlAttribute(AttributeName = "AttribInRoot")]
        public String RootAttrib
        {
            get
            {
                //
            }

            set
            {
                //
            }
        }
}

Quick static file logger

CodeKeep C# Feed Novembre 11th, 2008

Description: Template for a static file logger. DIVIDER is whatever you use to seperate the entries i.e a row of dashes etc.

Link: http://www.codekeep.net/snippets/4b71f3d9-e4a8-437f-9946-64039f3eada8.aspx

    public static void Write(String message)
    {
        StringBuilder builder = new StringBuilder();
        builder.AppendLine(String.Format("[{0}]", DateTime.Now.ToString()));
        builder.AppendLine(message);
        builder.AppendLine(Resources.DIVIDER);

        File.AppendAllText(LOGPATH, builder.ToString());
    }

Set registry key value

CodeKeep C# Feed Novembre 11th, 2008

Description: Set registry key value

Link: http://www.codekeep.net/snippets/4f24c71e-fcb3-4b02-a2b6-951c34dc652e.aspx

RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\...\...\",true);
key.SetValue("Name", newValue);

Executes a process

CodeKeep C# Feed Novembre 11th, 2008

Description: Executes a process

Link: http://www.codekeep.net/snippets/527d4b11-0a13-42d4-b204-1b5ac1f72397.aspx

	    Process process = new Process();

            if (File.Exists(filepath))
            {
                try
                {
                    process.StartInfo.FileName = filepath;
                    process.StartInfo.Arguments = argument;
                    process.Start();
                    return process;
                }
                catch (Exception e)
                {
                   // ...
                }
            }
            else
            {
                // ... not found
            }

	return process;

Switch statement template

CodeKeep C# Feed Novembre 11th, 2008

Description: Switch statement template

Link: http://www.codekeep.net/snippets/49c05a42-ad0c-4b58-94a4-a323c92dfde4.aspx

 switch (variable)
            {
                case :
                    break;

                case :
                    break;

                case :
                    break;

                default:
                    break;
            }

Read registry key

CodeKeep C# Feed Novembre 11th, 2008

Description: Read registry key

Link: http://www.codekeep.net/snippets/c6a70259-d79e-4111-9e52-dc9092797d4e.aspx

RegistryKey Key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\...\...\", false);

if (Key == null)
{
      // not found
}
else
{
     String value = Key.GetValue("KeyName").ToString();
}

Empty regioned class

CodeKeep C# Feed Novembre 11th, 2008

Description: Empty regioned class

Link: http://www.codekeep.net/snippets/22c74480-95b6-45cd-aadc-d521bbe88957.aspx

using System;
using System.Collections.Generic;
using System.Text;

namespace Name
{
    public class Name
    {
        #region Declarations / initializers

        #endregion

        #region Constructors

        public Name()
        {

        }

        #endregion

        #region Public methods

        #endregion

        #region Private methods

        #endregion

    }
}

« Prev - Next »