FET Forum

FET Support (English) => Get Help => Topic started by: Cyrus Ireri on February 15, 2024, 05:29:34 AM

Title: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on February 15, 2024, 05:29:34 AM
Is it possible to have teachers names and code be added on fet whereby the name will appear on the Teacher's timetables while codes will be on Student's timetables?It can be of help more so while dealing with a large number of teachers and you wish to issue printed timetables
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on February 15, 2024, 06:07:40 AM
I added this in the TODO. Unfortunately, it is now complicated, since it was not thought of at from the beginning.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on February 15, 2024, 06:12:31 AM
Okay.How does hide full teachers work?
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on February 15, 2024, 06:17:20 AM
I think only in Activity planning.

You have a Settings item to hide the teachers in the timetables.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on April 04, 2024, 09:24:14 AM
Quote from: Liviu Lalescu on February 15, 2024, 06:07:40 AMI added this in the TODO. Unfortunately, it is now complicated, since it was not thought of at from the beginning.

I look forward to that time when this will be a reality.It will really help
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on April 04, 2024, 11:12:14 AM
I am sorry, but it would be a titanic task.

I might be interested if properly sustained financially.

But can't you use teachers' codes (short names) everywhere?
Title: Re: TEACHERS NAMES & CODES
Post by: Vangelis Karafillidis on April 04, 2024, 02:38:41 PM
Quote from: Cyrus Ireri on February 15, 2024, 05:29:34 AMIs it possible to have teachers names and code be added on fet whereby the name will appear on the Teacher's timetables while codes will be on Student's timetables?It can be of help more so while dealing with a large number of teachers and you wish to issue printed timetables
If I understand correctly your problem:
It seems that you need a way to replace the teachers names in the students' timetables. You can use sed for this task. With sed you can replace the teachers names with their respective "codes", using the html files from the fet-results folder. Sed can work in batch mode for making these replacements.
https://www.gnu.org/software/sed/manual/sed.html (https://www.gnu.org/software/sed/manual/sed.html)
https://gnuwin32.sourceforge.net/packages/sed.htm (https://gnuwin32.sourceforge.net/packages/sed.htm)
After modifying the html file(s) with sed, you can edit the html file with LibreOffice Writer (for example, you could use other similar applications as well), and print the timetables.

Vangelis
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on April 04, 2024, 10:54:06 PM
Thats too much.Lets just continue mastering teachers code
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 07:42:52 PM
Quote from: Liviu Lalescu on April 04, 2024, 11:12:14 AMI am sorry, but it would be a titanic task.

I might be interested if properly sustained financially.

But can't you use teachers' codes (short names) everywhere?

I would love to hear more on the part of finances since this is a major aspect i would really really love to see and use.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 07:48:12 PM
Sample class and teachers timetables generated with asc with teachers name appearing on teacher's timetable but codes on the class timetables.This one thing makes it an outstanding aspect
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 07:54:10 PM
Quote from: Cyrus Ireri on June 09, 2024, 07:48:12 PMSample class and teachers timetables generated with asc with teachers name appearing on teacher's timetable but codes on the class timetables.This one thing makes it an outstanding aspect

Plus writing the names of breaks and lunch
Title: Re: TEACHERS NAMES & CODES
Post by: Volker Dirr on June 09, 2024, 08:27:49 PM
Replacing the names should be possible with css.
So like here:
https://stackoverflow.com/questions/7896402/how-can-i-replace-text-with-css

Naming the breaks will be difficult, since FET breaks are more flexible and can change the hour. So it will be impossible to span them.

BTW: Those hours are not allowed in Germany, since the students can't swap a room in 0s. We always need time to swap the room. If we do it like that, we will get trouble, since they will complain that the teachers work less.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 08:37:46 PM
There is nothing that can be done on fet itself without going through other routes
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 08:39:55 PM
You mentioned something to do with finances
Title: Re: TEACHERS NAMES & CODES
Post by: Volker Dirr on June 09, 2024, 09:47:31 PM
You mean implemented into the FET interface.
Yes, that must be coded. Sadly a boring task. I implement features that I need myself or that make fun if i code them. But I don't have time to code other stuff. Sadly I must work to earn money, so in fact I also haven't unlimited time to code.
But yes, every time if there are guys donating this project, then it will be much easier for Liviu (or me) to code new stuff. Well, our dream is that there are enough donations that we could code the whole day. But sadly that is currently impossible, since most guys don't help or donate. I must sadly earn my money with an other job. That is also why you must pay for software like asc and that is why that tools are maybe a bit better in some points than fet. People pay money to the asc coders and so the coders can always code. They are not coding only in spare time for fun.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 09:53:52 PM
I understand.I wish to say that fet is by far better than asc.It has a looooooong way to go.Now,which kind of donation would contribute to you to do the coding to effect the issue at hand?
Title: Re: TEACHERS NAMES & CODES
Post by: Volker Dirr on June 09, 2024, 09:58:53 PM
I must admit, that i am bad in the GUI stuff.
It is always a bit difficult to estimate how long we need to code it.
Sometimes I can code 100 lines of code in a few minutes and everything is running without a single bug.
But sometimes only a single line of code can take hours.

