Re: [CentOS] konqueror vs. centos and mathematics

2019-03-17 Thread Michael Hennebry

On Sun, 17 Mar 2019, Gordon Messmer wrote:


On 3/17/19 7:47 PM, Michael Hennebry wrote:


http://web.cs.ndsu.nodak.edu/~hennebry/Screenshot2019-03-17+21-29-06.png
The web site seems to be emitting tex.
Presumably something has to translate between tex and image.
That said, firefox worked (barely) before I installed texlive.



It looks like you're using Konqueror, not Firefox.


Correct.
That is what I wrote:
On Sun, 17 Mar 2019, Michael Hennebry wrote:

Firefox spends so much time in th D state that I am trying konqueror.


That firefox worked at all on wikipedia mathematics was a
reason I did not really expect texlive to help konqueror.
Texlive was the only thing I could think of that made any sense.

On Sun, 17 Mar 2019, Gordon Messmer wrote:
The Tex you're seeing is alt-text for (what should be) the SVG images.  
I'm not sure how installing texlive would affect the browser.


Me neither, but I was low on things to try that made any sense.
How do I get the SVG images?

--
Michael   henne...@web.cs.ndsu.nodak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
 --  someeecards
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] konqueror vs. centos and mathematics

2019-03-17 Thread Gordon Messmer

On 3/17/19 7:47 PM, Michael Hennebry wrote:


http://web.cs.ndsu.nodak.edu/~hennebry/Screenshot2019-03-17+21-29-06.png
The web site seems to be emitting tex.
Presumably something has to translate between tex and image.
That said, firefox worked (barely) before I installed texlive.



It looks like you're using Konqueror, not Firefox.

The Tex you're seeing is alt-text for (what should be) the SVG images.  
I'm not sure how installing texlive would affect the browser.



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] konqueror vs. centos and mathematics

2019-03-17 Thread Michael Hennebry

On Sun, 17 Mar 2019, Gordon Messmer wrote:


On 3/17/19 4:47 PM, Michael Hennebry wrote:
Wikipedia seems to use tex, so I installed texlive and texlive-* . 



Formulas can be composed with tex, but they're displayed as images.  You 
shouldn't need any special browser support to display formulas.  Can you 
post a screenshot somewhere?


http://web.cs.ndsu.nodak.edu/~hennebry/Screenshot2019-03-17+21-29-06.png

As one might suspect, it's on the NDSU CS department's server.

The web site seems to be emitting tex.
Presumably something has to translate between tex and image.
That said, firefox worked (barely) before I installed texlive.

--
Michael   henne...@web.cs.ndsu.nodak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
 --  someeecards
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] compile question on CentOS 7

2019-03-17 Thread Fred Smith
On Sun, Mar 17, 2019 at 09:23:23PM -0400, Jerry Geis wrote:
> I am trying to use the fnmatch() function in a C program and pass as the
> 3rd arg (options) of case insensitive search...
> 
> When I use the value FNM_CASEFOLD it does not work...
> 
> I'm confused on what to send to fnmatch() to do a case insensitive search.
> 
> Any pointers ? Thanks.

Depends on what you mean by "doesn't work". If you mean that you
get a compile-time error:

cc -o foo foo.c
foo.c: In function \u2018main\u2019:
foo.c:20:35: error: \u2018FNM_CASEFOLD\u2019 undeclared (first use in this 
function)
  ret = fnmatch (argv[1], argv[2], FNM_CASEFOLD);
   ^
foo.c:20:35: note: each undeclared identifier is reported only once for each 
function it appears in

that's what I get too. The man page doesn't say anything about special
requirements to use that function, but if you go look at fnmatch.h, 
you'll find:

#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE
# define FNM_FILE_NAME   FNM_PATHNAME   /* Preferred GNU name.  */
# define FNM_LEADING_DIR (1 << 3)   /* Ignore `/...' after a match.  */
# define FNM_CASEFOLD(1 << 4)   /* Compare without regard to case.  */
# define FNM_EXTMATCH(1 << 5)   /* Use ksh-like extended matching. */
#endif

which indicates that those values aren't available UNLESS your program
has defines matching the first line shown. I haven't bothered to check
for the value of _POSIX_C_SOURCE in the absence of commandline options
that change the GCC default behavior, but just defining _GNU_SOURCE
is enough to make it compile:

[fredex@fcshome tmp]$ cc -o foo foo.c
[fredex@fcshome tmp]$ 

foo.c:

#include 
#include 

#define _GNU_SOURCE
#include 

