AWS |
AWS Architecture Blog |
Improving Performance and Reducing Cost Using Availability Zone Affinity |
https://aws.amazon.com/blogs/architecture/improving-performance-and-reducing-cost-using-availability-zone-affinity/
|
Improving Performance and Reducing Cost Using Availability Zone AffinityOne of the best practices for building resilient systems in Amazon Virtual Private Cloud VPC networks is using multiple Availability Zones AZ An AZ is one or more discrete data centers with redundant power networking and connectivity Using multiple AZs allows you to operate workloads that are more highly available fault tolerant and scalable than … |
2021-09-29 16:52:29 |
AWS |
AWS Partner Network (APN) Blog |
Achieving Operational Success of SaaS Solutions |
https://aws.amazon.com/blogs/apn/achieving-operational-success-of-saas-solutions/
|
Achieving Operational Success of SaaS SolutionsOperational excellence is a key challenge for SaaS providers as it deals with the ability to run and monitor workloads effectively and to continuously improve supporting processes and procedures to deliver business value Implementing AWS best practices will enable you to handle and respond to continually shifting tenant workloads and usage patterns and use data driven insights to achieve desired business and technical outcomes |
2021-09-29 16:47:02 |
AWS |
AWS Desktop and Application Streaming Blog |
Automate Amazon WorkSpaces custom images across AWS Regions |
https://aws.amazon.com/blogs/desktop-and-application-streaming/automate-amazon-workspaces-custom-images-across-aws-regions/
|
Automate Amazon WorkSpaces custom images across AWS RegionsCustomers ask how they can automate copying Amazon WorkSpaces custom images between AWS Regions Common use cases for synchronizing custom Amazon WorkSpaces images between Regions include Consistency for multi Region deployments Multi region deployments of Amazon WorkSpaces allow WorkSpaces to be deployed for user who need low latency connection to a specific geographic area One custom image with … |
2021-09-29 16:09:56 |
AWS |
AWS Open Source Blog |
AWS Distro for OpenTelemetry is now GA for tracing |
https://aws.amazon.com/blogs/opensource/aws-distro-for-opentelemetry-is-now-ga-for-tracing/
|
AWS Distro for OpenTelemetry is now GA for tracingAWS Distro for OpenTelemetry ADOT is now generally available with production ready tracing support You can download the latest ADOT Collector image from the Amazon Elastic Container Registry Amazon ECR Public Gallery Highlights End to end support for collecting processing and exporting traces OTLP v fully supported Stability guarantees for tracing in the OpenTelemetry Protocol OTLP Semantic … |
2021-09-29 16:30:36 |
AWS |
AWS Security Blog |
Securely extend and access on-premises Active Directory domain controllers in AWS |
https://aws.amazon.com/blogs/security/securely-extend-and-access-on-premises-active-directory-domain-controllers-in-aws/
|
Securely extend and access on premises Active Directory domain controllers in AWSIf you have an on premises Windows Server Active Directory infrastructure it s important to plan carefully how to extend it into Amazon Web Services AWS when you re migrating or implementing cloud based applications In this scenario existing applications require Active Directory for authentication and identity management When you migrate these applications to the cloud having a locally … |
2021-09-29 16:06:41 |
AWS |
AWS |
How can I find which API call is causing the "Rate exceeded" error? |
https://www.youtube.com/watch?v=IZCksdHmvPU
|
How can I find which API call is causing the quot Rate exceeded quot error Skip directly to the demo For more details see the Knowledge Center article with this video Surbhi shows you how to find which API call is causing the Rate exceeded error Subscribe More AWS videos More AWS events videos 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 AWS AmazonWebServices CloudComputing |
2021-09-29 16:33:33 |
AWS |
AWS |
How do I give permissions to my Lambda functions by using policies and roles in AWS SAM templates? |
https://www.youtube.com/watch?v=QbqqwZ9c1u8
|
How do I give permissions to my Lambda functions by using policies and roles in AWS SAM templates Skip directly to the demo For more details see the Knowledge Center article with this video Anshita shows you how to give permissions to my Lambda functions by using policies and roles in AWS SAM templates Subscribe More AWS videos More AWS events videos 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 AWS AmazonWebServices CloudComputing |
2021-09-29 16:33:15 |
AWS |
AWS Security Blog |
Securely extend and access on-premises Active Directory domain controllers in AWS |
https://aws.amazon.com/blogs/security/securely-extend-and-access-on-premises-active-directory-domain-controllers-in-aws/
|
Securely extend and access on premises Active Directory domain controllers in AWSIf you have an on premises Windows Server Active Directory infrastructure it s important to plan carefully how to extend it into Amazon Web Services AWS when you re migrating or implementing cloud based applications In this scenario existing applications require Active Directory for authentication and identity management When you migrate these applications to the cloud having a locally … |
2021-09-29 16:06:41 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
敵キャラにぶつかったらその敵キャラは消えてWin!!というメッセージを画面に出したい |
https://teratail.com/questions/361975?rss=all
|
敵キャラにぶつかったらその敵キャラは消えてWinというメッセージを画面に出したい前提・実現したいことunityで独学でゲーム作りをしたいと思っており、タイトルにもあるように敵にぶつかったら敵が消えてWinとTextを出したいと考えております。 |
2021-09-30 01:44:14 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
.textで文字として表示されずエラーが出る |
https://teratail.com/questions/361974?rss=all
|
textで文字として表示されずエラーが出る前提・実現したいことbeautifulsoupを使いサイトAから表データを抜き取りました。 |
2021-09-30 01:25:42 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Unityで3色(色固定・重複無し)のターゲットを3つランダムに等間隔で配置することを目的にC#スクリプトを作成していますが,色の重複が起きてしまいます. |
https://teratail.com/questions/361973?rss=all
|
|
2021-09-30 01:12:00 |
海外TECH |
Ars Technica |
Discord, LibreOffice, and other app stores come to the Microsoft Store in Windows 11 |
https://arstechnica.com/?p=1799338
|
store |
2021-09-29 16:47:11 |
海外TECH |
DEV Community |
I wrote a fully-functioning File Explorer, using TypeScript |
https://dev.to/5gqjwj/i-wrote-a-fully-functioning-file-explorer-using-typescript-40jc
|
I wrote a fully functioning File Explorer using TypeScriptI am very happy to introduce Xplorer to help you organize your files and or folders FeaturesDesigned Out Of The BoxXplorer is not written on traditional language like C C or C It is written on TypeScript HTML and SCSS using the Electron framework this makes Xplorer looks much more modern and it will support theme customization in the future release There are four available default themes for now Cross PlatformAs I mentioned Xplorer is powered by the web because it s written with the Electron framework this makes it possible to run Xplorer from any platform Read More I wrote a fully functioning File Explorer using TypeScript |
2021-09-29 16:49:39 |
海外TECH |
DEV Community |
Why Render |
https://dev.to/render/why-render-2hl5
|
Why RenderWhen I joined Stripe in the company had four full time engineers Even then one of them was focused exclusively on managing our AWS infrastructure By the time I left in the engineering organization had grown to and the team that managed AWS to We had one of the strongest engineering teams on the planet but more than a fifth of it was focused on undifferentiated AWS heavy lifting that our customers didn t know or care about Assuming a typical Bay Area cost to company of K per engineer managing AWS likely cost Stripe at least million in This was in addition to their AWS bill equity compensation and the often ignored organizational overhead that increases with every new hire Stripe is hardly alone in spending millions of dollars on DevOps each year According to data published by the U S Bureau of Labor Statistics businesses spent billion on DevOps salaries in Ironically this number is greater than global spending on public cloud providers estimated at billion in DevOps engineers cost much more than the cloud providers they manage What do we get for billion Most DevOps time is spent on tasks that are painfully similar across every organization Nearly every software stack requires the same infrastructure tooling and automation to operate reliably and to enable developers to focus on unique business concerns There are of course minor yet important differences across companies but the decision to build an internal deployment platform is typically made well before these differences emerge and is often based on what s fashionable or familiar As a result businesses end up with an ever expanding DevOps footprint to maintain and expand undifferentiated platforms Sadly all this effort and expense is irrelevant and invisible to their customers Why don t more companies choose to scale on a platform like Heroku that minimizes the need for DevOps engineers When it launched in Heroku provided a uniquely incredible experience for developers building web apps with an up and coming framework called Ruby on Rails In many ways this power duo of technologies focused on the developer experience helped usher in Web and all the innovation that accompanied it Sadly after Salesforce acquired Heroku in the rate of innovation on the platform began to slow eventually coming to a standstill in recent years For companies that needed more than a simple web app Heroku s feature set was often incomplete The lack of persistent disks meant tools like Elasticsearch couldn t run on Heroku missing private networking was a deal breaker for security conscious companies Websockets support came very late and HTTP didn t show up at all In contrast AWS kept adding new features and products at an incredible pace ultimately conditioning new companies to skip Heroku and go straight to AWS while resigning themselves to poor developer experience and reduced iteration speed Fast forward to today and most new applications are being packaged and deployed as containers often with Kubernetes Let loose on the world by Google in it has quickly replaced VMs as the target management layer for infrastructure promising portability and automation for containerized workloads Large corporate marketing budgets have certainly helped making Kubernetes the tool of choice for DevOps teams managing applications in the cloud However in adopting Kubernetes we have traded the mostly well understood complexity of AWS for a labyrinthian ecosystem that is as convoluted as it is inconsistent in quality This has forced every company to build their own internal PaaS so application developers can focus on code Ironically these custom platforms look more similar than ever since they re all based on Kubernetes This is the billion question if every internal PaaS looks the same why waste inordinate amounts of time and money on building and managing these platforms at every company Render is the answer to this question we re building the modern PaaS every team and company needs to ship better software faster effectively becoming the ever expanding devops team for our customers Our relentless focus on developer experience is matched only by our resolve to offer customers all the infrastructure flexibility they need without the associated complexity This has helped us evolve from what started as a passion project in late to something that looks very different today Tens of thousands of developers and businesses have created more than services on Render In addition to APIs and full stack apps we now support static sites cron jobs managed PostgreSQL databases background workers private services and of course Docker containers with more managed services on the way We ve launched multiple industry firsts in the PaaS market including private networking persistent storage managed wildcard SSL and true resource based autoscaling effectively blurring the boundaries between PaaS and IaaS Most importantly Render has grown to include immensely talented kind and diverse humans with stellar backgrounds at companies like Stripe Twitter Uber Lyft Twitch LinkedIn and Heroku We re always hiring As we grow our goal remains the same empower developers and businesses to ship better products faster by eliminating DevOps We re working to end the tyranny of complexity forced on developers by cloud providers who d rather sell certifications than focus on developer productivity We are deprecating antiquated definitions of PaaS and IaaS combining delightful developer experiences with the flexibility today s applications need Most importantly we are asking developers around the world to expect much more from the cloud Let s get started |
2021-09-29 16:46:02 |
海外TECH |
DEV Community |
Ordinalize: Adding "-st", "-nd", "-rd", "-th" to dates |
https://dev.to/swanson/ordinalize-adding-st-nd-rd-th-to-dates-12am
|
Ordinalize Adding quot st quot quot nd quot quot rd quot quot th quot to datesEver written a giant case statement to add st nd rd th to display dates like March th or September st Converting numbers like into st nd th th is called ordinalizing ordinalize number Turns a number into an ordinal string used to denote the position in an ordered sequence such as st nd rd th Instead of manually add special cases check if your language library or framework has a helper built in For example in Rails you can call the ordinalize method on a number or use the long ordinal date format gt ordinalize gt rd gt Date today to s long ordinal gt September th Happy hacking |
2021-09-29 16:44:29 |
海外TECH |
DEV Community |
Why can't you break out of the forEach loop? |
https://dev.to/mayankav/why-you-can-t-break-out-of-the-foreach-loop-n5e
|
Why can x t you break out of the forEach loop This is one of the many things I keep forgetting every now and then Other things like taking out clothes from the washing machine watering my plants okay but this post is not about me being forgetful I am sure lot many of you reading this post do know this but still its not until you try to break out of the forEach loop that you realize you made the same mistake once again This post is just a reminder for most of us and maybe a short clarification for the rest of us Moving ahead with an example because examples are the quickest way to explain stuff Lets say we have an array of flowers and we want to collect all the flowers unto my favorite Tulip starting from the first one Yes please dont make it complicated by throwing in scenarios like what if there are multiple Tulips We have an array of flowers where each flower appears once like so const flowers Rose Lily Marigold Jasmine Tulip Lotus Orchid Daffodil Sunflower Poppy How would you do it If I were you I d rush to get the forEach loop down first but not this time Lets use the conventional for loop and get this done first Silly but helpful Easy said easy done Then we shall also try that out with my favorite forEach loop Take a look at the following snippets const flowers Rose Lily Marigold Jasmine Tulip Lotus Orchid Daffodil Sunflower Poppy let vase collect all flowers unto Tulip for let i i lt flowers length i vase push flowers i if flowers i Tulip break console log vase Rose Lily Marigold Jasmine Tulip const flowers Rose Lily Marigold Jasmine Tulip Lotus Orchid Daffodil Sunflower Poppy let vase collect all flowers unto Tulip flowers forEach flower gt vase push flower if flower Tulip break Illegal break statement Had you tried that on your own you d have come across this error that says Illegal break statement You can t break out of the forEach loop after you re done collecting Tulip You may have already figured out but don t worry if you haven t and let me tell you how does the forEach loop differ from all the conventional loops forEach more than being a loop is a function call and you know it right from the syntax This function takes another callback function and mind it the callback function has to be a synchronous function The synchronous callback function essentially is then called in interation on the array on which you did call the forEach loop I understand that this may not sound very intuitive So let me try explaining this with a demo polyfill of the forEach function You can easily make it go crazy throwing errors but for a quick example it should suffice For complete implementation you can see this forEach polyfillArray prototype customForEach function callback const arr this internal loop for let i i lt arr length i const x arr i callback call arr x only if we could add a break here but we can t reach this place const callback function x console log x break Illegal break statement using custom forEachconst flowers Rose Lily Marigold Jasmine Tulip Lotus Orchid Daffodil Sunflower Poppy flowers customForEach callback Now when you look at the poyfill customForEach you ll be able to comprehend the situation much clear You d also agree how placing a break statement inside a function named callback is inappropriate Read what MDN docs say Even if you assumed that something like a break statement was valid inside a function which indeed isn t the case you d see that it would not be able to break out of the loop since there s no way you can add a break statement inside the internal loop Why because you simply cannot access it from outside Accomplishing the task we took as an example here for this post is not a tough job There are numerous ways this can be done but apart from this example for your use case checkout the alternatives available at your disposal Again this is not an exhasutive list but then the purpose of this post is served and anything beyond this would only stretch the content unnecessarily I believe Also since I have now written this post I think I won t repeat this mistake or will I Originally Posted Here |
2021-09-29 16:26:09 |
海外TECH |
DEV Community |
JavaScript Refactoring in Action: Replace Nested If-Else with Guards |
https://dev.to/p42/javascript-refactoring-in-action-replace-nested-if-else-with-guards-41nl
|
JavaScript Refactoring in Action Replace Nested If Else with GuardsNested if else statements can make it unnecessarily complicated to reason about the different executions paths and results of a function A loss of productivity and the introduction of bugs due to misunderstandings can be the outcome The refactoring Replace Nested Conditional with Guard Clauses from Martin Fowler s book Refactoring Improving the Design of Existing Code nd Edition can help in those situations A guard clause checks for a condition and returns from the function if the condition is true potentially doing some computation and returning a result It makes it easier to reason about the function by ending one execution path early Here is an example function from Replace Nested Conditional with Guard Clauses Martin Fowler before refactoring function getPayAmount let result if isDead result deadAmount else if isSeparated result separatedAmount else if isRetired result retiredAmount else result normalPayAmount return result In this example three nested if else statements check different conditions e g isSeparated and update a variable result The variable is returned at the end of the function The goal is to refactor the function into the following version function getPayAmount if isDead return deadAmount if isSeparated return separatedAmount if isRetired return retiredAmount return normalPayAmount The refactored function uses guard clauses instead of nested if else statements The variable result is not necessary anymore and has been removed The refactored code is easier to understand because there is less state no variable and each execution path returns early How can the original function be refactored step by step You can simplify the original code by applying two refactorings to each condition Inline return converts a variable assignment to a return statement Such a conversion is possible when the following statement after the assignment in the control flow returns the variable Convert if else to guard clause changes an if else statement with return statements inside into to guard clauses removing the indentation around the else block You can carry out these steps manually or with automation The P JavaScript Assistant for VS Code is a refactoring tool that supports both operations P indicates improvement opportunities with blue squiggly underlines With refactoring automation the code can be improved in a matter of seconds After a final formatting step the function has been refactored into the simplified version Here is how refactoring the code looks like in VS Code with P Refactoring is essential for maintaining a healthy codebase and many small improvements go a long way By introducing guard clauses you can often simplify nested if else statements and make your codebase a little bit better Happy refactoring |
2021-09-29 16:17:43 |
海外TECH |
DEV Community |
Earthly Stickers And Hacktoberfest |
https://dev.to/adamgordonbell/earthly-stickers-and-hacktoberfest-1096
|
Earthly Stickers And HacktoberfestEarthly is excited about Hacktoberfest and we are looking for contributors Last year we saw lots of great contributions from the community and sent out a bunch of Earthly stickers to participants What Is Hacktoberfest The hosting provider DigitalOcean is once again organizing the Hacktoberfest to celebrate open source Hacktoberfest invites you to submit pull requests to open source projects People who submit four or more pull requests get a free t shirt from DigitalOcean What Is Earthly Earthly is the command line build tool you didn t know you needed It combines the isolation of containers with great usability Sticker Rewards ZedTuX zedtux The EarthlyTech guys sent me many stickers with a nice card I really appreciate it guys docker containers earthly PM Nov In addition to this official event Earthly would also like to kick in some rewards for people who contribute Earthly is a free and open build tool It lets you build everything using containers The first participants who submit at least one pull request that is accepted Earthly s GitHub Repository between October and November will get an earthly sticker We have labeled many issues hacktoberfest to get you started You can also qualify for the sticker by adding a working Earthfile file to another open source project including your own personal project How Do I Claim my Earthly Stickers Once your PR has been accepted please fill out this form All PRs that are contributing value will get an Earthly sticker Questions Help If you have any questions or if you need any assistance join our slack channel We are here to help Questions about a specific issue or PR are best left on that issue or PR Happy hacking |
2021-09-29 16:13:03 |
Apple |
AppleInsider - Frontpage News |
Apple CEO Tim Cook receives 255,000 shares of Apple stock |
https://appleinsider.com/articles/21/09/29/apple-ceo-tim-cook-receives-25-million-shares-of-apple-stock?utm_medium=rss
|
Apple CEO Tim Cook receives shares of Apple stockApple CEO Tim Cook has received more than shares of Apple stock as part of a new compensation package that will run through Credit AppleBack in August Cook received more than million shares of Apple stock and sold them for more than million The stock transfer was the final part of a compensation package that Cook received when he became CEO of Apple in Read more |
2021-09-29 16:51:27 |
海外TECH |
Engadget |
IMDb's free TV service arrives in the UK |
https://www.engadget.com/imdb-tv-uk-amazon-prime-video-163945431.html?src=rss
|
IMDb x s free TV service arrives in the UKFolks in the UK looking for a show or movie to stream have even more options at their disposal IMDb TV is now available in the country The free ad supported service offers a mix of originals and popular movies and shows from elsewhere as Variety notes Alongside IMDB TV s own projects such as Luke Bryan My Dirt Road Diary Moment of Truth and Top Class The Life and Times of the Sierra Canyon Trailblazers you can watch the likes of Pulp Fiction Anger Management The English Patient Person of Interest Community and Broke Girls You can access IMDb TV through the Prime Video app even if you aren t an Amazon Prime member A Fire TV app is on the way in the coming weeks Standalone IMDb TV apps for Android and iOS hit the US last month so perhaps they ll be available in the UK later as well |
2021-09-29 16:39:45 |
海外TECH |
Engadget |
'Mandalorian' spin-off 'The Book of Boba Fett' premieres December 29th |
https://www.engadget.com/the-book-of-boba-fett-release-date-disney-plus-161153623.html?src=rss
|
x Mandalorian x spin off x The Book of Boba Fett x premieres December thDisney said The Book of Boba Fett would premiere this December and it s making good on its promise ーif only just The media giant has revealed that the Mandalorian spin off will debut December th on Disney The art accompanying the release date doesn t show much but you can assume Boba Fett won t suffer fools lightly Caution mild Mandalorian spoliers ahead The series follows Boba Fett and his mercenary ally Fennec Shand shortly after the end of Mandalorian season two as the pair return to Tatooine and lay claim to Jabba the Hutt s former territory Temeura Morrison and Ming Na Wen will reprise their respective roles Producers from the earlier show are helming this latest project including Jon Favreau Robert Rodriguez and Kathleen Kennedy This won t satisfy fans looking for Mandalorian season three which will only arrive afterBoba Fett It does give fans another Star Wars fix before the end of at least and it ensures you ll have another major Disney show to watch once you ve finished with Hawkeye His story is only beginning The Book of BobaFett an all new Original Series starts streaming December on DisneyPlus TheBookOfBobaFettpic twitter com bWPgDZlーStar Wars starwars September |
2021-09-29 16:11:53 |
海外TECH |
Network World |
BrandPost: Aruba Central Cloud Gets AI Insights for SD-Branch WAN Gateways |
https://www.networkworld.com/article/3635009/aruba-central-cloud-gets-ai-insights-for-sd-branch-wan-gateways.html#tk.rss_all
|
BrandPost Aruba Central Cloud Gets AI Insights for SD Branch WAN Gateways IT teams have a difficult job when it comes to resolving application issues today as many apps are cloud hosted and rely on WAN connections If a performance problem is not tied to the on premises network a lot of time is spent working to identify root causes Without comprehensive end to end visibility and automated insights finding and resolving a simple problem can take hours or days As an SD WAN and SD Branch vendor we re often asked What is the next big thing when it comes to improving IT efficiency related to WAN issues Our point of view and the direction of many of our innovations is that AI and machine learning will play a big role Monitoring application and network performance across your branches and providing insights when we see unfavorable behavior is how we save you time and grief To read this article in full please click here |
2021-09-29 16:56:00 |
金融 |
金融庁ホームページ |
「火災保険水災料率に関する有識者懇談会」(第2回)を開催します。 |
https://www.fsa.go.jp/news/r3/singi/20210929-2.html
|
有識者懇談会 |
2021-09-29 17:00:00 |
金融 |
金融庁ホームページ |
貸金業関係資料集について更新しました。 |
https://www.fsa.go.jp/status/kasikin/20210929/index.html
|
関係 |
2021-09-29 17:00:00 |
金融 |
金融庁ホームページ |
「デジタル・分散型金融への対応のあり方等についての研究会」(第3回)を開催します。 |
https://www.fsa.go.jp/news/r3/singi/20210929.html
|
Detail Nothing |
2021-09-29 17:00:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
インフラ計画「ビルド・ビルド・ビルド」によって雇用増加 |
https://www.jetro.go.jp/biznews/2021/09/a075c4844cf6b18a.html
|
雇用 |
2021-09-29 16:40:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
VW、中国安徽省にEV用蓄電池システム工場新設へ |
https://www.jetro.go.jp/biznews/2021/09/516e00345267fcff.html
|
蓄電池 |
2021-09-29 16:40:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
鉱害鉱業公団が発足、不良債権処理も課題に |
https://www.jetro.go.jp/biznews/2021/09/79538789d5ffe030.html
|
不良債権 |
2021-09-29 16:30:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
中南米地域最大規模の陸上風力発電施設の建設発表 |
https://www.jetro.go.jp/biznews/2021/09/cb1e01933c9c4505.html
|
最大規模 |
2021-09-29 16:20:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
米インテル、アリゾナ州で最先端の半導体工場建設に着手 |
https://www.jetro.go.jp/biznews/2021/09/1238429ea59514bf.html
|
最先端 |
2021-09-29 16:10:00 |
ニュース |
BBC News - Home |
Sarah Everard murder: 'Our lives will never be the same again' |
https://www.bbc.co.uk/news/uk-england-london-58739421?at_medium=RSS&at_campaign=KARANGA
|
final |
2021-09-29 16:46:54 |
ニュース |
BBC News - Home |
Petrol supply: Reserve fuel tankers on the road from Wednesday, says Kwarteng |
https://www.bbc.co.uk/news/uk-58729653?at_medium=RSS&at_campaign=KARANGA
|
business |
2021-09-29 16:49:17 |
ニュース |
BBC News - Home |
Labour conference: Five things we learned as politicians gathered |
https://www.bbc.co.uk/news/uk-politics-58727500?at_medium=RSS&at_campaign=KARANGA
|
covid |
2021-09-29 16:43:35 |
ニュース |
BBC News - Home |
US fans gave Lowry's wife 'dog's abuse' at Ryder Cup |
https://www.bbc.co.uk/sport/golf/58739909?at_medium=RSS&at_campaign=KARANGA
|
US fans gave Lowry x s wife x dog x s abuse x at Ryder CupShane Lowry says he is determined to help Europe regain the Ryder Cup after revealing his wife suffered dog s abuse at last week s event |
2021-09-29 16:03:21 |
北海道 |
北海道新聞 |
コロナ再拡大防止へ段階的緩和 道が独自対策決定 10月末まで「転換期」 |
https://www.hokkaido-np.co.jp/article/594567/
|
新型コロナウイルス |
2021-09-30 01:06:56 |
GCP |
Cloud Blog |
Build and run a Discord bot on top of Google Cloud |
https://cloud.google.com/blog/topics/developers-practitioners/build-and-run-discord-bot-top-google-cloud/
|
Build and run a Discord bot on top of Google CloudStuck at home these past checks calendar months I ve been spending a lot more time on Discord an online voice video and text communications service than I ever thought I would Chatting with far flung friends playing games exploring finding community as I am able and generally learning about a platform I had not used all that much before the pandemic And part of that fun was seeing all the cool bots people have made on Discord to liven things up moderation trivia and games many little weird random games So I wondered could I make one Since bots are just code that interact with Discord s APIs they have to have a computer to run on Cool I have one of those But I don t want my bot to disappear just because my computer is off so I need something better a computer that can always stay on Reliable infrastructure If only I could find that somewhere What would it take to actually run a bot on someone else s ie Google s computers I m assuming here that you ve set up your Discord developer account made a New Application with a clever name of course got the bot token from the menu under Settings gt Bot gt Token have to Copy or Reveal and have that stored safely on a sticky note by your desk Now on to Google Cloud First make sure you have an account set up and are able to create new resources We ll need a Virtual Machine VM part of Google Compute Engine In Google Cloud make a new project head to Compute and create a new instance The smallest instance is going to be fine for this Hello World example so let s use an f micro instance because it s free To get that going I chose us east as my region Series N then Machine type f micro While I love me some serverless architecture and it s usually much lower overhead in this case we want to have a persistent instance so there s always a process ready to respond to a request via the Discord API We want to avoid any timeouts that might emerge if a serverless solution takes time to spin up listeners At the same time we need to avoid having more than one process running otherwise we could have multiple responses to a Discord signal which will be confusing In choosing our VM we need something running Python to support our Discord bot code The default as I write is Debian GNU Linux buster which is running Python good enough for us Once the VM is live we can start getting our code setup on it You ve got a few options for connecting to the Linux VMs Once you ve done so time to install and run some code To run our code we want to install and setup pip package installer for python usingThen run to install the Discord library onto your server We can drop our code directly into a new bot py file organizing it into more structured files will come after we move past the Hello World stage For now you ll hard code the bot token into bot py even though that gives me the shivers And now we re ready to run our bot python bot pyAnd you can add it to our server by going back to the Discord Developer portal select our App and look under Settings for OAuth Once you choose the right scope we can stick with just bot for now a new link will appear below the Scopes box starting withLoading that in your browser is all it takes to add you new bot the the server you have permissions to manage and now you are all set Test it out by sending the message hello to your server You can read more about the Free Tier for Compute Engine and other services and come back next time for a deeper exploration into operations for your Google Cloud powered Discord bot Related ArticleWhat are the components of a Cloud VM Join Brian and Carter as they explore why VMs are some of Google s most trusted and reliable offerings and how VMs benefit companies ope Read Article |
2021-09-29 16:15:00 |
コメント
コメントを投稿