Liviu, what do you estimate in this case?
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 10:09:20 PM
Lets hear what Liviu will say
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 09, 2024, 10:44:28 PM
Hello, sorry for not writing sooner, but I needed to think.

Thank you, Cyrus, for your suggestions and kind words!

I am always interested into the best for FET, and so is Volker. I am willing to try to code a better data structure, for instance for a teacher include name, surname, or other values. Unfortunately, this was not thought of from the start and now maybe a complete rewrite of big portions is needed. Also, I am willing to try to write a better timetables output/print/view, together with Volker.

It is easy coding compared to the algorithm, I must admit, but also boring, tedious, and critically error-prone. And also not my best area of experience.

Since FET started, I said that I would be happy if I got 10% of the revenue the competition makes. This is still valid. Or, put in another way, maybe around 1 euro per month from each user/institution that uses FET.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 10:50:27 PM
Great.Some of us would really love to appreciate your effort for such an improvement that would mean alot to me personally.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 10:55:59 PM
My concern arise when you have to deal with quite a number of teachers and don't want to strain mastering their codes.You wish codes to appear at class timetables but personal copies to have their names
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 09, 2024, 10:56:28 PM
Thank you, Cyrus, you are kind! Unfortunately, very few were/are interested.
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 09, 2024, 10:59:45 PM
Indeed. There are many nice improvements possible, but they take time and resources. Unfortunately, as I said, very few users are interested in supporting FET.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 11:03:32 PM
Quote from: Liviu Lalescu on June 09, 2024, 10:56:28 PMThank you, Cyrus, you are kind! Unfortunately, very few were/are interested.

Welcome.I'm more than willing to support you in this since i know what it means.I was working on a 12 stream school (form 1-4 12 classes) with 106 teachers and i can assure you,i had to have code followed by teachers name of the teacher's data.All was well but as for the class and master timetables,i had to use custom scale to fill in an a4 paper in lascape since it could spill on the next pages.If codes were the only one appearing on the two,things would be better
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 11:07:04 PM
Quote from: Liviu Lalescu on June 09, 2024, 10:59:45 PMIndeed. There are many nice improvements possible, but they take time and resources. Unfortunately, as I said, very few users are interested in supporting FET.

How many Euros would be okay for you to work on this?
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 09, 2024, 11:22:06 PM
The time to make these major internal changes might be measured in a few months; I am not sure. Maybe less. Maybe a month. I already wrote my price; unfortunately my price is very high if you think of only a few institutions to contribute for this special coding.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 11:42:47 PM
Was asking to see if i can appreciate since paying is costly for initiative to make the changes.
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 09, 2024, 11:48:37 PM
Absolutely no problem, Cyrus! You are a useful user, and made very good suggestions on important new recent improvements! And you are a kind person to talk to.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 09, 2024, 11:50:50 PM
I wouldn't mind supporting what you do after all is said and done
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 10, 2024, 12:04:57 AM
Quote from: Liviu Lalescu on June 09, 2024, 11:48:37 PMAbsolutely no problem, Cyrus! You are a useful user, and made very good suggestions on important new recent improvements! And you are a kind person to talk to.

450 Eur to have fet with such consideration.Just appreciating
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 10, 2024, 08:07:04 AM
Thank you for your offer! I know that coming from a single person this is very much. But unfortunately I cannot do it. I was thinking of something like 50k.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 10, 2024, 08:57:21 AM
You mean 50k Euro
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 10, 2024, 09:01:44 AM
Yes, 50000, or 50,000, or 50 thousand, or fifty thousand euros. Sorry for the abbreviation!
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 10, 2024, 09:32:17 AM
Its okay.Wish i had that financial muscles.I would pay for it to effected.
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 10, 2024, 11:41:02 AM
You are very kind!

