I am sick of bootloaders being mysterious and inaccessible, so I have decided to take a closer look at mine.
Saturday, October 1, 2011
Thursday, August 25, 2011
Color indexing not supported.
I'm going to start documenting the solutions to errors I encounter while programming when I feel the error is likely to be encountered by others. So, anyhow, this is the first one.
When trying to compile the GLUT redbook examples, you may get the following runtime error:
When trying to compile the GLUT redbook examples, you may get the following runtime error:
craigp@liasson> make && ./aaindex.binWhat was happening in my case was that the system dose not support color indexing mode. Change the following line
gcc -Wall -I/lusr/X11/include -I/lusr/include -o aaindex.bin -L/lusr/X11/lib -L/lusr/lib -lglut -lGLU -lGL -lpthread -lm aaindex.c
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 128 (GLX)
Minor opcode of failed request: 26 (X_GLXMakeContextCurrent)
Serial number of failed request: 49
Current serial number in output stream: 49
glutInitDisplayMode (GLUT_SINGLE | GLUT_INDEX);to
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGBA);I'm not exactly sure where to view the capabilities of X11 or if it is possible to enable color indexing mode at all without root access. The header states
/*so if you absolutely must know, that may be the place to start looking.
* Initialization functions, see fglut_init.c
*/
. . .
FGAPI void FGAPIENTRY glutInitDisplayMode(unsigned int displayMode);
. . .
Friday, August 12, 2011
Sphere inversion versus spherical reflection
Friday, August 5, 2011
Degenerate fun
Thinking about how homogenous coordinates degenerate to lower dimensions. For one dimension, you can scale and shift points on a number line. For zero dimensions, you get the identity matrix. I wonder if it's rotation all the way up, or if there are better ways to view the higher level transformations that open up in larger matrices.
Sunday, July 24, 2011
Buffalo Wings
250mL flour
10mL salt
5mL pepper
3mL cayenne
3mL paprika
1 egg
250mL milk
1000mL chicken
1500mL oil
100mL hot sauce
15mL margarine
10mL salt
5mL pepper
3mL cayenne
3mL paprika
1 egg
250mL milk
1000mL chicken
1500mL oil
100mL hot sauce
15mL margarine
Saturday, July 23, 2011
Bread
600 mL water at 50C
2 ct yeast packet
15 mL salt
30 mL butter
45 mL sugar
1500 mL flour
30 minutes at 220C
2 ct yeast packet
15 mL salt
30 mL butter
45 mL sugar
1500 mL flour
30 minutes at 220C
Saturday, July 16, 2011
Pancakes
1L ~= 4 cups
1L ~= 200 teaspoons
1L ~= 60 tablespoons
1 cup = 250mL
1 teaspoon = 5mL
1 tablespoon = 15mL
First mix:
400mL flour
17.5mL baking powder
20mL sugar
Then mix:
300mL milk
45mL molten butter
1 egg
1L ~= 200 teaspoons
1L ~= 60 tablespoons
1 cup = 250mL
1 teaspoon = 5mL
1 tablespoon = 15mL
First mix:
400mL flour
17.5mL baking powder
20mL sugar
Then mix:
300mL milk
45mL molten butter
1 egg
Subscribe to:
Posts (Atom)
