Welcome to Hardcode Sign in | Join | Help

May 2008 - Posts

Via Mihai Patrascu, a paper that was accepted at STOC about communicating with aliens ... here.

Excerpt:

Consider the following scenario: Alice, an extraterrestrial, decides to initiate contact with a terrestrial
named Bob by means of a radio wave transmission. How should he respond to her? Will he
ever be able to understand her message? In this paper we explore such scenarios by framing the
underlying questions computationally.

You are on the roof of a 400 meters high building, isolated, with a 300-meters long rope. There is something on the side of the roof where you can tie the rope. At half the height, that is 200 meters high above the ground, there is a platform where you can stay and where you can also tie the rope to continue descending. How do you get off the building ?

Two new logic puzzle from Danet, here's the today one:

You are on a strict medical regimen that requires you to take two types of pills each day. You must take exactly one A pill and exactly one B pill at the same time. The pills are very expensive, and you don't want to waste any. So you open the bottle of A pills, and tap one out into your hand. Then you open the bottle of B pills and do the same thing -- but you make a mistake, and two B pills come out into your hand with the A pill. But the pills are all exactly identical. There is no way to tell A pills apart from B pills. How can you satisfy your regimen and take exactly one of each pill at the same time, without wasting any pills?

seems based on Bison:

[EntitySqlException: The query syntax is not valid., near term '*', line 1, column 9.]
System.Data.Common.EntitySql.CqlParser.yyerror(String s) +519
System.Data.Common.EntitySql.CqlParser.yyparse() +709

Some interesting new apps from Nokia here. Oh and for a very user-friendly sms API to your Nokia, download TextMessenger and use the SMSSender.ocx from

C:\Users\...\AppData\Local\Microsoft\Windows Sidebar\Gadgets\TextMessenger.gadget\

Beware, don't install it on production servers, I've found an weird issue with ListView editing.

By the way, check our latest social shopping project, www.coolio.ro.

The only was ListView paging works without complications:

 <ListView>

     <LayoutTemplate>

        <DataPager OnPreRender="DataPager_PreRender" >

 

Page_Load:

   ListView.DataSource = ...

   ListView.DataBind()

 

 DataPager_PreRender:

   ListView.DataSource = ...

   ListView.DataBind()

 

Of course this is crap because if page > 1 the listview gets binded twice ... however I haven't found a better solution, please reply if you know one :)