Older blog entries for lkcl (starting at number 363)

3 Mar 2007 (updated 3 Mar 2007 at 23:28 UTC) »

a response for the nice person who commented about my koolu quip, from brian, the koolu embedded guru:

  • Koolu hardware uses a very similar chip (the LX to the GX...they're pretty much the same guts except a slightly different clock speed, and a bit different video hardware).
  • The OLPC uses the same CS5536 south bridge chip (as Koolu box) to provide PCI +bus and USB 2.0 connectivity. The reason the OLPC only has 3 USB port is because the marvel chip is wired to port 4 of the CS5536 (the port that can act as either a host or a slave device).
  • Extra Realtek ethernet is attached via PCI bus in Koolu box
  • Mini-port is exposed on Koolu hardware (through the same 5536 bridge chip)

  • OLPC has a custom chip to do panel display, and camera interface.

  • Conclusion: Very similar hardware, different form factor.

does that help?

lisp, python, and quantum mechanics

it occurred to me recently that the reason why lisp and python are brilliant is because they fundamentally reflect in the language constructs the principles of quantum mechanics.

  • lambda is the base-level function, with no name
  • map is a parallel transform
  • "if N in list" can be used to implement quantum differentiation
  • reduce can be used to implement quantum coherence testing

and that's just the _base_ level: i haven't even got onto where classes come in to express encapsulation of information and its association - the reflection of observer, observed and process of observation.

so, if you always felt yourself wondering why python and lisp are cool and can let you do so much, that's why.

now, if you _fully_ understand quantum mechanics (which i am only just beginning to grasp properly) then you should explain it to guido and the other python developers and get them to reverse the decision not to put lambda and friends into python 3.0!

because, it would be a serious mistake to leave them out!

advogato syndication

this syndication feature: it's starting to make advogato _really_ interesting. actually - fascinating.

oubiwann, your wisdom does you credit.

the motherboard in the OLPC computer is available NOW - not "maybe in the future" - in the koolu.com computer that someone noticed a couple of weeks ago in their diary entry here on advogato.

as it's the OLPC motherboard then well DUH it runs the OLPC software.

titus: for goodness' sake advise them to think creatively about their programming.

if they're doing applications, show them pyjamas: i think that's absolutely essential.

even if you don't know anything about it, at least show them the samples on the pyjamas.pyworks.org site.

point them at my web site, which comes with the source code, and squish my web site down to 800, then 640, then 300 pixels wide, on the browser.

and remember to mention that because pyjamas is version 0.1, the auto-resize doesn't work yet :)

show them SQLobject and SQLbuilder (part of turbogears) and Formencode (part of turbogears) and the _very_ simple htmltmpl.sourceforg.net (not part of turbogears but it damn well should be).

explain that htmltmpl has not had _any_ "maintenance" on it - because basically, it is complete! it does what is needed, and if you think anything more is needed, then you are programming / designing the web site completely wrong.

but - above all, emphasise creativity as the absolute fundamental and overarching priority which they should be focussing on. they should be _good programmers_ who _happen_ to be using python.

make sure every module, class and function is either obvious (from its name or from its very few lines) or is documented, and make DAMN sure that everything has test procedures.

someone on here was raving about a new python test environment, which automatically hunted through code looking for stuff that LOOKED like a test - can't remember what it's called.

emphasise that the more testing you can do, the faster you will develop the program.

so, it doesn't matter if you write test procedures: that's good, because those will do testing.

it doesn't matter if you are a fast typer and have some scripts which do your install automatically: the sooner it's installed, the quicker you can do testing.

if you have code coverage techniques (saw one on here last week - looked great) - then great: that's testing.

the faster you can do testing - of _any_ kind - users, test suites, your own development cycle, whatever it is - the faster you will become confident that your code does what you need it to do.

the NSA and GCHQ have a way of thinking about things.

they don't care too much if something is broken, as long as they can _prove_ that it's broken. what they DO care about is if they CAN'T prove one way or the other if it's broken.

so, for the poor NSA and GCHQ, windows is _totally_ out of the question. outright. flat-out. banned. they REFUSE to use it, and will NOT allow a windows computer on their premises. AT ALL.

why? because it's 60 MILLION lines of utter unprovable shit. they can't tell where it _isn't_ secure.

tell your 20 scientists these things and they will go 'hmmmm...' :)

27 Feb 2007 (updated 27 Feb 2007 at 00:22 UTC) »

Well :)

i finally implemented an email button on my web site after what... three to four years?

it's a python JSON service (http://lkcl.net/site_code/ - see json_service directory)

unfortunately, mod_python won't let me import smtplib for some reason, so i had to use popen2 on /usr/bin/mailx. oops.

anyway.

you'll need the slightly modified version of jsonrpc (also in the json_service directory). you'll need to put json_service/email.py into a services subdirectory (e.g. /var/www/services). you'll need to create /var/cache/mailsender and chown www-data:www-data it. and you'll need this in apache config:


  <Directory /var/www/services >
    AddHandler mod_python py
    PythonHandler jsonrpc.apacheServiceHandler
    PythonPath
"sys.path+['/usr/share/python-support/python-simplejson/simplejson/']"
    </Directory>

hw6915 suspend/resume - might be fixed...

arg arg arg a post by paul psokolovsky on kernel-discuss@handhelds.org describes a horror-story debugging session in suspend/resume, where, it turned out, he hadn't converted _one_ device driver for the h4000 from a legacy struct device to the more up-to-date struct platform_device.

apparently you can't mix-and-match both in your hardware: you have to all struct device or all platform_device.

read more

Syndicated 2006-12-22 02:10:37 from lkcl's blog

quick, quick, slow...

argh.

things were going _so_ well on the htc sable (ipaq hw6915) and then i ran into suspend/resume hell for over a week, went to holland for another week, and i think i left the charger there, so i can't carry on until i find it.

in the mean-time, i've been playing with other devices: sound on the blueangel, which is hell, and the s3c2442-based htc hermes, which is hell. all in all, i don't feel like i've actually achieved anything, for over two weeks. and it's pissing me off.

read more

Syndicated 2006-12-19 03:39:43 from lkcl's blog

old kernels, reverse-engineering, new kernels...

the key rule to reverse-engineering is to only have one thing to change at any one time in order to find out its effect. or to have the minimum number of things.

at the moment, i have a particularly difficult task with the blueangel: the sound infrastructure for soc devices is undergoing a rewrite, and unfortunately it was never entirely completed for the blueangel back for 2.6.12.

however, if sound was played from wince at the time that haret booted into linux, sound _did_ at least work. so there was a 'known' state to test things.

read more

Syndicated 2006-12-12 02:28:58 from lkcl's blog

first post!

hooray! i discovered today that at some point over three years ago i must
have registered on kerneltrap. so i've decided to create a diary here for
os-related stuff, and syndicate it over on advogato.org. note to self: must ask steven if he can put more than _one_ syndication site link into advogato profile pages.

Syndicated 2006-12-10 13:52:47 from lkcl's blog

pyjamas is just... weird. it's like... i know it's python, but it's like it's another programming language or something.

which it is, ha ha :)

no, but seriously: i have to keep bearing in mind that there is a specific framework - only a subset of python can be used, and a 'way of working' which, at the moment, i can only gawp at and mimic.

i'm doing pretty good at mimicking being able to design sites with pyjamas!

does anyone remember reading - probably on slashdot - an article about the chemistry of laughter?

i urgently need to review the article in light of some new information and i can't find the damn thing because it was... over 18 months ago probably more like two years.

can anyone help me out?

email me lkcl@lkcl.net most grateful.

354 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!