LINQ provider for Flickr

 

Now, Let’s say, i want to get a particular user’s (”chschulz”) photos with “New york” as search key  and I also want only the first page, where each page should have 5 items.

The code snippet for that will be :

// create the context
FlickrContext context = new FlickrContext();
// set the user.
stringuser = “chschulz”;
// do query.
var query = (from ph in context.Photos
where ph.User == user && ph.SearchText == “New York” && ph.PhotoSize == PhotoSize.Thumbnail
             select ph).Take(5).Skip(0);
foreach (Photo p in query)
        Console.WriteLine(p.Title + “\r\n” + p.Url);

API is never done without a photo add operation. Snippet for that :-

FlickrContext context = new FlickrContext();
context.Photos.Add(
new Photo{ FileName = Path.GetFileName(uploader.Value),
File = uploader.PostedFile.InputStream, ViewMode = ViewMode.Private});
context.SubmitChanges();

 

The API can be downloaded at : LINQ to Flickr API

 

Via New LINQ provider for Flickr - Mehfuz’s WebLog

Gallery Server Pro - An ASP.NET gallery for sharing photos, video, audio and other media - The Code Project - ASP.NET

 

Gallery Server Pro is a powerful and easy-to-use ASP.NET web application that lets you share and manage photos, video, audio, and other files over the web.

  • Stable, production ready.
  • Use any web browser to organize your media files into albums you can easily add, edit, delete, rotate, rearrange, copy and move.
  • Easily add thousands of files using one-click synchronize and ZIP file upload functions. Thumbnail and compressed versions are automatically created.
  • Powerful user security with flexible, per-album granularity.
  • Integrates with DotNetNuke and other frameworks to provide a superior media gallery.
  • Image metadata extraction. Supports these formats: EXIF, XMP, tEXt, IFD, and IPTC.
  • Search function queries title, caption, filename, and image metadata.
  • Image watermarking with your own text and/or image.
  • AJAX-enabled for more responsive UI.
  • Web-based installer makes installation painless.
  • Uses SQL Server 2000 or higher as the data store. Supports MSDE 2000 and SQL Server 2005 Express.
  • Uses ASP.NET Membership provider so you can integrate with your existing accounts, including Active Directory.
  • Data access uses the ASP.NET Provider model, which allows other data stores such as MySQL, MS Access, or Oracle to be used instead of SQL Server.
  • 100% managed code written in C# and ASP.NET 2.0.
  • Source code is released under the open source GNU General Public License.
  • All web pages target XHTML 1.0 Strict and CSS 2.1 standards to ensure maximum forward compatibility.

You can play with an online demo of Gallery Server Pro to get a sense of its capabilities. A pre-compiled version is available at www.galleryserverpro.com as well as additional documentation and a support forum.

Gallery Server Pro - An ASP.NET gallery for sharing photos, video, audio and other media - The Code Project - ASP.NET

Rob Conery (SubSonic) going to Microsoft

 

Rob Conery the Creator of SubSonic just got hired by Microsoft.

Quote from Rob: “my job will be to build out SubSonic as the “sweetness” on top of ASP.NET and (more notably) the new MVC platform. SubSonic will be the convention-driven toolset for Microsoft’s new MVC framework.”

Via http://blog.wekeroad.com/2007/10/26/microsoft-subsonic-and-me/