Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-03

Test this please

16 messages · 11 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

Hey guys. I wrote this web tool a while ago which emulates a desktop application in a few ways and wanted some feedback.

http://storage.codebot.org

login: tester
password: funkytown

The tool is a private cloud file server application. People will be able to get the source and configure it on their web server so that they can backup/share/transfer files to themselves or among friend. The admin account can manage users, their rights, and storage limits.

What I've tried to do with this app is emulate a desktop application a bit, which might be similar to a desktop app written with Lazarus.

Features:

You can drag and drop files or click to browse for uploads. Large uploads can be resumed if you close the page before the upload completes. Uploads can be paused and resumed.

The selection in file list can be navigated with up down and page up down arrow keys. Shift multi selects both with the mouse and keyboard. Control can toggle select on individual items.

Some files including video and audio can be viewed. It has code for http stream allowing seeking to positions in large video files without the need to download. Multi select can be used to create play lists. If you select a group of songs, then open the song and play it will continue playing the next song when the current song is done.

Enter selects items/ Function keys F2 renames inline, F3 search filters, F4 gives the option to turn sharing on/off (works with multiselect). File columns can be sorted.

The front end code was written using my own typescript library.

Any feedback would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180326/7779ff06/attachment.html>

Reply by email

Santiago A.
to Anthony Walter
Anthony Walter wrote 41 lines
Hey guys. I wrote this web tool a while ago which emulates a desktop application in a few ways and wanted some feedback. http://storage.codebot.org login: tester password: funkytown The tool is a private cloud file server application. People will be able to get the source and configure it on their web server so that they can backup/share/transfer files to themselves or among friend. The admin account can manage users, their rights, and storage limits. What I've tried to do with this app is emulate a desktop application a bit, which might be similar to a desktop app written with Lazarus. Features: You can drag and drop files or click to browse for uploads. Large uploads can be resumed if you close the page before the upload completes. Uploads can be paused and resumed. The selection in file list can be navigated with up down and page up down arrow keys. Shift multi selects both with the mouse and keyboard. Control can toggle select on individual items. Some files including video and audio can be viewed. It has code for http stream allowing seeking to positions in large video files without the need to download. Multi select can be used to create play lists. If you select a group of songs, then open the song and play it will continue playing the next song when the current song is done. Enter selects items/ Function keys F2 renames inline, F3 search filters, F4 gives the option to turn sharing on/off (works with multiselect). File columns can be sorted. The front end code was written using my own typescript library. Any feedback would be appreciated.

Nice interface.

Some points:

Wrong password doesn't gives an error, simple ignores it no "Invalid user or password".

Downloading videos is not posible. When I tried to reproduce it I got an error "No compatible video mime format", Maybe my browser fault, but couldn't dowload it either.

I suppose this is realtaed to freepascal some way. Isn't it?

Saludos Santiago A. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180326/03888743/attachment.html>

Reply by email

guy barbier
to Santiago A.

For me it doesn't work. Only the sign in page and nothing more.

2018-03-26 13:47 GMT+02:00 Santiago A. via Lazarus <

Show quoted text 72 lines
: El 26/03/2018 a las 6:22, Anthony Walter via Lazarus escribió: Hey guys. I wrote this web tool a while ago which emulates a desktop application in a few ways and wanted some feedback. http://storage.codebot.org login: tester password: funkytown The tool is a private cloud file server application. People will be able to get the source and configure it on their web server so that they can backup/share/transfer files to themselves or among friend. The admin account can manage users, their rights, and storage limits. What I've tried to do with this app is emulate a desktop application a bit, which might be similar to a desktop app written with Lazarus. Features: You can drag and drop files or click to browse for uploads. Large uploads can be resumed if you close the page before the upload completes. Uploads can be paused and resumed. The selection in file list can be navigated with up down and page up down arrow keys. Shift multi selects both with the mouse and keyboard. Control can toggle select on individual items. Some files including video and audio can be viewed. It has code for http stream allowing seeking to positions in large video files without the need to download. Multi select can be used to create play lists. If you select a group of songs, then open the song and play it will continue playing the next song when the current song is done. Enter selects items/ Function keys F2 renames inline, F3 search filters, F4 gives the option to turn sharing on/off (works with multiselect). File columns can be sorted. The front end code was written using my own typescript library. Any feedback would be appreciated. Nice interface. Some points: Wrong password doesn't gives an error, simple ignores it no "Invalid user or password". Downloading videos is not posible. When I tried to reproduce it I got an error "No compatible video mime format", Maybe my browser fault, but couldn't dowload it either. I suppose this is realtaed to freepascal some way. Isn't it? -- Saludos Santiago A. -- _______________________________________________ Lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180326/a7d3d547/attachment.html>

Reply by email

Anthony Walter
to Santiago A.: Nice interface. Some points: Wrong password doesn't gives an error, simple ignores it no…

Santiago,

Thanks for the feedback. Regarding the failed login, my initial though was to not add a "Failed login" dialog for security purposes. That is to not tell people why nothing happened in an attempt to better secure your files. Several people have already mentioned this problem, so I may add a failed login dialog or message.

