Sagemath with Phone

9 views
Skip to first unread message

NoSyu

unread,
Jul 24, 2009, 1:33:24 AM7/24/09
to sage-devel
Now I make the WAP Page in Sagemath notebook.

http://nosyu.pe.kr/attach/1/3770095285.png

http://math1.skku.ac.kr/wap_html

You can write the sage code in textbox. 예제 1 means example 1. So
click the 예제 3, you can see example sage code like this.

http://nosyu.pe.kr/attach/1/6037209279.png

Example code is 'plot(sin(x), xmin=-2*pi, xmax=2*pi)'. Click the '실행
(Evaluate)' Button. Then you can see the code and result.

http://nosyu.pe.kr/attach/1/5078779878.png

I said it is for phone. So Dr Kim tested this his phone. His phone
is Samsung SPH-W5000.

http://nosyu.pe.kr/attach/1/6834600582.png

http://nosyu.pe.kr/attach/1/9329232708.png

We can see right result on the phone. We test this on phone that is
sold in Korea such as Samsung Anycall, LG CYON.

And I test this on phone emulator also.

http://nosyu.pe.kr/attach/1/1601193836.png
http://nosyu.pe.kr/attach/1/4458016426.png

http://www.opera.com/mini/demo/

http://nosyu.pe.kr/attach/1/1792769303.png
http://nosyu.pe.kr/attach/1/7577281903.png

http://emulator.mtld.mobi/emulator.php

It works fine.

It works good on the phone that is sold in Korea. So we make this
Korean interface. Then Korean people use sagemath on the phone easily.

Now we imporve and expand this. So test it and report bug or bad
things.

http://math1.skku.ac.kr/wap_html


You can this post with image on this page.

http://nosyu.pe.kr/2065


------------------------------------------------------------------------

누구나가 다, 자기 옆에서 눈물을 흘리며 신음하는 불행한 사람들에 비해 자기가 훨씬 더 불행하다고 생각하지요. 이게 바로 우리
가련한 인간들의 오만 중 하나입니다.
- 몬테크리스토 백작
it is the infirmity of our nature always to believe ourselves much
more unhappy than those who groan by our sides!
- The Count of Monte Cristo
c'est un des orgueils de notre pauvre humanité, que chaque homme se
croie plus malheureux qu'un autre malheureux qui pleure et qui gémit à
côté de lui
- Le Comte de Monte-Cristo

박진영 - Bak JinYeong
학부재학생 - Undergraduate
컴퓨터공학전공 - Department of Computer Engineering
정보통신공학부 - School of Information & Communication Engineering
성균관대학교 - SungKyunKwan University
블로그 - http://nosyu.pe.kr
이메일 - don...@skku.edu

Sergey Semerikov

unread,
Jul 24, 2009, 5:37:14 AM7/24/09
to sage-devel
On Jul 24, 8:33 am, NoSyu <don...@gmail.com> wrote:
>   Now I make the WAP Page in Sagemath notebook.

A good job! But it have some potential problems (I apologize for
stress tests, which could result in a higher server load):

1. wap_test_01 - a virtual user. Every WAP-call creates a new
worksheet at http://math1.skku.ac.kr/home/wap_test_01, and intensive
use lead to wasting of wap_test_01 notebook. Possible solution - to do
"groundhog day" (proposed by Dan Drake) or remove "old" worksheets.

2. Access denied to any data, associated with cell. For example,
worksheet http://math1.skku.ac.kr/home/pub/191/ has a link
http://math1.skku.ac.kr/home/wap_test_01/98/cells/0/full_output.txt,
which can't be retrieved any way.

3. Bugs (features): a) string constants must be only 'string', not
"string"; b) single '/' must be changed on '//': sh.eval('dir //').

It will be very nice if output would be typesetted with jsmath or
shown as sage->latex->dvi->png.

Sincerely, Sergey

NoSyu

unread,
Jul 24, 2009, 8:49:27 AM7/24/09
to sage-devel
Thanks to reply it.

