How to fix invalid unicode characters(?) in fedora 23? - terminal

I install zsh & oh-my-zsh.
I use the lambda-mod-zsh-theme. I copy lambda-mod.zsh-theme file to the ~/.oh-my-zsh/custom/themes/lambda-mod directory and edit file ~/.zshrc with ZSH_THEME="lambda-mod/lambda-mod"
In terminal (terminator) I see the next artifact
In terminator settings default encoding set as Unicode UTF-8.
It's my locale:
$locale
LANG=ru_RU.UTF-8
LC_CTYPE=ru_RU.UTF-8
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
How I can fix it?
Fedora 23 KDE 64bit

solution in this issue.
Just need to install this fonts (powerline/fonts) and select font in terminal settings

Related

Installing pylint with PyCharm

I tried to install pylint with the pylint plugin in PyCharm.
I created a blank project in a venv.
I am using:
pylint 2.14.0
astroid 2.11.5
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]
PyCharm 2022.1.2
I tried:
specifying the path of the exe explicitly in the plugin-setting (C:\git\pythonProject\venv\Scripts\pylint.exe)
different Python version (3.9.6)
different pylint version
new venv
reinstall pylint plugin
Re-installing PyCharm
Restart PC
I get the following Error, when i try to run -help in the console
> (venv) PS C:\git\pythonProject1> pylint -help
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
screenshot
Has anyone a clue? Thank you in advance
need to use
pip install pylint
then generate a pylintrc file like:
pylint --generate-rcfile > ~/.pylintrc
and move it into your projects folder
then find the path to pylint for example:
venv/bin/pylint
then go to preferences -> pylint in PyCharm and set the pylint executable to be that path and click test
Note i have found the SonarLint plugin easier to work with. I wasn't seeing a way to navigate from the lint error to the setting to turn off the link but i saw that with SonarLint

When i compile with xelatex i get an error. Troubles with font Times New Roman

macOS Mojave. MacTex installed.
lid filename `[lmroman10-regular]', contains '['
! Font TU/lmr/m/n/10=[lmroman10-regular]:mapping=tex-text; at 10.0pt not loadab
le: Metric (TFM) file or installed font not found.
<to be read again>
relax
l.54 \normalsize
This error
\usepackage{fontspec}
Add this package with this line
\setmainfont{Times New Roman}
Set with this line
Writing in TeXShop fixed my problem. Also i do sudo tlmgr install scheme-full.

pdfcairo 'unknown or ambiguous terminal type' in gnuplot

After upgrading gnuplot from 4.6 to 5.0.1, I encounter the following error:
set terminal pdfcairo size 3.0in,2.25in font ',8'
^
"plot.plt", line 114: unknown or ambiguous terminal type; type just 'set terminal' for a list
How can I fix it?
PS: pdfcairo works fine in the previous version (4.6).
I install the gnuplot by the following command:
#build it:
./configure --with-cairo
make
#install it:
sudo make install
As described in GNUPLOT Version 5.0.1 Release Notes, the pdfcairo is included by default.
Cairo/pango/wxWidgets This set of terminals includes
pngcairo, pdfcairo, epscairo, and cairolatex for output to a file
wxt for interactive display All of these will be built by default if the
configuration script finds the required libcairo, libpango, libcairo,
libwxgtk, and related support libraries To disable these terminals:
./configure --without-cairo ./configure --with-cairo --disable-wxt
I fix it with the kind reminder of #Christoph.
To tackle this issue, install the dependency libraries for cairo-based terminals by the follwoing command:
sudo apt-get install libcairo2-dev
sudo apt-get install libpango1.0-dev
And then compile gnuplot again:
#build it:
cd gnuplot-5.0.1 ; ./configure ; make
#install it:
sudo make install
Now, everything is fine. Enjoy it:-)
gnuplot> set term
Available terminal types:
cairolatex LaTeX picture environment using graphicx package and Cairo backend
canvas HTML Canvas object
cgm Computer Graphics Metafile
context ConTeXt with MetaFun (for PDF documents)
corel EPS format for CorelDRAW
dumb ascii art for anything that prints text
dxf dxf-file for AutoCad (default size 120x80)
eepic EEPIC -- extended LaTeX picture environment
emf Enhanced Metafile format
emtex LaTeX picture environment with emTeX specials
epscairo eps terminal based on cairo
epslatex LaTeX picture environment using graphicx package
fig FIG graphics language for XFIG graphics editor
hpgl HP7475 and relatives [number of pens] [eject]
latex LaTeX picture environment
mf Metafont plotting standard
mp MetaPost plotting standard
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
pdfcairo pdf terminal based on cairo
pngcairo png terminal based on cairo
postscript PostScript graphics, including EPSF embedded files (*.eps)
Press return for more:

Sublime Text 2 - BeautifyRuby don't work

i've installed BeautifyRuby in my Sublime Text 2 (running OS X Yosemite 10.10), but is not working, I receive this message when I try to cmd + ctrl + k:
Error: invalid output. Check your ruby interpreter settings
I've changed, as suggested https://github.com/CraigWilliams/BeautifyRuby , the sublime-settings file with:
"ruby": "/Users/alessiogastaldo/.rbenv/bin/ruby"
and also using the specific version:
"ruby": "/Users/alessiogastaldo/.rbenv/versions/1.8.7-p371/bin/ruby"
but with no success.
I've read the different solutions proposed (like https://github.com/CraigWilliams/BeautifyRuby/issues/52) but nothing works.
Anyone do know how to solve this?
I had the same problem too.
I solved with this:
In terminal, run the command: which ruby.
Copy the result. In my case was: "/home/user/.rbenv/shims/ruby"
Open your package settings. In my case: Preferences > Package Settings > BeautyfyRuby > Settings Default.
Add this line in the file: "ruby": "/home/user/.rbenv/shims/ruby",
You will need to install the htmlbeautifier gem.
Run the commmand in terminal: gem install htmlbeautifier
It works for me.

Xcode: Compile Error 71, can't find copystrings

CopyStringsFile ../StepMania.app/Contents/Resources/it.lproj/Localizable.strings it.lproj/Localizable.strings
cd ~/OpenSource/GameDev/StepMania/PBProject
setenv ICONV /usr/bin/iconv
/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding utf-16 --outputencoding UTF-16 it.lproj/Localizable.strings --outdir ~/OpenSource/GameDev/StepMania/PBProject/../StepMania.app/Contents/Resources/it.lproj
error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)
Command /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings failed with exit code 71
But when I navigate to that location, I have the file (copystrings).
Anybody have any solutions?
Using Xcode 3.2.3 (Latest)
Mac OS X 10.6.4
I'm also using the latest SVN of StepMania, if you want to look at the localization files.
https://svn.stepmania.com/svn/trunk/stepmania/PBProject/
I had on old symlink to ruby. I originally thought this wasn't related to ruby... but as it turns out.. it is.
sudo ln -s /opt/local/bin/ruby /usr/bin/ruby
Make sure to delete the old /usr/bin/ruby first.

Resources