Useful command: rpm -qi

To know details of a Linux package, example: $ rpm -qi firefox gives this: Name : firefox Relocations: (not relocatable) Version : 45.7.0 Vendor: CentOS Release : 2.el6.centos Build Date: Tue 21 Feb 2017 10:37:31 AM EST Install Date: Wed 22 Feb 2017 02:00:30 PM EST Build Host: c1bm.rdu2.centos.org Group : Applications/Internet Source RPM: firefox-45.7.0-2.el6.centos.src.rpm… Continue reading Useful command: rpm -qi

Published
Categorized as History

My “fix” of reaeadline problem in PARI/gp following #yum update

[david@localhost ~]$ /bin/su – Password: [root@localhost ~]# cd /usr [root@localhost usr]# ls bin etc games include lib lib64 libexec local sbin share src tmp [root@localhost usr]# cd local [root@localhost local]# ls bin etc games include lib lib64 libexec sbin share src [root@localhost local]# cd lib [root@localhost lib]# ls libgmp.a libhistory.so libpari-gmp.so.5 libreadline.so.7 libgmp.la libhistory.so.6 libpari.so… Continue reading My “fix” of reaeadline problem in PARI/gp following #yum update

Published
Categorized as History

yum update broke my PARI/gp workaround with libreadline

# yum update broke my patch to using the “right” libreadline library for PARI/gp: [david@localhost ~]$ gp gp: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: PC $ ls -l /usr/local/lib/ | grep libreadline […] lrwxrwxrwx. 1 root root 16 Feb 23 02:55 libreadline.so -> libreadline.so.6 lrwxrwxrwx. 1 root root 18 Feb 25 02:43 libreadline.so.6 -> libreadline.so.6.3… Continue reading yum update broke my PARI/gp workaround with libreadline

Published
Categorized as History

Unit distance graph searcher for 14 vertices in C

I wrote a modified searcher for 14-vertex, non 3-colorable, unit distance graphs, embeddable in the plane R^2 with edges of length 1 between vertices, at least numerically. The searcher has a randomozing seed constant for the PRNG (pseudo-random number generator): it is the unisgned long long constant: 14502779422240352273ULL present in the array initiaizer code: for(i=0;i<2097152;i++)… Continue reading Unit distance graph searcher for 14 vertices in C

Published
Categorized as History

Simple C test programs that open and read a file

To open a file for reading in the C programming language, one can pass to fopen a string containing the absolute path to the file. It looks like this: fopen(“/home/david/fname”, “r”) string = “/home/david/fname” = path to file, and “r” for open in read-only mode. Because it’s a statement, it must end with a `;’… Continue reading Simple C test programs that open and read a file

Published
Categorized as History

new solver 13 vertices: minor source code edit…

After convergence to the unit distance graph equations (vertex to vertex distances are 1 to within 1E-15, according to the 13×13 adjacency matrix adjmat[][] ), the solver checks that no two distinct vertices are “suspiciously close”, which is a good sign they are in fact superposed,what we call a “singular solution”: those are rejected. After… Continue reading new solver 13 vertices: minor source code edit…

Published
Categorized as History

new solver 13 vertices

udgraph13_solverff9789nu95a.c in /home/david/graphs/golomb18 #include <stdio.h> #include <math.h> #define NUMSTEPS 2500 #define MAXDIFFAT100 ((long double) 18)/((long double) 1) #define MAXDIFFAT50 ((long double) 18)/((long double) 1) #define MAXDIFFAT25 ((long double) 40)/((long double) 1) #define MAXDIFFAT1 ((long double) 40)/((long double) 1) #define MAXDIFFAT200 ((long double) 96)/((long double) 10) #define MAXDIFFAT400 ((long double) 67)/((long double) 1000) #define MAXDIFFAT800 ((long… Continue reading new solver 13 vertices

Published
Categorized as History

Useful shell script for latest unit distance graph solver

For the unit distance graphs solver, considering only graphs that can’t be vertex-coloured with 3 colours, but that are 4-colourable, I want to know if there are any repeats in the number of 4-colourings given, which is a complete count, up to permutations of the four colors. For this, I devised the shell script status.sh… Continue reading Useful shell script for latest unit distance graph solver

Published
Categorized as History

Update on unit distance graph solver output

After 186 minutes running time, the solver has solved at least 15 12-vertex unit distance graphs requiring 4 colours. The first 12-vertex unit distance graph found that was 4-colorable but not 3-colourable had 813 4-colourings, up to permutations of the 4 colours. After 186 minutes, the range in number of 4-colourings for the 12-vertex unit… Continue reading Update on unit distance graph solver output

Published
Categorized as History

initial draft release of udgraph12_solverbb9901a.c

#include <stdio.h> #include <math.h> #define NUMSTEPS 2000 #define MAXDIFFAT100 ((long double) 30)/((long double) 1) #define MAXDIFFAT50 ((long double) 118)/((long double) 1) #define MAXDIFFAT25 ((long double) 12)/((long double) 1) #define VERBOSE #define VERTEX 12 static unsigned long long Q[2097152],carry=0; unsigned long long B64MWC(void) { unsigned long long t,x; static int j=2097151; j=(j+1)&2097151; x=Q[j]; t=(x<<28)+carry; carry=(x>>36)-(t<x); return… Continue reading initial draft release of udgraph12_solverbb9901a.c

Published
Categorized as History

source code of udgraph_solver301a dot c

#include <stdio.h> #include <math.h> #define NUMSTEPS 510 #define MAXDIFFAT100 ((long double) 110)/((long double) 1000) #define MAXDIFFAT50 ((long double) 14)/((long double) 10) #define MAXDIFFAT25 ((long double) 550)/((long double) 100) static unsigned long long Q[2097152],carry=0; unsigned long long B64MWC(void) { unsigned long long t,x; static int j=2097151; j=(j+1)&2097151; x=Q[j]; t=(x<<28)+carry; carry=(x>>36)-(t<x); return (Q[j]=t-x); } #define CNG (… Continue reading source code of udgraph_solver301a dot c

Published
Categorized as History

source code of aitch eee exx restore02a dot c

#include <stdio.h> int main(void) { int hex; unsigned char car; int val; int done; FILE *in; done = 0; in = fopen(“/home/david/graphs/golomb5/hexdumpdotc2/hexdump02a.txt”, “r”); while( done == 0) { val = fscanf(in, “%x”, &hex); if(val == EOF) { done = 1; } if(done == 0) { car = (unsigned char) hex; printf(“%c”, car); } } return… Continue reading source code of aitch eee exx restore02a dot c

Published
Categorized as History