Jump to content











Photo

Remedium demonstration: dynamic apps


  • Please log in to reply
36 replies to this topic

#1 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 01:00 PM

Hello,

During my professional and free time I have been developing a platform entitled remedium. The goal of this platform is to allow simple tools to enjoy a consistent web browser interface.

Each app is defined using nothing more than a folder with a file entitled "index.bsh" a bit like PHP files work, with the exception that .bsh stands for BeanShell, a Java based scripting language (don't confuse with JavaScript).


This version of remedium provides a showcase of the platform, allowing developers to see how applications can be scripted in Java language using remedium as application server.

The LogTracker app is provided as example, it will only work on networks where an IBM Rational license server is available at a remote machine elsewhere located. The code itself is the part that will interest developers, to understand how this works underneath the hood:

- Run linux commands on remote servers using SSH
- Create graphics that can be displayed on the browser
- Store data on the CSV database
- Run operations at a given loop of time
- Create tabs inside a web page
- See how Java language is used in overall

There is a short manual file that explains some of the available features. You need to login as "admin" with password "admin" to access some tabs like "Settings" inside the logtracker app.

To access the app, you can browse to http://localhost:10101 or https://localhost if your machine allows the SSL port to be used.

To run, just double click the remedium.exe binary under windows or type "java -jar remedium.exe" under Linux or OSX.

--------

There exist many other features that remain to be documented. For example, the webget function or even the support to read the file version of DLL and EXE files without requiring Windows API. There are many nice things that can be done on top of this platform. For example, a winbuilder build on top of remedium allows other applications to interact nicely with it, using nothing more than wget or a browser.

This is where I am headed in the future.

http://code.google.c..._2011.12.14.zip

Have fun.
:cheers:

#2 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 01:14 PM

Why is the nomenclature same as http://reboot.pro/14801/ ?

#3 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 01:59 PM

It is the same platform: remedium.

In the same manner as the first demonstration, I provide an application as example. At the time, sentinel was only made available as a compiled binary. Right now I am showcasing an application that is scripted. Meaning it needs no compiler and works in a similar fashion to PHP.

Forgot adding that these web apps are also ready for cellphone browsing. Very handy if you wish to control the apps on the desktop PC from a cellphone connected on the same network right from your pocket.

A screenshot from logtracker in action (since not many people have an IBM license server around):
Posted Image


:)

#4 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 04:07 PM

It is the same platform: remedium.

I think the project description on the home page of the project is inappropriate

"remedium" is a cooperative virus defense system that aggregates information from users about files on their disks. This information is processed to expose malicious events activities.


If my understanding is correct, "remedium" is the app server where "sentinel", the virus defense system is hosted.

#5 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 04:11 PM

Yep, the virus defense part should be changed to "sentinel". At the time I wasn't really counting that development of the platform as a whole would grow so quickly to other uses.

:)

#6 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 04:13 PM

Yep, the virus defense part should be changed to "sentinel". At the time I wasn't really counting that development of the platform as a whole would grow so quickly to other uses.

Hm, That's why I got confused on the first place.

#7 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 05:16 PM

Under Windows, I double click on remedium.exe. The icon appears beside the system clock. I tried to open up the control panel from the context menu & connect to both HTTP & HTTPS ports. Nothing happened. There is Java installed on my system.

#8 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 05:51 PM

Hello,

Hmm.. When I add SSL support it broke the icon functionality. I've corrected that detail.

You can visit http://localhost:10101 directly from your browser. :)

#9 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 05:56 PM

You can visit http://localhost:10101 directly from your browser. :)

Tried earlier, not working.

#10 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 06:00 PM

In that case, check your firewall definitions. It seems that your machine is blocking Java from opening any communication port and doesn't even bring up the prompt to authorize port 10101.

:cheers:

#11 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 06:04 PM

In that case, check your firewall definitions. It seems that your machine is blocking Java from opening any communication port and doesn't even bring up the prompt to authorize port 10101.