int main (int argc, char ** argv)
{
int ret = 0;

if (argc != 3)
{
printf ("Oops. please specify two strings to 
compare\n");
exit (0);
}

ret = fnmatch (argv[1], argv[2], FNM_CASEFOLD);
printf ("fnmatch %s, %s returned %d\n", argv[1], argv[2], ret);

return 0;
}

and running it results in:

$ ./foo abc abc
fnmatch abc, abc returned 0

$ ./foo abc aBc
fnmatch abc, aBc returned 0

$ ./foo abc aBcz
fnmatch abc, aBcz returned 1

-- 
---
 .Fred Smith   /  
( /__  ,__.   __   __ /  __   : / 
 //  /   /__) /  /  /__) .+'   Home: fre...@fcshome.stoneham.ma.us 
//  (__ (___ (__(_ (___ / :__ 781-438-5471 
 Jude 1:24,25 -
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] konqueror vs. centos and mathematics

2019-03-17 Thread Yves Bellefeuille
Gordon Messmer wrote:

>  Formulas can be composed with tex, but they're displayed as images.
>  You shouldn't need any special browser support to display formulas.

Correct, they're just SVG images. In Firefox, if you type about:config
in the search bar, you'll see several options starting with svg. They
should all be set to the default (i.e., none should be in bold).

-- 
Yves Bellefeuille



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] compile question on CentOS 7

2019-03-17 Thread Jerry Geis
I am trying to use the fnmatch() function in a C program and pass as the
3rd arg (options) of case insensitive search...

When I use the value FNM_CASEFOLD it does not work...

I'm confused on what to send to fnmatch() to do a case insensitive search.

Any pointers ? Thanks.

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] konqueror vs. centos and mathematics

2019-03-17 Thread Gordon Messmer

On 3/17/19 4:47 PM, Michael Hennebry wrote:
Wikipedia seems to use tex, so I installed texlive and texlive-* . 



Formulas can be composed with tex, but they're displayed as images.  You 
shouldn't need any special browser support to display formulas.  Can you 
post a screenshot somewhere?



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] konqueror vs. centos and mathematics

2019-03-17 Thread Michael Hennebry

I'm running centos 7.
Firefox spends so much time in th D state that I am trying konqueror.
Displaying mathematics on wikipedia,
e.g. Remez algorithm seems to be a no go.
Wikipedia seems to use tex, so I installed texlive and texlive-* .
Firefox hadn't needed it and it did not seem to help konqueror.
My guess is that there is a bit somewhere that I need to flip,
but I have no idea where it is.

Suggestions?

--
Michael   henne...@web.cs.ndsu.nodak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
 --  someeecards
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Testing software on CentOS 7

2019-03-17 Thread Gordon Messmer

On 3/17/19 1:08 PM, H wrote:

I am correct in that docker cannot be used, or? If it can be used, what changes 
would I need to make to be able to run geany from a docker?



A google search for "run x11 app in docker" returns 
http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/ as 
the first result.  That blog entry suggests running the app in container 
with the DISPLAY environment variable, and with the /tmp/.X11-unix 
directory shared so that the X11 unix sockets are available in the 
container:


|docker run -ti --rm \ -e DISPLAY=$DISPLAY \ -v 
/tmp/.X11-unix:/tmp/.X11-unix \ geany |


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Testing software on CentOS 7

2019-03-17 Thread H
On 03/17/2019 03:06 PM, Brent Earl wrote:
> A virtual machine running CentOS with the same environment and packages
> installed should do the trick.
>
> On Sun, Mar 17, 2019, 8:02 AM H  wrote:
>
>> I need to test a new version of Geany but already have the repo version
>> installed on all my systems. In order not to foul up my current
>> installation, what is the suggested procedure for installing and testing
>> this new version?
>>
>> I tried installing in a docker container which of course went fine but
>> could not run it from there.
>>
>> Suggestions appreciated, thank you.
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
>>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

I am correct in that docker cannot be used, or? If it can be used, what changes 
would I need to make to be able to run geany from a docker?

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Testing software on CentOS 7

2019-03-17 Thread Brent Earl
A virtual machine running CentOS with the same environment and packages
installed should do the trick.

On Sun, Mar 17, 2019, 8:02 AM H  wrote:

> I need to test a new version of Geany but already have the repo version
> installed on all my systems. In order not to foul up my current
> installation, what is the suggested procedure for installing and testing
> this new version?
>
> I tried installing in a docker container which of course went fine but
> could not run it from there.
>
> Suggestions appreciated, thank you.
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Testing software on CentOS 7

2019-03-17 Thread H
I need to test a new version of Geany but already have the repo version 
installed on all my systems. In order not to foul up my current installation, 
what is the suggested procedure for installing and testing this new version?

I tried installing in a docker container which of course went fine but could 
not run it from there.

Suggestions appreciated, thank you.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos