Vishnu's profilevishnuPhotosBlogListsMore ![]() | Help |
vishnubelieve in looking reality straight in the eye and denying it. |
|||||||||||||||||||||
|
This llist include my favourite cars
|
Public folders
February 13 Laptops are getting savvy. Here's how
LG R200
The most striking feature of the new LG R200 notebook is the inclusion of a 2.5-inch auxiliary LCD display on the top cover. This LCD display takes advantage of Vista’s SideShow technology that allows access to files and Outlook information without having to boot into the operating system. The touch-sensitive buttons, which are reminiscent of LG’s Chocolate phone series, gel well with the notebook. Users can play music and view images on the secondary display without opening the cover or turning the notebook on. LG R200 has this ‘dual’ function due to its external screen. It also sports a piano black exterior; but the notebook’s surface is a magnet for fingerprints, so users who wouldn’t like to see a ‘dirty’ notebook must bring the cleaning cloth that LG provides at all times. This 12.1-inch notebook does not disappoint on connectivity options. There are three USB 2.0 ports, a 5-in-1 multimedia card reader, a PC Express Card slot, a Firewire port (IEEE 1394), an S-video and D-Sub output, a gigabit Ethernet and 56 kbps modem port, a Line-in, Mic-in, and S/PDIF jack, and a cable PR port. The R200 also has an Intel 802.11a/b/g module and Bluetooth v2.0 that allow users to connect to the Internet wirelessly and transfer files from the computer to mobile phones, printers, or other Bluetooth-enabled devices. It is equipped with an Intel Core2 Duo processor, 1 GB RAM, a 160GB hard disk drive and has the latest dedicated ATI Mobility Radeon HD2400 graphic chipset which is superior to any integrated GPU and more than sufficient for the casual gamer. The R200 also includes some interesting software with associated keyboard hotkeys which allows for a couple of programmable shortcuts, change the wireless networking options and disable the keyboard or touchpad. The software also allows to set the fan speed to normal, silent or cool modes. Quiet mode can be useful on a plane or in a shared environment late at night, while cool mode is particularly good when working with the computer on your lap for extended periods, or when using high performance applications. The R200 is available in the market for consumers at a price tag of Rs 79,990 but that does not justify the average battery performance. The speakers aren’t all that powerful, and the screen, which has a fairly poor viewing angle, is distracting when bright lights are on. Please press enter - Technology - MSN India January 07 Strange english but realy professional....................# At the ground:
# Sir at his best:
OFFICE HUMOUR !!!OFFICE HUMOUR !!!!!!! NNNNNJOOOOOOOOOYY A non-programmer thinks there are 1000 bytes in a kilobyte. Newton's Laws to the Software WorldNewton's Laws to the Software World
Law 1 Every Software Engineer continues his state of chatting or forwarding mails unless he is assigned work by external unbalanced manager. Law 2 The rate of change in the software is directly proportional to the payment received from client and takes place at the quick rate as when deadline force is applied. Law 3 For every Use Case Manifestation there is an equal but opposite Software Implementation. Law 4(Bonus :-) Bugs can neither be created nor be removed from software by a developer. It can only be converted from one form to another. The total number of bugs in the software always remains constant. January 04 Building Custom Silverlight ControlsI begin the task of encapsulating Silverlight by creating a new custom ASP.NET control:
namespace SilverlightServercontrol
{
public class SilverlightSphere : Control { } }In this sample, I derive from System.Web.UI.Control. I've chosen not to derive from WebControl since the additional style properties defined by that class are not applicable to this control.Next, I need to render the JavaScript handlers that I included manually. The easiest way to incorporate JavaScript in an ASP.NET control is to define a JavaScript file and embed it as a resource in the compiled assembly. I can do this by moving our two event handlers into a separate JavaScript file, which I call SilverlightSphere.js:// File: SilverlightSphere.js function onSphereButtonDown(sender, args) { // Run the grow or shrink animation, // depending on whether it is currently // 'grown' or 'shrunk' var animationName = (sender.Width==200) ? "growAnimation" : "shrinkAnimation"; var sl = sender.getHost(); var animation = sl.content.findName(animationName); if (animation) animation.begin(); } function onTextLoaded(sender, args)
{ sender.Text = "My First silver light control"; }
Next, I embed my new SilverlightSphere.js file and the original Silverlight.js file as resources in the control project. This is so that the control can be deployed as a single assembly without any dependent files. It also makes sense to embed the XAML file as a resource and reference both it and the two JavaScript files using the WebResource.axd handler mechanism in ASP.NET for extracting embedded resources.After I set the Build Action to Embedded Resource for all three files in Visual Studio® (/res from the command line compiler), I then use the assembly-level attribute System.Web.UI.WebResource to grant permission for these resources to be served by WebResource.axd and to associate a MIME type for the response. I use the following declarations to accomplish this (where SlSphere is the name of the control project):[assembly: WebResource("SlSphere.SilverlightSphere.js", "text/javascript")] [assembly: WebResource("SlSphere.Silverlight.js", "text/javascript")] [assembly: WebResource("SlSphere.Sphere.xaml", "text/xml")] The JavaScript files are now compiled into my assembly as embedded resources. So now I can use the RegisterClientScriptResource method of the ClientScriptManager class (accessed through Page.ClientScriptManager) to cause the rendered page to include references to the files. I call this method for each file in an override of the OnInit method inherited from the Control base class: protected override void OnInit(EventArgs e) { Page.ClientScript.RegisterClientScriptResource(this.GetType(), "SlSphere.Silverlight.js"); Page.ClientScript.RegisterClientScriptResource(this.GetType(), "SlSphere.SilverlightSphere.js"); base.OnInit(e);
} The last and most important piece of the control is to implement the virtual Render method. There are two things I have to accomplish in this method. First, I need to render a <div> tag to act as the host HTML element for the Silverlight plug-in. Second, I must render embedded script to create the Silverlight plug-in.The reference to the XAML file is generated with a call to the ClientScriptManager class's GetWebResourceUrl. This will ensure that the Silverlight control is initialized with the content of the XAML file I embedded as a resource in the assembly. Finally, I need to specify a unique identifier for the Silverlight plug-in itself. In this case, I do this by taking the ID of the control (this.ClientID) and concatenating "_ctrl" to the end Const string _silverlightCreateScript = @"Silverlight.createObject( '{0}, document.getElementById('{1}'), '{2}, {{ width:'300', height:'300', version:'1.0' }}, {{ onError:null, onLoad:null }}, null);"; protected override void Render(HtmlTextWriter writer)
{ string script = string.Format(_silverlightCreateScript, Page.ClientScript.GetWebResourceUrl(GetType(), "SlSphere.Sphere.xaml"), this.ClientID, this.ClientID + "_ctrl"); writer.AddAttribute(HtmlTextWriterAttribute.Id,this.ClientID);
writer.RenderBeginTag(HtmlTextWriterTag.Div); writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/javascript"); writer.RenderBeginTag(HtmlTextWriterTag.Script); writer.Write(script);
writer.RenderEndTag();
writer.RenderEndTag(); base.Render(writer); } I now have a server-side control (complete with embedded JavaScript and XAML resources) that encapsulates the pieces necessary to deploy Silverlight on an ASP.NET page. I can create an instance of this control on a page with the following declarations:
<%@ Register Assembly="SlSphere" Namespace="MsdnMagazine"
TagPrefix="csc" %> ... <csc:SilverlightSphere ID="_silverlightSphere" runat="server" /> What I am able to do here is compelling—any ASP.NET application can easily incorporate a growing and shrinking sphere hosted in Silverlight, yet there's no need to worry about the details of hosting Silverlight content. You could, of course, build more interesting and complex controls with sophisticated XAML renderings. However, when you start to think about things you might want to add to your controls, you quickly encounter the problem of how to instrument the XAML with property values from the server control. For example, say I want to expose a Title property in my control and have that map to the Text property of the titleText element in my XAML file. There is no obvious way to accomplish this cleanly with the current implementation.
Another drawback to the current implementation is that the XAML is fixed as an embedded resource. While this is convenient for deployment, one of the main benefits of Silverlight and XAML is the separation of behavior from design, which allows the XAML to be replaceable. I could define a XamlUrl property on the control to allow overriding of the embedded XAML content. This approach wouldn't be difficult, but it would introduce fragility in exposing the names of the JavaScript handlers in the XAML, which would be required to ensure that the designers have the latest version of the XAML. Thanks for visiting!
Usefull for developers in .net
|
|
|||||||||||||||||||
|
|