No, on the same system, I ran your sentinel app earlier & it worked fine. The problem is somewhere else. Let me check.

#12 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 06:06 PM

Also, check the log to see if any meaningful message is available.

You can read it when launching the app from the command line or accessing http://localhost:10101/log

:)

#13 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 06:06 PM

HTTP connection is not working. HTTPS connection gives a warning whether to proceed or not due to security certificate issue. Clicking on "Proceed anyway" on chrome does not lead to anywhere else.

#14 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 06:08 PM

Also, check the log to see if any meaningful message is available.

You can read it when launching the app from the command line or accessing http://localhost:10101/log

:)





Admins only
This service is only available for administrators



#15 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 06:12 PM

This means that remedium is launched and running. I note that sometimes it is not possible to access the root URL at http://localhost:10101 while it is still possible to access the apps.

To login you can visit http://localhost/user and apply user name and password "admin".

:)

#16 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 06:16 PM

To login you can visit http://localhost/user and apply user name and password "admin".

HTTP is not working but HTTPS did. I'm dropped at





Valid login
Redirecting you to the main page..

But then it goes nowhere.

#17 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 06:17 PM

After login you can visit http://localhost:10101/logtracker

The root URL doesn't seem available on your machine, that is the main page that it tries to open after login.

If possible, run remedium from a virtual machine and it should work without these nuisances.

Otherwise we'll just be cluttering this topic.

:cheers:

#18 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 14 December 2011 - 06:17 PM

But then it goes nowhere.

I hit another "Enter" at browser's address bar & now I am at





Manage users

User

Permissions
data:application/octet-stream;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAAd0SU1FB9sJCQ0TNIy2TcMAAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAAAhtJREFUOMut1MFLKlEUx/HvnZlNqxpaiJBEoAuJVrpwqEBpE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8PLF35mGKEkV3r0FUzh9lhDdPfTV0zNxYnKcLEYWod8Yx4+eZCqiAlUhAtx3D+10M37+JsmVUTNGolDePwOzCiwC5kTZatraCdrtZcyEz8vP+fThEWEZyVLNZGCqSugeoAAp1WabChGOm1ZTkbpUcZHt488/WYtO3xANijjndJKwQJsOEdXGxWpk89qwwWjtWNO52TbFauG/vXHCrdoBbgKlRk4lV1MzouxgurzaZ2q8xdKXzPSRESwLhKLSoNLHQ4kB6Gf830C31HRlXej2jdXBv4hjYYQbEU6448U2oWUAzWV76Oqa0G2clY6x3hgAw8MHtw6/133M6xRE1Et+hV5fGAqArx+/oxGcOjYKQG8j41aYPnmVmdlruBWk14dS4MIcXLxUu99rAHh8+34AJFXl1vxitFtL9GIGYoiJ9BqJCTYOL+KthrG8Wfp23s+hPFyNPA3GTjgg1fbGwp2U/sfT9wOL/Vzde5zFdgAAAABJRU5ErkJggg== admin <td undefined"="" valign="undefined" style="width: 100px; "> admin,..public

Recent logins

User IP/DNS address Date admin localhost 2011/12/14 23:51:22

Actions
Register user | log out



#19 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 December 2011 - 08:02 PM

It is working as intended. Since you are admin, you are now viewing the admin console that allows managing users.

Too bad you can't see the root URL.

#20 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 15 December 2011 - 05:34 AM

Too bad you can't see the root URL.

  • Is it a bug? I ran "netstat -ano" & found a service is LISTENING at 127.0.0.1:10101, as expected.
  • I think, when you added the HTTPS support, HTTP support got broken.
  • Is there any application "packcaged" in your remedium download apart from "sentinel" which a novice can try out?


#21 majoowell

majoowell
  • Members
  • 5 posts

Posted 15 December 2011 - 05:45 AM

can anyone help me ..that how can i make sp2 odifying folder to sp2.cab with iexpress....

