F27: how to disable packagekit to download updates
by Dario Lesca
How to I can disable packagekid to download update?
I do not use these packages downloaded uselessly from packagekit into
/var/cache/PackageKit/*/*/updates/... because I run sometimes when I
want and can, after, reboot, "sudo dnf update".
Unfortunately this command (dnf) do not use the rpm files download from
PackageKit but it downloads them again ... Sigh!
Many thanks
--
Dario Lesca
(inviato dal mio Linux Fedora 27 Workstation)
5 years, 9 months
Arithmetic error or function setup incorrectly
by Antonio Olivares
Dear Fedora users,
I have a question regarding a set of data and an awk script that performs some actions, it calculates a GF(goals in favor) GA(goals against), and PTS for each game. Suppose the data is as follows:
Soccer.dat
Team. GF GA
Team1 1 2
Team2 1 1.2
Team3 2 4
Team4 3 0
Team5 4 0
Team6 3 2
Team7 1 3
Team8 2.01 2.03
Team9 3.03 3.04
Team10 0 7
Team11 0.1 0.3
In district play, if a team wins in regulation they earn 3 pts, if you lose 0 pts, if both teams tie in regulation, they play overtime, if they are still tied then penalty kicks decide the outcome of the game. The winners in OT/PKS get 2 pts, the loser get 1 pt.
In Team2 we tied at 1 in regulation, but in OT, the other team scored 2 goals and beat us 3 to 1. The awk script attached inline calculates this, but outputs 1 2 when it should output 1 3. If there is another number in the hundredths place is we shot penalty kicks. I cannot copy the awk script. I will have to attach it. I would like to improve it by tallying a running total per column of GF GA PTS . Ideas are appreciated.
The awk script creates a new integer from the decimal number given. The integer part and the fractional part are used to create the new numbers that end up in GF and GA.
In one case when I put 1 1.2 the output should be 1 3 but it gives me 1 2. This is one of my questions. On the other hand if I put 0.1 and 0.3 it outputs 1 to 3 correctly. Do I have a mistake in my function? I use int($1) to get integer part and ($1-int($1)) to get fractional part.
Best Regards,
Antonio
5 years, 9 months
how to substitute mariadb to mysql while compiling
by François Patte
Bonjour,
I try to compile gerbera in order to test this dlna server. There is an
option to have mysql as a database but, mysql no longer exists on
fedora, so if I activate this option, the compilation fails.
Is there a way to substitute mariadb?
Thank you for any help.
--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte
5 years, 9 months