投稿時間:2023-04-15 03:11:35 RSSフィード2023-04-15 03:00 分まとめ(14件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS The Internet of Things Blog Protecting Linux-based IoT devices against unintended USB access https://aws.amazon.com/blogs/iot/protecting-linux-based-iot-devices-against-unintended-usb-access/ Protecting Linux based IoT devices against unintended USB accessIntroduction The Internet of Things IoT industry continues to grow at an aggressive pace As the number of connected devices ramps up managing security of these devices at scale can be challenging One of the potential risks that IoT devices face is unintended USB access which can occur when an unauthorized connection is made through … 2023-04-14 17:21:57
AWS AWS Amazon VPC Lattice - EKS | Amazon Web Services https://www.youtube.com/watch?v=jtfvD1kytSE Amazon VPC Lattice EKS Amazon Web ServicesDemonstration of EKS operation with VPC Lattice Learn more at Subscribe More AWS videos More AWS events videos Do you have technical AWS questions Ask the community of experts on AWS re Post ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AmazonVPCLattice EKS AWS AmazonWebServices CloudComputing 2023-04-14 17:32:19
海外TECH MakeUseOf How to Speed Up Download Speeds in uTorrent for Windows https://www.makeuseof.com/speed-up-download-speeds-in-utorrent/ windows 2023-04-14 17:15:16
海外TECH DEV Community How to Create a Good Pull Request Template (and Why You Should Add Gifs) https://dev.to/opensauced/how-to-create-a-good-pull-request-template-and-why-you-should-add-gifs-4i0l How to Create a Good Pull Request Template and Why You Should Add Gifs I wasn t in tech when Pull Requests PRs were first introduced by GitHub back in And when I graduated from bootcamp four years ago I had probably created only a handful of PRs I quickly learned how vital PRs were when I started my first job on a team though And my appreciation for a good Pull Request has only increased as I spend more time as a maintainer The great things about Pull Requests are that they allow for collaboration between contributors and maintainers offer an opportunity to communicate changes that have been made and why they are important and the ability for maintainers to provide feedback Because contributors come from different backgrounds have varying degrees of experience and speak different languages sometimes creating good PRs can be tricky But there are some ways to optimize the experience for everyone including adding gifs How to Create a Pull Request TemplateMaintainers can help to improve the experience for both reviewing Pull Requests and for contributors submitting them by creating a template I like to think of Pull Request templates as a kind of contributor onboarding It helps to guide them through the process of writing a good pull request and communicating with the maintainers Although good templates may vary according to different organizations their standards and their needs there are some basic checklists that you can use to generate your own To create a PR template in GitHub create a github folder in the root of your repository and a file called PULL REQUEST TEMPLATE md At OpenSauced we used forem s Pull Request template for inspiration for our template You can use markdown to create your template and include sections like What type of PR is this Description of the changesRelated Tickets amp DocumentsMobile amp Desktop Screenshots RecordingsTests DocumentationPost deployment tasksWhat gif best describes this PR or how it makes you feel Let Them Add Gifs That last one might seem out of place to you but it can actually make the PR experience more fun engaging and effective Here s why Gifs can bridge language gaps and help contributors express themselves more clearly Gifs can showcase contributors personalities and add a personal touch to the PR Gifs can increase engagement and make the review process more enjoyable for everyone How to add Gifs to Your PRIf you re a contributor you might be wondering “What s the easiest way to add a gif I use the GIFs for GitHub chrome extension Once it s installed you ve got a quick way to add all your favorite gifs to enhance that PR experience Just search for the gif you want and click it You can even add a caption to describe the gif or explain how it relates to the PR You can read more about PRs with Brian Douglas post on Tips for getting your Pull Request reviewed on GitHub Or check out the hottest repos and how they handle PRs on OpenSauced hot repositories And if you have tips for creating great pull requests let us know in the comments below header image created using midjourney 2023-04-14 17:39:14
海外TECH DEV Community Stripe Connect onboarding with Ruby on Rails https://dev.to/stripe/stripe-connect-onboarding-with-ruby-on-rails-32i4 Stripe Connect onboarding with Ruby on RailsStripe Connect provides a suite of tools and APIs that allow you to create manage and scale your platform or marketplace and facilitate payments and payouts for your users If you re new to Stripe Connect take a look at the first few articles in this series In this article you ll learn how to integrate Stripe Connect Onboarding with Ruby on Rails so that you can start facilitating money movement for your users We ll focus on an email newsletter platform use case where readers support their favorite authors by paying a monthly fee to receive periodic emails You ll learn how to create Stripe Accounts and collect business details using Stripe Connect hosted onboarding We ll also cover setting up the Rails environment and some best practices for smooth integration Let s get started Creating a new Rails applicationWe ll kick things off by breaking ground on a new Rails application that uses Tailwind CSS for styles and Postgres for the database T means skip adding the default testing infrastructure and main sets the git branch name rails new newsletter platform c tailwind j esbuild d postgresql T mainWe ll store each newsletter issue in the database so that authors can direct users to their back catalog if they d like to read past issues Before sending a newsletter issue to a reader we ll check to make sure readers have an active payment subscription Let s start by setting up these database models Database setupTo set up the necessary database models for this newsletter platform we ll create the main models User Newsletter NewsletterIssue and Subscription The User model represents the author the Newsletter model corresponds to each collection of issues the NewsletterIssue model represents each monthly edition of the newsletter and the Subscription model links the readers to the newsletters they have active payment subscriptions for Let s begin by generating these models Generating the User model The User model is used for authentication Both readers and authors are represented in the database as Users We store the stripe customer id for readers We ll use the Stripe API to create customer objects for all users so that we can keep track of all subscriptions and invoices that are related to a given reader We store the stripe account id for authors This represents the ID of the author s Stripe Account and enables us to route payments from readers to the author We also store charges enabled and payouts enabled flags to know when the account is fully onboarded and can successfully receive money rails generate model User name string email string stripe customer id string stripe account id string charges enabled boolean payouts enabled booleanGenerating the Newsletter model Newsletters have a foreign key relationship back to the ID of the author in the Users table rails generate model Newsletter user references title stringGenerating the Newsletter Issue model Newsletter Issues are related to the newsletter they are about and to start we ll simple with a title and block of text for content The published at datetime enables us to schedule issues to be published in the future rails generate model NewsletterIssue newsletter references subject string content text published at datetimeGenerating the Subscription model When a reader subscribes to a newsletter for the first time we ll send them through a payment flow using Stripe Checkout to collect their payment details and start a Stripe Subscription that collects recurring payments We ll store that stripe subscription id in the database so that we can check the Stripe API to know whether payment is active rails generate model Subscription user references newsletter references stripe subscription id string status stringRun the database migrations rails db migrateNow let s set up the relationships between these models In app models user rb class User lt ApplicationRecord has many newsletters has many subscriptionsendIn app models newsletter rb class Newsletter lt ApplicationRecord belongs to user has many newsletter issuesendIn app models newsletter issue rb class NewsletterIssue lt ApplicationRecord belongs to newsletterendIn app models subscription rb class Subscription lt ApplicationRecord belongs to user belongs to newsletterendWith these models in place we can now represent authors newsletters and their issues and reader subscriptions in our database In the next steps we ll implement the Stripe Connect Onboarding logic Set up StripeUse the stripe ruby SDK to interact with the Stripe API bundle add stripeRetrieve API keys from dashboard stripe com and set those into our Rails credentials EDITOR vi rails credentials editInsert the keys like so stripe secret key sk test EceeUCZqs publishable key pk test vAZghLc Add an initializer to config initializers stripe rb in order to set the platform level API key Note that each author s Stripe account will have its own API keys but with Stripe Connect we never need the connected account s keys Instead we authenticate requests for connected accounts with the combination of our platform level API key and the connected accounts ID See here for more details Stripe api key Rails application credentials dig stripe secret key Now we re ready to start making API calls to Stripe from Ruby Before we start using the Stripe API let s get authentication up and running Set up authenticationFor this use case users need a way to authenticate into the application Since we re using Ruby on Rails we ll use devise authentication for authors We ll install the devise gem run the install scripts and generate the routes and migration for Authors to be database authenticatable bundle add deviserails generate devise installrails g devise viewsrails g devise AuthorAgain we migrate the database rails db migrateRunning bin dev fires up the server so we can test our registration flow at localhost authors sign up We re presented this unstyled login view that we ll clean up later Now that users can register for the application we ll want to onboard them to Stripe Connect so that we can start interacting with the Stripe API on their behalf Set up Connect onboardingConnect supports different account types Standard Express and Custom Since authors might not have experience handling refunds and chargebacks in this use case it makes sense to provide them an integration where they have access to the simpler Stripe dashboard with a Express type connected account Learn more about the tradeoffs between different account types here Side note we re hoping to remove the concept of an account type so stay tuned for a less confusing approach to differentiating Connect functionality for your users For onboarding we ll have a page where we ll either show the account details for the connected account or a button for the user to create a new account and go through the onboarding process These functions will be handled by a new StripeAccountsController rails g controller StripeAccounts showWe ll add singular resource routes for stripe account by updating config routes rb Rails application routes draw do resource stripe account devise for usersendNext we ll add the before action macro from devise that requires an authenticated author to access these routes class StripeAccountsController lt ApplicationController before action authenticate author endThe view for the show route is very simple for now lt if current user stripe account id present gt lt current user stripe account to json gt lt else gt lt p gt No Stripe account found lt p gt lt button to Create a Stripe Account stripe account path method post data turbo false gt lt end gt When a user clicks on “Create a Stripe Account we ll first make an API call to Stripe to create a new Express account then we ll update the database with the account s ID and finally redirect through the account onboarding flow with an Account Link The goal here is to minimize the amount of information the author needs to re enter For instance we already have the author s email address so we can prefill that at the account and individual level We ll also assume that all authors are individuals rather than businesses We can prefill the business profile s mcc merchant category code as digital goods so that each author isn t required to dig through the list of service types to find digital goods def create account Stripe Account create type standard email current user email business type individual business profile mcc individual email current user email metadata author id current user id current user update stripe account id account id account link Stripe AccountLink create account account id refresh url stripe account url return url stripe account url type account onboarding redirect to account link url status see other allow other host true endWhen events related to Stripe accounts happen in Stripe the application can be notified using webhooks We need to listen for the account updated webhook event type so that we know when an account has successfully completed onboarding Set up webhooksWe need a controller to handle the incoming POST requests from Stripe rails g controller WebhooksWe ll add a simple route of webhooks for handling POST requests resources webhooks only create Since the requests come from Stripe we cannot verify any CSRF token so we skip that check at the top of the controller class WebhooksController lt ApplicationController skip before action verify authenticity tokenThen we ll add a create method for handling post requests from Stripe to deserialize the event body and switch based on the type of event notification def create payload request body read event nil begin event Stripe Event construct from JSON parse payload symbolize names true rescue JSON ParserError gt e Invalid payload puts ️Webhook error while parsing basic request e message render json message failed status return end case event type when account updated account event data object contains a Stripe Account TODO Handle account updates else puts Unhandled event type event type end render json message success endEach time we receive the account updated event we want to update our local Author s flags for whether charges and payouts are enabled when account updated account event data object contains a Stripe Account author User find by stripe account id account id author update charges enabled account charges enabled payouts enabled account payouts enabled To build and test webhooks locally we ll use the Stripe CLI The listen command enables us to forward both account and connect webhook events Account a k a direct events are those events that fire on our account connect events are those that happen on connected accounts Start the listener with stripe listen forward to localhost webhooks forward connect to localhost webhooksAs a shortcut with Rails I add a new process to Procfile dev so that this starts each time we run bin dev My Procfile dev looks like this web bin rails server p js yarn build watchcss yarn build css watchstripe stripe listen forward to localhost webhooks forward connect to localhost webhooksNow we can go through the onboarding flow and enter test details Use the magic test strings from this doc to ensure a verified test account Note you ll also need to verify your email in order to activate the account so use a real email address that you have access to when creating the new connect account If all went to plan you see the JSON for the Stripe Account in the browser your Author has a Stripe Account ID charges enabled is true and payouts enabled is true in the database 2023-04-14 17:03:12
海外TECH Engadget Researchers use novel method to find a distant exoplanet https://www.engadget.com/researchers-use-novel-method-to-find-a-distant-exoplanet-175055335.html?src=rss Researchers use novel method to find a distant exoplanetAstronomers have discovered a new exoplanet ーbut this time the way they found it may be as significant as the discovery itself Researchers used a breakthrough combination of indirect and direct planetary detection to locate the distant world known as HIP b It could inch us closer to finding Earth like exoplanets among our distantly neighboring stars Direct imaging is what most casual observers would expect to lie at the heart of exoplanet hunting using powerful telescopes with advanced optics to capture images of distant planetary bodies However direct imaging is most effective for planets orbiting far from their stars an exoplanet closer to its sun is usually obscured by the star s bright light making it difficult to detect or image When they re farther away there s greater contrast between the exoplanet s and the star s light Meanwhile indirect imaging precision astrometry looks for stars that appear to “wobble meaning their gravity may be affected by an otherwise unseen to us exoplanet This method can more easily detect the presence of planets orbiting closer to their stars ーlike the Earth s relationship to the Sun As a result indirect imaging has yielded over exoplanet discoveries while direct imaging has only captured about The international team of researchers led by Thayne Currie of the National Astronomical Observatory of Japan NAOJ and the University of Texas at San Antonio combined the two methods to discover the new exoplanet First they used data from the Hipparcos Gaia Catalogue of Accelerations ーa map tracking the precise positions and motions of nearly two million stars in the Milky Way ーto identify the star HIP as a prime candidate for hosting an exoplanet Then they used Japan s ultra powerful Subaru telescope in Mauna Kea Hawaii to directly image the newly discovered exoplanet creatively titled HIP b European Space AgencyThe European Space Agency image above illustrates that the exoplanet is about times as massive as Jupiter Despite having an orbit over three times longer than Jupiter s orbit around our Sun HIP b receives around the same amount of light as Jupiter because its sun is about twice as massive as ours The researchers say it may have water and carbon monoxide in its atmosphere Astronomers believe the new method combining direct and indirect imaging opens an exciting new door for future discoveries “It provides a new path forward to discovering more exoplanets and characterizing them in a far more holistic way than we could do before says Currie Additionally the group views Gaia s upcoming fourth data release which will yield nearly double the previous version s data will make it easier to identify stars wobbling from the gravity of planetary bodies “The discovery of this planet will spawn dozens of follow on studies The team is now studying data from about other stars showing promise for hosting exoplanets “This is sort of a test run for the kind of strategy we need to be able to image an earth said Currie “It demonstrates that an indirect method sensitive to a planet s gravitational pull can tell you where to look and exactly when to look for direct imaging So I think that s really exciting This article originally appeared on Engadget at 2023-04-14 17:50:55
海外TECH Engadget ‘The Super Mario Bros. Movie’ is already the biggest game adaptation of all time https://www.engadget.com/the-super-mario-bros-movie-is-already-the-biggest-game-adaptation-of-all-time-173946909.html?src=rss The Super Mario Bros Movie is already the biggest game adaptation of all timeThe Super Mario Bros Movie has only been in theaters for a week and a half but it s been pulverizing box office records faster than Nintendo s mascot can run from left to right It already had the highest grossing opening weekend for any video game based movie in the US and Canada but the film has proven to be a hit around the globe According to Variety The Super Mario Bros Movie has raked in north of million worldwide That makes it both the biggest film of so far as well as the highest earning video game movie of all time in theaters The previous record holder was Warcraft which had a global haul of million After the bizarre mess of the live action Super Mario Bros film Nintendo swore off movie adaptations of its properties for decades But with the help of Despicable Me studio Illumination and a focus on replicating the widely recognized art style of Mario games in animation Nintendo has struck gold with the latest film even if the plot doesn t amount to much There s a long way to go before Nintendo Illumination and Universal which co financed and distributed the flick can truly dream of The Super Mario Bros Movie becoming one of the biggest animated films of all time It hasn t broken into the top yet while the remake of The Lion King has the top spot with billion Still movies and other non gaming experiences like theme parks will likely form a major part of Nintendo s business going forward A Mario sequel and films based on other Nintendo properties a Breath of the Wild adaptation anyone now seem inevitable as if Illumination founder Chris Meledandri having a seat on the board wasn t clear enough of an indication This article originally appeared on Engadget at 2023-04-14 17:39:46
海外科学 NYT > Science Abortion Pills, the Latest Battleground, Have Been Little Known to Americans https://www.nytimes.com/2023/04/14/science/mifepristone-abortion-polls.html Abortion Pills the Latest Battleground Have Been Little Known to AmericansA majority of Americans had not heard of mifepristone a survey earlier this year found The drug is now at the center of an abortion case headed to the Supreme Court 2023-04-14 17:52:04
金融 金融庁ホームページ 金融活動作業部会(FATF) 暗号資産コンタクト・グループ会合の東京開催について公表しました。 https://www.fsa.go.jp/inter/etc/20230414/20230414.html 金融活動作業部会 2023-04-14 19:00:00
ニュース BBC News - Home Nurses to strike on bank holiday after pay offer rejected https://www.bbc.co.uk/news/health-65275362?at_medium=RSS&at_campaign=KARANGA england 2023-04-14 17:10:27
ニュース BBC News - Home US intelligence leaks suspect hears charges in court https://www.bbc.co.uk/news/world-us-canada-65270966?at_medium=RSS&at_campaign=KARANGA teixeira 2023-04-14 17:46:16
ニュース BBC News - Home France pension reforms: Constitutional Council clears age rise to 64 https://www.bbc.co.uk/news/world-europe-65279818?at_medium=RSS&at_campaign=KARANGA reforms 2023-04-14 17:51:24
ニュース BBC News - Home Two Met officers sacked over Katie Price son messages https://www.bbc.co.uk/news/uk-england-london-65274794?at_medium=RSS&at_campaign=KARANGA harvey 2023-04-14 17:09:02
ニュース BBC News - Home Billie Jean King Cup 2023 results: Great Britain's Katie Boulter loses to France's Caroline Garcia https://www.bbc.co.uk/sport/tennis/65268979?at_medium=RSS&at_campaign=KARANGA Billie Jean King Cup results Great Britain x s Katie Boulter loses to France x s Caroline GarciaGreat Britain s Katie Boulter is close a major upset before world number five Caroline Garcia puts France ahead in the Billie Jean King Cup 2023-04-14 17:29:59

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

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

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