Making it happen
Archive for July, 2008
Google Sparse Hash
Jul 23rd
If you’re still working with C++ STL and need a very efficient hash_map implementation here’s the one used at Google.
Google CodeJam 2008
Jul 17th
I almost forgot about it but still submitted two quickly-written answers for the first two problems, hoping I will make it …
Javascript style type conversion
Jul 16th
Would be great if implemented in C++ also, because ((Literal)control).Text looks worse than Literal(control).Text.
Yahoo / Google authentication
Jul 11th
Get values from EntityDataSource in ItemBound
Jul 2nd
If the data item is an entity (wrapped in an EntityDataSourceWrapper) you can use the method described here.
If not (and you are using a custom select statement), you have two choices:
Linq Join multiple fields
Jul 2nd
Even using this syntax you may run into the following error:
The type of one of the expressions in the join clause is incorrect.
Dynamic Data and Entity Framework
Jul 2nd
As I’ve been using Dynamic Data and Entity Framework, here are my thoughts after messing with them:
- Dynamic Data simply rocks, you are not required to use their navigation system and you can quickly set up your own. I have modified the standard page templates though for being more user-friendly (like having the parent set automatically in the dropdown when inserting a new item going from parent details) and also have implemented a generic many-to-many editor (two actually, one with two listboxes and move left/right) and one with a checkboxlist, pretty simple although you have to use reflection.
- Entity Framework is not so bad
once you get past the following: use this when you need where conditions on related data and use Dynamic Data foreign key dynamic control to automatically insert the parent relation (if you use EntityDataSource).
Microsoft gets open
Jul 1st
Even cooler than the Office file specs is that MS has released specifications for their proprietary protocols.
