のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

git 大きな容量

大きな容量をどうやって消すか。 www.d-wood.com $ git count-objects -v warning: garbage found: .git/objects/pack/tmp_pack_2pozgg warning: garbage found: .git/objects/pack/tmp_pack_3BSvwW warning: garbage found: .git/objects/pack/tmp_pack_RmL…

git clone error. fatal: the remote end hung up unexpectedly

error: RPC failed; curl 56 OpenSSL SSL_read: No error fatal: the remote end hung up unexpectedly fatal: early EOF git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-loc…

fonttools cmap

fonttoolsのテストより引用 cmap github.com cmap_org = font_org["cmap"] font_temp = ttLib.TTFont() cmap_temp = table__c_m_a_p() cmap_temp.tableVersion = 0 <=これを入れないと、エラーになった。 cmap_temp.tables = [c0, c1, c2] <=入れ替えたりで…

Chrome Cast アルバムが見つかりませんでした。

Chrome Castで背景を選択し、 Googleフォトを選ぶと以下のメッセージがでて、 選択できない。 アルバムは、作ってある。 Google Homeアプリを削除して、入れ直してもだめ。 Google フォトアプリを削除して、入れ直してもだめ。 アルバムが見つかりませんでし…

brew doctor warning PATHにSpaceがあるとき

VMwareFusionが入っているとき、PATHにスペースが含まれる。 そのため、以下のエラーがでるときがある。 #修正前 alias brew="env PATH=${PATH//$HOME\/\.pyenv\/shims:} brew" % brew doctor env: Fusion.app/Contents/Public:/Library/Apple/usr/bin: No s…

pyenv install 3.7.7

