Re: [Trisquel-users] Help w/ Word Search

2020-07-09 Thread handala

Alas, it seems not to be.  Right click on icon reveals no options.


[Trisquel-users] Re : Need to compare numbers - Help with script

2020-07-09 Thread lcerf
I never used awk much, if at all, so I have little experience with it (unlike  
grep which I have used in a few occasions), which is why I didn't think of  
using it.


AWK is a very simple programming language.  Very simple to learn too,  
especially if you know the basics of the languages that inspired it: C  
(Boolean operators, conditional statements, loops, numerical,  
string-processing functions, etc.), sed (mostly for the program structure,  
conditions followed by actions, but sed-like substitutions are possible too),  
and the shell (pipes, redirections, etc.).  If you often need to process  
structured text files, it is really worth learning AWK's basics: it will take  
you a day of work, and you will save much time in the long run.


I will need your help to, first, understand the code you wrote.

First of all, I wrote the program on one single line.  For clarity, you  
should break the line.  Any good text editor can auto-indent the program and  
highlight its syntax (as long as the language is recognized: the first line  
should be "#!/usr/bin/awk -f").


The program I wrote consists of one single action, between braces (which more  
generally delimit "blocks" of instructions, as in C).  That action is  
unconditional, because no condition precedes "{".  That means the action is  
executed on every record.  By default every line is a record (the record  
separator, RS, can be redefined).  It is the case here.


The program uses two "for" loops, "for (i = 1; i 


Re: [Trisquel-users] Losing power

2020-07-09 Thread bobandrew
> Yes, it can: the processor reads a sensor and shuts the computer off  
(bypassing the OS)


Thanks, this looks exactly like what happened, though the first two or three  
occurrences triggered a restart. The last occurrence to this hour triggered  
something uglier.


Then I guess it must have been the combination of a noticeably warmer weather  
today, increased cpu activity, sitting on a sort of fabric cover (both the  
laptop and I) and dust (only the laptop I hope).


It did it again after some time of the same resource intensive stuff. I  
brought it in a cooler room (just a normal room, but cooler because it is not  
taking so much sun) on a standard table without any sort of fabric and it  
seems to be sitting happier there.


I must confess I never checked the dust on this laptop, while it might have  
now become my longer lasting notebook. Thanks to Mate and Xfce, among others.  
And now thanks to Magic Banana too.


[Trisquel-users] Re : Help w/ Word Search

2020-07-09 Thread lcerf
You should be able to add any launcher to the dock, including one executing  
'caja'.


[Trisquel-users] Re : Losing power

2020-07-09 Thread lcerf

Can some sort of overheating trigger a power off?

Yes, it can: the processor reads a sensor and shuts the computer off  
(bypassing the OS) if a critical temperature is reached.  The lm-sensors  
package provides a command to read that sensor (and more).  In normal  
consitions, the critical temperature should never be reached, even when all  
cores are 100% busy.  But a layer of dust may cover your processor (under its  
fan).


Re: [Trisquel-users] Need to compare numbers - Help with script

2020-07-09 Thread gnuser

First, thanks for the reply.

Second, I never used awk much, if at all, so I have little experience with it  
(unlike grep which I have used in a few occasions), which is why I didn't  
think of using it.


Third, I will need your help to, first, understand the code you wrote. It  
seems to me, it is comparing each number to the entire document, am I  
correct? I ask this because the intention was to only compare each number to  
the next line.
Basically find common numbers between first and second lines, then second and  
third, then third and fourth, etc etc.


Re: [Trisquel-users] Help w/ Word Search

2020-07-09 Thread handala

Now if only I could add Caja to the dock...


[Trisquel-users] Losing power

2020-07-09 Thread bobandrew
Three times in a row, my laptop just powered off while I was manipulating it,  
with both battery and power cord plugged in. Never experienced this situation  
before. The battery was around one third up or higher when it happened.


Can some sort of overheating trigger a power off? I noticed that it had been  
heating a bit more than usual since I was using some relatively resource  
intensive stuff (intensive for a 6+ yo supermarket laptop).


Or could it be that some inner contacts did not like being manipulated? I  
cannot reproduce the problem after it has cooled down. What evil power spirit  
has been playing with that laptop?


Re: [Trisquel-users] How to copy and paste a selected area on GIMP?

2020-07-09 Thread bobandrew

Which suggestion? I merely provided some historical experience of successs.

You are indeed wellcommodore rare.


Re: [Trisquel-users] How to copy and paste a selected area on GIMP?

2020-07-09 Thread msuzuqi
Your suggestion did not work. And please do not advertise a particular  
product (in this case, it seems to be Chanel) in a subtle way.


[Trisquel-users] Re : Can a path statement be too long or the file too big?

2020-07-09 Thread lcerf
Grep worries me because it selects a lot of names that aren't in the pattern  
file


No, it does not.  You do not understand what it does and/or do not use it  
properly.  Beside option -F missing (as I explained in my previous post), a  
tab should certainly end every pattern.  For instance, line 297123 of  
SS.HN-GLU-MB-January2020-PTRs-Rndm.txt is "union".  As a consequence, 'grep  
-f SS.HN-GLU-MB-January2020-PTRs-Rndm.txt' outputs every line including  
"union", i.e.:

$ grep union SS.IPv4-NLU-Joined-HN-GLU-January2020-slash24.PTRs_.Tally_.txt
unallocated.unioncom.net.ua 249
r-r-resale-dba-once-upon-a-child-9148-union.static.fuse.net 4
chaco-credit-union-10m-fuse.static.fuse.net 4
mail.unionbankph.com3
gw.interunion.ru2

