-
未分類
【Unity】ダブルクリックして、Visual Studioが開かない【Visual Studio】
【経緯】 UnityでC#のファイルを作って、そのファイルをダブルクリックした所、メモ帳が開いてしまった。 なのでダブルクリックをしたら、 Visual Studio が開くようにしました。 【C#ファイル、「情報を見る」「このアプリケーションで開く」の順にクリッ... -
未分類
黒い画面を変えたい【Visual Studio】
【経緯】 Visual Studio を使っていて、黒い画面がみにくかったので、 画面の色を変える方法を、 今回、勉強しました。 【「ツール」「オプション」「環境」「全般」の順にクリック】 Visual Studioの画面でまず、「ツール」タブをクリック。 下のほうに「... -
C#ノート
一行ずつプログラムを実行したい【C#】
【経緯】 C#の勉強をしていて、書いたプログラムを一行ずつ実行して、プログラムを確認したいと思い、 今回はキーボードで一行ずつプログラムを実行する方法を勉強しました。 【「F11」を押す】 「F11」を押すとプログラムが一行ずつ実行されました。 VBA... -
C#ノート
プログラム実行のショートカットキー【C#】
【経緯】 C#の勉強をしていて、書いたプログラムを実行するのにいちいちマウス操作していました。 なので、今回はキーボードでプログラムを実行する方法を勉強しました。 【「F5」を押す】 「F5」を押すとプログラムが実行されました。 VBAと同じですね。 ... -
C#ノート
You must install or update .NET to run this application【C#】
【経緯】 C#の勉強をしていて、テキストに載ってあるプログラムを実行したら、コマンドプロンプトに「You Must install .NET to run this application」と出ました。 なので、今回はこのトラブルを解決する方法を勉強しました。 【インストールすればいい... -
Pythonノート
スクレイピングしているとブラウザが落ちる【python】
【経緯】 pythonでスクレイピングをやっていて、Jupyter lab上では動くのに、 コマンドプロンプトでファイルを実行したところ、勝手にブラウザが落ちてしまう症状にあいました。 【"chomedriver"をダウンロード】 まず、やったのがchomedriverのダウンロー... -
C#ノート
プロパティウィンドウがない【C#】
【経緯】 C#の勉強をしていて、Windowsアプリを作ろうとしていました。 テキストに「プロパティウィンドウの・・・・・」みたいな文言があり、 プロパティウィンドウを画面から探してみたがなかった。 なので、今回、プロパティウィンドウを表示させる方法... -
C#ノート
ツールボックスがない【C#】
【経緯】 C#の勉強をしていて、Windowsアプリを作ろうとしていました。 テキストに「ツールボックスの・・・・・」みたいな文言があり、 ツールボックスを画面から探してみたがなかった。 なので、今回、ツールボックスを表示させる方法を勉強しました。 ... -
Pythonノート
ElementClickInterceptedException【python】
【経緯】 pythonでスクレイピングのプログラムの依頼を受けてました。 とりあえず、プログラムが完成して、 依頼者のパソコンで試したところ、"ElementClickInterceptedException"というエラーが出てクリックできませんでした。 なので、今回、勉強しまし... -
未分類
Windowsで”ls”が使えない
【経緯】 コマンドプロンプトで"ls"を使って、カレントディレクトリを調べようとしたら、 できなかった。 なので、今回、勉強しました。 【"dir"を使う】 結論からいいますと、 "dir"と入力するとカレントディレクトリが見れました。 参考になれば、幸いで... -
Pythonノート
スクレイピングで要素の”ID”や”NAME”が取得できない【python】
【経緯】 pythonでスクレイピングのプログラムの依頼を受けてました。 とりあえず、プログラムが完成して、 依頼者のパソコンで試したところ、".find_element_by_id()"のところでエラーがでてしまい。 うまくいきませんでした。 なので、今回、勉強しまし... -
Pythonノート
クリックできるようになるまで、サイトをリロードし続けるようにする【python】
【経緯】 pythonでスクレイピングをやっていて、 例えば、「16時になったら、クリックできるようになっていて、16時まではそこをクリックできない」というサイトに出くわした。 なので、「クリックできるようになるまでループする」という方法を、 今回勉... -
STEPNノート
2022年12月の結果【STEPN】
12月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 1279.21 = 1719.21 - (112 + 270 + 100) 収入内訳 獲得GST合計1719.211719.21 ... -
Pythonノート
指定した時間にプログラムを進めたい【python】
【経緯】 pythonで例えば、「16時に指定したら、プログラムが進む」というのを作りたくて、 今回勉強しました。 【while と if を使ってやる】 始めにプログラムを書きます。「16時にタイムをセットして、その時間になったら、プログラムが進む」いうプロ... -
Pythonノート
メッセージボックスを使いたい【python】
【経緯】 pythonでメッセージボックスみたいなのがないか調べて、 今回勉強しました。 【tkinterのmessageboxを使う】 tkinterにありました。 プログラムを書きます。 from tkinter import messagebox messagebox.showinfo("ループ開始","OKを押すとループ... -
Pythonノート
スクレイピングでプルダウンの値を操作したい【python】
【経緯】 pythonでスクレイピングの勉強をしてて、「プルダウンの値を操作したい」と思い、 今回勉強しました。 【Selectして、valueを取る】 まず、HTMLの中の<select id="***">のようなタグの要素を探します。 ""で囲まれた文字や数字をコピーしま... -
Pythonノート
サイトをリロードする【python】
【経緯】 pythonでスクレイピングの勉強をしてて、「サイトをリロードしたいな」と思い、 今回勉強しました。 【refreshメソッドを使う】 まず、プログラムを書きます。Googleの画面を開いて、リロードするという設定です。 from webdriver_manager.chrome... -
未分類
Boxの中のExcelファイルの履歴を遡る【Box】
【経緯】 Box内に入っているExcelでデータの上書きをしてしまい、前のデータの状態を確認できなくなりました。 なので、前のデータに戻す方法を今回勉強しました。 【「V**」をクリックする】 Boxにある戻したいExcelファイルの拡張子の右横に「V**」とい... -
VBAノート
セルに文字を入れたら、行が追加される【VBA】
【経緯】 Excel関数の「match関数」と「index関数」を使って値を得ていたが、それらの関数だと、「重複している値はセルの上にあるほうが優先されて読む」のでどうにかセルの下にあるほうを読めないか模索していた。しかし、調べていくと、なかなか難しい... -
STEPNノート
2022年11月の結果【STEPN】
11月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 399.94 = 869.94 - (120 + 240 + 140) 収入内訳 獲得GST合計868.94869.94 支出... -
Pythonノート
AttributeError: module ‘tweepy’ has attribute ‘error’【python】
【経緯】 pythonでTwitter APIを使っていて、自動で”いいね”ボタンを押すプログラムを実行したら、 「AttriuteError: module 'tweepy' has no attribute 'error' 」 と出ました、その解決方法を今回勉強しました。 【すでに”いいね”が押されているツイート... -
Pythonノート
Forbidden: 403 Forbidden【python】
【経緯】 pythonでTwitter APIを使おうとしたら、 「Forbidden:403 403 - You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint. you'll need to apply for Elevated acces... -
未分類
error: failed to push some refs to ”【git】
【経緯】 herokuを使っていて、 git push した時に、 「error: failed to push some refs to ''」というエラーが出たので、 今回勉強しました。 【requirements.txtのファイル名が違った】 同じディレクトリの中に"requirements.txt"とファイル名をしなき... -
Excelノート
スペースで文字を区切って、値を得る【Excel】
【経緯】 Excelで「文字をスペースで区切って、スペース前後の値を得たい」と思い、 今回勉強しました。 【「LEFT(A1,FIND("",A1)-1)」と「MID(A1,FIND("",A1)+1,LEN(A1))」を使う】 LEFT(A1,FIND("",A1)-1) まず、数式を書きます。「A1のセルに”森 太郎”... -
VBAノート
列の一番下のセルの行を得る【VBA】
【経緯】 VBAで「B列の文字が入力してある一番最後の行を得たい」と思い、 今回勉強しました。 【「.End(xlUp)」を使う】 まず、プログラムを書きます。 dim xlendrow as long dim endrow as long xlendrow = Cells(Rows.Count,1).Row endrow = Cells(xlen... -
VBAノート
セルに文字を入れたら、プログラムが実行される【VBA】
【経緯】 VBAで「セルに文字を入れたら、日付が入力されるようにしたい」と思い、 今回勉強しました。 【「Worksheet_Change」を使う】 まず、プログラムを書く準備をします。 Excelの開発タブから"Visual Basic"をクリック プロジェクトタブの"Sheet1"を... -
Excelノート
セルに何かしらの文字が入っていたら、日付が出てきて、何も入っていないときは空白にする【Excel】
【経緯】 ExcelでA列に文字をいれて、B列にそれを記入した日が入るようにしたい。 という依頼がありましたので、 今回、勉強しました。 【IF関数と「<>""」を使う】 IF関数と「<>""」とTODAY関数を使うとうまくいきました。「A1に名前(文字)が... -
Pythonノート
PermissionError:[Errno 13]Permission denied: ‘aaaa.xlsx’【python】
【経緯】 pythonでExcelファイルを読み込もうとしたら、 PermissionError: [Errno 13] Permission denied: 'majan.xlsx' と出ました。 なので、今回はこのエラーの解決方法を勉強しました。 【'aaaa.xlsx'ファイルを閉じる】 原因は読み込もうとしているEx... -
STEPNノート
2022年10月の結果【STEPN】
月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 +485.14.GSTでした。 利益 = 報酬 - 支出(リペア + MT Box Open Fee) 485.14. = 945.14 - (120 + 240 + 100) 収入内訳 獲得GSTMT Box合計945.14... -
VBAノート
セルの下から指定した文字を見つける【VBA】
【経緯】 VBAで「セルを下から数えて、指定した文字を見つけたい」と思い、 今回勉強しました。 【「”For Next文” でStep -1」を使う】 プログラムを書きます。「A列に苗字がたくさんあって、その中の一番下にある"森"という文字を検出する」という流れで...