Re: bash line feeds in a variable problem

2022-01-19 Thread Todd Zullinger
ToddAndMargo via users wrote:
> I am trying to get
> 
> curl -s ipinfo.io -o -
> 
> into a variable
> 
> X=$(curl -s ipinfo.io -o -)
> 
> But I lose all my line feeds when I
> 
> echo -e $X
> 
> How do I get my line feeds back?

Quote the variable.  You don't need -e; echo "$X" works.

But with JSON data being returned, it would seemingly make
more sense to parse the data and extract what you want:

ipinfo=$(curl -s ipinfo.io)
city=$(jq -r .city <<<$ipinfo)

or just:

city=$(curl -s ipinfo.io | jq -r .city)

-- 
Todd


signature.asc
Description: PGP signature
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


bash line feeds in a variable problem

2022-01-19 Thread ToddAndMargo via users

Hi All,

I am trying to get

curl -s ipinfo.io -o -

into a variable

X=$(curl -s ipinfo.io -o -)

But I lose all my line feeds when I

echo -e $X

How do I get my line feeds back?

Many thanks,
-T


--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Machine won't finish booting after update

2022-01-19 Thread stan via users
On Tue, 18 Jan 2022 22:58:28 -0500
Fulko Hew  wrote:

> On a lark, today I saw that Discover was telling me there were
> updates. I asked it to show me what.
> After a number of minutes it told me... 7 packages.
> OK, I did a 'dnf update' instead.
> After 30 seconds it had fetched and installed all 7 packages.
> Then I tried 'discover' again.
> After another few minutes of fetching, it told me it (still) had to
> update those 7 packages.
> I asked it to refresh, and then asked again.
> Another few minutes later, it still thought it needed to install
> those 7 packages.
> What!
> So I killed off 'discover' on the task bar.
> Here is is, 2 hours later, and I see the icon has re-appeared on the
> task bar.
> It tells me it has 22 packages to update.
> But dnf tells me it is up to date.
> 
> Does dnf use a different set of repo servers than 'discover' does ?

They use the same set of repo servers.

> Does discover query a different local RPM db?

I think all the package installers use the same rpm db.  I haven't used
discover, but when I had Packagekit active it seemed to keep its own
internal records for reference.  I think the problem is that unless the
updates are actually run from discover or Packagekit, its internal
database is not updated with changes.  It doesn't do a cleanup of
its internal db from the rpm db at each invocation (probably so it can
be faster). So, if dnf is used to update packages, it will never remove
the updates that dnf did from its internal database. It doesn't actually
consider whether there is another installer running, it presumes that
it is the sole package installer on the system.  For its target users,
that is probably a reasonable assumption, as they will always use it.

> It seems so.

Yes.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Samsung Smart TV "crashes" NVidia driver, can't detect TV any more?

2022-01-19 Thread Rogan Dawes
I can attach the TV to my laptop long after boot, with no issues. However, once 
this sleep behaviour has triggered, I can disconnect and reconnect as many 
times as I like without resuscitating it.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Samsung Smart TV "crashes" NVidia driver, can't detect TV any more?

2022-01-19 Thread Rogan Dawes
If I don't find a software solution, I'm going with a smart power switch that 
will power the TV off whenever the laptop screen blanks. Taking no prisoners! 
:-)
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Samsung Smart TV "crashes" NVidia driver, can't detect TV any more?

2022-01-19 Thread Rogan Dawes
That is excellent! Thanks for the pointer to this.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Samsung Smart TV "crashes" NVidia driver, can't detect TV any more?

2022-01-19 Thread Rogan Dawes
Wow! That is awesome! Hopefully this will give me some pointers in the right 
direction (if it doesn't "just work"(tm)).

From reading the script at /usr/bin/nvidia-sleep.sh, it seems that when it 
happens, I can try to change to a console VT, suspend and awaken the driver, 
then change back, and hopefully it will revive the display!

Thanks!
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: fttconv2

2022-01-19 Thread George N. White III
On Wed, 19 Jan 2022 at 03:44, Patrick Dupre  wrote:

> Yes, exactly.
> Actually the package * FFTConvolution
>  call fftconv2 (*
> https://github.com/jeremyfix/FFTConvolution)
>
> In convolution_benchmark.cc
> feval ("fftconv2", functionArguments, 1);
>
> but, I get
> error: feval: function 'fftconv2' not found
>
> I do not know how to call the octave function from a c++ program.
> It is because a library si not linked?
>

The convolution_benchmark.cc was last updated in 2013.  Octave has changed
a lot
since then.



>
>
> The author of the package (jeremy.fix) did not answer to my request.
>

Can't really blame someone for not keeping on top of old projects.   Wonder
if someone
has forked the code.


> *Sent:* Tuesday, January 18, 2022 at 9:33 PM
> *From:* "George N. White III" 
> *To:* "Community support for Fedora users" 
> *Subject:* Re: fttconv2
> On Mon, 17 Jan 2022 at 17:59, Patrick Dupre  wrote:
>
>> Hello,
>>
>> I get the following error:
>>
>> error: feval: function 'fftconv2' not found
>>
>> octave-image provide fftconv2.m
>>
>> can I use it? If yes, How?
>
>
> Are you trying to use octave's fftconv2 function?  In Fedora35 with octave
> and octave-image installed using dnf:
>
> octave:8> pkg load image
> pkg load image
> octave:9> help fftconv2
> help fftconv2
> 'fftconv2' is a function from the file
> /usr/share/octave/packages/image-2.12.0/fftconv2.m
>
>  -- Function File: fftconv2 (A, B)
>  -- Function File: fftconv2 (V1, V2, A)
>  -- Function File: fftconv2 (..., SHAPE)
>  Convolve 2 dimensional signals using the FFT.
>
>  This method is faster but less accurate than CONV2 for large A and
>  B.  It also uses more memory.  A small complex component will be
>  introduced even if both A and B are real.
>
>  See also: conv2, fftconv, fft, ifft.
>
>
>
> --
> George N. White III
>
> ___ users mailing list --
> users@lists.fedoraproject.org To unsubscribe send an email to
> users-le...@lists.fedoraproject.org Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List
> Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List
> Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
> https://pagure.io/fedora-infrastructure
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
> https://pagure.io/fedora-infrastructure
>


-- 
George N. White III
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: KDE and Gnome - best install to start with?

2022-01-19 Thread Tim via users
Hi,

> I have a new touchscreen laptop. I want to install both KDE and
> Gnome, I started with the Fedora 35 KDE spin and I will now add Gnome
> with:
> 
> # dnf groupinstall gnome

I thought the command line to do that was more like:

dnf groupinstall "GNOME Desktop Environment"


Try this command to see what tickles your interests:

dnf grouplist -v

> Is this the best method? Should I start with the default Fedora 35 
> install dvd and then install KDE?
> 
> Does it matter / is there any difference in the results?


I wouldn't have thought either way would be better.  Since you've
already installed KDE, try adding Gnome to it, and see what happens.


-- 
 
uname -rsvp
Linux 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure