VCD Burning on the Roxio Toast Titanium 10


VCDs are a thing of the past now. But still people sometimes may need to burn stuff to VCDs. If you are using the new Max OSX, then you will run into a problem once you open your trusty Toast Titanium Disc Burner. You will notice that there is no option to write VCD discs. Fear not! The solution is here…
Since VCDs are outdated it has been included in the Legacy options of the Toast. So to enable those options, just select preferences and select “Show legacy formats and settings” from that menu. And Voila! you will see the VCD options there.
I wanted to add this entry becoz I recently ran into this problem and thats to the Mac Forums, I got the solution.

Regards,
Steve

Creating Custom Events in C#


As we all know C# and other .NET languages are basically event driven. As soon as a event occurs the OS alerts the program and the program handles the signal using one of the defined handler functions. We have events that indicate mouse click, key press etc etc that can be included easily. We can also create custom events ourselves. We can define when the event gets triggered and where to handle the event.

Let us take the example of a modeless Dialog (Modeless form: A form the behaves independently and the user can switch between the child and parent forms. eg: Find Dialog Box). We have two forms. The parent form [Form1] opens the modeless form [Form2]. Let us communicate between these two forms using our custom event. We will create the event in the child form and will subscribe the parent form to the event so that when it is triggered the parent form will receive the EventArguments Object.

Let us first see the the Form2 Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//Form2.cs -Modeless
///////////////////////////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

    //Creating of EventArgs for the custom Event
        public class MyEventArgs: EventArgs
        {
            private string message;

            public string Message
            {
                get { return message; }
                set { message= value; }
            }
        }

    //Creation of Event itself
        public event EventHandler<MyEventArgs> ButtonClicked;

    //Function that raises the Event and broadcasts it
        private void eventRaiser(UpdatedArguments e)
        {

            if (ButtonClicked!= null)  
                ButtonClicked(this, e);
        }

        private void button1_Click(object sender, EventArgs e)
        {   
            MyEventArgs newEvent=new MyEventArgs();//Creation of EventArgs Obj.
            newEvent.message= "SOS";
            eventRaiser(newEvent);
        }
    }
}

This code Basically contains three parts:

1. Custom Event Arguments Class Definition [Inherited from EventArgs]
2. Even Broadcaster Function
3. Function that raises the event

The code is rather Self Explanatory. We first create the Custom Event’s Arguments. We are just inheriting from EventArgs Class that contains all other functions. We need to include in our class only the messages and data that we need to pass as event arguments to the event handler.
Then we create the event and denote the arguments that the event will use It is of type event and it must be public. Then we create the function that will raise of Broadcast the event to all subscribed forms. It receives the event argument that need to be sent. It is a good practice to check whether the event is not null. Then the event is raised and the reference to this form and the event argument object is sent as parameters. Thus we have created a form that raises an event!

Now let us look at the parent form that receives the event and handles it.

//Form1.cs


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
  public partial class Form1 : Form
  {
        
  public Form1()
  {
  InitializeComponent();
  Form2 FirstNameForm = new Form2();
  //Event Subscription
  FirstNameForm.ButtonClicked+= new EventHandler<Form2.MyEventArgs>
                                         (FirstNameForm_ButtonClicked);
  FirstNameForm.Show();
  }
         
        //Event Handler
        void FirstNameForm_ButtonClicked(object sender, Form2.MyEventArgs e)
        {
            if (e != null)
                MessageBox.Show(e.Message);
        }
       

    }
}

As we can see, we have created the child form in the Constructor of the Parent form.
As soon as ” FirstNameForm.ButtonClicked+= ” is typed, the rest of the event subscription is suggested by Intellisense (if you are using Microsoft Visual Studio). The Event handler function is also declared by the IDE itself.
You just need to define e what you need to do after the event has been raised. In our case, we have printed the message passed as the argument using a message box.

Well, this is it. Lets summarize what we have done.
We have created a new form that operates as a modeless dialog box. We have defined our class that is inherited from EventArgs class that will be used to create event arguments function. We have created the event itself. Then we have created a function to broadcast the event along with the reference to the Form that raises the event and the event Argument object.
Then we have subscribed to the Event from the parent form. Then we have created the handler function that will be called once the event from the other form is raised.

This is a very good technique for inter-form communication. Lots of Internet tutorials ask us to make the controls in the parent form public so that it can be accessed from the other forms. But all that is rubbish. This method provides a clean way for interprocess communication. Use your creativity to use this technique wisely!

I have created a project to illustrate this. I have created two forms. In one form you can type a message and press Send Button and the message will be received in the other form. An Event is wired to raise when the Send is clicked and the other form is subscribed to this event and hence in the Event Handler in the Parent form, the message is processed.
LulzImg - Image Hosting for teh lulz

Project Link:

http://www.mediafire.com/?nz5elldxe0z6lia

Regards,
Steve Robinson.

