error: I need a copy of *nroff to format the documentation のエラーではまったときの解決策 centos
./configure --prefix=$INSTALL_DIR
&& make && make install
実行時に
error: I need a copy of *nroff to format the documentation
というエラー
■解決策
# yum
cactiをdocker環境で構築した時のメモ cacti
cactiをdocker環境で構築した時のメモ。
■エラー1
standard_init_linux.go:228: exec user process caused: no such file or directory
■対応
ファイルをすべて改行コードを LF にかえた
あと、UTF-8にも変えた
centos 環境に python3 インストール Python
centos 環境に python3 インストール
1 sudo su -
2 事前確認
# python -V
Python 2.7.5
# python3 -V
-bash: python3: command not found
3 python インストー
ツイッターに投稿する際に、URLを入力すると画像が表示できるかを確認できるサイト twitter
ツイッターに投稿する際に、URLを入力すると画像が表示できるかを確認できるサイト
https://cards-dev.twitter.com/validator
og:image とか twitter:card を metaタグ内にいれたらいけた
python2とpython3の環境の違いで、SyntaxError: invalid syntaxが発生。python2(正確には3.6より前)ではf文字列が使えず、解決策として.format()を使用するよう変更 Python
python2とpython3の環境の違いで、SyntaxError: invalid syntaxが発生。python2(正確には3.6より前)ではf文字列が使えず、解決策として.format()を使用するよう変更
python3の環境で作成したスクリプトが python2でも動くかどうかを確認したが
SyntaxError: invalid syntax<br
python環境で、pdfの内容をテキストファイルに出力する(日本語対応OK) Python
python環境で、pdfの内容をテキストファイルに出力する(日本語対応OK)
pdfminer.sixを使うよ
■pdfminer.sixをインストール
# pip install pdfminer.six
pdf2txt.py が /usr/local/bin/ にダウンロードされる
pdfファイル内容をすべて text
django で checkbox 列を追加する django
django で checkbox 列を追加する
models.py において models.BooleanField を設定するだけ
hoge_flag = models.BooleanField(
verbose_name= hoge_flag
default=False
)
django の admin機能の一覧画面で編集可能にする django
python django の 管理機能の一覧画面で編集可能にする
admin.py においてlist_editableを設定するだけ
class hogeAdmin(admin.ModelAdmin):
list_display = ( id hogename updated_at )
list_editab
sqlのwhere句に caseを書く例 sql一般
sqlのwhere句に caseを書く例
sqlで各条件によって分岐したいことがあったのでメモ
------------------------------------
select * from hogetable
where
and col1 = aaa
and
case
when co