I surprised that sage is accepted sh operation.

Maybe it should be banned.


1.

Yes.

wap_test_01 is virtual user for wap_html page.

and one process by one worksheet.

Maybe I make the delete function automatically when sage notebook is
lauched or whenever.

groundhog day? I don't know about it. I should be search or ask to Dan
Drake. Thanks to give the good information.



2. Oh...

In fact, the reason why it publish the worksheet is that if it do not,
picture is can be seen to anonymous.

But txt file is not...

I search or make another way to solve this problem.



3. String constants?

I don't understand it.

Sorry.



We consider the jsmath, but phone web browser in Korean phone service
can't work javascript code.

So we remove it.

But latex is good.

I make and test it later.



Thanks to test and report it.

And Thanks to send the email with gettext code.

I test it and make the Korean po file.


Have a nice weekend.!


------------------------------------------------------------------------

누구나가 다, 자기 옆에서 눈물을 흘리며 신음하는 불행한 사람들에 비해 자기가 훨씬 더 불행하다고 생각하지요. 이게 바로 우리
가련한 인간들의 오만 중 하나입니다.
- 몬테크리스토 백작
it is the infirmity of our nature always to believe ourselves much
more unhappy than those who groan by our sides!
- The Count of Monte Cristo
c'est un des orgueils de notre pauvre humanité, que chaque homme se
croie plus malheureux qu'un autre malheureux qui pleure et qui gémit à
côté de lui
- Le Comte de Monte-Cristo

박진영 - Bak JinYeong
학부재학생 - Undergraduate
컴퓨터공학전공 - Department of Computer Engineering
정보통신공학부 - School of Information & Communication Engineering
성균관대학교 - SungKyunKwan University
블로그 - http://nosyu.pe.kr
이메일 - don...@skku.edu



On 7월24일, 오후6시37분, Sergey Semerikov <semeri...@gmail.com> wrote:
> On Jul 24, 8:33 am, NoSyu <don...@gmail.com> wrote:
>
> >   Now I make the WAP Page in Sagemath notebook.
>
> A good job! But it have some potential problems (I apologize for
> stress tests, which could result in a higher server load):
>
> 1. wap_test_01 - a virtual user. Every WAP-call creates a new
> worksheet athttp://math1.skku.ac.kr/home/wap_test_01, and intensive
> use lead to wasting of wap_test_01 notebook. Possible solution - to do
> "groundhog day" (proposed by Dan Drake) or remove "old" worksheets.
>
> 2. Access denied to any data, associated with cell. For example,
> worksheethttp://math1.skku.ac.kr/home/pub/191/has a linkhttp://math1.skku.ac.kr/home/wap_test_01/98/cells/0/full_output.txt,

Sergey Semerikov

unread,
Jul 24, 2009, 9:45:17 AM7/24/09
to sage-devel
On Jul 24, 3:49 pm, NoSyu <don...@gmail.com> wrote:

> groundhog day?

"The Groundhog Day server gets reset every day to the exact same
state. No user data of any kind is saved; everything is erased." (
Lokk at http://sagenb.kaist.ac.kr/about.html)

> 2. Oh...
>
> But txt file is not...
> I search or make another way to solve this problem.

txt file - a truncated output. Sage notebook use special commentary
tag <!--notruncate-->, so you must simply insert it before every
command, using http://math1.skku.ac.kr/wap_html:

html('<!--notruncate-->')
command_produced_big_output


> 3. String constants?
> I don't understand it.

It was my error, don't think about it.

> We consider the jsmath, but phone web browser in Korean phone service
> can't work javascript code.
> So we remove it.
> But latex is good.
> I make and test it later.

You can do LaTeX support in some minutes, because you already can sent
images to users:

1) do template:

html('<!--notruncate-->')
command_produced_some_output
latex(_)

2) latex output send to mimetex (http://www.forkosh.dreamhost.com/
mimetex.html) - a fast and simple tool, produced fine graphical
output;

3) deliver it as any another image.
Reply all
Reply to author
Forward
0 new messages