Regarding the Lazarus connection, I frequently post here about fpc and lazarus, but also sometimes post other programming work if I feel it overlaps with Lazarus. In this case I am attempting to write a webpage that acts like a desktop app, something for which I'd always use Lazarus as my first choice, that is desktop development. With this app I've made some efforts to carry over desktop user interactions. Shift and control click selection, some dialog looking things, inline renaming of files, arrow key moves the current selection, and what not. As such I am interested in the feedback of desktop developers and thought lazarus people might have a perspective I wanted for feedback.

Anyhow thanks for your opinions. They are appreciated. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180326/6cd04f65/attachment.html>

Reply by email

Landmesser John
to Anthony Walter: Hey guys. I wrote this web tool a while ago which emulates a desktop application in a few…

works for Win XP SP2 and Google-Chrome!

Anthony Walter wrote 41 lines
Hey guys. I wrote this web tool a while ago which emulates a desktop application in a few ways and wanted some feedback. http://storage.codebot.org login: tester password: funkytown The tool is a private cloud file server application. People will be able to get the source and configure it on their web server so that they can backup/share/transfer files to themselves or among friend. The admin account can manage users, their rights, and storage limits. What I've tried to do with this app is emulate a desktop application a bit, which might be similar to a desktop app written with Lazarus. Features: You can drag and drop files or click to browse for uploads. Large uploads can be resumed if you close the page before the upload completes. Uploads can be paused and resumed. The selection in file list can be navigated with up down and page up down arrow keys. Shift multi selects both with the mouse and keyboard. Control can toggle select on individual items. Some files including video and audio can be viewed. It has code for http stream allowing seeking to positions in large video files without the need to download. Multi select can be used to create play lists. If you select a group of songs, then open the song and play it will continue playing the next song when the current song is done. Enter selects items/ Function keys F2 renames inline, F3 search filters, F4 gives the option to turn sharing on/off (works with multiselect). File columns can be sorted. The front end code was written using my own typescript library. Any feedback would be appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180326/4f8b35a6/attachment-0001.html>

Reply by email

R0b0t1
to Anthony Walter: Hey guys. I wrote this web tool a while ago which emulates a desktop application in a few…
Anthony Walter wrote
Any feedback would be appreciated.

Bad:

1) The webpage is fixed width, or has a minimum width.
2) I can't view videos, but this may be me.
3) The popover for viewing file content could be replaced with opening a browser window (usually a tab).
4) Not as shiny as some web services.

Good:

1) It works!
2) Doesn't look horrible (i.e. bare HTML).
3) Keyboard navigation, keyboard shortcuts. Maybe add some more in this regard? I find this is what I miss the most with web content.

Cheers,
R0b0t1

Reply by email

Unknown author
to Anthony Walter: Thanks for the feedback. Regarding the failed login, my initial though was to not add a…
Anthony Walter wrote 7 lines
Santiago, Thanks for the feedback. Regarding the failed login, my initial though was to not add a "Failed login" dialog for security purposes. That is to not tell people why nothing happened in an attempt to better secure your files. Several people have already mentioned this problem, so I may add a failed login dialog or message.

that's why the response says "invalid user or password"... you can't tell which one is bad...

NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.*

Reply by email

Kostas Michalopoulos
to Anthony Walter

Is this written in Lazarus/FreePascal? If it is a single-bin program (CGI?) i can drop somewhere in my VPS it would be awesome because i was trying to make something like that a while ago (but got bored :-P).

It seems to work fine, but my only request is to allow for "untyped" URLs, ie instead of /texts/, /images/, etc use /files/ or something generic so i can - for example - upload an HTML file that refers to other files. For example i uploaded foo.html that tries to refer to foo.png (which i also uploaded) but it doesn't work:

https://storage.codebot.org/tester/texts/foo.html

This could be an option. Also for bonus credits, add an option to upload a zip file and have it being decompressed in a (sub)directory.

On Sat, Mar 31, 2018 at 3:17 PM, Anthony Walter via Lazarus <

Show quoted text 14 lines
wrote: > pdf is not associated. I am not sure if pdf is previewable in a browser except maybe through a frame? -- _______________________________________________ Lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180331/17b97fa4/attachment.html>

Reply by email

Anthony Walter
to Kostas Michalopoulos

Kostas,

It's written in C# and an ASP.NET application. It's easy enough to setup on Windows, Linux, or even on a Raspberry Pi. The instance I linked originally is actually running on an Amazon micro EC2 instance.

For those using Debian based Linux, getting ASP.NET running on Apache is as simple as:

sudo apt install apache2 mono-complete libapache2-mod-mono mono-apache-server4
sudo a2enmod mod_mono_auto
sudo service apache2 restart

After than you simply drop my project into your public /var/www/html/, navigate to http://localhost, and everything will work.

I am adding a few more nice features like a graph of user activity for administrators and some installation/usage guides to explain what the project is and is not, and then I'll be posting the project plus all its source to my gihhub account. Regarding enhancements, yes I am open to anything, but I want get it published with features and documentation I mentioned it first before I start adding more enhancements such as the ones you were suggested (which were great btw).

And finally, to all about the source code and implementation:

This project is based on my existing C# library
<https://github.com/sysrpl/Codebot.Sharp> and Typescript library <https://github.com/sysrpl/Codebot.Typescript> already on github. No Webforms, no MVC, no Bootstrap, no jQuery, or other frameworks are used.

Here is the source code to the actual home page of the application:

https://pastebin.com/qrXz3t2S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180331/8c0770f9/attachment.html>

Reply by email