I will think about it in the future, making plans on how to implement adding more information to teachers, students, subjects, activity tags, rooms, and buildings. Like maybe ID, short name, and long name. Unfortunately, there are over 300 types of constraints and 900 dialogs for these constraints. It is a long time to convert them. I should consider simplifying these dialogs to less source files, but it is a titanic task, the code is so large... Also, each constraint considers only the current name (of teacher, students, subject, activity tag, room), and a conversion to ID would take a long time.

It is easy, predictable work, not like the algorithm or adding new constraints, but tedious and the mistakes are critical.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 10, 2024, 11:48:02 AM
Take your time.We shall be waiting for the development
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 10, 2024, 11:51:31 AM
OK.

Do you have suggestions on what information to add to say a teacher? ID (unique integer), short name (string), long name (string), code (integer), comments (string)? Do you have better proposals for the name of these properties? Additional fields?
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 10, 2024, 11:55:00 AM
Name and code.Thats enough
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 10, 2024, 12:05:04 PM
If we rewrite the structure, it is best to do it properly and universally. I think the competition programs have short name and long name at least, and you also mentioned the code.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 10, 2024, 12:17:21 PM
That would be fine
Title: Re: TEACHERS NAMES & CODES
Post by: Volker Dirr on June 10, 2024, 04:22:52 PM
I fear there will no single person that is able to spent so much.
We should think about collecting a lot of small values to get the same sum.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 10, 2024, 04:36:27 PM
Quote from: Volker Dirr on June 10, 2024, 04:22:52 PMI fear there will no single person that is able to spent so much.
We should think about collecting a lot of small values to get the same sum.

I would second this.Your work should add value to your lives.Users can be  a blessing to you guys
Title: Re: TEACHERS NAMES & CODES
Post by: Volker Dirr on June 10, 2024, 08:01:12 PM
The problem is that we need to inform the users about that.
Maybe with something like a kickstarter project. Or like Wikipedia is collection money. Sadly most guys use this software only a few times per year and probably won't notice it.
Maybe a thread where we describe the feature and print the collected money for that TODO so far, so everybody can see it more detailed.
hmm... I don't know.
Just doing nothing doesn't help. Most guys sadly don't donate :-(
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 12, 2024, 02:44:02 AM
Encouraged by my mother to try it, and by a nice idea of simplifying things by Volker, I began something. It might work, and it might be made much faster than I thought. I'll let you know.

The interface will have mostly only the short names, but internally FET will also contain long names and codes, and I intend to make these selectable in the HTML timetables, I mean which one to print in which timetable.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 12, 2024, 04:03:51 AM
That will be great Liviu.Lemmie ask,for us who do distribute the hard copies to teachers in their different offices,how can one make it easier when it come to doing so?

Different teachers are usually in different offices/rooms.When doing so,i print and then start sorting timetables for teachers as per their  offices.If teacher's timetables can be indicated their offices,it can be easy since when sorting out,you just read them and place at their rightful offices instead of checking codes/ teachers and trying to remember where they are and then place them.
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 12, 2024, 07:00:28 AM
This will be easy and we'll try to do it. There will be 4 fields in a teacher:

- Name (short name), unique and nonempty, used as an ID.

- Long name (in the future).

- Code (in the future).

- Comments (already existing).

All these will be strings. Are they enough for your necessities? We could add one of them in the header for teachers' timetables, and I am thinking of the comments. It will be an option with a check box. OK?
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 12, 2024, 10:25:02 AM
From your options,i i want teacher 1 to be in science department,teacher 2 humanity department where shall i indicate their offices?
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 12, 2024, 10:30:22 AM
I think the best is in the Comments, and the teachers' timetables days horizontal/vertical will contain for each teacher the comments as the table heading.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 12, 2024, 11:05:55 AM
Thats fine
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 12, 2024, 01:12:59 PM
Quote from: Liviu Lalescu on June 12, 2024, 02:44:02 AMEncouraged by my mother to try it, and by a nice idea of simplifying things by Volker, I began something. It might work, and it might be made much faster than I thought. I'll let you know.

The interface will have mostly only the short names, but internally FET will also contain long names and codes, and I intend to make these selectable in the HTML timetables, I mean which one to print in which timetable.


We should expect something nice soon?
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 12, 2024, 01:23:30 PM
I hope. I did the long name and code internally and modifiable in the interface for everything needed. Now a big work is making the HTML timetables, which is more Volker's code and I am not sure he can work very fast now. I will try to present working snapshots soon.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 12, 2024, 01:36:05 PM
I can't wait for this.It will be great
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 12, 2024, 01:54:02 PM
Me too! :)

