Festive hacking

For the Compleat Fan
Locked
cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Festive hacking

Post by cormullion »

If you fancy a bit of hacking fun this holiday, visit:

http://lambdalator.nfshost.com/

But remember - you're supposed to be the good guys! :)

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

This is what it looks like on the iPhone/iPod Touch screen:

Image

The top bit - down to the (* 3 5) - is the newLISP stuff: the rest - previous next etc down to Go - is the iPhone touch keyboard. Typing on this isn't too hard, but there's plenty of switching from one page to another: the parentheses are on the numbers page...

I added an 'again' button. This is supposed to do what pressing the up-arrow once does when you're editing in the newLISP terminal - puts the previous line into the edit box.

It's been cool 'watching' people type stuff into this! (The log stores all the expressions that have been input.) (Hi michael! - hi norman!). I can also see that it's a problem that each expression runs in a new newLISP interpreter session. Unfortunately I can't have persistent processes on this host...(apart from my ssh one).

Fanda
Posts: 253
Joined: Tue Aug 02, 2005 6:40 am
Contact:

Post by Fanda »

Hello Cormullion!

For whatever reason, under Windows XP and FireFox (2.0.0.11), there are no blue buttons shown.

I don't see "help" or "again". I can see "evaluate" in the right top corner, but it isn't blue.

Otherwise... evaluation is fun :-)

Fanda

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Sorry Fanda! I've been working exclusively with Safari and the CSS stuff that they're using, and just copied it. There are lots of strange selectors in the CSS page I don't recognise:

-webkit-text-size-adjust: none;
-moz-box-sizing: border-box;

so I'm not surprised it doesn't work well. The interface for the iPhone is pretty restrictive...!

You've probably gathered by now that I'm really not proficient with CSS! I'll have to come up with some more compatible styles.

It works OK if I remove the stylesheet altogether (there's a nice 1994-style retro-look about it then too). So there's hope...

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

..aaaa.. Slick screen-capture :->
-- (define? (Cornflakes))

Fanda
Posts: 253
Joined: Tue Aug 02, 2005 6:40 am
Contact:

Post by Fanda »

Yes, CSS is always trouble. When I started my website, I used to try it in Internet Explorer, Firefox and Opera. But after some time it gets labour-intensive to try every new change, so I usually *HOPE* ;-)))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

I've done some more playing, and I think I've made some progress.

This is the iPhone display (not during text entry): horizontal seems to work well here. The buttons are large, but then fingers are too. :)

Image

Both Safari and Firefox pick up a different stylesheet, and this has a textarea which is resizable (although the buttons seem to float about too much. I hate CSS!

Image

Image

That's probably it for "Lisp on an iPhone"! At least, until February, when Apple release their SDK - then we'll get it actually running on an iPhone!
Last edited by cormullion on Fri Dec 28, 2007 6:10 pm, edited 1 time in total.

Fanda
Posts: 253
Joined: Tue Aug 02, 2005 6:40 am
Contact:

Post by Fanda »

I have no experience with iPhone, but I was quite impressed with Android:
http://code.google.com/android/
(see the videos)

News:
http://www.interentnews.com/dev-news/ar ... hp/3710656
http://www.infoworld.com/article/07/11/ ... SDK_1.html

Fanda

Locked