FrozenIce Web

Web layout engine and web browser in Python

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »

71 Replies - 3715 Views - Last Post: 22 October 2009 - 06:16 PM

#16 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 11:23 AM

View PostJavaNerd, on 11 Oct, 2009 - 12:04 PM, said:

View Postprogramble, on 11 Oct, 2009 - 08:50 AM, said:

JavaNerd:
Why don't you get the latest source code and try to familiarize yourself with it? I will be adding more comments, etc in the future so that it is more understandable.


Way ahead of you :) Downloaded the source code and was looking at it this morning. Is there a way to test it out yet? Was trying at it, but I couldn't get it to work.


Well, you can test the htmlDomParser, but it's really quite buggy (need to add debugger so I can fix it)

Here is an example session in python to test it: (Started in FrozenIce directory)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dom
>>> x = dom.parser.htmlDomParser()
>>> x.feed("<html>Some HTML</html>")
>>> dom.model.print_nodes_recursive(x.root_node)
 [dom.nodes.htmlTagNode] html : None (None)
- [dom.nodes.htmlTextNode] None : Some HTML (None)
>>> 



This is just a test in which you create a parser, feed it some HTML, and then print out the resulting node tree.
Was This Post Helpful? 0
  • +
  • -

#17 Theaegd  Icon User is offline

  • Hater & Lover

Reputation: -125
  • View blog
  • Posts: 944
  • Joined: 15-August 09

Re: FrozenIce Web

Posted 11 October 2009 - 11:32 AM

@javanerd
like you havnt said stupid s**t in forums before to!
ANYWAY
this wont be able to run as its own exe, cuz its an interpreted language right?

This post has been edited by Theaegd: 11 October 2009 - 11:32 AM

Was This Post Helpful? 0
  • +
  • -

#18 JavaNerd  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 22-December 08

Re: FrozenIce Web

Posted 11 October 2009 - 11:32 AM

View Postprogramble, on 11 Oct, 2009 - 10:23 AM, said:

View PostJavaNerd, on 11 Oct, 2009 - 12:04 PM, said:

View Postprogramble, on 11 Oct, 2009 - 08:50 AM, said:

JavaNerd:
Why don't you get the latest source code and try to familiarize yourself with it? I will be adding more comments, etc in the future so that it is more understandable.


Way ahead of you :) Downloaded the source code and was looking at it this morning. Is there a way to test it out yet? Was trying at it, but I couldn't get it to work.


Well, you can test the htmlDomParser, but it's really quite buggy (need to add debugger so I can fix it)

Here is an example session in python to test it: (Started in FrozenIce directory)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dom
>>> x = dom.parser.htmlDomParser()
>>> x.feed("<html>Some HTML</html>")
>>> dom.model.print_nodes_recursive(x.root_node)
 [dom.nodes.htmlTagNode] html : None (None)
- [dom.nodes.htmlTextNode] None : Some HTML (None)
>>> 



This is just a test in which you create a parser, feed it some HTML, and then print out the resulting node tree.


Awesome, thanks. I'll tinker with it a bit :)
Was This Post Helpful? 0
  • +
  • -

#19 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 11:37 AM

View PostTheaegd, on 11 Oct, 2009 - 12:32 PM, said:

@javanerd
like you havnt said stupid s**t in forums before to!
ANYWAY
this wont be able to run as its own exe, cuz its an interpreted language right?


That might be possible some time in the future, when projects that aim for that kind of thing are more advanced. I am waiting for an awesome Python compiler to be made :D

Until then, yes, it is an interpreted language and needs the Python interpreter installed. On the other hand, it being an interpreted language gives it the potential to be multi-platform.
Was This Post Helpful? 0
  • +
  • -

#20 Theaegd  Icon User is offline

  • Hater & Lover

Reputation: -125
  • View blog
  • Posts: 944
  • Joined: 15-August 09

Re: FrozenIce Web

Posted 11 October 2009 - 11:43 AM

Well, i do have the interprter installed so I could test it when you have a beta... ill keep an open mind i soppose
Was This Post Helpful? 0
  • +
  • -

#21 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 11:54 AM

View PostTheaegd, on 11 Oct, 2009 - 12:43 PM, said:

Well, i do have the interprter installed so I could test it when you have a beta... ill keep an open mind i soppose


Needing the Python interpreter is just the same as needing the Java Runtime for Java apps. Of course you will also need pyGTK and such, but that seems surprisingly simple to get working on Windows. I know that Amrykid has successfully install pyGTK on Windows for testing of a different project.
Was This Post Helpful? 0
  • +
  • -

#22 JavaNerd  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 22-December 08

Re: FrozenIce Web

