ZeroN

What if materials could defy gravity, so that we could leave them suspended in mid-air? ZeroN is a physical and digital interaction element that floats and moves in space by computer-controlled magnetic levitation.

Find out more at: http://media.mit.edu/~jinhalee/zeron

Advertisements

Microsoft Illumishare

IllumiShare enables remote people to share any physical or digital object on any surface. It is a low-cost, peripheral device that looks like a desk lamp, and just like a lamp lights up a surface at which it is pointed, IllumiShare shares a surface. To do this, IllumiShare uses a camera-projector pair where the camera captures video of the local workspace and sends it to the remote space and the projector projects video of the remote workspace onto the local space. With IllumiShare, people can sketch together using real ink and paper, remote meeting attendees can interact with conference room whiteboards, and children can have remote play dates in which they play with real toys.

 

Select the index of a specific object via LINQ

This will search for the index of an object in a collection depending on a specific criteria.
When the object is not found in the collection, it will return an index with value -1.


string searchValue = "d";
List<string> items = new List<string>() { "a", "b", "c", "d", "e" };

int foundIndex = items.Select((x, i) => new { x, i })
.Where(x => x.x == searchValue)
.Select(x => x.i)
.DefaultIfEmpty(-1)
.First();

// specific code for LINQPad
foundIndex.Dump();

The result will be 3, because “d” has index 3 in the collection.

@Adobe Reader X Memory Leak

Last week I was working and suddenly PC started acting strange. It had lag and the UI of Adobe Reader X was almost totally disposed.

The first thing that I did was checking the number of GDI objects from Adobe Reader X. If the UI is having problems drawing itself and the program is not responding as it should be, that could be a good place to start your search.

Checking the GDI objects in Windows is very simple:

  • Press Ctrl+Shift+Esc to open the Task Manager
  • Select the [Processes] tab
  • Add the GDI Objects column by clicking [View] > [Select Columns…] and check [GDI Objects]

  • Now find your Adobe Reader X process in the list and check how much GDI Objects it has.

The limit of GDI Objects per process is 10000 in Windows, and that is what I actually saw.

The problem occurs when you open a PDF file and press Ctrl+F and search for some text. You will not notice the leak if you don’t use (= scrolling and searching) the PDF file for a while.
By scrolling the document, everything works fine but if you search the document it will leak GDI handles and if you scroll after you triggered the leak, every scroll will increment the leaked handles.

I just binged if this was a new bug but it seems that this bug was already reported in February 2011 on the Adobe forums.

Shame on you Adobe!

FYI: tested on Windows 7 (x64) and again another reason to start using the free Foxit Reader.