Teacher not available times - Button for swap X with empty

Started by infoo_, February 21, 2025, 06:05:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

I just released the new version with this. Thank you for the suggestions!

infoo_

Thank you, @Liviu Lalescu you did an excellent work for 7.0.5!!

Maybe you can move further :) And see if the following can be implemented (with Qt I guess):

The possibility of dragging the mouse for multiple selection instead of single clicking on every adjacent slot of teacher not available times table (and possibly other tables with X and empty):

You cannot view this attachment.

It should also work in every direction (not only vertically)

(Sorry if the quality is bad, the max limit size is 512 kb :()

Liviu Lalescu

You are welcome, @infoo_ ! Thank you as well! :)

I will think of this, but now I am tired :)

@Volker Dirr , and other forum users, should we allow attachments with 1 MB or even more?

Volker Dirr

Quality is ok. (In fact that is also only 270 kb).
If you want to do the same just with a video, then it is quickly many MB large.
I fear a bit that too large attachments will flood your server too fast and other guys donate to less. You always need to pay the server. If you must pay for larger servers, then quickly all donations are used to pay the server only.
I thinks like this (videos) can be added as link to YouTube, Vimeo, google, dropbox and a lot of other resources.

Liviu Lalescu


infoo_

In 2025, many videos are larger than past years. I think duplicating max limit will not impact in server capacity, since old videos remain the same, and the new attachments that can be long can be uploaded to YouTube which is always an option, as Volker said. The "grey area" are videos like this with few seconds.

I exported it as mp4 and when converted to gif (because we can't upload mp4 files) it was larger than mp4 ??? So I had to use an online compressor for producing ~256 kb video

It is my opinion

Liviu Lalescu

@Volker Dirr , should we allow mp4 extension? Is it safe?

@infoo_ , should we also consider allowing other extensions?

Volker Dirr

mp4 is a container that could include a lot of stuff (audio/video). So in fact a bit more unsafe than gif.
The size was only 256kb (mp4) vs 262kb (gif). I think in that case you don't need to allow mp4. In normal case most mp4 files are much larger (because normally mp4 files contains much longer audio/video) while gif are normally much smaller (since you normally don't do long video with it). So in my opinion it doesn't make much sense to allow mp4.

infoo_

Quote from: Liviu Lalescu on February 24, 2025, 07:37:34 PM@infoo_ , should we also consider allowing other extensions?

This is as you wish. In other smf forums mp4's can't be uploaded, and others it can.

I don't see any security risk if other forums allow this, but if you have a particular reason not to allow it, keep blocking

Quote from: Volker Dirr on February 24, 2025, 07:51:03 PMThe size was only 256kb (mp4) vs 262kb (gif). I think in that case you don't need to allow mp4.

I think that most screen recorders do not allow exporting in gif format. That's why I think many users prefer mp4 because of its wide use and it is faster than using an additional tool

Volker Dirr

In my opinion the security is not the main problem, since it in fact as insecure as zip files. see https://www.heise.de/select/ct/2025/5/2502316093378550821
In my opinion the main problem is the size of videos. Not all videos will be as short as yours. They will be much longer and with audio also. There are too less guys donating. Liviu can't use all donations to pay the web server. FET is in fact his full time job and if you count the donations, subtract the money for server, ... then you will see that it is currently in fact very very bad paid job. No matter what other job he will do, even slaves are paid better, since they got at least a bad roof and some food for free.

infoo_

Quote from: Volker Dirr on February 24, 2025, 09:19:00 PMThey will be much longer and with audio also. There are too less guys donating. Liviu can't use all donations to pay the web server. FET is in fact his full time job and if you count the donations, subtract the money for server, ... then you will see that it is currently in fact very very bad paid job. No matter what other job he will do, even slaves are paid better, since they got at least a bad roof and some food for free.

I agree

Liviu Lalescu

I added your suggestion in the TODO, but I think it is too difficult for me (dragging the X's).