Related News
Sun Updates Studio 12
Sun Tuesday released its Studio 12 Update 1 advanced compilers and tools for Solaris, OpenSolaris and Linux.An optimized environment for the latest multi-core x86 and Sparc-based systems, it’s supposed to simplify parallel development and heighten application performance.Geared to C, C++ and FORTRAN developers, it consists of parallelizing compilers, powerful debuggers, advanced thread and performance analysis tools and highly tuned libraries.read more
Alternative Syntax for Member Calls on C# Dynamic Types
XML-RPC.NET is essentially concerned with making statically typed calls to XML-RPC endpoints, using interfaces as contract definitions in a similar way to WCF. However the new dynamic type in .NET 4 makes it possible to provide a clean way of making dynamically typed calls, for example like this: dynamic client = new XmlRpcClient("http://someXmlRpcEndpont");int returnValue = client.Add(2, 3);The DynamicObject class in the System.Dynamic namespace makes implementing a dynamic class straightforward: using System.Dynamic;class XmlRpcClient : DynamicObject{ string endpoint; public XmlRpcClient(string endpoint) { this.endpoint = endpoint; } public object Invoke(string methodName, object[] args) { return 5; // actually make call to XML-RPC endpoint here } public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result) { result = Invoke(binder.Name, args); return true; }}However, the method name in XML-RPC can be an arbitrary string which is not necessarily representable as a token in C#, for example "samples.Add". JavaScript handles this case by providing an alternative syntax to access a member via a string and then make a call on it, for example: obj["foo"]() // get member 'foo' and call itThe dynamic type of C# does not support this, at least in the current beta, but it can be implemented: using System.Dynamic;class XmlRpcClient : DynamicObject{ // ... public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result) { result = (Func)(args => Invoke(indexes[0] as string, args)); return true; } public delegate object Func(params object[] args);}So making this code possible: dynamic client = new XmlRpcClient("http://someXmlRpcEndpont");int returnValue = client["samples.Add"](2, 3);
Site Explorer Gets a Makeover
A few years ago, we launched Site Explorer with the goal of providing site owners with better visibility into how we index their websites and what data we use in our search service. Over the years we've moved beyond simply providing information to webmasters to allowing them to tell us what to do with their site, using functions such as submitting feeds, deleting URLs or reporting spam. Our most successful function among all has been Dynamic URL Rewriting. We've had thousands of site owners enter rules for their websites and webmasters auto-rewrite an average of 25,000 URLs per rule, with some sites rewriting millions of URLs in 1 shot.Today, we launched a new look and feel for Site Explorer (http://siteexplorer.search.yahoo.com/new) that provides a more dynamic interface to accommodate future feature roll-outs. The new interface also includes a new Site Summary page to provide statistics for authenticated sites. On top of this, we're also increasing the number of rules for Dynamic URL Rewriting that you can enter from 3 to 10. The new site is located at a special URL to give you some time to play around with it and update your tools that use our interface. We will make this the default experience soon, so please use this time to update your tools. And, as always, please give us feedback on your new experience. We want to hear from you!Priyank GargYahoo! Search
Krusader: One File Manager to Rule Them All
"Krusader is a massively powerful and feature-packed twin panel file manager. If you dislike bloat and prefer minimalist windows managers like XFCE or Fluxbox, the good news is that Krusader will run without KDE, provided you have the necessary libraries installed. If Dolphin isn't cutting the mustard Krusader might just be what you've been looking for." Here is the download page for Krusader, give it a spin and share your comments.
Linux now an equal Flash player (Linux-Watch)
Linux-Watch reports on Adobe's release of the proprietary Flash Player 10 for Linux."Welcome to the future. Linux is now a first-class desktop operating system citizen. Adobe today released version 10 of its Adobe Flash Player, available now in a variety of convenient packaging formats for Linux, as well as other popular desktop operating systems.Once upon a time, desktop Linux was a second-class citizen, where Flash was concerned. As recently as 2007, Linux users waited six months for Flash 9 to arrive.Now, while Microsoft appears bent on leaving Linux users behind on Silverlight technology, its Flash alternative, Adobe has made Linux an equal player."