Active Topics

 



Notices


Reply
Thread Tools
Posts: 6 | Thanked: 0 times | Joined on Dec 2005
#11
Originally Posted by Hedgecore
Exactly it How's the server doing?
Sorry for my late answer. I wrote quite a bit code for the python web server on a weekend without having access to a notebook or desktop PC. When I finally tried to backup the code on my notebook via the USB connector, the python file containing my code wasn't readable anymore (I/O Errors).

Right now I'm waiting for my anger to fade away before restarting the project... But I learned my lesson and I won't write or exclusively store a single line of code on the 770.

Andi

Last edited by Andi; 2006-01-18 at 14:36.
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#12
Originally Posted by bigboote
I'm glad to hear you're working on this, and I hope your problem can be resolved. Having a mini httpserver on board could be a powerful tool.
I don't know that I would call a python http server "mini", at least as far as memory footprint and efficiency are concerned. If what you want is a lean and mean server for static content or a couple of cgi's, an ARM binary of boa or tinyhttpd or several others sounds like a better choice.
OTOH, if the goal is to write a local web app in python that is its own web server, using one of the lightweight web frameworks (like Karrigell or Snakelets), that is very convenient. I have one on my Zaurus that I use daily, need to try it out on the 770 someday.
 
Nyrath's Avatar
Posts: 92 | Thanked: 50 times | Joined on Jan 2006 @ the praeternatural tower
#13
Originally Posted by Andi
Sorry for my late answer. I wrote quite a bit code for the python web server on a weekend without having access to a notebook or desktop PC. When I finally tried to backup the code on my notebook via the USB connector, the python file containing my code wasn't readable anymore (I/O Errors).
Ooo, I'm sorry to hear that.

Can the code be read with the 770's editor (whatever you used to write the code to start with)? Was the code stored in the 770's RAM or on the RS-MMC card? I'm trying to decide how much to panic about my own 770. I'd hate to think that the onboard RAM is so unreliable.

I suppose you had the USB cable plugged directly into the desktop PC instead of into a USB hub? I had problems flashing the 50 update into my 770 until I did this. And if the code was on the RS-MMC card, have you tried using a desktop PC with a card reader?

Please don't be insulted, I know my suggestions are somewhat obvious, but I don't know how else to help.
 
Posts: 1 | Thanked: 0 times | Joined on Jan 2006
#14
I copied CGIHTTPServer.py in as well as BaseHTTPServer.py and SimpleHTTPServer.py. Then moved in wypy.py to make a wiki to
record my thoughts. Of course, I'd only have this running on my
home network behind a firewall

Last edited by mranderso; 2006-01-19 at 04:15.
 
Posts: 8 | Thanked: 0 times | Joined on Jan 2006
#15
I managed to get MoinMoin v1.3.5 running on my Nokia 770 by adding *Server.py and cgi.py. I have MoinMoin & my wiki on the MMC card and used the installable Python2.4. I had to set full paths in moin.py & wikiconfig.py. I access it via opera using the DEFAULT connection. My only remaining bug is that for some reason [[BR]] is not recognized. All the other formatting commands that I have used seem to work. I will start digging through MoinMoin, but if anyone else has seen this I'd love to know.
 
Posts: 7 | Thanked: 0 times | Joined on Jan 2007
#16
Originally Posted by gultig View Post
I'm pretty sure that this is what you're looking for.

http://maemo.org/maemowiki/DummyIAP
Hi,

I try this solution on N800, and it's not OK.

The "dummy" internet access point has been created, and i can connect the tablet, Opera search localhost but don't find.

Have you got an idea ?

Thanks
 
Posts: 3 | Thanked: 0 times | Joined on Jun 2007 @ NY
#17
One more way to get access to your localhost server:

1. tools > conntrol panel > connectivity "connections" button
2 "New" button, "Next button" type in Connection name you desire like "Dummy", option button WLAN, "Next" button.
3. Scan networks "No" button
4. SSID "Dummy", Network mode "Ad hoc", "Next" button, "Advancced" button
5. Checkbox check on Use Proxy, HttP proxy input 127.0.0.1, "OK" button, "Finish" button, "Done" button, "OK" button.

You all set. Now if you want to access your localhost, all you need to do is choose "Dummy" connection from your connections list.

Hope this helps,

Cheers :-)
 
Posts: 30 | Thanked: 2 times | Joined on Jul 2007
#18
wow, thanks vvaiman - great solution, just what i was looking for! =]
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:41.