Tag Info

New answers tagged


Apologies, that did not work after all. The following worked: sudo gedit goto /usr/share/themes/Greybird/gtk-2.0/gtkrc change from: gtk-color-scheme = "bg_color:#CECECE\nselected_bg_color:#398ee7\nbase_color:#fcfcfc" # Background, base. gtk-color-scheme = "fg_color:#3C3C3C\nselected_fg_color:#000000\ntext_color:#212121" # Foreground, text. ...


In Ubuntu Studio I found that this problem can be solved by selecting a different Style in Windows Manager, e.g. from MurrinaDark to MurrinaBlue.


Found a nice Perl one-liner for that, using md5 hashes ;), but this is slow and only worth it if you have very long lines and a huge file where it will greatly reduce memory use: perl -MDigest::MD5 -ne '$seen{Digest::MD5::md5($_)}++ or print' foo Therefore simply use perl -ne '$seen{$_}++ or print' foo Source Example cat foo foo fii foo bar foobar ...


There are multiple ways to do this. If ordering is not important then, sort and uniq are easiest to remember. However if you want to maintain ordering of the text file yet delete duplicates then awk does the trick. You can also use sed I believe. Here is an example /tmp/debugSys>cat fileWithDupText.txt line2 line21 line2 line1 line2 ...


Using awk awk '!x[$0]++' infile.txt > outfile.txt the way it works is that it keeps count of the lines in an array, and if the current count is zero, ie the first occurance, it prints the line, otherwise it continues to the next one.


I found out an answer myself. A solution is to install 3rd party themes like Numix, Paper, etc... It fixed almost entirely this issue.


I know of no CHM viewer who can. You could convert the chm document into a pdf and use an annotation tool for pdf files: How can I highlight or annotate PDFs? To convert the chm file, install chm2pdf sudo apt-get install chm2pdf and create a pdf, eg: chm2pdf --book yourfile.chm


As described here http://askubuntu.com/a/606583/448007, the problem seems not to appear by using the old UXA hardware acceleration for for the Intel graphic cards. Edit the following section of the /etc/X11/xorg.conf file such that AccelMethod is set to "uxa" or create the file if it does not yet exist: Section "Device" Identifier "Intel Graphics" ...

Top 50 recent answers are included