soderlind.no

I code for fun

27.12.2004
by Guest
0 comments

Phalanger, a PHP compiler for .NET

Wow !!! This is cool. Some Czech guys has written a PHP .NET compiler!

The main features are:

  • Extends the .NET language family with PHP version 5
  • Enables creation of ASP.NET applications made of existing PHP scripts
  • Compiles PHP scripts to achieve a significant speed-up of application execution
  • Provides .NET application developers with all the PHP libraries
  • Integrates the PHP language into Microsoft Visual Studio .NET

10.12.2004
by Guest
0 comments

The Magic

  • Over four billion Web pages, each an average of 10KB, all fully indexed
  • Up to 2,000 PCs in a cluster
  • Over 30 clusters
  • One petabyte of data in a cluster
  • Sustained transfer rates of 2Gbps in a cluster
  • An expectation that two machines will fail every day in each of the larger clusters
  • No complete system failure since February 2000
  • 200 computer science PhDs, and 600 other computer scientists
  • 1 simple interface

Read more about the The magic that makes Google tick at ZDNet UK

8.12.2004
by Guest
0 comments

Web services Contract-First

thinktecture has written a Visual Studio .NET Add-In and Command Line Tool for Improved “Contract-First” Web services Design and Programming.

thinktecture’s Christian Weyer: “There has been a lot of buzz around contract-first Web services design & development lately. Nearly everybody thinks that it is a good thing, and that we finally should reach a state where we all can live and breath it. But most people have been complaining about the lack of tool support for the so called ‘first step’:

  • Design your contract’s messages and interface
  • Generate code from the contract

Our tool has been quite good at the last one of the two points: code generation. But there always was a missing link to how to design and model the contract effectively.

Now we from thinktecture are proud to present the next version of our very successful and freely available WSCF (formerly known as WsContractFirst). This new version 0.4 now offers a simple yet powerful WSDL Wizard that abstracts away all the nitty-gritty details of WSDL and therefore does not give room for making errors and wrong assumptions just by trying to use and applying everything that can be done stated by the original WSDL specification.”

19.11.2004
by Guest
0 comments

2.7 grams, and it’s a helicopter

The Nanoflyer is the smalest RC helicopter in the world:

Weight of components:

  • Motors(2) 0.8 grams*
  • Electronics 0.1 grams
  • Battery 0.7 grams
  • Airframe 1.1 grams

See it fly: Medium quality Nanoflyer video 1:13 (2.0Mb)

Want one for Christmas (I do!!)? You’ll have to settle for the slightly larger (50 grams) Bladerunner. It is the first commercial product to utilize the Proxflyer principle.

* 1 gram = 0.035273962 ounce(US) / 0.032150747 (Troy)

12.11.2004
by Guest
0 comments

Neo (.NET Entity Objects)

Why Neo? Because it is simple and object-oriented:

The following code snipped shows how to load all titles (i.e. books) that were published before a certain date, apply a clearance discount and then save the changes to the database:

IDataStore datastore = new SqlDataStore(" database connection string ");
ObjectContext context = new ObjectContext(datastore);
TitleFactory factory = new TitleFactory(context);
TitleList matchingTitles = factory.Find("PublicationDate < {0}", new DateTime(2003, 1, 1));
foreach(Title title in matchingTitles) {
    title.ApplyClearanceDiscount();
}
context.SaveChanges();

Where ApplyClearanceDiscount() could look like:

public void ApplyClearanceDiscount()
{
    this.Price = this.Price * (1 - GetClearanceDiscount());
}

… from 5 Reasons