投稿時間:2022-12-30 00:16:59 RSSフィード2022-12-30 00:00 分まとめ(20件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita [Python] 位相速度と群速度の可視化 https://qiita.com/Nashty/items/cf448fb755ebcd7e8609 位相速度 2022-12-29 23:43:25
python Pythonタグが付けられた新着投稿 - Qiita AtCoder Beginner Contest(ABC) 283 - Pythonでリアルタイム参加結果と内容整理 https://qiita.com/tk226/items/e4ff8d050e812ec6ff55 atcoder 2022-12-29 23:28:01
python Pythonタグが付けられた新着投稿 - Qiita Microsoft Azure: 秘密鍵を使ってサービスプリンシパルの認証を行う https://qiita.com/KenjiOtsuka/items/b91820671a306ace3b2f azure 2022-12-29 23:20:11
Azure Azureタグが付けられた新着投稿 - Qiita Microsoft Azure: 秘密鍵を使ってサービスプリンシパルの認証を行う https://qiita.com/KenjiOtsuka/items/b91820671a306ace3b2f azure 2022-12-29 23:20:11
Git Gitタグが付けられた新着投稿 - Qiita 【Git】git pushしたらrejectされた時のエラー解決方法!non-fast-forwardやgit configも対応! https://qiita.com/Ryo-0131/items/0cfc8bbd15d7ea272b98 iledtopushsomerefstoupda 2022-12-29 23:18:31
海外TECH MakeUseOf 5 Key Differences Between Normal and Amazon KDP ISBNs https://www.makeuseof.com/normal-vs-amazon-kdp-isbn/ amazon 2022-12-29 14:15:15
海外TECH MakeUseOf What Is Pinterest Predicts? https://www.makeuseof.com/pinterest-predicts-explained/ interesting 2022-12-29 14:01:35
海外TECH DEV Community How to Create Custom Cursor Without Using Frameworks https://dev.to/codewithsadee/how-to-create-custom-cursor-without-using-frameworks-2dbh How to Create Custom Cursor Without Using FrameworksIn this video we ll walk you through the steps needed to create a custom cursor for your website or application without relying on any external frameworks We ll also provide some tips and tricks for making the process easier and faster ️Timestamps Intro What you will need The basic HTML structure Styling the cursor The JavaScript 2022-12-29 14:51:13
海外TECH DEV Community Slack Next-gen Platform - Trigger Configurator https://dev.to/seratch/slack-next-gen-platform-trigger-configurator-267m Slack Next gen Platform Trigger ConfiguratorIn this tutorial you ll learn how to build a workflow to configure another workflow s triggers in your Slack s next generation platform apps When you learned how to add an event trigger that requires channel ids in its definition If you haven t read the article reading it first is highly recommended I ve mentioned that hard coding the list in code could be a difficulty for many use cases This tutorial provides a solution for it When you have a workflow Main workflow with an event trigger in the same app you can have another workflow Configurator workflow which configures the trigger for the Main workflow You may wonder if this can be complex but the implementation is relatively simple Let s get started PrerequisitesIf you re new to the platform please read my The Simplest Hello World tutorial first In a nutshell you ll need a paid Slack workspace and permission to use the beta feature in the workspace And then you can connect your Slack CLI with the workspace If all the above are already done you re ready to build your first app Let s get started Create a Blank ProjectWhen you start a new project you can run slack create command In this tutorial you will build an app from scratch So select Blank project from the list slack create Select a template to build from Hello World A simple workflow that sends a greeting Scaffolded project A solid foundational project that uses a Slack datastore gt Blank project A well blank project To see all available samples visit github com slack samples Once the project is generated let s check if slack run command works without any issues This command installs a dev version of your new app into your connected Slack workspace Now your app s bot user is in the workspace and your app has its bot token for API calls cd vibrant orca slack run Choose a workspace seratch TEMJU App is not installed to this workspaceUpdating dev app install for workspace Acme Corp ️Outgoing domains No allowed outgoing domains are configured If your function makes network requests you will need to allow the outgoing domains Learn more about upcoming changes to outgoing domains seratch of Acme CorpConnected awaiting eventsIf you see Connected awaiting events log message the app is successfully connected to Slack You can hit Ctrl C to terminate the local app process In this tutorial we ll build three workflows The Main workflow that needs a reaction added event triggerThe Configurator workflow that configures the Main workflow s trigger via a webhook requestThe Configurator workflow that configures the Main workflow s trigger using user inputs sent from a modal dialog Add The Main WorkflowFirst off create a new file named main workflow ts with the following content import DefineWorkflow Schema from deno slack sdk mod ts export const workflow DefineWorkflow callback id main event workflow title Main event workflow input parameters properties The list of input properties needs to be consistent with the trigger operation code in manage triggers ts userId type Schema slack types user id channelId type Schema slack types channel id messageTs type Schema types string reaction type Schema types string required userId channelId reaction Send an ephemeral message when an expected reaction is addedworkflow addStep Schema slack functions SendEphemeralMessage user id workflow inputs userId channel id workflow inputs channelId message Thanks for adding workflow inputs reaction This source file does not have its trigger definition The reaction added event trigger will be created by the Configurator workflow s custom function As mentioned at the bottom of the source code you don t have any trigger definition in this file as you ll generate a trigger using another workflow Also before forgetting let s add the workflow to manifest ts import Manifest from deno slack sdk mod ts Add thisimport workflow as MainWorkflow from main workflow ts export default Manifest name vibrant orca description Configurator Demo icon assets default new app icon png workflows MainWorkflow Add this outgoingDomains botScopes commands chat write chat write public We re going to use reaction added event trigger reactions read Add The Custom Function To Configure TriggersThe next step is to add your custom function that generates a trigger for a different workflow Note that the Configurator workflow itself will be invoked via a trigger that is created using a source code file In this part you will create three source files manage triggers ts join channels ts and configure ts Let s start with manage triggers ts which provides the core logic for trigger management Save the following code as manage triggers ts import SlackAPIClient from deno slack api types ts These need to be consistent with main workflow ts const triggerEventType slack events reaction added const triggerName reaction added event trigger const triggerInputs userId value data user id channelId value data channel id messageTs value data message ts reaction value data reaction Check if the target trigger already exists and then return the metadata if it exists param client Slack API client param workflowCallbackId the target workflow s callback id returns the existing trigger s metadata can be undefined export async function findTriggerToUpdate client SlackAPIClient workflowCallbackId string Promise lt Record lt string string gt undefined gt Fetch all the triggers that this app can access const listResponse await client workflows triggers list is owner true Find the target trigger in the list If the list contains duplicated items this function may not work properly if listResponse amp amp listResponse triggers for const trigger of listResponse triggers if trigger workflow callback id workflowCallbackId amp amp trigger event type triggerEventType return trigger The target trigger does not exist yet return undefined Create or update the target trigger The operation by this method is not atomic meaning that duplicated triggers can be generated when the creation is requested simultaneously Also when updating the trigger there is no validation of conflicts param client Slack API client param workflowCallbackId the target workflow s callback id param channelIds the list of channel IDs to enable the trigger param triggerId the existing trigger ID only for updates export async function createOrUpdateTrigger client SlackAPIClient workflowCallbackId string channelIds string triggerId string Promise lt void gt Since the Deno SDK type constraints require hard coding the list of string items there is no way to pass the method argument for it directly Thus we have to bypass the type check here deno lint ignore no explicit any const channel ids channelIds as any if triggerId Update the existing trigger const update await client workflows triggers update trigger id triggerId type event name triggerName workflow workflows workflowCallbackId event event type triggerEventType channel ids inputs triggerInputs if update error const error Failed to update a trigger JSON stringify update throw new Error error console log The trigger updated JSON stringify update else Create a new trigger const creation await client workflows triggers create type event name triggerName workflow workflows workflowCallbackId event event type triggerEventType channel ids inputs triggerInputs if creation error const error Failed to create a trigger JSON stringify creation throw new Error error console log A new trigger created JSON stringify creation The next one is join channels ts which provides a utility method to join a lot of channels easily import SlackAPIClient from deno slack api types ts Join all the channels Even when the app s bot user has joined the API does not return an error param client param channelIds returns export async function joinAllChannels client SlackAPIClient channelIds string Promise lt string undefined gt const futures channelIds map c gt joinChannel client c const results await Promise all futures filter r gt r undefined if results length gt throw new Error results return undefined async function joinChannel client SlackAPIClient channelId string Promise lt string undefined gt const response await client conversations join channel channelId if response error const error Failed to join lt channelId gt due to response error console log error return error The reason to add your app s bot user is that without a channel membership your app cannot call many common APIs such as conversations history conversations replies and reactions get APIs To build something meaningful with channel events these APIs will be used a lot Lastly let s add configure ts a custom function for your Configurator workflow This code has references to the above two source files import DefineFunction Schema SlackFunction from deno slack sdk mod ts import createOrUpdateTrigger findTriggerToUpdate from manage triggers ts import joinAllChannels from join channels ts import FunctionSourceFile from mod ts export const def DefineFunction callback id configure title Configure a trigger source file FunctionSourceFile import meta url input parameters properties workflowCallbackId type Schema types string channelIds type Schema types array items type Schema slack types channel id required workflowCallbackId channelIds output parameters properties required export default SlackFunction def async inputs client gt try await createOrUpdateTrigger client inputs workflowCallbackId inputs channelIds await findTriggerToUpdate client inputs workflowCallbackId id catch e const error Failed to create update a trigger due to e return error If you don t need to invite your app s bot user to the channels you can safely remove the following part const failure await joinAllChannels client inputs channelIds if failure const error Failed to join channels due to failure return error return outputs Create The Configurator Workflow Webhook Trigger Let s create your Configurator workflow that uses configure ts for trigger management Create a new file named webhook configurator ts import DefineWorkflow Schema from deno slack sdk mod ts export const workflow DefineWorkflow callback id webhook configurator title Webhook Configurator input parameters properties channel ids type Schema types array items type Schema slack types channel id required channel ids import def as Configure from configure ts import workflow as MainWorkflow from main workflow ts workflow addStep Configure The callback id here must be the one for Main workflow workflowCallbackId MainWorkflow definition callback id channelIds workflow inputs channel ids Trigger to invoke the Configurator workflowimport Trigger from deno slack api types ts const trigger Trigger lt typeof workflow definition gt type webhook name Webhook Configurator Trigger The callback id here must be the one for Configurator workflow workflow workflows workflow definition callback id inputs channel ids value data channel ids export default trigger Don t forget to add this workflow to manifest ts Adding the Configurator workflow to the workflows list plus a few scopes need to be added to botScopes import Manifest from deno slack sdk mod ts import workflow as MainWorkflow from main workflow ts Add thisimport workflow as ConfiguratorWorkflow from webhook configurator ts export default Manifest name vibrant orca description Configurator Demo icon assets default new app icon png workflows MainWorkflow ConfiguratorWorkflow Add this outgoingDomains botScopes commands chat write chat write public We re going to use reaction added event trigger reactions read Required for configure ts triggers read triggers write channels join Run slack triggers create trigger def webhook configurator ts to generate a webhook trigger slack triggers create trigger def webhook configurator ts Choose an app seratch dev TEMJU vibrant orca dev AFRLGTrigger created Trigger ID FtFYHAM Trigger Type webhook Trigger Name Webhook Configurator Trigger Webhook URL To invoke the Configurator workflow send an HTTP POST request to the webhook URL with channel ids CEMKS in its request body To know the channel ID string values go through these steps in the Slack client UI curl XPOST d channel ids CEMKS ok true Check the slack run command terminal If you don t see any errors it should be successful slack run Choose a workspace seratch TEMJU vibrant orca AFRLGUpdating dev app install for workspace Acme Corp ️Outgoing domains No allowed outgoing domains are configured If your function makes network requests you will need to allow the outgoing domains Learn more about upcoming changes to outgoing domains seratch of Acme CorpConnected awaiting events info FnGNSCP Trace TrFRNYDQW Function execution started for workflow function Webhook Configurator info WfFYBPM Trace TrFHQLHK Execution started for workflow Webhook Configurator info WfFYBPM Trace TrFHQLHK Executing workflow step of info FnFVCAN Trace TrFHQLHK Function execution started for app function Configure a trigger A new trigger created ok true trigger info FnFVCAN Trace TrFHQLHK Function execution completed for function Configure a trigger info WfFYBPM Trace TrFHQLHK Execution completed for workflow step Configure a trigger info FnGNSCP Trace TrFRNYDQW Function execution completed for function Webhook Configurator info WfFYBPM Trace TrFHQLHK Execution completed for workflow Webhook Configurator Head to the channel you passed in the webhook request and then add a reaction emoji to a message in the channel If you receive an ephemeral message like the below the event trigger for the Main workflow is properly configured Create The Configurator Workflow Link Trigger Modal The above Configurator workflow worked very well but it s not end user friendly Also allowing anyone to configure the trigger just by sending an HTTP POST request without any authentication mechanism is not secure enough To improve this let s create a different version of the Configurator workflow which can be invoked via a link trigger and accepts the channel ID list through a modal data submission First add a new function named configure interactive ts This function handles modal interactions plus saves the changes to the target trigger import DefineFunction Schema SlackFunction from deno slack sdk mod ts import createOrUpdateTrigger findTriggerToUpdate from manage triggers ts import joinAllChannels from join channels ts import FunctionSourceFile from mod ts export const def DefineFunction callback id configure interactive title Configure a trigger using a modal source file FunctionSourceFile import meta url input parameters properties interactivity type Schema slack types interactivity workflowCallbackId type Schema types string required interactivity workflowCallbackId output parameters properties required export default SlackFunction def async inputs client gt const trigger await findTriggerToUpdate client inputs workflowCallbackId const channelIds trigger channel ids const response await client views open interactivity pointer inputs interactivity interactivity pointer view type modal callback id configure workflow title type plain text text My App submit type plain text text Confirm close type plain text text Close blocks type input block id channels element type multi channels select initial channels channelIds action id action label type plain text text Channels to enable the main workflow if response error const error Failed to open a modal in the configurator workflow Contact the app maintainers with the following information error response error return error return To continue the interaction you must return completed false completed false addViewSubmissionHandler configure workflow async inputs client view gt const channelIds view state values channels action selected channels try await createOrUpdateTrigger client inputs workflowCallbackId channelIds await findTriggerToUpdate client inputs workflowCallbackId id catch e const error Failed to create update a trigger due to e return error If you don t need to invite your app s bot user to the channels you can safely remove the following part const failure await joinAllChannels client channelIds if failure const error Failed to join channels due to failure return error Display the completion page return response action update view type modal callback id completion title type plain text text My App close type plain text text Close blocks type section text type mrkdwn text You re all set n nThe main workflow is now available for the channels white check mark Add modal configurator ts which defines the workflow that calls configure interactive ts function and the workflow s link trigger import DefineWorkflow Schema from deno slack sdk mod ts export const workflow DefineWorkflow callback id modal configurator title Modal Configurator input parameters properties interactivity type Schema slack types interactivity required interactivity import def as ConfigureWithModal from configure interactive ts import workflow as MainWorkflow from main workflow ts workflow addStep ConfigureWithModal interactivity workflow inputs interactivity The callback id here must be the one for Main workflow workflowCallbackId MainWorkflow definition callback id Trigger to invoke the Configurator workflowimport Trigger from deno slack api types ts const trigger Trigger lt typeof workflow definition gt type shortcut name Modal Configurator Trigger The callback id here must be the one for Configurator workflow workflow workflows workflow definition callback id inputs interactivity value data interactivity export default trigger Lastly don t forget to add this workflow to manifest ts import Manifest from deno slack sdk mod ts import workflow as MainWorkflow from main workflow ts Add thisimport workflow as ConfiguratorWorkflow from webhook configurator ts import workflow as ModalConfiguratorWorkflow from modal configurator ts export default Manifest name vibrant orca description Configurator Demo icon assets default new app icon png workflows MainWorkflow ConfiguratorWorkflow ModalConfiguratorWorkflow Add this outgoingDomains botScopes commands chat write chat write public We re going to use reaction added event trigger reactions read Required for configure ts triggers read triggers write channels join OK the workflow is ready to use Generate the link trigger by running slack triggers create trigger def modal configurator ts and then share the link in a channel When you start the workflow you can easily configure the channel list in the modal UI Either way works But for most use cases I suggest using this modal configurator Also if you re interested in the details of the modal interactions refer to my Advanced Modals tutorial for more information Wrapping UpYou ve learned the following points with this hands on tutorial Create a Configurator workflow which manages another workflow s triggersThe complete project is available at I hope you enjoy this tutorial As always if you have any comments or feedback please feel free to let me know on Twitter seratch or elsewhere I can check out Happy hacking with Slack s next generation platform 2022-12-29 14:15:47
海外TECH Engadget The best PS5 accessories for 2023 https://www.engadget.com/best-playstation-5-accessories-140018902.html?src=rss The best PS accessories for So you managed to buy a PlayStation congratulations you beat supply shortages to obtain one of the most sought after consoles in recent memory Now comes the fun part No PS is complete without a library of games and accessories to elevate your experience Thankfully you won t have as much trouble getting your hands on those However if you re new to the console the tricky part is knowing what titles and peripherals are worth your time We ve gathered our favorites here to make the search easier for you PlayStation Plus ExtraIf the PS is your first console or you re coming from an Xbox one of the first things you ll want to pick up is a PlayStation Plus Extra subscription It ll help you flesh out your library Sony recently revamped the service to add separate tiers Of the three tiers that are currently available the “Extra one is the best value Priced at per month it grants you access to a library of up to downloadable PS and PS games Each month you ll also get a handful of free games and PlayStation Store discounts The combination of those perks makes it easy to start making the most of your new PS SteelSeries Arctis P Do the people you live with a favor and buy yourself a decent headset It will help you stop nerves from fraying and is a must for any multiplayer game The options for gaming headsets are vast so we recommend picking one with a solid track record SteelSeries recently updated its iconic Arctis headset with the P which has improved battery life and a USB C port for charging What the company didn t change was the headband design that many people credit for making the Arctis one of the more comfortable headsets on the market The P costs the same as the standard variant but also adds full support for the PS s Tempest D audio technology WD Black SNSony recently released an update to allow PS owners to expand their console s internal storage And it s a good thing because the GB of usable storage the console comes with can feel limiting quickly We already published a comprehensive guide on the best SSDs you can buy for your PlayStation You ll want to check that article out for a step by step guide on how to upgrade your SSD But if you want to make things as simple as possible your best bet is a Gen M NVME SSD with a built in heatsink One of the better plug and play options is the SN from WD Black It checks off all the compatibility requirements listed by Sony and is reasonably priced too Samsung T SSDIf you don t feel comfortable opening your PS to install a new SSD another option is to purchase an external solid state drive Keep in mind that you can t play PS games from an external drive However it takes less time to copy one over from an SSD than it does to download it from the PlayStation Store One of our favorite portable drives is the Samsung T It can write files at a speedy MB s and comes with a shock resistant enclosure to protect the drive from physical damage If you plan to use the SSD exclusively for storing games you can save money by buying the standard model instead of the Shield variant which has a ruggedized exterior for extra protection for those who are always on the go DualSense Charging StationWhile you can charge your DualSense controller with the USB C cable that comes with your PS a more elegant solution is the DualSense Charging Station It can store and charge two controllers simultaneously In that way you can always have a second controller ready to go if the one you re currently using runs out of battery It will also free up the USB ports on your PS for other accessories Elden RingUnless you spent very little time on the internet this year it s safe to say it was impossible to avoid the conversation around Elden Ring After putting about hours into FromSoftware s latest I can safely say the praise is warranted Like a lot of other people I was tired of Western style open world games and their endless checklists by the time I got around to playing Elden Ring but its take on the genre was anything but tired As I stumbled my way through the game s dark caves ruined cathedrals and enchanted forests I felt like there was a discovery waiting for me across every hill and river That s a feeling I haven t had since I was a kid playing through the Ocarina of Time and Majora s Mask If that s not enough to convince you to try Elden Ring know that the game s maximalist approach makes it the most approachable FromSoftware release to date Whenever you re stuck on a boss you can go elsewhere to level your character and master the game s punishing combat God of War RagnarökDid you think Sony s latest exclusive would be absent from this list God of War Ragnarök nbsp can sometimes suffer from pacing issues and overly chatty NPCs but there s no denying that Santa Monica Studio has crafted another heartfelt chapter in the story of Kratos and Atreus The PS is also the best place to play Ragnarök On Sony s latest console the game ships with two rendering modes and support for variable and high frame rates Provided you own a relatively recent TV those features make it possible to play the action RPG at up to frames per second in some situations That s a level of technical proficiency we haven t seen in a lot of AAA console games Death s DoorWith a title that evokes the end of all things you might think Death s Door is a bleak game But that couldn t be further from the truth Buoyed by a beautiful soundtrack and art style it s one of the most thoughtful and pleasant indies I ve played recently Developer Acid Nerve s tribute to The Legend of Zelda and Dark Souls is a must play for those who love to lose themselves in a world of mystery and intrigue Ghosts of Tsushima Directors CutYou ve played games like Ghost of Tsushima before It borrows from the familiar open world formula popularized by Assassin s Creed and other Ubisoft titles But that s not a knock against it Far from it Sucker Punch s latest is so easy to recommend because it executes the open world concept flawlessly The studio has created a beautiful playground steeped in Feudal Japanese culture myth and history for players to explore with something interesting to find beyond every ridge Combat is also a highlight allowing you to play either as honorable samurai terrifying assassin or a mixture of both And once you have finished Tsushima s touching single player story there s the excellent Legends multiplayer mode to keep you busy for the long haul HadesIf you pick up only one game from this list make it Hades It is as close to a perfectly executed game as you ll find Everything from the art style music story and gameplay mechanics coalesces into one of the most memorable experiences in recent memory Even if you re not a fan of roguelike games don t worry Hades is so successful because even when you die it never feels like you ve wasted your time 2022-12-29 14:21:38
海外科学 NYT > Science SpaceX’s Launch Control Room: 3 Rocket Missions in 31 Hours https://www.nytimes.com/2022/12/29/science/spacex-launch-mission-control.html SpaceX s Launch Control Room Rocket Missions in HoursA reporter got an inside look at SpaceX s attempt to launch and land three rockets in less than two days in October part of the company s bid to make spaceflight appear almost routine 2022-12-29 14:14:46
海外科学 BBC News - Science & Environment All solar system's planets visible in night sky https://www.bbc.co.uk/news/science-environment-64082159?at_medium=RSS&at_campaign=KARANGA saturn 2022-12-29 14:30:59
金融 RSS FILE - 日本証券業協会 株券等貸借取引状況(週間) https://www.jsda.or.jp/shiryoshitsu/toukei/kabu-taiw/index.html 貸借 2022-12-29 15:30:00
金融 RSS FILE - 日本証券業協会 動画で見る日証協の活動 https://www.jsda.or.jp/about/gaiyou/movie/index.html 日証協 2022-12-29 15:00:00
ニュース BBC News - Home All solar system's planets visible in night sky https://www.bbc.co.uk/news/science-environment-64082159?at_medium=RSS&at_campaign=KARANGA saturn 2022-12-29 14:30:59
北海道 北海道新聞 頭は緑 四角い太陽 音更で蜃気楼 https://www.hokkaido-np.co.jp/article/782224/ 音更 2022-12-29 23:32:00
北海道 北海道新聞 走行距離課税 議論持ち越し 地方に不利、与党内に慎重論 https://www.hokkaido-np.co.jp/article/782223/ 持ち越し 2022-12-29 23:27:00
北海道 北海道新聞 地域づくり組合、道内増加 異業種連携 通年雇用を創出 https://www.hokkaido-np.co.jp/article/782222/ 人口減少 2022-12-29 23:22:00
北海道 北海道新聞 NY円、133円台前半 https://www.hokkaido-np.co.jp/article/782221/ 外国為替市場 2022-12-29 23:22:00
北海道 北海道新聞 理想的なスキーターン解明 北見工大・鈴木学長 技術本刊行 https://www.hokkaido-np.co.jp/article/782218/ 北見工業大 2022-12-29 23:01:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)