Re: [Trisquel-users] Sort and Uniq fail to remove all duplicates from a list of hostnames and their IPv4 addresses
At Magic Banana's suggestion, I applied sort -u to the test file in my original posting, with a perfect elimination of the extra files, but when I tried the same approach on another set of data that I had first sorted with LibreOffice Calc, sort -u reduced the numer of rows from 67 to 46, but four of these were still duplicates in pairs and in threes. In the meantime I used the hands-on approach to the original body of the test file (2,000+ rows), first cutting it down to about half that number of rows with the duplicate-removal function supplied by LibreOffice Calc, which left me with about 500 pairs of duplicate rows, with a few singles mixed in. Took about an hour to select and delete the rows, one at a time. Still, sort -u is a big improvement if it gets rid of most of the duplicates. I had thought that Leafpad would cleanse a text file of LibreOffice Calc baggage, but there may be some stuff still in there. The test file had additional cleansing, what with its trip to Spain and back via much commotion that would have lost all the invisible stuff compared to the text file that I was working with, fresh from a LibreOffice Calc file. I tried sort -u on the main body of the test file, with the output literally full of duplicates. There's something about LibreOffice Calc that's leaving residues that fool the sorting software ... Thanks for thinking about this. BTW, my original example.com raw data was about 18,000 rows, which I put into LibreOffice Calc, alphabetized, and then divided into about thirty smaller and more manageable files, each starting with one of the letters of the alphabet. the extra four files hold the hostnames beginning with numbers and three files of macro-multiples of example.com like the test file. There will be many thousands of unresolvable hostnames represented in the final result. George Langford
[Trisquel-users] Re : Sort and Uniq fail to remove all duplicates from a list of hostnames and their IPv4 addresses
You want 'sort -u', which is faster that 'sort | uniq' in presence of many duplicates.
[Trisquel-users] Re : error make surf2
Surf apparently requires version 3.19.12 or later of the GTK+ graphical user interface library: https://packages.ubuntu.com/bionic/surf Trisquel 8's repository has version 3.18.9.
Re: [Trisquel-users] Sort and Uniq fail to remove all duplicates from a list of hostnames and their IPv4 addresses
> jaholper1.example.com 95.182.79.24 > jaholper1.example.com 95.182.79.24 > jaholper1.example.com 95.182.79.33 > jaholper1.example.com 95.182.79.33 > jaholper4.example.com 109.248.200.4 > jaholper7.example.com 109.248.203.131 > jaholper7.example.com 109.248.203.188 > jaholper7.example.com 109.248.203.189 > jaholper7.example.com 109.248.203.191 > jaholper7.example.com 109.248.203.198 > jaholper7.example.com 185.186.141.79 > jaholper7.example.com 185.186.142.10 > jaholper7.example.com 185.186.142.10 > jaholper7.example.com 185.186.142.100 > jaholper7.example.com 185.186.142.100 > jaholper7.example.com 185.186.142.101 > jaholper7.example.com 185.186.142.101 I pasted that into a file called "test" $ uniq test jaholper1.example.com 95.182.79.24 jaholper1.example.com 95.182.79.33 jaholper4.example.com 109.248.200.4 jaholper7.example.com 109.248.203.131 jaholper7.example.com 109.248.203.188 jaholper7.example.com 109.248.203.189 jaholper7.example.com 109.248.203.191 jaholper7.example.com 109.248.203.198 jaholper7.example.com 185.186.141.79 jaholper7.example.com 185.186.142.10 jaholper7.example.com 185.186.142.100 jaholper7.example.com 185.186.142.101 Every item seems to be represented with no duplicates. signature.asc Description: PGP signature
[Trisquel-users] Sort and Uniq fail to remove all duplicates from a list of hostnames and their IPv4 addresses
As apache server software on shared servers routinely performs hostname lookups on data requests made to the hosted domains on their servers, I'm compiling a database of the thousands of example.com hostnames that are on the Internet. I've reached an impasse: LibreOffice's Calc spreadsheet will filter _most_ of the many duplicated lines in my lists, but a great many pairs, triplicates, and quadruplicates of the lines in my lists still remain. There are enough of them that their manual removal is tedious. I've tried uniq -d to try to print one of each duplicated line, followed by uniq -u to print only the unique lines, but the outputs retained these duplicated lines nevertheless. Here's a sample of my predicament: jaholper1.example.com 95.182.79.24 jaholper1.example.com 95.182.79.24 jaholper1.example.com 95.182.79.33 jaholper1.example.com 95.182.79.33 jaholper4.example.com 109.248.200.4 jaholper7.example.com 109.248.203.131 jaholper7.example.com 109.248.203.188 jaholper7.example.com 109.248.203.189 jaholper7.example.com 109.248.203.191 jaholper7.example.com 109.248.203.198 jaholper7.example.com 185.186.141.79 jaholper7.example.com 185.186.142.10 jaholper7.example.com 185.186.142.10 jaholper7.example.com 185.186.142.100 jaholper7.example.com 185.186.142.100 jaholper7.example.com 185.186.142.101 jaholper7.example.com 185.186.142.101 uniq -d returns only one line: jaholper7.example.com185.186.142.101 uniq -u keeps everything _but_ the last two lines. Reversing the positions of the two columns in LibreOffice only makes matters worse: Get single line output or complete erasure of the file. It's been suggested that the IPv4 addresses can each be presented as a single decimal number, but the thought of doing that for my thousands of IPv4 addresses makes manual editing look pretty good. George Langford
Re: [Trisquel-users] Icecat seems very outdated, what browser *should* one be using?
surf 2 from suckless.org hast minimal code and good configuration example: $: surf -sg duck.com -sg for no script and no geolocation
Re: [Trisquel-users] Icecat seems very outdated, what browser *should* one be using?
surf 2 from suckless.org hast minimal code and good configuration example: $: surf -sg duck.com -sg for no script and no geolocation
[Trisquel-users] error make surf2
hi, i cant compile surf2 from suckless.org, a great simple browser surf1 is in repository but it is old and useless in other distributions compile works. is something missing? pls help. surf.c: In function ‘setup’: surf.c:344:10: warning: implicit declaration of function ‘gdk_seat_get_keyboard’ [-Wimplicit-function-declaration] gdkkb = gdk_seat_get_keyboard(gdk_display_get_default_seat(gdpy)); ^ surf.c:344:32: warning: implicit declaration of function ‘gdk_display_get_default_seat’ [-Wimplicit-function-declaration] gdkkb = gdk_seat_get_keyboard(gdk_display_get_default_seat(gdpy)); ^ surf.c:344:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion] gdkkb = gdk_seat_get_keyboard(gdk_display_get_default_seat(gdpy)); ^ surf.c: In function ‘msgext’: surf.c:1851:40: warning: format ‘%c’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] if ((ret = snprintf(msg, sizeof(msg), "%c%c%c%c", ^ surf.c:1851:40: warning: format ‘%c’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] c99 -o surf surf.o common.o `pkg-config --libs x11` `pkg-config --libs gtk+-3.0 gcr-3 webkit2gtk-4.0` -lgthread-2.0 surf.o: In function `main': surf.c:(.text+0x35df): undefined reference to `gdk_display_get_default_seat' surf.c:(.text+0x35eb): undefined reference to `gdk_seat_get_keyboard' collect2: error: ld returned 1 exit status Makefile:41: recipe for target 'surf' failed make: *** [surf] Error 1
[Trisquel-users] Happy I ♥ Free Software Day!
Truth to be told, it comes out as a weird thing to choose San Valentine's day to show our love for Free Software, as if we hadn't already someone to love on this day. But that was the day chosen by the Free Software Foundation Europe (FSFE) on 2010 and that's how we celebrate it ever since. I ♥ Free Software - Valentine's Day 2019 - FSFE https://fsfe.org/campaigns/ilovefs/ Besides, this year we must celebrate it with all of our heart, because it is the only Freedom Celebration that isn't missing like the rest. Document Freedom Day: Celebrated by the same Free Software Foundation Europe since 2008, transferred to the Digital Freedom Foundation in 2017, missing for months: http://documentfreedom.org/ Hardware Freedom Day: Celebrated by the Digital Freedom Foundation since 2013, missing for months: http://hfday.org/ Software Freedom Day: Celebrated since 2004, first edition by Matt Oquist, Henrik Omma and Phil Harper, editions 2nd to 8th by Software Freedom International, editions 9th forward by the Digital Freedom Foundation, missing for months: http://softwarefreedomday.org/ The very own website for the Digital Freedom Foundation is missing for months: http://www.digitalfreedomfoundation.org/ . These problems happened already on 2016. The care for the Freedom Celebrations is, too much frequently, a matter or putting all the eggs on the same basked, then losing the basket. P.S.: At the time of writing this message I proceeded to verify once again access to these sites, and by chance for some minutes they were available again... but then again not. They are intermittent, or maybe it is that just to day because being I ♥ Free Software Day they are working on fixing them. -- Ignacio Agulló · agu...@ati.es 0xC6AB2D51.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
[Trisquel-users] Happy I ♥ Free Software Day!
Truth to be told, it comes out as a weird thing to choose San Valentine's day to show our love for Free Software, as if we hadn't already someone to love on this day. But that was the day chosen by the Free Software Foundation Europe (FSFE) on 2010 and that's how we celebrate it ever since. I ♥ Free Software - Valentine's Day 2019 - FSFE https://fsfe.org/campaigns/ilovefs/ Besides, this year we must celebrate it with all of our heart, because it is the only Freedom Celebration that isn't missing like the rest. Document Freedom Day: Celebrated by the same Free Software Foundation Europe since 2008, transferred to the Digital Freedom Foundation in 2017, missing for months: http://documentfreedom.org/ Hardware Freedom Day: Celebrated by the Digital Freedom Foundation since 2013, missing for months: http://hfday.org/ Software Freedom Day: Celebrated since 2004, first edition by Matt Oquist, Henrik Omma and Phil Harper, editions 2nd to 8th by Software Freedom International, editions 9th forward by the Digital Freedom Foundation, missing for months: http://softwarefreedomday.org/ The very own website for the Digital Freedom Foundation is missing for months: http://www.digitalfreedomfoundation.org/ . These problems happened already on 2016. The care for the Freedom Celebrations is, too much frequently, a matter or putting all the eggs on the same basked, then losing the basket. P.S.: At the time of writing this message I proceeded to verify once again access to these sites, and by chance for some minutes they were available again... but then again not. They are intermittent, or maybe it is that just to day because being I ♥ Free Software Day they are working on fixing them. -- Ignacio Agulló · agu...@ati.es 0xC6AB2D51.asc Description: application/pgp-keys 0xC6AB2D51.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [Trisquel-users] Icecat seems very outdated, what browser *should* one be using?
I've been looking into text browsers lately. I also came across one called 'Links2'. It is a text browser which will also display images (or not - based on preference). I have found it useful to help combat procrastination. I find that so many websites now are more interested in grabbing attention and generating clicks. It's very distracting, and I also find it a very inefficient way of accessing information.
Re: [Trisquel-users] Problems modifying grub
Thank you, CalmStorm. That's a kind offer. I will try to find some time to sit down at have another attempt (I'm currently revising for an exam, so I'm careful not to get too distracted by fun projects!).