Welcome to Hardcode Sign in | Join | Help

December 2008 - Posts

... is the latest data structure used by Carmack for his upcoming 3d engine. Here are some papers describing how octrees are implemented on the GPU (using pointers in the texture data :) ), I'm currently reading this one. Brilliant stuff indeed.

This is the most similar technique to the one id is preparing.

It seems there's no way to do the following in SQL:

 - suppose you have an order by query that outputs something like:

      andrei 25/12/2008

      andrei 26/12/2008

      cristina 27/12/2008

      andrei 28/12/2008

I want to group by the text column while maintaining the order. Normal SQL group by the first columns gets:

      andrei 3

      cristina 1

While I actually want:

     andrei 2

     cristina 1

     andrei 1

This is especially useful in newsfeed listings, too bad you have to do it manually.

And I wish you all fewer bugs in the following year! :)

Yey! It's on its way to the AppStore!

This is a 12px x 12px circle drawn in a 12px x 12px image, starting from the top-left pixel:

 

Problems: 

- it's not symmetrical

- it's not 12px on 12px

- the first row is empty

- WTF ?

I had to draw a circle in Photoshop, it came out correctly:

 

 

It seems that Microsoft also has a technology that enables native code to be run inside the browser: XAX. (via Adrian)

Suppose you have a set of N "something" that each is working fine or not. You (randomly?) check M of them, and all M are working fine.

Can you probabilistically estimate the percent of items that are "working" ? Or there's no chance ?

This SDK post looks like a story written in C#-speak:

delivery1.Location = new Organization("General Hospital");
delivery1.TimeOfDelivery = new ApproximateDateTime(new ApproximateDate(2008, 11, 1), new ApproximateTime(00, 15, 35));
delivery1.LaborDuration = 123;

....

delivery1.Baby = new Baby();
delivery1.Baby.Name = new Name("Thomas John Andersen");
delivery1.Baby.Gender = new CodableValue("Male", new CodedValue("male", "gender-types", "wc", "1"));
delivery1.Baby.Weight = new WeightValue(2.5, new DisplayValue(5.5, "pounds"));
delivery1.Baby.Length = new Length(0.46, new DisplayValue(18, "inches"));
delivery1.Baby.HeadCircumference = new Length(0.31, new DisplayValue(12.4, "inches"));

pregnancy.Delivery.Add(delivery1);

A strong-typed class library for all your life ! Brilliant ! :)

I've been using RD for like 4 years but had no idea copy-paste works for files between your PC and the remote one (I remember the drag-drop in VMWare but no copy-paste). The temporary files seem to be in C:\Windows but I couldn't find them - weird.