投稿時間:2022-03-12 04:25:22 RSSフィード2022-03-12 04:00 分まとめ(28件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Developer Blog Build and Deploy a Microsoft .NET Core Web API application to AWS App Runner using CloudFormation https://aws.amazon.com/blogs/developer/build-and-deploy-a-microsoft-net-core-web-api-application-to-aws-app-runner-using-cloudformation/ Build and Deploy a Microsoft NET Core Web API application to AWS App Runner using CloudFormationIn this blog we show you how to build a Microsoft NET Web API application with Amazon Aurora Database using AWS App Runner AWS App Runner makes it easy for developers to quickly deploy containerized web applications and APIs and helps us start with our source code or a container image Container workload management tasks such … 2022-03-11 18:53:03
AWS AWS AWS Skill Builder - Learning Plans | Amazon Web Services https://www.youtube.com/watch?v=6RzkX3W8YNM AWS Skill Builder Learning Plans Amazon Web ServicesOwn your career with AWS Skill Builder the new learning center from AWS Training and Certification Follow learning plans to build your cloud knowledge and achieve your goals Learn more about AWS Skill Builder at 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 2022-03-11 18:43:03
AWS AWS AWS Skill Builder - Learning Plans | Amazon Web Services https://www.youtube.com/watch?v=BiJ8ejLLmbQ AWS Skill Builder Learning Plans Amazon Web ServicesOwn your career with AWS Skill Builder the new learning center from AWS Training and Certification Follow learning plans to build your cloud knowledge and achieve your goals Learn more about AWS Skill Builder at 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 2022-03-11 18:42:39
js JavaScriptタグが付けられた新着投稿 - Qiita 初めて、他人のソースをレビューして気づいたこと https://qiita.com/t_109609akg/items/de8ede2f11b248b21383 初めて、他人のソースをレビューして気づいたこと三項演算子ソースは短くなるが、すべてを三項演算子にするのはよくないifabelsebconstcodeabcode大小判定ifthiszoomgtthiszoomifthiszoomltthiszoomマイナスずつ引いて行って、以下にはならないというプログラムであるまずいらない分岐は消すthiszoomifthiszoomltthiszoomこれは関数が用意されているthiszoomthiszoomMathmaxthiszoomこれで行が一行にthiszoomMathmaxthiszoomMathmaxは入力された以上の数字の内最大のものを返しているasyncawaitが関数の最後に来ても、消さない方がいい最後に非同期処理が来ても、消さない方がいい理由は以下の点である・チーム開発の場合、次に何か処理をつけ足すときにエラーにきずきにくくなる・PromiseはPromiseであると分かりやすくなっていたほうがよいミス防止のため・awaitしていないと、投げっぱなしなのでrejectされてもそこで例外は発生されないfunctionasync何か処理awaitaxiosgethttpfilterslice適切なメソッドを使おう例えば、数字の配列から、要素を切り出したいときこんなソースを多く見たconstdataconstfilterDatadatafilteritemindexgtreturnindexgtこれは完全にsliceの役目ですので、こうかいたほうがよいconstdataconstsilceDatadataslicefunctionとアロー関数でthisのあたいが決まるタイミングが違う一般的にJavaScriptでは、関数の中でthisを使うと、その呼び出し元のオブジェクトになります。 2022-03-12 03:36:55
海外TECH MakeUseOf How to Watch the 2022 Grammys Online https://www.makeuseof.com/watch-2022-grammys-online/ online 2022-03-11 18:37:31
海外TECH MakeUseOf 6 Ways That Google Assistant Can Help Your Kids Sleep Better https://www.makeuseof.com/google-assistant-help-kids-sleep-better/ night 2022-03-11 18:30:14
海外TECH MakeUseOf 7 Ways to Open the Windows Firewall Control Panel Applet in Windows 11 https://www.makeuseof.com/windows-11-open-firewall-control-panel/ applet 2022-03-11 18:15:14
海外TECH DEV Community 🏄 AWS CDK 101 🌸 - lambda & CDK watch https://dev.to/aravindvcyber/aws-cdk-101-lambda-cdk-watch-le9 AWS CDK lambda amp CDK watchIn this article let us build necessary components which we need to setup a basic lambda stack which will be used in later in subsequent articles to act us a web hook taking some data into our ecosystem from other demo projects Beginners new to AWS CDK please do look at my previous articles in this series If incase missed the previous article do find it with the below links Original previous post at Dev PostReposted previous post at dev to aravindvcyberFirst before we start moving forward let us try to do some cleanup on the current demo workshop stack and understand how it reflects this changes This will give us good understanding on certain concepts before we move forward Removing the unwanted resources Open lib cdk workshop stack ts Here let us simply comment out the components initially created which is the SQS queue and the SNS topic with subscriptions it should look like the below export class CdkWorkshopStack extends Stack constructor scope Construct id string props StackProps super scope id props const queue new sqs Queue this CdkWorkshopQueue visibilityTimeout Duration seconds const topic new sns Topic this CdkWorkshopTopic topic addSubscription new subs SqsSubscription queue What we have achieved is like something we can understand with the cdk diff command IAM Statement Changes┌ー┬ー┬ー┬ー┬ー┬ー┐││Resource │Effect │Action │Principal │Condition │├ー┼ー┼ー┼ー┼ー┼ー┤│ │ CdkWorkshopQueueDD Arn │Allow │sqs SendMessage │Service sns amazonaws com │ ArnEquals │││││││ aws SourceArn CdkWorkshopTopicDAF │││││││ │└ー┴ー┴ー┴ー┴ー┴ー┘ NOTE There may be security related changes not in this list See Resources AWS SQS Queue CdkWorkshopQueueDD destroy AWS SQS QueuePolicy CdkWorkshopQueuePolicyAFA destroy AWS SNS Subscription CdkWorkshopQueueCdkWork AWS SNS Topic CdkWorkshopTopicDAF destroyThis signifies that while we delete the SQS and SNS it eventually removes the newly created queue policy and the topic subscription associated to this Make sure you run cdk deploy to cleanup the environment changes Simple lambda stack Now we have cleaned our environment let us start now from basics by trying to build a simple lambda stack which will be acting as a common gateway for the messages coming into our environment as we build this forward import Construct from constructs The AWS CDK is shipped with an extensive library of constructs called the AWS Construct Library The construct library is divided into modules one for each AWS service For example if you want to define an AWS Lambda function we will need to use the AWS Lambda construct library Before we proceed let us create a new stack by following the below stepsIn the lib folder create a new file like CommonEventStack ts where we will add the basic template as follows import Stack StackProps from aws cdk lib import Construct from constructs export class CommonEventStack extends Stack constructor scope Construct id string props StackProps super scope id props Then go to your bin cdk workshop ts and import the new stack we just created usr bin env nodeimport as cdk from aws cdk lib import CdkWorkshopStack from lib cdk workshop stack importing our new stackimport CommonEventStack from lib common event stack const app new cdk App new CdkWorkshopStack app CdkWorkshopStack initializing our new stacknew CommonEventStack app CommonEventStack It is time to run npm run build to make sure we never introduced any error in the process Finally we can run cdk ls to see the below output CdkWorkshopStackCommonEventStackAnd by the way I just gave the prefix CommonEvent to our new stack resources which we are about create also to demonstrate that we can have multiple stacks in the same project It is now time to create our lambda function let us create a folder called lambda in the root of the project and add a new file event entry ts as shown below Note I have started with TypeScript file and it needs to be transpiled to JavaScript when we deploy it into lambda exports receiver async function event any console log request JSON stringify event undefined return statusCode headers Content Type text plain body Message Received event n Once you run npm build you can notice the javascript files are created in the same folder event entry js use strict exports receiver async function event console log request JSON stringify event undefined return statusCode headers Content Type text plain body Message Received event n sourceMappingURL Let us use this function to build our lambda function inside our new stack CommonEventStack ts A simple lambda Lambda resource definition const eventEntry new lambda Function this EventEntryHandler runtime lambda Runtime NODEJS X execution environment code lambda Code fromAsset lambda code loaded from lambda directory handler event entry receiver file is event entry function is receiver Don t forget to add the necessary imports if it complains import as lambda from aws cdk lib aws lambda Here we are using NodeJs x runtime and specifying the handler function to be from the file named event entry with function name like receiver It is time to run cdk synth CommonEventStack to find the changes in the yaml template or run cdk diff CommonEventStack to find the changes more readable This to lookout for is listed below in the log below IAM Statement Changes┌ー┬ー┬ー┬ー┬ー┬ー┐││Resource │Effect │Action │Principal │Condition │├ー┼ー┼ー┼ー┼ー┼ー┤│ │ EventEntryHandler ServiceRole Arn │Allow │sts AssumeRole │Service lambda amazonaws com ││└ー┴ー┴ー┴ー┴ー┴ー┘IAM Policy Changes┌ー┬ー┬ー┐││Resource │Managed Policy ARN │├ー┼ー┼ー┤│ │ EventEntryHandler ServiceRole │arn AWS Partition iam aws policy service role AWSLambdaBasicExecutionRole │└ー┴ー┴ー┘Resources AWS IAM Role EventEntryHandler ServiceRole EventEntryHandlerServiceRoleFB AWS Lambda Function EventEntryHandler EventEntryHandlerD Here two resources are created IAM role and Lambda function Basically a new role is created to be assumed by the lambda function we created for its proper execution Let us deploy it by running cdk deploy CommonEventStack and confirming with y for the above IAM policy changes CommonEventStack creating CloudFormation changeset CommonEventStackDeployment time sStack ARN arn aws cloudformation ap south stack CommonEventStack c aa ec b adaeTotal time s Inspection in AWS console Now we can navigate to the lambda in AWS console into your default region and you will be able to identify the lambda Let us test this lambda now For which we have to have some sample test event as follows Let us create run the same test we have created above You can also find this logged inside the cloud watch logs And that is it we have a new lambda function running which is ready to receive our messages So what we have achieved in this article is only tech demonstration which can be further vertically integrated based on the use cases and is not considered to be the best approach rather it is only a know how Before we complete this article let us understand one more cdk cli which we would find to be very much helpful in your development environment Hot swapping deployments cdk deploy hotswapThis command deliberately introduces drift in CloudFormation stacks in order to speed up deployments For this reason only use it for development purposes Never use hotswap for your production deployments Let us make a simple change in our code for lambda in the entryexports receiver async function event any console log request JSON stringify event undefined return statusCode headers Content Type text plain body Hotswapped now nMessage Received JSON stringify event n Just be mindful of the fact this only publishes the assets already built for lambda in certain cases you will have used typescript in lambda and forget to build it before hotswaping in that case the distributable files configured will be published but the js files would never have been updated yet I make sure to add a script in my package json to run it like a script in package json fast npm run build amp amp cdk deploy CommonEventStack hotswap The total time taken is reduced but what is significant to notice here is the deployment time which is reduced to very small value Earlier it is s for full deployment now here it is only seconds would be useful in the development environment hotswapping resources Lambda Function CommonEventStack EventEntryHandlerD xaVWqcUsxERH Lambda Function CommonEventStack EventEntryHandlerD xaVWqcUsxERH hotswapped CommonEventStackDeployment time sStack ARN arn aws cloudformation ap south stack CommonEventStack c aa ec b adaeTotal time sHere I introduced some jargon drift let us see what it means and how it can be helpful To enable this you can select a stack or a resource under it and enable drift detection to capture it for tracking and audit Drift detection Drift detection enables you to detect whether a stack s actual configuration differs or has drifted from its expected configuration Use CloudFormation to detect drift on an entire stack or on individual resources within the stack A resource is considered to have drifted if any of its actual property values differ from the expected property values This even includes if the property or resource has been deleted A stack is considered to have drifted if one or more of its resources have drifted Here instead of using native cloud formation deployment a more simple swift deployment is carried out by hot swapping deployment by making use of the drifting changes on top of the initial stack Resource drift status code and description This is basically a comparison with the recent cloudformation deployment DELETEDThe resource differs from its expected template configuration because the resource has been deleted MODIFIEDThe resource differs from its expected template configuration NOT CHECKEDCloudFormation has not checked if the resource differs from its expected template configuration IN SYNCThe resource s current configuration matches its expected template configuration Before we wrap up let us see one more deploy cli command below CDK Watch CDK watch helps to monitor the file changes and invoke cdk deploy when it is needed It monitors the files specified in the include and the exclude list in the cdk json file watch include exclude README md cdk json d ts lambda ts tsconfig json package json yarn lock node modules test In the above snippet I have purposefully updated the js to lambda ts This change is done to make sure the ts file changes in our lambda source not detectable at the same time it will detect the js file which be emitted by tsc So I will be launching couple of windows to run tsc w and cdk watch CommonEventStack hotswap Working in parallel this will automatically deploy the expect lambda code changes basically these are developer friendly customizations tsc w this rewrites the js files PM File change detected Starting incremental compilation PM Found errors Watching for file changes cdk watch CommonEventStack hotswap published my js files automatically and swiftly Detected change to lambda event entry js type change Triggering cdk deploy Synthesis time shotswapping resources Lambda Function CommonEventStack EventEntryHandlerD xaVWqcUsxERH Lambda Function CommonEventStack EventEntryHandlerD xaVWqcUsxERH hotswapped CommonEventStackDeployment time sStack ARN arn aws cloudformation ap south stack CommonEventStack c aa ec b adaecurrent credentials could not be used to assume arn aws iam role cdk hnbfds lookup role ap south but are for the right account Proceeding anyway To get rid of this warning please upgrade to bootstrap version gt Total time sWe will add more connections to this lambda and make it more usable in the coming articles stay subscribed Thanks for supporting Would be really great if you like to Buy Me a Coffee to help boost my efforts Original post at Dev PostReposted at dev to aravindvcyber 2022-03-11 18:07:44
Apple AppleInsider - Frontpage News Apple claps back at UK report it claims would force it to 'redesign the iPhone' https://appleinsider.com/articles/22/03/11/apple-claps-back-at-uk-report-it-claims-would-force-it-to-redesign-the-iphone?utm_medium=rss Apple claps back at UK report it claims would force it to x redesign the iPhone x Apple has fired back at competition regulators in the U K stating that an assessment of the iPhone maker s market strength was based on unsubstantiated allegations and hypothetical concerns Credit Marcin NowakBack in late The U K Competition and Markets Authority CMA released an interim report claiming that Apple and Google maintained a vice like grip on the mobile industry limiting competition On Feb Apple issued a long and detailed response that has recently been published by the CMA Read more 2022-03-11 18:21:44
海外TECH Engadget YouTube is blocking Russian state media channels worldwide https://www.engadget.com/youtube-russian-state-backed-media-184607588.html?src=rss YouTube is blocking Russian state media channels worldwideYouTube says it will now block channels linked to Russia backed media outlets worldwide Last week it blocked channels from the likes of RT and Sputnik in Europe following an EU directive The updated policy takes effect immediately though YouTube s systems will take a little time to fully block the channels In line with that we are also now blocking access to YouTube channels associated with Russian state funded media globally expanding from across Europe This change is effective immediately and we expect our systems to take time to ramp up ーYouTubeInsider YouTubeInsider March The service also said quot denying minimizing or trivializing well documented violent events quot is not allowed under its Community Guidelines YouTube is taking down videos about the conflict in Ukraine that violate the rule On Thursday Twitter and Facebook removed posts from Russia s embassy in the UK that denied the bombing of a maternity hospital in Mariupol Ukraine YouTube has also deleted more than channels and over videos related to Russia s invasion ok Ukraine for violating various policies such as those on hate speech misinformation and graphic content Google stopped all ad sales in Russia last week and it has now paused all YouTube monetization and payments in the country YouTube says it may take further action in Russia as the conflict continues In addition it s directing users to trusted sources of news regarding the invasion 2022-03-11 18:46:07
海外TECH Engadget Ford F-150 Lightning owners in California can use the EV to power homes https://www.engadget.com/ford-bidirectional-ev-charging-f-150-lightning-180545326.html?src=rss Ford F Lightning owners in California can use the EV to power homesPower outages aren t exactly rare in Northern California In the coming months residents who own a compatible electric vehicle ーsuch as the Ford F Lightning ーwill effectively be able to use it as a backup generator Ford has teamed up with PG amp E the main energy provider in the region for a bidirectional electric vehicle charging project The companies claim the F Lightning can power a home for up to days depending on energy needs in the event of an outage Sunrun another of the automaker s partners will start installing Ford s Intelligent Backup Power system in Northern California this spring nbsp GM announced a similar pilot with PG amp E earlier this week If initial testing goes well they ll enable vehicle to grid charging for a small number of people with Ultium powered EVs before expanding the trial more broadly later this year 2022-03-11 18:05:45
金融 金融庁ホームページ 「ESG評価・データ提供機関等に係る専門分科会」(第1回)議事録について公表しました。 https://www.fsa.go.jp/singi/esg_hyouka/gijiroku/20220207.html 評価 2022-03-11 18:30:00
金融 金融庁ホームページ 「ESG評価・データ提供機関等に係る専門分科会」(第2回)議事次第について公表しました。 https://www.fsa.go.jp/singi/esg_hyouka/siryou/20220303.html 評価 2022-03-11 18:30:00
ニュース BBC News - Home US to ban Russian diamond and vodka imports https://www.bbc.co.uk/news/business-60712902?at_medium=RSS&at_campaign=KARANGA equal 2022-03-11 18:01:58
ニュース BBC News - Home Queen pulls out of attending Commonwealth Day service https://www.bbc.co.uk/news/uk-60715218?at_medium=RSS&at_campaign=KARANGA buckingham 2022-03-11 18:35:36
ニュース BBC News - Home Covid inquiry's public hearings to begin in 2023 https://www.bbc.co.uk/news/uk-60712870?at_medium=RSS&at_campaign=KARANGA hearings 2022-03-11 18:01:50
ビジネス ダイヤモンド・オンライン - 新着記事 【精神科医が教える】 嫌われる人の話し方 - 精神科医Tomyが教える 心の荷物の手放し方 https://diamond.jp/articles/-/298693 voicy 2022-03-12 04:00:00
ビジネス ダイヤモンド・オンライン - 新着記事 「左利きの才能」を発揮するために知っておきたい1つのこと - すごい左利き https://diamond.jp/articles/-/298661 『万人の脳を見た名医が教えるすごい左利き』では、数多くの脳を診断した世界で最初の脳内科医で、自身も左利きの加藤俊徳氏が、脳科学の視点からその才能のすべてを解き明かします。 2022-03-12 03:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 オンライン会議で「相手の目」を見ながら話してはいけない理由 - 課長2.0 https://diamond.jp/articles/-/298778 オンライン会議で「相手の目」を見ながら話してはいけない理由課長管理職は「自分の力」ではなく、「メンバーの力」で結果を出すのが仕事。 2022-03-12 03:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 美容以前の美の条件、 正しい洗面所の整え方とは? - どんな運も、思いのまま! 李家幽竹の風水大全 https://diamond.jp/articles/-/295416 美容以前の美の条件、正しい洗面所の整え方とはどんな運も、思いのまま李家幽竹の風水大全「どんな人でも運がよくなれる」、それが風水の持つ力です。 2022-03-12 03:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 「故人の確定申告」をやさしく解説! 期限に気をつけて! - ぶっちゃけ相続「手続大全」 https://diamond.jp/articles/-/298922 確定申告 2022-03-12 03:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 米国では、ETFが毎年のように2桁成長している - ETFはこの7本を買いなさい https://diamond.jp/articles/-/297052 2022-03-12 03:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 「副業」で損する人が理解できていない サラリーマン副業ならではの強み3選 - 真の「安定」を手に入れるシン・サラリーマン https://diamond.jp/articles/-/296193 「副業」で損する人が理解できていないサラリーマン副業ならではの強み選真の「安定」を手に入れるシン・サラリーマン異例の発売前重版刷仕事がデキない、忙しすぎる、上司のパワハラ、転職したい、夢がない、貯金がない、老後が不安…サラリーマンの悩み、この一冊ですべて解決これからのリーマンに必要なもの、結論、出世より「つの武器」リーマン力副業力マネー力。 2022-03-12 03:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 真面目な人ほど悩む「正解がない時代」を生き抜くための「別解力」とは - 起業家の思考法 https://diamond.jp/articles/-/298905 問題解決 2022-03-12 03:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 「運が悪い人」から「運がいい人」になれる、たった一つの条件とは - 東大金融研究会のお金超講義 https://diamond.jp/articles/-/298587 「運が悪い人」から「運がいい人」になれる、たった一つの条件とは東大金融研究会のお金超講義年月に発足した東大金融研究会。 2022-03-12 03:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 【出口学長・哲学と宗教特別講義】 9割の人が知らない! あの孔子が憧れた 世界史上の重要人物とは? - 哲学と宗教全史 https://diamond.jp/articles/-/296823 2022-03-12 03:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 なぜ、キリスト教は“東”と“西”に分裂したのか? - ビジネスエリートの必須教養 「世界の民族」超入門 https://diamond.jp/articles/-/298533 なぜ、キリスト教は“東と“西に分裂したのかビジネスエリートの必須教養「世界の民族」超入門「人種・民族に関する問題は根深い…」。 2022-03-12 03:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 【9割の人が知らない! 第一人者のコピーライティング技術100】 売れるのはアイデア。 アイデアとは「PMM」。 PMMを表現するのが言葉 - コピーライティング技術大全 https://diamond.jp/articles/-/297267 【割の人が知らない第一人者のコピーライティング技術】売れるのはアイデア。 2022-03-12 03:05:00

コメント

このブログの人気の投稿

投稿時間: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件)