roppong blog

テクノロジーに関する記事 8件

2021年02月08日

TypeError: this.getOptions is not a function

テクノロジーrandom eye catch image

Jump to heading 事象

パッケージ全体をアップグレートしたら下記メッセージが出現

#!/bin/bash -eo pipefail
yarn run generate
yarn run v1.22.5
$ nuxt generate
[fatal] Nuxt build error
  ERROR in ./pages/blog/_slug.vue?vue&type=style&index=0&id=0d993308&lang=scss&scoped=true& (./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_mo...
2020年10月13日

ContentfulのWebhooksからCircleCIのworkflowsが読めない

テクノロジーrandom eye catch image

Jump to heading 経緯

本ブログのデプロイ先をNetlifyからFirebase Hostingに移行したが、Firebase Hosting単体では静的サイトを生成(generate)する機構がないためContentfulで記事を更新したときや、プログラムソースを修正したときは都度どこかで生成&デプロイする必要がある。ローカルでそれをやっても良いがいちいち面倒なので、
記事更新の際にはC…

2020年08月18日

[python3]ヒアドキュメントのTextwrap.dedent() が効かない

テクノロジーrandom eye catch image

Jump to heading 事象

ヒアドキュメントの余計なインデントを無効化するために、Textwrap.dedent()を使用したが、
想定どおりに無効化されない。

Jump to heading 実行環境

root@f939e639fd93:~# python --version
Python 3.8.5

Jump to heading 期待する動作

test.py

def write_profile():
    profile_file_name = 'profile.txt'

    my_profile = """My name is {my_name}.
        I'm {age} ...
2020年08月04日(更新日:2020年08月10日)

wgetをすると「失敗しました: 接続を拒否されました」となる

テクノロジーrandom eye catch image

Jump to heading 事象

gitのバージョンをRPMではなく手動で上げたかったので、下記手順を試みる
https://qiita.com/sirone/items/2e233ab9697a030f1335
しかし、wgetをするところでつまずいた。

[root@5ab5b555f345 conf]# wget https://www.kernel.org/pub/software/scm/git/git-2.2.0.tar.gz
--2020-08-05 05:32:10--  https://www.kernel.org/pub/software/scm/git/git-2.2.0...
2020年08月04日

Bitbucketからcloneすると501になる

テクノロジーrandom eye catch image

Jump to heading 事象


[roppong@5ab5b555f345 roppongi]$ git clone https://atlassian.hogehoge.com/stash/scm/hogehoge/hogehoge.git
Initialized empty Git repository in /home/roppong/dev/hoge/roppongi/hogehoge/.git/
error: The requested URL returned error: 501  while accessing https://atlassian.hogehoge.com/st...
2020年07月31日

Story of AI

テクノロジーStory of AI eyecatch image

Jump to heading contents

I am going to tell you about…

2020年07月15日

stty: 標準入力: デバイスに対する不適切なioctlです

テクノロジーrandom eye catch image

Jump to heading エラーメッセージ

stty: 標準入力: デバイスに対する不適切なioctlです

英語だと

Inappropriate ioctl for device

が発生した時の解決方法をメモ(私のケース)

Jump to heading 発生した状況

dockerコンテナ内で ssh hoge@localhost ls -l した際に発生した。

Jump to heading 解決方法

私の場合、ログインしていたコンテナイメージでは、backspaceキーが効かなかったため、
bashrcに下記設定を行なっていた。

stty erase ^?

これが悪…

2020年03月04日

世界最小スマホ Jelly Pro でブログを更新する

テクノロジーjelly pro image

jelly proを使って手のひらでブログを更新することができます。

  • 1