Including line 297123, 128 lines in SS.HN-GLU-MB-January2020-PTRs-Rndm.txt  
include "union":

$ zgrep -c union SS.HN-GLU-MB-January2020-PTRs-Rndm.txt_0.gz
128
The presence of the 127 other lines makes no difference whatsoever in the  
output of 'grep -f SS.HN-GLU-MB-January2020-PTRs-Rndm.txt'.


The join, sort, and comm-based scripts all were executed orders of magnitude  
faster than the grep script.


The overall run times of is dominated by sort's, which is linearithmic in the  
number of lines in the largest of the two files.  Because grep must output  
the lines in the order of the (potentially infinite) file, its run time grows  
with the product of the number of lines in that file and the number of  
patterns (for each processed line, all patterns are enumerated): that is much  
worse if both files are larges.  Also, without -F, grep interprets the  
patterns as regular expressions: it is obviously more expensive to match a  
regular expression than a fixed string.  Finally, grep searches the pattern  
in the whole line and not only in one specific field, as join does.


Re: [Trisquel-users] USB mouse problem

2020-07-09 Thread tr33hugger
Damnit that was short lived. Return of the scroll issue already. THe cursor  
really hates being scrolled over RSS, or scrolled too quickly. But only with  
USB mouse.
If it is a 945GM display as suggested I don't know how to fix that. uninstall  
then reinstall display drivers ?


Re: [Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread davidpgil
I am so afraid of messing up a system flash such as coreboot. id have to look  
into this more and get informed.


Re: [Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread davidpgil
lord... in my case I just installed Ubuntu Mate and am  using only the  
trisquel repos going forward and removing non-free stuff as I find it. i dont  
think i want to use this laptop in such a frankensteined way :)


Re: [Trisquel-users] How to copy and paste a selected area on GIMP?

2020-07-09 Thread bobandrew

You are welcommodore.


Re: [Trisquel-users] USB mouse problem

2020-07-09 Thread tr33hugger
Turning off smooth scrolling in Pale Moon preferences/advanced/scrolling has  
calmed the scrolling glitch some. Hasn't eliminated it but the scroll is less  
prone to closing the browser when rolling over rss.


It only me took six months to try it without smooth scroll. 20 goto 10.


Re: [Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread enduzzer
External disks work. Something like the Sandisk Extreme Pro would be almost  
as speedy as any internal disk.


https://yewtu.be/watch?v=_eNRJTgW9JI


Re: [Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread xliang9550
The boot firmware on Mac is neither BIOS nor UEFI. However, it is certain  
kind of "UEFI" (Undefined Extensible Firmware Interface) which doesn't  
observe the UEFI standard.


If you can replace its boot firmware, flash coreboot on it. You can still use  
Tianocore as payload so it works like UEFI, but it's standardized.


Re: [Trisquel-users] Can a path statement be too long or the file too big?

2020-07-09 Thread amenex
Grep worries me because it selects a lot of names that aren't in the pattern  
file, even while the operation
remains orderly and manages to select just a fraction of the target file's  
entries. I had thought that grep has
the advantage of allowing me to identify long PTR records based on  
permutations of their IPv6 addresses, but
such comparisons did not occur in the present set of patterns based on IPv4  
addresses, where there weren't any

examples of permutated IPv4 addresses in the target file's PTR's.

Join selected just 141 matches, which were easy to recognize because those  
matches alone included the data in the
pattern file's second column. Comm also selects those 141 matches; and I used  
join to restore their counts column.


The join, sort, and comm-based scripts all were executed orders of magnitude  
faster than the grep script.


The original pattern file and a randomized (sort -R) as well as  
reduced-length (one million+ to 300,000 rows)
target file are attached, for which join as well as comm find 35 matches in  
short order.


Re: [Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread xliang9550
Basically, you need to do the following things on a Mac with T2. First enter  
the maintenance mode, then enable booting from other devices, and disable  
secure boot.


Even if you can do these, there are still more problems. We tried to install  
GNU/Linux on a 2017 Mac Book, but the keyboard, touchpad, and the internal  
NVMe SSD were unusable. To overcome this, you need a 4-port type-C dock and  
attach a keyboard, a mouse, a Live USB, and an external disk for system  
installation.


Re: [Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread enduzzer
"Touchbar MBP", what model would that be? If it's a pre-T2 chip model, so  
Trisquel 9 should boot. With the T2 chip, one should disable the secure boot  
first in order to be able to boot other operating systems.


I have no problem booting Trisquel 9 on my Macbook Air 2015.

https://support.apple.com/en-us/HT208330


Re: [Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread davidpgil

The boot medium is not recognized whatsoever.


[Trisquel-users] Re : Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread lcerf
I do not know the specific instructions for Macbooks.  The general ones are  
behind this link:  
https://trisquel.info/en/wiki/starting-installable-live-system


Re: [Trisquel-users] How to copy and paste a selected area on GIMP?

2020-07-09 Thread davidpgil

maalox? lol -- what?


[Trisquel-users] Touchbar Macbook Pro and Trisquel 9

2020-07-09 Thread davidpgil
I recently tried to install Trisquel 9 on my touchbar Macbook Pro and the  
installer will not boot. Also, aftwer installing Ubuntu and "Trisquelizing"  
(Trisquelize script) the system will not boot. How can I install Trisquel on  
this laptop and have it boot? Is it because of some BIOS incompatibility?