Posted 11 October 2009 - 11:59 AM

Hey I'm finding bugs like crazy lol, do you want me to document them all and try to fix them?
Was This Post Helpful? 0
  • +
  • -

#23 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 12:05 PM

Document them all, hold off fixing them until I get the debugger working so that we can see what's going wrong easier. :D
Was This Post Helpful? 0
  • +
  • -

#24 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 12:16 PM

Since we don't have a bug report system yet, I made a maskeshift bug page on the project wiki. You should be able to edit it and add some bugs.
http://gitorious.org...nice/pages/Bugs
Was This Post Helpful? 0
  • +
  • -

#25 JavaNerd  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 22-December 08

Re: FrozenIce Web

Posted 11 October 2009 - 12:19 PM

View Postprogramble, on 11 Oct, 2009 - 11:05 AM, said:

Document them all, hold off fixing them until I get the debugger working so that we can see what's going wrong easier. :D


Awesome, can't wait :)

and just to see I got this right...

[dom.nodes.htmlTagNode] html : None (None) <-- html tag start detected
[dom.nodes.htmlTextNode] None : Some HTML (None) <-- html tag end detected

Am I correct or totally off haha.


View Postprogramble, on 11 Oct, 2009 - 11:16 AM, said:

Since we don't have a bug report system yet, I made a maskeshift bug page on the project wiki. You should be able to edit it and add some bugs.
http://gitorious.org...nice/pages/Bugs


I'll document all the bugs I found so far.
Was This Post Helpful? 0
  • +
  • -

#26 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 12:22 PM

View PostJavaNerd, on 11 Oct, 2009 - 01:19 PM, said:

View Postprogramble, on 11 Oct, 2009 - 11:05 AM, said:

Document them all, hold off fixing them until I get the debugger working so that we can see what's going wrong easier. :D


Awesome, can't wait :)

and just to see I got this right...

[dom.nodes.htmlTagNode] html : None (None) <-- html tag start detected
[dom.nodes.htmlTextNode] None : Some HTML (None) <-- html tag end detected

Am I correct or totally off haha.


The second one is a Node for the text in between <html> and </html>. The end of tags are not really shown, the parser simply moves up one level in the tree hierarchy. Since there are no tags after this, it is not visible at all in this case.

BTW have you ever used IRC? It would be easier for us to communicate through IRC.
Was This Post Helpful? 0
  • +
  • -

#27 JavaNerd  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 22-December 08

Re: FrozenIce Web

Posted 11 October 2009 - 12:28 PM

View Postprogramble, on 11 Oct, 2009 - 11:22 AM, said:

View PostJavaNerd, on 11 Oct, 2009 - 01:19 PM, said:

View Postprogramble, on 11 Oct, 2009 - 11:05 AM, said:

Document them all, hold off fixing them until I get the debugger working so that we can see what's going wrong easier. :D


Awesome, can't wait :)

and just to see I got this right...

[dom.nodes.htmlTagNode] html : None (None) <-- html tag start detected
[dom.nodes.htmlTextNode] None : Some HTML (None) <-- html tag end detected

Am I correct or totally off haha.


The second one is a Node for the text in between <html> and </html>. The end of tags are not really shown, the parser simply moves up one level in the tree hierarchy. Since there are no tags after this, it is not visible at all in this case.

BTW have you ever used IRC? It would be easier for us to communicate through IRC.


Okay it makes more sense now :) I heard of it, but never used it before.
Was This Post Helpful? 0
  • +
  • -

#28 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 12:34 PM

I will PM you with instructions for IRC if you want.

I am really meaning to get the debugger stuff done, but I have some other stuff to do, busy, busy. I'll get it done as soon as I can.
Was This Post Helpful? 0
  • +
  • -

#29 JavaNerd  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 22-December 08

Re: FrozenIce Web

Posted 11 October 2009 - 12:39 PM

View Postprogramble, on 11 Oct, 2009 - 11:34 AM, said:

I will PM you with instructions for IRC if you want.

I am really meaning to get the debugger stuff done, but I have some other stuff to do, busy, busy. I'll get it done as soon as I can.


Okay that be good. Take your time man, I'm willing to stick around.
Was This Post Helpful? 0
  • +
  • -

#30 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: FrozenIce Web

Posted 11 October 2009 - 01:11 PM

I just re-wrote the debugger and now I'm going to add debugging to the parser. During testing, you will have to dom.parser.debugging.debug_flag = True

EDIT:
Added DEBUG outputs, and using those fixed the bug. Pushed all 3 commits to Gitorious.

This post has been edited by programble: 11 October 2009 - 01:38 PM

Was This Post Helpful? 0
  • +
  • -

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »