Saturday, February 13, 2010

LINQ to SQL


LINQ to SQL allows .NET developers to write “queries” in their .NET language of choice to retrieve and manipulate data from a SQL Server database. In a general sense, LINQ to SQL allows us to create SQL queries in our preferred .NET language syntax and work with a strongly types collection of objects as a return result. We can make changes to these objects then save changes back to the database.


Example Query

HookedOnLINQ db =
new HookedOnLINQ("Data Source=(local);Initial Catalog=HookedOnLINQ");

var q = from c in db.Contact
where c.DateOfBirth.AddYears(35) > DateTime.Now
orderby c.DateOfBirth descending
select c;

foreach(var c in q)
Console.WriteLine("{0} {1} b.{2}",
c.FirstName.Trim(),
c.LastName.Trim(),c.DateOfBirth.ToString("dd-MMM-yyyy"));

Output:
Mack Kamph b.17-Sep-1977
Armando Valdes b.09-Dec-1973

The moment we entered the foreach loop (that’s important, the SQL was only executed the first time we requested data, until then the query was just kept in-memory as an expression, this is called Deferred Execution), the following SQL Statement was formulated by LINQ and executed on the server.

SELECT [t0].[ContactId], [t0].[FirstName], [t0].[LastName], [t0].[DateOfBirth],[t0].[Phone], [t0].[Email], [t0].[State]
FROM [Contact] AS [t0]
WHERE DATEADD(YEAR, @p0, [t0].[DateOfBirth]) > @p1
ORDER BY [t0].[DateOfBirth] DESC

Microsoft SharePoint 2010 Benefits


SharePoint 2010 is the business collaboration platform that enables you to connect and empower people through formal and informal business communities, within the enterprise and beyond, and to manage content throughout the information lifecycle. Whether deployed on-premises or as hosted services, SharePoint’s integrated capabilities are enhanced by search technologies and enable you to rapidly respond to changing business needs by making data-driven decisions and by deploying customized solutions quickly and securely. The consolidation of collaboration solutions onto SharePoint 2010 makes it possible to cut costs by lowering training and maintenance expenses and increasing IT productivity, all within a governable and compliant platform.

Zend Framework and Products


Increasing the Maturity of the PHP Application Lifecycle

Zend products have already been used to develop and run thousands of PHP business-critical applications worldwide. They enable developers to deliver high-quality code faster to production; and help system administrators ensure high performance and availability. Zend products are all fully supported by Zend.


Send Server - A Web Application Server for business-critical PHP applications deployed on a small number of servers.

Zend Platform - A Web Application Server for business-critical PHP applications that are deployed on a large number of servers, require session clustering or job queuing.

Zend Studio - A professional-grade development environment that includes PHP code editing, debugging, profiling, unit testing, diagnostics and more.

Zend Guard - Source code encoding and obfuscation for protection from unlicensed use and redistribution.

Friday, February 12, 2010

Windows 7 Rich User Interfaces - Aero


Aero Peek showing the desktop.Windows Aero is revised in Windows 7, with several UI changes, a more touch-friendly UI and many new visual effects and features:

Aero Peek - hovering over a taskbar icon shows thumbnail of that program. Hovering over the thumbnail shows a preview of that program in full view. Aero Peek also refers to the "Show desktop" button to the far right of the new taskbar.

Aero Shake - Shaking (quickly dragging back and forth) a window minimizes all other windows. Shaking it again brings them back.

Aero Snap - Clicking and dragging a window to the right or left side of the desktop causes the window to fill the respective half of the screen. Snapping a window to the top of the desktop maximizes it. Resizing a window to touch the top or bottom edge of the screen maximizes the window to full height, whilst retaining its width; these windows will then slide horizontally if moved by the title bar, or can be pulled off, which returns the window to its original height.

Touch UI - Windows Aero was revised to be more touch-friendly. For example, the title bar buttons are now slightly bigger.

Maximized windows remain glass instead of becoming opaque.

When hovering over the taskbar button for a running program, the button glows the dominant RGB color of its icon. Also, a shiny effect follows the mouse as it is moved across the icon of active programs.

When moving windows, the CPU and GPU load is reduced by limiting the frame rate that the Aero part is rendered in order to provide better performance to applications and programs.

The blur effect in Aero on Windows 7 now has more even blending than Aero in Windows Vista.

It is now possible to turn off window shadows.

Expression Blend 3 and Silverlight


Expression Blend 3 enables your ideas from concept to completion.

Expression Blend 3 revolutionizes the speed and efficiency with which you can take your ideas from concept to completion on the Silverlight and .NET platforms. Concepts and ideas can live through the project end-to-end, reducing redundancy, enhancing creativity and delivering compelling desktop and/or rich internet applications that exceed your client’s expectations for design, interactivity and usability.

Using Expression Blend and industry standard .NET technologies such as Silverlight, WPF, XAML, C#, VB, developers can deliver desktop and/or rich internet applications that are stable, scalable, accessible, reliable and secure.

The rapid end-to-end workflow available through Expression Blend, Visual Studio and the Microsoft platform enables the delivery of compelling results to your customers time after time, while still maximizing the investments you’ve already made in other tools and technologies you employ today.

Microsoft Expression Studio 3


Microsoft Expression Studio opens up a new world of creative possibility. Its professional design tools give you the freedom to make your vision real—whether you’re designing for standards-based Web sites, rich desktop experiences, or Silverlight. Includes Expression Web, Expression Blend, Expression Design and Expression Encoder.


Microsoft Expression Studio 3 Includes:
Expression Blend™ 3
SketchFlow
Expression Web 3
Expression Design 3
Expression Encoder 3


Top 10 Features

1. SketchFlow revolutionizes the speed and efficiency with which you can prototype a vision for an application
2. Enable interactivity without writing code
3. Accelerate the design of effective UI with design time data
4. Streamlined design and development workflow
5. Professional tools save time creating Web sites that deliver results
6. Advanced visual diagnostics speed debugging
7. Rich standards-based Web design with the essential technologies
8. Prepare video for Silverlight
9. Team Foundation Server Integration
10. Adobe Photoshop Importer

Windows Presentation Foundation

The WPF development platform is built on a core programming system, which is extended to support a broad set of application development features, including the application model itself, resources, controls, graphics, layout, data binding, documents, and security.

Windows Presentation Foundation (WPF) supplies the following tools as part of the Windows Software Development Kit (SDK).


isXPS Conformance Tool
WPF Performance Suite
XAMLPad


WPF) provides a rich library of controls that support user interface (UI) development, document viewing, and serializing digital ink.