% pyenv global 3.7.7 pyenv: version `3.7.7' not installed homebrewなしで、入れて見る % pyenv install 3.7.7 /Users/m_fujii/.pyenv/plugins/python-build/bin/python-build: line 1541: brew: command not found /Users/m_fujii/.pyenv/plugins/python…

mac pyenv

% pyenv pyenv 1.2.17-2-ga8ca63fc Usage: pyenv <command> [<args>] Some useful pyenv commands are: --version Display the version of pyenv commands List all available pyenv commands exec Run an executable with the selected Python version global Set or show </args></command>…

mac pyenv install

% git clone https://github.com/pyenv/pyenv.git ~/.pyenv Cloning into '/Users/m_fujii/.pyenv'... remote: Enumerating objects: 17716, done. remote: Total 17716 (delta 0), reused 0 (delta 0), pack-reused 17716 Receiving objects: 100% (17716/1…

mac pyenv install

% git clone https://github.com/pyenv/pyenv.git ~/.pyenv Cloning into '/Users/m_fujii/.pyenv'... remote: Enumerating objects: 17716, done. remote: Total 17716 (delta 0), reused 0 (delta 0), pack-reused 17716 Receiving objects: 100% (17716/1…

mac python3 install

macにpython3を入れた。 www.python.org % cat .zprofile # Setting PATH for Python 3.7 # The original version is saved in .zprofile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}" export PATH code-graffiti.com % ls…

Log Folding@home Client

Folding@home Clientの動いているときのログ

folding@home covid19のタンパク質の解析用に、GPUパワーを提供

folding@homeのWindows10版とMac版を動かしてみた。 Mac版は、GPUを使ってくれないようなので、やめた。 Windows版は、GPUとCPUの両方がうごく。 Any Diseaseで動作させている。 プログラムの方のコントローラを使って操作している。 Webのコントロールは、…

DJ デミオ エアコン故障

去年の夏、エアコンが故障し、助手席側から暑い空気しか出なくなった。 運転手側はわずかに涼しい風が出てる。 30度超えると、車内は冷えなくなる。 冬は、特に気にならなかった。 定期点検にだしたところ、コンデンサーの故障ということになった。 一週間、…

plistlib.dump(obj, fp)

defcon/object/font.py def save( self, path=None, formatVersion=None, removeUnreferencedImages=False, progressBar=None, structure=None, ): """ Save the font to **path**. If path is None, the path from the last save or when the font was firs…

ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

import defcon import extractor ufo = defcon.Font() extractor.extractUFO("./font.otf", ufo) ufo.save("./font_otf.ufo") pypi.org UnicodeかAscii以外の文字があるから、エラーなのかな? myExtracotr2.py Traceback (most recent call last): File "fo…

"pip install"と"pip install --upgrade"のupgradeはなにかhelpを調べてみた

"pip install"でよく、"pip install --upgrade"がついている、upgradeとはなにか調べてみた。 依存関係を、チェックしてくれるから、使うのかな? pip installだと、指示された通り、installしてしまう pip install --upgrade だと、依存関係をチェックして…

This dictionary creation could be rewritten as a dictionary literal

This dictionary creation could be rewritten as a dictionary literal tonari-it.com

default argument value is mutable

default argument value is mutable blog.cosnomi.com

extractor

extractor $ pip install ufo-extractor import extractor import defcon ufo = defcon.Font() extractor.extractUFO("/path/to/MyFont.ttf", ufo) ufo.save("/path/to/MyFont.ufo") github.com

getBestCmap

class table__c_m_a_p(DefaultTable.DefaultTable): def getcmap(self, platformID, platEncID): for subtable in self.tables: if (subtable.platformID == platformID and subtable.platEncID == platEncID): return subtable return None # not found こ…

“@cython”

stackoverflow.com qiita.com studio3104.hatenablog.com

python defcon

(venv) C:\Users\m_fuj\Documents\PyCharm\myhello>cu2qu -h Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File …

pycharm pip install

(venv) myhello>pip list Package Version ---------- ------- pip 19.0.3 setuptools 40.8.0 (venv) \myhello>pip install cu2qu Collecting cu2qu Downloading https://files.pythonhosted.org/packages/74/1f/3d449c8e4f1230e4dab197286d81dea06bef406604…

Visual Studio 2019 Python環境

VS Python環境 VSでインストールされたPython VSでインストール

pycharm windows10 install

welcome Choose Install Location C:\Program Files\JetBrains\PyCharm Community Edition 2019.3 Choose Install Location Installation Options Installation Options Choose Start Menu Folder Choose Start Menu Folder Installing Installing Reboot そ…

cu2qu error "Running setup.py install for appdirs ... error"

依存していそうなモジュール Installing collected packages: appdirs, fs, fonttools, cu2qu (Dev) C:\>cd users (Dev) C:\Users>cd m_fuj (Dev) C:\Users\m_fuj>cd Doc (Dev) C:\Users\m_fuj\Doc>cd github (Dev) C:\Users\m_fuj\Doc\GitHub>cd cu2qu (Dev…

conda update

conda update -n Dev --all

Windows terminal(preview)で、anaconda コマンドプロンプトを開く方法

スタート>AnacondaPrompt>その他>ファイルの場所を開く ファイルの場所 ファイルを選択して、右クリック>ファイルのプロパティをクリックする。 ファイルのプロパティ リンク先の内容をコピペする。 リンク先 %windir%\System32\cmd.exe "/K" C:\Program…

Error: ファイルが見つかりません "c:\rustc\4560ea788cb760f0a34127156c78e2552949f734\src\libstd\rt.rs"

c:\rustc...\src\libstd\rt.rsが開けないらしい。 'rt.rs' を開くことができません: ファイル (Error: ファイルが見つかりません (c:\rustc\4560ea788cb760f0a34127156c78e2552949f734\src\libstd\rt.rs)) を読み取ることができません。 以下の設定を、lauch…

vsCode Cannot find or open the PDB file.

------------------------------------------------------------------- You may only use the C/C++ Extension for Visual Studio Code with Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you develop and test your appl…