AWS CodeWhisperer & IAM Identity Center

AWS CodeWhisperer & IAM Identity Center CodeWhisperer IAM Identity Center: IAM Identity Centerを有効にする ユーザーを追加する ユーザーのメアド認証 パスワードリセットをメアドに送り、パスワード設定してログイン可能にする CodeWhisperer: Codewhiper の利用を開始する CodeWhispererを IAM Identity Centerのアプリケーションに登録する IAM Identity Centerで登録したユーザーを CodeWhispererで使えるようにする VSCode: AWS Toolkit プラグインを入れる CodeWhisperer の利用を開始:Connect using AWS Identity Center で AWS Identity Center URLを入力 (https://x-xxxxxxx.awsapps.com/start) AWS Toolkitにアクセストークンを取得( 認証コードをブラウザに入力して、IAM Identity Centerにログイン) 資料 AWS IAM Identity CenterでIAMアカウントを統一する AWS IAM Identity Center(旧:AWS SSO)を使ってみた Amazon CodeWhisperer を IAM Identity Center に統合させて使ってみた

2023年4月15日 · 1 分

eleventy/11ty

eleventy/11ty eleventyとは、静的サイトジェネレーターの一種です¹²³。静的サイトジェネレーターとは、ビルドにより静的なHTMLファイルを生成するツールのことです³。eleventyの特徴は、以下のようなものがあります¹²³。 テンプレートエンジンが自由に選べる。NunjucksやLiquid、Markdownなど、様々なテンプレートエンジンを使うことができます¹²³。 CSSやJSファイル周りの処理がシンプル。eleventyはCSSやJSファイルをそのままコピーするだけでなく、SassやBabelなどのプラグインを使って変換することもできます¹。 データファイルを利用できる。JSONやYAMLなどのデータファイルをテンプレートに渡して、動的にコンテンツを生成することができます¹³。 ページネーションやコレクションなどの機能が豊富。ブログ記事やカテゴリーなどのコレクションを作成したり、ページネーションやタグなどの機能を利用したりすることができます¹³。 以上がeleventyについての情報です。興味があれば、公式サイトやドキュメントを参照してみてください。 ソース: Bing との会話 2023/4/15 (1) 静的サイトジェネレーター 11ty/eleventy をもっと使ってみる - Qiita. https://qiita.com/yuzuru_xa/items/c2148a9ce31f852d8c9a アクセス日時 2023/4/15. (2) 11ty(eleventy)で静的サイト構築 | 株式会社 エヴォワークス …. https://www.evoworx.co.jp/blog/11ty-static-site-generator/ アクセス日時 2023/4/15. (3) 静的サイトジェネレーターEleventy 第1回 Eleventyとその特徴 …. https://www.codegrid.net/articles/2019-11ty-1/ アクセス日時 2023/4/15.

2023年4月15日 · 1 分

F値

F値 F値とは、カメラのレンズから入る光の量を数値化したもので、絞り値とも呼ばれます¹。 F値が小さいと絞りが開き、光がたくさん入ります。 F値が大きいと絞りが絞られ、光が少なく入ります²。 F値は、F1.4、F2、F2.8、F4、F5.6、F8などの基準値があり、F値を一つずらすと光の量が2倍か半分になります¹⁴。 F値は、写真の明るさやボケ具合に影響します³⁵。 ソース: Bing との会話 2023/4/15 (1) F値とは – F値と明るさ、ボケ量の関係 | 姫野ばら園 八ヶ岳農場. https://himenobaraen.jp/column/camera/f_number アクセス日時 2023/4/15. (2) 絞り(F値)とAモード | 撮影の基礎知識 | デジタル一眼カメラ α …. https://www.sony.jp/support/ichigan/enjoy/photo/word6.html アクセス日時 2023/4/15. (3) 【f値(絞り値)】の初心者向け解説とプロのおすすめ設定 …. https://camera-web.jp/beginner/fnumber アクセス日時 2023/4/15. (4) 【初心者必見】F値で写真の表現が変わる!絞りと露出の基本と …. https://www.ortery.jp/ec-blog/camera-aperture/ アクセス日時 2023/4/15. (5) F値(絞り)とは?初心者でも理解できる設定とシチュエーション. https://goopass.jp/magazine/f-setting/ アクセス日時 2023/4/15. 開放F値 開放F値とは、そのレンズが使える最小のF値です¹。 開放F値が小さくても撮影時の設定でF値を大きくもできるので、F値を調整して明るさやボケ具合を変えられます¹²。 開放F値はレンズごとに異なり、レンズの製品名に表示されています²³。 例えば、30mm F1.4というレンズは、開放F値がF1.4です²。 ソース: Bing との会話 2023/4/15 (1) https://47prefectures.com/maximum-aperture/#:~:text=%E9%96%8B%E6%94%BEF%E5%80%A4%E3%81%A8%E3%81%AF%E3%80%81%E3%81%9D%E3%81%AE%E3%83%AC%E3%83%B3%E3%82%BA%E3%81%8C%E4%BD%BF%E3%81%88%E3%82%8B%E6%9C%80%E5%B0%8F%E3%81%AEF%E5%80%A4%E3%81%A7%E3%81%99%E3%80%82%20%E9%96%8B%E6%94%BEF%E5%80%A4%E3%81%8C%E5%B0%8F%E3%81%95%E3%81%8F%E3%81%A6%E3%82%82%E6%92%AE%E5%BD%B1%E6%99%82%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%A7F%E5%80%A4%E3%82%92%E5%A4%A7%E3%81%8D%E3%81%8F%E3%82%82%E3%81%A7%E3%81%8D%E3%82%8B%E3%81%AE%E3%81%A7%E3%80%81F%E5%80%A4%E3%82%92%E8%AA%BF%E6%95%B4%E3%81%97%E3%81%A6%E6%98%8E%E3%82%8B%E3%81%95%E3%82%84%E3%83%9C%E3%82%B1%E5%85%B7%E5%90%88%E3%82%92%E5%A4%89%E3%81%88%E3%82%89%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82,%E3%81%A7%E3%81%AF%E3%80%81%E3%81%9D%E3%82%82%E3%81%9D%E3%82%82F%E5%80%A4%E3%81%A8%E3%81%AF%E4%BD%95%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%EF%BC%9F%20F%E5%80%A4%E3%81%A8%E3%81%AF%E5%85%89%E3%82%92%E5%8F%96%E3%82%8A%E8%BE%BC%E3%82%80%E5%BA%A6%E5%90%88%E3%81%84%E3%82%92%E6%95%B0%E5%80%A4%E5%8C%96%E3%81%97%E3%81%9F%E3%82%82%E3%81%AE%E3%81%A7%E3%80%81%E3%83%AC%E3%83%B3%E3%82%BA%E3%81%AE%E6%9C%89%E5%8A%B9%E5%BE%84%E3%82%92%E7%84%A6%E7%82%B9%E8%B7%9D%E9%9B%A2%E3%81%A7%E5%89%B2%E3%81%A3%E3%81%9F%E5%80%A4%E3%81%A7%E3%81%99%E3%80%82%20%E3%80%8E%E3%83%AC%E3%83%B3%E3%82%BA%E6%9C%89%E5%8A%B9%E5%BE%84%C3%B7%E7%84%A6%E7%82%B9%E8%B7%9D%E9%9B%A2%3DF%E5%80%A4%E3%80%8F%E3%81%A8%E3%81%84%E3%81%86%E5%BC%8F%E3%81%AA%E3%81%AE%E3%81%A7%E3%80%81%E3%83%AC%E3%83%B3%E3%82%BA%E3%81%AE%E5%BE%84%E3%81%8C%E5%A4%A7%E3%81%8D%E3%81%84%E3%81%BB%E3%81%A9%E5%85%89%E3%81%8C%E5%85%A5%E3%82%8B%E3%81%97%E3%80%81%E7%84%A6%E7%82%B9%E8%B7%9D%E9%9B%A2%E3%81%8C%E9%95%B7%E3%81%8F%E3%81%AA%E3%82%8B%E3%81%BB%E3%81%A9%E5%85%89%E3%81%8C%E5%85%A5%E3%82%8A%E3%81%AB%E3%81%8F%E3%81%8F%E3%81%AA%E3%82%8B%E3%81%A8%E3%81%84%E3%81%86%E6%84%8F%E5%91%B3%E3%81%A7%E3%81%99%E3%80%82. https://bing.com/search?q=%e9%96%8b%e6%94%beF%e5%80%a4 アクセス日時 2023/4/15. (2) デジタル一眼レフカメラの基礎知識 - レンズ | Enjoyニコン …. https://www.nikon-image.com/enjoy/phototech/manual/19/03.html アクセス日時 2023/4/15. (3) F値(カメラの絞り)・開放絞り値とは?(写真入り解説 …. https://www.mori-camera.com/basic/f.htm アクセス日時 2023/4/15. (4) 3分でわかるαレンズのヒミツ TIPS:F値 編 | ソニー - Sony. https://www.sony.jp/feature/contents/a/3minutes_f-number_lp/ アクセス日時 2023/4/15.

2023年4月15日 · 1 分

ゼロパーティデータ

ゼロパーティデータ 行動データにおいて、顧客が意図的・積極的に企業と共有するデータ ファーストパーティデータ(企業が収集する行動データ) 行動データには、個人がサイトやアプリ全体、またはページ上で行う操作すべてが含まれます。 クリック操作や詳細な行動(マウスオーバー、スクロール、操作時間など)、セッション数、ユーザーのパーソナライズされた体験への関わり方なども含まれます。 ファーストパーティデータがあれば、ユーザーの関心や意図を示す貴重な指標を収集できます。 購入やダウンロードなどの取引データも、ファーストパーティデータに分類されます。 サードパーティデータ(企業が他団体から取得する行動データ) 自社保有していないサイトや情報源から取得、または購入したデータを指します。 パーソナライズで通常使用されるサードパーティデータには、人口統計情報、企業データ、購入意思(新築住宅市場やソフトウェアの市場などの場合)と、CRM、POS、コールセンターなどから得た付加情報があります。 ゼロパーティデータ(顧客が意図的に企業に預けるデータ) Forrester Research社(英語)によって提唱された造語で、明示的なデータとも呼ばれます。 顧客が意図的・積極的に企業と共有するデータです。 ゼロパーティデータには、メールプリファレンスのデータ、購入意思、個人的背景、ユーザーが企業に『自分』をどのように認識してほしいかなどが含まれます アンケート、聞き取りなど チャットコマース 参照 GDPR:(General Data Protection Regulation:一般データ保護規則)(EU加盟国に同一に直接効力を持つ) CCPA:(カリフォルニア州消費者プライバシー法: California Consumer Privacy Act) Bing ゼロパーティデータとは、顧客が意図的・積極的に企業と共有するデータのことです¹。顧客の趣味嗜好や興味関心の情報が含まれ、パーソナライズやキャンペーンを推進するのに役立ちます²³⁴。 ソース: Bing との会話 2023/4/15 (1) ゼロパーティデータとは? | セールスフォース・ドットコム. https://bing.com/search?q=%e3%82%bc%e3%83%ad%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3%e3%83%87%e3%83%bc%e3%82%bf アクセス日時 2023/4/15. (2) ゼロパーティデータとは? | セールスフォース・ジャパン. https://www.salesforce.com/jp/resources/articles/what-is-zero-party-data/ アクセス日時 2023/4/15. (3) 今さら聞けない話題の「ゼロパーティ・データ」とは? | JP …. https://www.criteo.com/jp/blog/what-is-zero-party-data/ アクセス日時 2023/4/15. (4) DX時代のカギを握る「ゼロパーティデータ」とは?いま重要視さ …. https://www.powerweb.co.jp/blog/entry/2022/03/15/100000 アクセス日時 2023/4/15. ゼロパーティデータは、様々な方法で活用できます。例えば、¹⁴⁵ 商品やサービスの改善に生かす 業務改善に生かす 新商品の開発に生かす パーソナライズやキャンペーンの強化に生かす ゼロパーティデータを活用するには、顧客IDや個人情報と紐づけて蓄積し、セグメントとして切ることが必要です²。 ソース: Bing との会話 2023/4/15 (1) ゼロパーティデータとは?ゼロパーティデータが重視される …. https://bing.com/search?q=%e3%82%bc%e3%83%ad%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%b4%bb%e7%94%a8%e6%96%b9%e6%b3%95 アクセス日時 2023/4/15. (2) ゼロパーティデータの概要からおすすめの活用法まで. https://data.wingarc.com/allabout_zero-party-data-39612 アクセス日時 2023/4/15. (3) ゼロパーティデータとは?重要視すべき3つの理由と収集方法を …. https://www.transcosmos-cotra.jp/zero-party-data アクセス日時 2023/4/15. (4) Cookieレス時代に「ゼロパーティデータ」が生み出す真の顧客 …. https://www.ever-rise.co.jp/dx-blog/zero-party-data/ アクセス日時 2023/4/15. (5) ゼロパーティデータとは? | セールスフォース・ジャパン. https://www.salesforce.com/jp/resources/articles/what-is-zero-party-data/ アクセス日時 2023/4/15. ゼロパーティデータを収集するには、顧客に対価を提供して、自発的に情報を提供してもらうことが必要です¹²。対価としては、割引やクーポン、プレゼントなどがあります。また、設問内容や回答方法を吟味して、顧客の興味やニーズに合わせた内容にすることも大切です¹。 ...

2023年4月15日 · 1 分

チャットコマース

チャットコマース ゼロパーティデータの収集手段のひとつ Bing 日本では、メンズスキンケアブランドのバルクオムがチャットコマースを活用しています²。バルクオムでは、ウェブサイトやLINEでチャットボットを使って、顧客にスキンケアのアドバイスや商品の紹介を行っています。チャットボットは、顧客の肌質や悩みに合わせたオススメの商品や使い方を教えてくれます。また、チャットボットから直接商品を購入することもできます。 海外では、ファッションブランドのH&Mがチャットコマースを活用しています¹。H&Mでは、メッセージングアプリのKikでチャットボットを使って、顧客にファッションのアドバイスや商品の紹介を行っています。チャットボットは、顧客の年齢や性別、好みなどに応じてコーディネートの提案や商品のレコメンドを行ってくれます。また、チャットボットから直接商品を購入することもできます。 ソース: Bing との会話 2023/4/15 (1) チャットコマースとは?メリットや導入事例を解説|EC Work. https://ecwork.jp/3498 アクセス日時 2023/4/15. (2) 2022年に132億円市場となる、チャットコマースとは?注目・成長 …. https://bing.com/search?q=%e3%83%81%e3%83%a3%e3%83%83%e3%83%88%e3%82%b3%e3%83%9e%e3%83%bc%e3%82%b9%e3%81%ae%e4%ba%8b%e4%be%8b アクセス日時 2023/4/15. (3) 【5分で理解!】チャットコマースとは?市場・活用事例を紹介 …. https://atone.be/blog/%e3%83%81%e3%83%a3%e3%83%83%e3%83%88%e3%82%b3%e3%83%9e%e3%83%bc%e3%82%b9%e3%82%92%e3%82%8f%e3%81%8b%e3%82%8a%e3%82%84%e3%81%99%e3%81%8f%e8%a7%a3%e8%aa%ac/ アクセス日時 2023/4/15. (4) 【比較事例10選】チャットコマースとは?導入企業やLINEなどの …. https://obot-ai.com/column/9689/ アクセス日時 2023/4/15. (5) チャット型コマース(会話型コマース)とは何か?注目される理由 …. https://aixdesign.goo.ne.jp/column/chat-commerce/ アクセス日時 2023/4/15.

2023年4月15日 · 1 分

Celery: Singleton Task

Celery: Singleton Tasks SingletonTask 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 from celery.app.task import Task from celery.utils.log import get_task_logger from django.core.cache import cache logger = get_task_logger(__name__) class SingletonTask(Task): def __call__(self, *args, **kwargs): self.lock_key = self.resolve_lock_key(*args, **kwargs) if not self.request.is_eager and self.lock_key: # ロックキーが指定されて、 非同期モードであればシングルトンで動作させる return self.call_singleton(*args, **kwargs) # それ以外はデフォルトの動作 return super().__call__(*args, **kwargs) def resolve_lock_key(self, *args, **kwargs): """ taskに `singleton` キーワード変数でキーが指定されていたらシングルトンモード """ singleton = kwargs.get("singleton", None) return singleton and f"{self.name}-{singleton}" def prepare_execute(self, *args, **kwargs): """ シングルトンタスクの実行の前に何かする""" pass def call_singleton(self, *args, **kwargs): lock = cache.lock(self.lock_key) if not lock.acquire(blocking=False): # 取得できなかったら何もしない(同じような冪等処理がすでに動いている) logger.info("{} failed to lock:".format(self.lock_key)) return "SKIPPED" self.prepare_execute(*args, **kwargs) try: # 実際のタスクを実行 return super(SingletonTask, self).__call__(*args, **kwargs) except Exception as e: logger.error(f"task faiild:{e}") lock.release() raise e finally: lock.release() サンプル 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 class CostSingletonTask(SingletonTask): def prepare_execute(self, *args, **kwargs): """実行前に設定時間(秒)でsleepする この間の重複処理が行われない """ logger.error(f"LOCK ACQUIRE:{self.lock_key}") logger.error(f"CALLING:{args} {kwargs}") logger.info(f"Sleep for ASYNC_WINDOW({settings.ASYNC_WINDOW})") sleep(settings.ASYNC_WINDOW) @shared_task(base=CostSingletonTask) def info(message, singleton=None): logger.error(f"Executing:{message}") return message リンク Celery: Task Singleton? Ensuring a task is only executed one at a time

2023年4月12日 · 1 分

Celery: supervisord

Celery: supervisord conf 1 2 3 4 5 6 7 8 9 10 11 12 [program:epm-tasks] directory=/home/ubuntu/projects/epm/web user=ubuntu command=/home/ubuntu/.anyenv/envs/pyenv/versions/coresys/bin/celery -A app worker -l INFO -f /home/ubuntu/projects/epm/logs/tasks.log autostart=true autorestart=true ;stdout_logfile=syslog ;stderr_logfile=syslog numprocs=1 startsecs=10 stopwaitsecs = 600 killasgroup=true -f オプションで指定すると user の所有権でファイル作成 stdout_logfile / stderr_logfile で指定するとsupervisord ユーザー(root)の所有権で作成 log rotation It seems that you are using supervisord to manage Celery processes and you want to rotate the log files for Celery on a daily basis. One way to do this is to use logrotate, a tool that can rotate and compress log files according to a configuration file². To use logrotate, you need to do the following steps: ...

2023年4月12日 · 2 分

Celery: タスクの結果をMySQLで確認する

Celery: タスクの結果をMySQLで確認する PYPI: django-celery-results = "^2.5.0" settings: 1 2 3 CELERY_RESULT_BACKEND = "django-db" CELERY_RESULT_EXTENDED = True INSTALLED_APPS += ["django_celery_results"] Database Result Backend It seems that you are using Django and Celery to run asynchronous tasks and store the results in a database. One possible reason why the result data is always null is that you are not returning anything from your task function². For example, if your task function looks like this: ...

2023年4月12日 · 3 分

Celery: eager モード (同期モード)

Celery: Eagerモード settings: 1 2 CELERY_TASK_ALWAYS_EAGER = True CELERY_TASK_STORE_EAGER_RESULT = True unittest Testing with Celery Eagerモードの確認 Hello, this is Bing. Celery is a distributed task queue for Python. Eager mode is a setting that makes Celery run tasks synchronously in the same process as the caller, instead of sending them to a worker¹². This can be useful for testing, but it may not reflect the actual behavior of the tasks in a worker¹². To check if a running Celery task is in eager mode, you can use the is_eager attribute of the task request object³. For example: ...

2023年4月11日 · 1 分

tmux: バッファーの全テキストを選択

tmux: バッファーの全テキストを選択 viキーバインド前提: コピーモードに入る(:copy-mode) g でバッファーの先頭へ移動 Spaceでバッファのコピー開始 G でバッファーの最後へ移動 Enterでバッファーのコピー あとは、:paste-buffer で vi とかに貼り付けする。 Edge To copy all text in the current tmux screen, you need to enter copy-mode, select the entire scrollback, and yank it into the tmux buffer. Then you can paste it in another tmux pane or window. The exact keys you need to press may vary depending on your mode-keys option (vi or emacs) and your system (Mac or Linux). For example, if you use vi mode-keys on Linux, you can press Ctrl + b followed by [ to enter copy-mode, then press g to go to the top of the scrollback, then press Ctrl + Space to start copying, then press G to go to the bottom of the scrollback, then press Alt + w or Ctrl + w to yank the text into the tmux buffer. To paste the text, you can press Ctrl + b followed by ]. Does this answer your question? ...

2023年4月11日 · 1 分