This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lukasloko's profile picture

Browser ,Web Server and DNS

Started by lukasloko, 24 October 2015 - 03:30 PM
lukasloko #1
Posted 24 October 2015 - 05:30 PM
This is my first project and I'm a NEWBIE on programming so be patient .

The Browser:

Is the client side program that acess and process all the information that the servers send to it,

Spoiler*It have a simple GUI
*Home, favorite and refresh buttons that save sites to be accesed later.
*Come back and foward buttons (**not work properly yet**)
*The exit button (X)
*Super basic animation support that have 3 frames (4.1)
*Infinite animation Support ( added on 4.2)
*Infinite links on web basic support
*Basic package sender support
*Do not support scroll yet ( 16 lines are supported )
*Download Support( with warning)

The web Server:

Is the server that send the information to the client browser.

Spoiler*Other pages support( like myserver/download)
*Package receive and process of it (**you need to create what to do after**)
*Basic server send and receive already done
*Dns protection that can be edited to be deactivated (block connection of the ids not listed)

The DNS Server:

Is the server that receive from the browser the domain name and the info, process into a id, and resend the info to it

Spoiler*Blocked id support (need to be edited by you)
*Add and link the domain name with an id (need to be edited by you)
*Basic dns process already done
*Redirect with additional pages support(like yoursite/mysite)

How it works:

SpoilerThe browser just display what the requested site send to it, but to use the supported features of it ( like animation, links and package send ), you need to edit the web pages in the web server.

After downloading the webServer on a computer , you will need to create a file called index ( edit index ), and it will be the home page ( you cannot open the webServer without it), after doing this you will need to write whatever you want in it.

Add other pages: To add additional page you can just create a file with the name of it in the folder of the WebServer ( like edit otherpage, that will be acessed by write yourserver/otherpage in the browser)

Add download content: To do this simple make a page with any name, write on it (without ") "–browser.download=1" and when the page be acessed the download warn will be show.

Add links and packages: To do it you will need to make an info page, that will have the info of the links position , the type of it (package or link ) the background page ( that will be showed) and to what page the browser will go if the link being clicked or to where send the package to be processed. ( more info in the "links and package tutorial page" on the bottom of the page)

Add animation: To do an animation you will need to some pages, that now can be infinity , ( that will be the frames ) and an info page that will be acessed and processed, on the info page you will need to refer the frames and if it will be exec twice.

Files:
Animation tutorial file: http://pastebin.com/M3Qu5xzp (4.2)
Link tutorial file : http://pastebin.com/QEgH3bLA
Browser: http://pastebin.com/jUHvvXV9 (4.2)
DNS : http://pastebin.com/106FGE59
WebServer : http://pastebin.com/7LbZkxZc

SpoilerAnimation tutorial file: http://pastebin.com/jPMBkUUv (outdated [4.1])
Browser : http://pastebin.com/R79VWam9 (4.1)

Screenshots:

[attachment=2425:Browser.png]

Video:

(**comming soon, maybe**)

Terms:

You can make videos with it , make alterations and whatever you want, but please, refer this topic if you can,
You can and should use this to learn and make your own project without refer me, just refer me if you are using the program that I do.
Please, if you think I do something wrong , help me, this is a community and we are here for this.
Contact (skype): lukasloko7

PS:

I am not american, so sorry for my bad english

If you can , comment what you think about this, give me hints :D/>.
Edited on 02 December 2015 - 01:44 PM
Waitdev_ #2
Posted 25 October 2015 - 01:17 AM
for a first program? this is AWESOME! with my first program, it wasn't really that good compared to what you can do ;)/>
lukasloko #3
Posted 25 October 2015 - 01:21 AM
Thank you :D/> , i learned here in this forum to do what i have did
lukasloko #4
Posted 25 October 2015 - 09:55 PM
for a first program? this is AWESOME! with my first program, it wasn't really that good compared to what you can do ;)/>
can you give me any hints about my program, you have already tested it ?
Edited on 25 October 2015 - 08:56 PM
Konlab #5
Posted 08 November 2015 - 12:36 PM
Wow! This is amazing!
A few tips:
Use locals, they are faster
(You will have to write functions in correct order for that: if a calls b, b must be defined before a)

You can do this:
local s = sleep
Instead of this:
local function(…) return sleep(…) end

You can autowrap modem by peripheral.find(type)

You can do:
if fs.exists("file") then,
Instead of
if fs.exists("file") == true then
Creator #6
Posted 08 November 2015 - 12:51 PM
for a first program? this is AWESOME! with my first program, it wasn't really that good compared to what you can do ;)/>

If were talking about first programs, mine was a menu with touch support.

Else, very nice projects and be sure to follow the tips Konlab gave you.
Konlab #7
Posted 08 November 2015 - 01:10 PM
for a first program? this is AWESOME! with my first program, it wasn't really that good compared to what you can do ;)/>/>/>

If were talking about first programs, mine was a menu with touch support.

Else, very nice projects and be sure to follow the tips Konlab gave you.
mine was a dialog box API called diaAPI:
http://www.computercraft.info/forums2/index.php?/topic/17776-diaapi-dialog-boxes-simple/
(warning: i didnt know english, i dont know english now too, its only my 4th language)
Edited on 08 November 2015 - 12:10 PM
lukasloko #8
Posted 15 November 2015 - 02:43 PM
Thanks for help , i ill folow the tips :D/>
lukasloko #9
Posted 02 December 2015 - 02:48 PM
The new animation tutorial file for the browser 4.2 with the infinity frames feature is here :D/> http://pastebin.com/M3Qu5xzp

I really want to those files help with the setup of the features of my programs , I hope you guys understand how to make every thing on the browser to work properly. So I'ill make a question, do anyone here tested the program already?????