Posts

Adding new relocation types

For bfd, add them to the comment block in reloc.c then run ‘make headers’. One more make after that gets it through to bfd.h

binutils / bfd target magic

So the BFD architectures listed in bfd.h are actually defined archures.c in a big comment block at the start of the file. This is split out and fired into the documentation, many bfd-in-xx.

Python on an embedded system

I like Python. I want to use Python everywhere. Hmm. Sounds more like an addiction. The question is, is Python suitable as a glue language on a embedded Linux system?

Naming

For personal reference. What happens when you follow too strict of a naming convention: http://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/server/RequestProcessorFactoryFactory.html?rel=html

Hmm

http://www.ladyada.net/make/fuzebox/index.html and http://www.makershed.com/ProductDetails.asp?ProductCode=MKPO1

Anthony’s

…fish grotto on the bay in San Diego is very good. They also do seafood.

Richard Stallman

Saw RMS at Canterbury University today. He has an interesting point of view, very liberal, but also a point of view that is based on old technology. He said that sites like Google Docs are a problem as you are running a program on their machine, a program that you don’t have control over.

Zen of website maintenance

A certain website had a few vuneribilities including XSS and leaking passwords. The fixes were: The <script> tag was turned on for pending users. Configure off.  All other users get their tags filtered against a safe list The superuser always skips the filter and sees all tags.

Fun and games with Python vs C

I’m using Python to test the code generated by a C compiler. Many of the tests are along the lines of: a = 5 b = 10 result = run_c_code_for_add_in_emulator(a, b) assert result == a + b This works fine except when dividing integers with rounding.

Big Mac Calories

Why does a NZ Big Mac have 464 calories, a UK one 495, and a US one 540? It might be differences in weight but it’s hard to tell.