-
未分類
【ChatGPT】左にある”履歴”がなくなった。
【経緯】 ChatGPTを使っていて、フォーム左側にいつもは履歴が残っていたのになくなってた。 "Not seeing what you expected here? Don't worry, your conversation data is preserved! Check back soon"と出てます。 なので、今回そのエラーの解決方法を... -
未分類
【Unity】itemに当たったら、pointが増える【C#】
【経緯】 Unityでゲームを作ろうとして、「itemにpointが増える」というのを作りたくて、 今回勉強しました。 【タグを使って、タグのついたオブジェクトを検索する】 プログラムを書きます。*当たり判定のプログラムは書いていません。また、"pint"はText... -
C#ノート
datGridViewでcolumnに日付を入れたい【C#】
【経緯】 C#でdataGridViewを使っていて、「columnに日付を入れたい」と思い、今回勉強しました。 【DateTimeで日付を取得して、ループさせていく】 まず、プログラムを書きます。「columnに日付をいれていく」という想定です。 //DataGridViewに表示する... -
C#ノート
datGridViewで行に連続した値を追加したい【C#】
【経緯】 C#でdataGridViewを使っていて、「行に”森”,”小森”、”中森”、”大森”という名前を連続して、追加する」というプログラムを作りたくて、今回勉強しました。 【空の行を用意して、ループさせる」】 まず、プログラムを書きます。「行に”森”、”小森”... -
未分類
【ChatGPT】“Too many requests in 1 hour. Try again later.”
【経緯】 ChatGPTを使っていたら、”Too many requests in 1 hour. Try again later.”というエラーが出ました。 なので、今回そのエラーの解決方法を勉強しました。 【とりあえず1時間待つ】 結論からいいますと、「1時間待つ」と解決します。 エラーの理由... -
C#ノート
ボタンを押して、違うフォームを開きたい【C#】
【経緯】 C#で「ボタンを押すと、違うフォームが開く」というプログラムを作りたくて、今回勉強しました。 【「.Show()」を使う】 まず、プログラムを書きます。「"button1"というボタンをクリックしたら、"Form2"が開く」という想定です。 private void b... -
C#ノート
Formをもう一つ作りたい【C#】
【経緯】 C#で「ボタンを押すと、フォームが開く」というプログラムを作りたかったのですが、 Formを追加する方法がわからなかったので、今回勉強しました。 【「ソリューションエクスプローラー」→「追加」→「新しい項目」→「Windowsフォーム」→「追加」... -
Pythonノート
openpyxlで実行すると図形が消える【python】
【図形がきえちゃう!?】 pythonのopenpyxlを使って、「既存のファイルのセルに値を入力して、別のフォルダに保存する」というプログラムを作ったのですが、保存したExcelファイルを見てみると、既存ファイルに貼ってあった図形が全部消えてました。 shap... -
未分類
【Unity】実行したら、突然落ちる
【経緯】 Unityでゲームを作ろうとして、ゲームで使う画像をフォルダに保存してゲーム画面を作って、さらにスクリプトを作って、実行させたら、突然落ちて、Unityのアイコンに蜘蛛が出てきました。 なので、今回はその対処法を書きます。 【プロジェクト名... -
VBAノート
“Call”ステートメントで取得した変数を他のbookでも使いたい。【VBA】
【経緯】 VBAでモジュールを二つ「module1」「module2」と作り、「module2」で「module1」で取得した変数を使いたいと思い今回勉強しました。 【グローバル変数を使う】 まず、ダメだったプログラムを書きます。 'module1 Sub MySub() Dim myBar as String... -
Pythonノート
openpyxlでセルのフォントサイズを変更する方法【python】
【経緯】 pythonのopenpyxlを使って、Excelファイルのフォントサイズを変える方法を今回勉強しました。 【"from openpyxl.styles import Font"を使う】 まず、プログラムを書きます。「セル”A1”に'Hello World'という値にして、フォントサイズも変える」と... -
Pythonノート
InvalidFileException: openpyxl does not support the old .xls file format, please use xlrd to read this file, or convert it to the more recent .xlsx file format.【python】
【経緯】 pythonのopenpyxlを使ってExcelファイルを読み込もうとしたら、”InvalidFileException: openpyxl does not support the old .xls file format, please use xlrd to read this file, or convert it to the more recent .xlsx file format.”という... -
Pythonノート
openpyxlでワークシート内の範囲から情報を取得して、ランダムでセルの値を出力する方法【python】
【経緯】 pythonのopenpyxlを使ってExcelのセル”A1”からセル"A10"までの情報を得て、それをランダムで出力する方法を今回勉強しました。 【"random"を使う】 まず、"openpyxl"をインストールします。 pip install openpyxl 次にプログラムを書きます。「"e... -
Pythonノート
openpyxlでExcelの情報を取得する方法【python】
【経緯】 pythonのopenpyxlを使ってExcelの情報を取得する方法を勉強しました。 【"load_workbook"を使う】 まず、"openpyxl"をインストールします。 pip install openpyxl 次にプログラムを書きます。「"example.xlsx"というExcelファイルの情報を得る」... -
STEPNノート
2023年2月の結果【STEPN】
2月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 491.2 = 887.2 - (96 + 220 + 80) 収入内訳 獲得GST合計887.2887.2 支出内訳 レ... -
C#ノート
アプリを違うPCで実行すると実行されない【C#】
【経緯】 C#で.txtファイルを読み込むwindowsアプリを作成して、自分のPCでは動きました。 他の人にも使ってほしかったので、他の人のPCで実行してみたら、うまくいきませんでした。 なので、今回は他のPCでも実行できる方法を勉強しました。 【フルパスじ... -
C#ノート
ランダムなのに毎回同じ数値になってしまう。【C#】
【経緯】 C#でランダムに値を読みたくて、Randomを使っていた。 使ってみると、毎回同じ数字なり、全然ランダムに数値を生成することができなかった。 なので、今回はランダムに値を読む方法を勉強しました。 【「Random random = new Random(Guid.NewGuid... -
C#ノート
Formを実行したら、.txtファイルを読み込んでいる状態にしたい【C#】
【経緯】 C#で単語帳のようなものを作っていて、ダイアログを使って、.txtファイルを読み込んでいた。 ダイアログを使うのが面倒くさいので、Formが開いたら、.txtファイルを読み込んだ状態にできないか、 今回勉強しました。 【「public Form1()」の中に... -
C#ノート
C#でコマンドプロンプトでいう「cd」の操作がしたい【C#】
【経緯】 C#でカレントディレクトリの操作がしたくて、今回その方法を勉強しました。 【「Directory.SetCurrentDirectory("")」を使う】 まず、プログラムを書きます。 using System.IO; //カレントディレクトリを変更する Directory.SetCurrentDirectory(... -
C#ノート
出来たWindowsアプリのアイコンを変えたい【C#】
【経緯】 C#でWindowsアプリが完成しました。 しかし、デフォルトのアイコンがダサすぎる。 なので、今回は出来たWindowsアプリのアイコンの変え方を勉強しました。 【「.ico形式」で画像を作るか拾ってくる】 はじめにアイコンを決めます。作るか拾ってく... -
C#ノート
Labelのテキストを変えたい【C#】
【経緯】 C#でフォームで作ったLabelのテキストを変える方法を今回勉強しました。 【「Label.Text = ""」でできる】 初めにプログラムを書きます。「フォームにLabelをドロップして、(name)を”MyLabel”にして、Textを”時間”に変える」という設定です。 MyL... -
C#ノート
string型をdouble型に変換したい【C#】
【経緯】 C#でstring型をdouble型に変換する方法を今回勉強しました。 【「double.Parse()」メソッドを使う】 初めにプログラムを書きます。「string型”1.234”をdouble型に変換する」という設定です。 string str = "1.234"; // 文字列 double num = doubl... -
Excelノート
クイックアクセスツールバーからマクロを実行したい【Excel】
【経緯】 Excelでマクロをクイックアクセスツールバーから実行できないか。 今回勉強しました。 【”クイックアクセスツールバー” → ”その他のコマンド” → ”コマンド選択” → "マクロ" → ”追加(A)” → ”OK”】 早速やり方を説明します。 まず、”クイ... -
Excelノート
日付を一日にしたい【Excel】
【経緯】 ExcelでMATCH関数を使うため、日付を合わせたかった。 今回勉強しました。 【”=DATE(YEAR(),MONTH(),1)"で日を合わせる】 まず、数式を書きます。”A1”に日付が入っているという設定です。 "DATE(YEAR(A1),MONTH(A1),1)" こうすると、最後のほうに... -
Excelノート
セルにコメントを埋め込みたい【Excel】
【経緯】 Excelで数式が複雑すぎて、思考を残しておきたいと考えてました。 セルに直接、思考書くのは見た目が悪かったので、セルの上をマウスオーバーすると 文字が出てくることはできないか、 今回勉強しました。 【”新しいメモ”を使う】 結論から言うと... -
Pythonノート
Tkinterのテキストボックスの幅を変えたい【python】
【経緯】 Tkinterのテキストボックスが広すぎて困ってました。 なので、今回はTkinterのテキストボックスの幅の変え方を勉強しました。 【width=を使う】 まず、プログラムを書きます。 txtbox = tk.Entry(width = 5) とすると、テキストボックスの幅を変... -
Pythonノート
複数あるラジオボタンを一つだけ取得したい【python】
【経緯】 pythonでスクレイピングのプログラムの依頼を受けてました。 サイトを見ると、2つラジオボタンがあって、調べると「NAME要素」で取得できそうでした。 しかし、1つ目のラジオボタンと2つ目のラジオボタンのNAME要素が同じでした。 なので、今回は... -
未分類
エフェクト、ジェネレータ、またはメディアが見つからないか、またはオフラインです。【Final Cut Pro】
【経緯】 Final Cut Proで動画編集したデータをファイルに書き出そうとしたら、「エフェクト、ジェネレータ、またはメディアが見つからないか、またはオフラインです。」と出てファイルを書き出せませんでした。 なので、今回はこれの対処法を書きます。 ... -
未分類
この項目は現在カメラ上のメディアを参照しているため、共有できません。【Final Cut Pro】
【経緯】 Final Cut Proで動画編集したデータをファイルに書き出そうとしたら、「この項目は現在カメラ上のメディアを参照しているため、共有できません。」と出てファイルを書き出せませんでした。 なので、今回はこれの対処法を書きます。 【ファイル →... -
STEPNノート
2023年1月の結果【STEPN】
1月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 600.03 = 994.03 - (64 + 240 + 90) 収入内訳 獲得GST合計994.03994.03 支出内訳...