Today: Yesterday: Total: Online:
カテゴリー
その他
  • RSS1.0
  • RSS2.0
  • atom0.3
  • valid XHTML1.0
  • valid CSS2
  • Credit
RSSリーダーで購読する | この日記のはてなブックマーク数 | プロフィール
コメントが一番多い記事(233コメント):人の心理の裏をかくホームページ集客術:リピータになってもらうためには
ツイートが一番多い記事(94ツイート):ちょっと待て!twitterやfacebookに子供の写真を掲載する親達への警告
いいねが一番多い記事(574いいね):facebookスパムに要注意。なりすましの見分け方とアカウント乗っ取りの手口(2013年度版)

カテゴリー » VSCode March 28, 2023

VSCodeでデプロイ時にトークンの期限が切れた場合 ID:1679990259


Error authenticating with the refresh token due to: expired access/refresh token
エラーが出力され、Salesforceと再認証しても駄目。

以下ページに対応策
https://drops.x0.to/index.php/2021/07/21/65/

・SFDX: Log Out from All Authorized Orgs(すべての認証済み組織からログアウト)
・VSCodeを閉じる

その後再認証でデプロイできた

— posted by midilin @ 04:57PM | Comment (0)

カテゴリー » VSCode March 28, 2023

VSCodeにいれる拡張機能 ID:1679988794


SalesforceエンジニアのおすすめVSCode拡張機能
https://qiita.com/MASA-JAPAN/items/54ffd3c5710b1a7c7023

— posted by midilin @ 04:33PM | Comment (0)

カテゴリー » salesforce » apex March 22, 2023

Apexのデバッグ方法 ID:1679478910


Salesforce開発コンソールによるデバッグ使用例
https://www.escortia.net/s/article/salesforce-debug-MCKSFSPN6AVRBJLD6XUQEMW7QYMQ

Apexでreturnで返却したものを
Apex実行側で
system.debug(Apex名.メソッド名());
で呼び出す

— posted by midilin @ 06:55PM | Comment (0)

カテゴリー » python March 14, 2023

pip installするとUnicodeDecodeErrorが出る ID:1678757352


pip3 install solrpy
でインストールするとエラー

UnicodeDecodeError: 'cp932' codec can't decode byte 0x87 in position 617: illegal multibyte sequence

pip installで UnicodeDecodeErrorが出たときの対処方法(python3.7以降)
https://qiita.com/shiroutosan/items/51358b24b0c3defc0f58

set PYTHONUTF8=1

でセットすると回避できる

— posted by midilin @ 10:29AM | Comment (0)

カテゴリー » salesforce » apex March 12, 2023

ApexでSalesforceのRest APIをたたく ID:1678620308


SalesforceのREST APIを叩く
https://regardie.dev/post-3267

— posted by midilin @ 08:25PM | Comment (0)

カテゴリー » Linux » Ubuntu March 09, 2023

ubuntuより不要なソフトを削除 ID:1678351045


コマンド
sudo apt remove [パッケージ名]

不要なもの
thunderbird:Linuxのメーラー
libreoffice-core:Windows Office利用の為のOSS
libreoffice-common:LibreOfficeがらみ。
mythes-en-us:LibreOfficeがらみ。English (USA) Thesaurus for LibreOffice
ure:LibreOfficeがらみ。LibreOffice UNO runtime environment
orca:視覚障碍者向けのサポートツール
libgphoto2-6:デジタルカメラライブラリ

https://osakanav.com/ubuntu-app-uninstall
https://qiita.com/developer-kikikaikai/items/7deaffd0c9b521e1366c

— posted by midilin @ 05:37PM | Comment (0)

カテゴリー » python March 09, 2023

Pythonから別のPythonにコマンドライン引数を渡しながら実行する方法 ID:1678340615


import subprocess


subprocess.run('python test.py param=XXXXXX', shell=True)

のような形。
ただし、VisualStudioCodeで実行すると
subprocess.runはそのままpythonを実行するようなので、
デバッグはできない。

http://pineplanter.moo.jp/non-it-salaryman/2022/10/19/python-subprocess/

— posted by midilin @ 02:43PM | Comment (0)

カテゴリー » ブラウザ » Chrome March 09, 2023

ChromeでNET::ERR_CERT_INVALIDが出た場合に強制的にアクセスする方法 ID:1678330638


半角英数字にしたあと、
thisisunsafe
とうち、
returnキーを押すと表示される

https://dev.classmethod.jp/articles/tsnote-neterr_cert_invalid-using-chrome/

— posted by midilin @ 11:57AM | Comment (0)