Spurs earn impressive win at Milan


Peter Crouch shows his delight after his winner for Tottenham at AC Milan

Tottenham Hotspurs’ adventure in the Champions league is set to be extended after they took a crucial 1-0 aggregate lead away to A.C. Milan in the San Siro. In the previous round Spurs showed their pedigree by beating Inter Milan at home and losing 4-3 at Milan. It was Gareth Bale who was the star of the group stages for Tottenham. But sadly for Spurs fans, he couldn’t recover from a back injury that kept him out of yesterday’s game.

Peter Crouch started upfront for Spurs and the impressive Dutchman, Rafael Van Der Vaart was deployed just behind him. Steven Pieenar and Aaron Lennon provided the width for the team while Wilson Palacios and Sandro, the Brazilian, played in the midfield. Spurs were hit by a number of injuries to key players but were boosted by the return of Jonathan Woodgate who played in the final parts of the game.

As for Milan, Zlatan Ibrahimovic and Robinho were deployed upfront and the four-time Champions League winner, Clarence Seedorf played just behind them. Milan were missing key players also. Pirlo and Inzaghi were out injured. Thiago Silva played as a makeshift Defensive Midfielder. And the former Arsenal man, Mathieu Flamini also started.

Tottenham striker Peter Crouch scores the winner against AC Milan at the San Siro

There were little chances created in the first half. Harry Redknapp, insisted on playing an attacking game. But there were doubts about whether the Spurs defense can cope with the impressive pairing of Zlatan and Robinho. But the lead by Gallas and Dawson, Tottenham were disciplined and composed in defense. Gomes kept out defender Yepes twice with impressive saves.  The goal came in the 80 minute when a loose ball from Milan was passed to Aaron Lennon.

Tottenham assistant manager Joe Jordan (left) and Gennaro Gattuso clash during the game at the San Siro

He ran through the defense and beat two Milan players and played a neat pass to Peter Crouch who placed the

ball in the bottom Left Corner. The keeper Amelia, who had come as a replacement for Abiatti who had received a knock in the first half, could do anything.

The always fiery Gennaro Gattuso had an altercation with Joe Jordan, Redknapp’s assistant. Gattuso held him by the neck and pushed him.  Later after the game, they were again involved in a heated outburst and Gattuso seemed to head-butt Jordan in the head. Again Gattuso had to be restrained.

The defeat means Milan have to score at White Hart Lane. By the time the second leg takes place, Luka Modric and Bale will be fit. So Spurs are in the driving seat to go through this tie.

The Highlights can be Downloaded here:

http://hotfile.com/dl/105118903/f76667f/AC_Milan_v_Spurs_SKY_HL.part1.rar.html
http://hotfile.com/dl/105121735/30546e4/AC_Milan_v_Spurs_SKY_HL.part2.rar.html

Mclaren MP4-26 – A class above in Style!


At the start of each F1 season, one of the things that catches the public eyes is the revealing of the new cars for the new season. Each team revealed its car in the traditional manner. But Mclaren-Mercedes team did it quite differnetly. They revealed their car in the middle of a four way street junction Berlin. They didnt just reveal the car, they actually assembled the car infront of the public. Finally Lewis and Jenson brought and fitted the Steering Wheel to the car. And the final product looked absolutely amazing. This is the best looking F1 car I have ever seen.After the new rules were introduced couple of seasons ago, the cars became rather ugly. But this Mclaren lookes splendid.

The new sidepods, perfectly shaped air-inlets, look superb. The usual silver livery of the Mclaren team suits the curves of the car. The new front wing looks superbly sculpted. The duct above the driver’s head also looks brilliant. All round the car is superb and is claimed to have higher performance that its predecessor by Whitmarsh, the Team Principal. If it performs as good as it looks, then the team will have a superb tool in their hand to regain the title.

Here is the official Tech-Specs:

Chassis

McLaren-moulded carbonfibre composite incorporating front and side impact structures

Front suspension

Inboard torsion bar/damper system operated by pushrod and bell crank with a double wishbone arrangement

Rear suspension

Inboard torsion bar/damper system operated by pullrod and bell crank with a double wishbone arrangement

Electronics

McLaren Electronic Systems. Including chassis control, engine control, data acquisition, dashboard, alternator, sensors, data analysis and telemetry.

Bodywork

Carbon-fibre composite. Separate engine cover, sidepods and floor. Structural nose with intergral front wing Driver-operated drag reduction system [active rear wing

Tyres

Pirelli P Zero

Radio

Kenwood

Race wheels

Enkei

Brake callipers

Akebono

Master cylinders

Akebono

Batteries

GS Yuasa Corporation

Steering

McLaren power-assisted

Instruments

McLaren Electronic Systems

Paint solutions

AkzoNobel Car Refinishes using Sikkens Products

Here are some of the best shots that I managed to digg from the Internet…….

Vodafone McLaren Mercedes MP4-26