Festive hacking

Started by cormullion, December 24, 2007, 04:38:55 AM

Previous topic - Next topic

cormullion

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



http://lambdalator.nfshost.com/">//http://lambdalator.nfshost.com/



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

cormullion

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



http://farm3.static.flickr.com/2282/2141763055_81e423103c.jpg">



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

#2
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

#3
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

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

Fanda

#5
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

#6
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. :)



http://farm3.static.flickr.com/2096/2144309654_dd670b21b7_m.jpg">



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!



http://farm3.static.flickr.com/2024/2143516147_402b1748db_m.jpg">



http://farm3.static.flickr.com/2293/2143516037_cb9eb19d14_m.jpg">



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!

Fanda

#7
I have no experience with iPhone, but I was quite impressed with Android:

http://code.google.com/android/">http://code.google.com/android/

(see the videos)



News:

http://www.interentnews.com/dev-news/article.php/3710656">http://www.interentnews.com/dev-news/ar ... hp/3710656">http://www.interentnews.com/dev-news/article.php/3710656

http://www.infoworld.com/article/07/11/12/Google-releases-Android-SDK_1.html">http://www.infoworld.com/article/07/11/ ... SDK_1.html">http://www.infoworld.com/article/07/11/12/Google-releases-Android-SDK_1.html



Fanda