It was a good suggestion.
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 13, 2024, 01:53:27 PM
Hello, Cyrus! :) I hope I have good news: the main parts seem to work. I need a bit more work to finish it up, and testing a bit, and then I'll be able to put a snapshot.

It was much easier than I thought.
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 13, 2024, 03:28:58 PM
I must apologize for hugely overestimating the needed work time. But with Volker's advice and some tricks it was possible fast.

It is not ready yet, we need now to add the optional comments as table heading in each days horizontal/vertical timetables and the options about the hours'/days' names. But the main part is done.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 13, 2024, 04:11:09 PM
Quote from: Liviu Lalescu on June 13, 2024, 01:53:27 PMHello, Cyrus! :) I hope I have good news: the main parts seem to work. I need a bit more work to finish it up, and testing a bit, and then I'll be able to put a snapshot.

It was much easier than I thought.

Keep the good news coming.We are chilling to enjoy the upgrade
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 13, 2024, 04:12:05 PM
Quote from: Liviu Lalescu on June 13, 2024, 03:28:58 PMI must apologize for hugely overestimating the needed work time. But with Volker's advice and some tricks it was possible fast.

It is not ready yet, we need now to add the optional comments as table heading in each days horizontal/vertical timetables and the options about the hours'/days' names. But the main part is done.

Thats quite commendable👌
Title: Re: TEACHERS NAMES & CODES
Post by: Volker Dirr on June 13, 2024, 08:58:39 PM
Well, it was only fast, since we (or better you) didn't change the GUI. That is still old (short) only; but I think that is very fine. We changed only html-timetables and print; so tables that are for other users. So for example also not the statistics, but I think that is also fine)
And also because you are working without a break. Other guys work only max. 10 hours per day. I hope a few guys will donate for this work.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 13, 2024, 10:17:45 PM
Quote from: Volker Dirr on June 13, 2024, 08:58:39 PMWell, it was only fast, since we (or better you) didn't change the GUI. That is still old (short) only; but I think that is very fine. We changed only html-timetables and print; so tables that are for other users. So for example also not the statistics, but I think that is also fine)
And also because you are working without a break. Other guys work only max. 10 hours per day. I hope a few guys will donate for this work.

We shall come in handy
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 14, 2024, 11:33:30 AM
Hello, Cyrus, Volker, and users,

It is ready! :) I just released a snapshot: https://lalescu.ro/liviu/fet/download/test/

It implements the suggested options. Please test. I might release on 17 June the final version.

Thank you, Cyrus, for the good suggestions!
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 14, 2024, 12:36:31 PM
Thanks in advance.Will test and see the amazing skills you put to have it outstanding
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 15, 2024, 08:13:43 AM
I have put a new snapshot, with improvements: https://lalescu.ro/liviu/fet/download/test/ . Please, if you have time, test it a bit again.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 15, 2024, 08:26:00 AM
I will
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 15, 2024, 08:37:02 AM
Thank you, Cyrus, you are kind!
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 15, 2024, 10:40:07 AM
Everything is fine
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 15, 2024, 11:02:20 AM
Thank you, Cyrus! I added a new snapshot, as explained in the Snapshots section - no need to recheck, only if you have spare time. See that post.
Title: Re: TEACHERS NAMES & CODES
Post by: Liviu Lalescu on June 16, 2024, 11:48:58 AM
Hello, Cyrus,

I just released the new version. Thank you very much for the suggestion and persuasion! FET will be now even better.

I estimated the work to 1-2 months. I think I did it in maybe about 50 hours of hard work. But I used tricks (some suggested by Volker) to make the work as easy as possible. The new fields are not very nice in the interface, like in the competition programs. Also, we did not make a nice view like those screenshots you showed us. In most parts of the interface the used fields are only the old names, because it is very easy for the lazy me.
Title: Re: TEACHERS NAMES & CODES
Post by: Cyrus Ireri on June 16, 2024, 11:52:39 AM
Thank you so much for your commitment.Personally, i really appreciate what we have now.We shall keep making things better with time.In the meantime,lets keep the new version rolling.