#22 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 15 December 2011 - 08:38 AM

can anyone help me ..that how can i make sp2 odifying folder to sp2.cab with iexpress....

Do you think this to be thread where discussion related to CAB files are going on? Please start a thread in the "appropriate" forum section. BTW, welocme to the community , Majoo.

#23 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 15 December 2011 - 12:39 PM

Is it a bug? I ran "netstat -ano" & found a service is LISTENING at 127.0.0.1:10101, as expected.

I don't know yet. I suspect that something in your machine is interfering with localhost. That was the reason why I asked you to run from a virtual machine as well. If you restart the application a few times and the same issue occurs, it is definitively something in your machine that is causing interference.


I think, when you added the HTTPS support, HTTP support got broken.

Sure, I am slowly correcting defects when reported. SSL was one of the features that I had to provide before the end of the past month and only now begins to be stabilized.


Is there any application "packcaged" in your remedium download apart from "sentinel" which a novice can try out?

Right now you find apps inside the "apps" folders.

To start a new app is not difficult:
- create a new folder inside the "apps" folder
- create a file entitled "index.bsh"
- add the following contents to the index.bsh file:


title = "myApplication";



onStart(){

}





onLoop(){

}



onWeb(){

}
- replace "my application" with the title that you want to use.


Basically, you are defining the skeleton methods. The onStart() are commands that get executed when remedium starts up and instantiates your application. The onLoop() is called every two seconds, nice to check the status on something (read the documentation to see how it is used) and finally the onWeb() that is called every time a user opens up the application using the web browser or webget.

To log a message, you can write:
debug("Hello World");

To change the output, you can write:
output = "Hello World";


All of these things are covered in more detail at the documentation pdf. The sdk app is also empty and can be used as playground if you wish to make modifications.

:cheers:

#24 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 15 December 2011 - 04:08 PM

2011/12/14 23:31:24 [manager][routine] Process Manager is running
2011/12/14 23:31:24 [system][info] Using 10101 as database storage folder (10101)
2011/12/14 23:31:24 [network][routine] Changing from the default port number to port 10101
2011/12/14 23:31:24 [network][routine] Network system has started at port 10101
2011/12/14 23:31:24 [manager][routine] Added 'system' to the list
2011/12/14 23:31:24 [system][info] Writing our individual ID as '417.169.499'
2011/12/14 23:31:24 [manager][routine] Added 'system/trayicon' to the list
2011/12/14 23:31:24 [manager][routine] Added 'user' to the list
2011/12/14 23:31:24 [manager][routine] Added 'log' to the list
2011/12/14 23:31:24 [system][routine] Ready for action!
2011/12/14 23:31:24 [user][info] Starting the User component
2011/12/14 23:31:24 [network][info] Listening for requests on port 10101
2011/12/14 23:31:25 [manager][routine] Added 'main' to the list
2011/12/14 23:31:25 [main][debug] Allowing component 'file' to start
2011/12/14 23:31:25 [main][debug] Allowing component 'user' to start
2011/12/14 23:31:25 [main][debug] Allowing component 'manager' to start
2011/12/14 23:31:25 [main][debug] Allowing component 'license' to start
2011/12/14 23:31:25 [main][debug] Allowing component 'egosuser' to start
2011/12/14 23:31:25 [manager][routine] Added 'file' to the list
2011/12/14 23:51:22 [user][COMPLETED] processLogin: User 'admin' is logged
2011/12/14 23:53:14 [user][ERROR] authenticateUser failed: 'null' does not exist
2011/12/14 23:53:14 [user][ERROR] processLogin failed: Credentials are not valid
2011/12/15 21:29:30 [system/trayicon][info] Opening the browser window

Does this mean anything to you?

#25 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 15 December 2011 - 04:11 PM

After login you can visit http://localhost:10101/logtracker

Nothing happens. Please note that it is not the root URL. Can anyone please confirm whether this distribution of "remedium" is working for him/her as expected?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users