IT |
気になる、記になる… |
Apple専門店のNEWCOM、明日からGWキャンペーンを開催へ − 対象のApple Watch/iPad/AirPodsが最大11,000円オフ |
https://taisy0.com/2023/04/27/171258.html
|
apple |
2023-04-27 12:39:49 |
IT |
気になる、記になる… |
Anker、MacBook専用の7ポートUSB-Cハブ「Anker 547 USB-C ハブ (7-in-2, for MacBook)」を発売 |
https://taisy0.com/2023/04/27/171255.html
|
anker |
2023-04-27 12:29:26 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 「チープカシオ」ってブランドなの? カシオ計算機に聞いてみた |
https://www.itmedia.co.jp/news/articles/2304/27/news189.html
|
itmedia |
2023-04-27 21:16:00 |
AWS |
AWS |
Back to Basics: Simplify Observability on Amazon EKS with EKS Blueprints |
https://www.youtube.com/watch?v=mxZuMRj7Imc
|
Back to Basics Simplify Observability on Amazon EKS with EKS BlueprintsImagine that you ve just been tasked to setup monitoring for your Kubernetes cluster on Amazon EKS There are so many open source tools out there and you may not know where to start In this session join Mai as she walks you through how you can use EKS Blueprints to make it easier and faster for you to configure observability for your applications running on EKS She walks through using IaC tools such as Terraform to deploy Amazon Managed Service for Prometheus AWS Distro for OpenTelemetry and Amazon Managed Grafana by running a single command to monitor applications in addition to best practices on which metrics to start monitoring your EKS cluster on your control plane and data plane Additional Resources Amazon EKS Blueprints EKS Blueprints GitHub repo for AWS Distro for OpenTelemetry add on Check out more resources for architecting in the AWS cloud AWS AmazonWebServices CloudComputing BackToBasics |
2023-04-27 12:30:18 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Pythonのimportのパスの扱いがうまく行かない |
https://qiita.com/Sicut_study/items/62b4c459e0aac059446b
|
mainpy |
2023-04-27 21:35:34 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS学習ステップを使用した構築のお勉強④ |
https://qiita.com/bakuchiku/items/0160f272ebcaed4ed465
|
azrue |
2023-04-27 21:35:05 |
技術ブログ |
Developers.IO |
[訂正]Amazon GuardDutyの新機能「Lambda Protection」はVPC LambdaではないLambda関数にも対応していました! |
https://dev.classmethod.jp/articles/zange_update_guardduty_lambda_protection/
|
amazonguardduty |
2023-04-27 12:28:04 |
技術ブログ |
Developers.IO |
Secure Your VPC with Private and Public Workloads Using Network Firewalls |
https://dev.classmethod.jp/articles/secure-your-vpc-with-private-and-public-workloads-using-network-firewalls/
|
Secure Your VPC with Private and Public Workloads Using Network FirewallsIntroduction Virtual Private Clouds VPCs have become a popular solution for hosting applications and workloa |
2023-04-27 12:13:17 |
海外TECH |
MakeUseOf |
TickTick vs. Todoist: Which To-Do List App Is Better? |
https://www.makeuseof.com/ticktick-vs-todoist/
|
needs |
2023-04-27 12:30:17 |
海外TECH |
MakeUseOf |
How to Read Manga on Crunchyroll |
https://www.makeuseof.com/how-to-read-manga-crunchyroll/
|
online |
2023-04-27 12:15:16 |
海外TECH |
DEV Community |
Github: A High-Performance Library for Audio Analysis |
https://dev.to/audioflux/github-a-high-performance-library-for-audio-analysis-266g
|
Github A High Performance Library for Audio AnalysisAudioflux is a deep learning tool library for audio and music analysis feature extraction It supports dozens of time frequency analysis transformation methods and hundreds of corresponding time domain and frequency domain feature combinations It can be provided to deep learning networks for training and is used to study various tasks in the audio field such as Classification Separation Music Information Retrieval MIR and ASR etc Project Benchmark |
2023-04-27 12:39:23 |
海外TECH |
DEV Community |
Learn serverless on AWS step-by-step - Authentication |
https://dev.to/kumo/learn-serverless-on-aws-authentication-with-cognito-19bo
|
Learn serverless on AWS step by step Authentication TL DRIn this series I try to explain the basics of serverless on AWS to enable you to build your own serverless applications With last articles we learned together how to create Lambda functions rest APIs databases and file storage In this article we will learn how to add authentication to our APIs using Cognito handle sign in and create protected API routes Introduction to CognitoCognito is the authentication service of AWS It allows you to create user pools which contain the information of your users username email password etc stored in a safe and secure way Plugged on these user pools you can create user pool clients which are the applications that will use the user pools to authenticate users For example you can create a user pool for your web application and another one for your mobile application Each of these applications will have its own App Client and will be able to authenticate users using the same user pool It can be easily described using this schema where the user poll is the central element and users can connect either via a frontend application or a lambda function Today s goal Create an API route protected by an authorizerToday we will create a simple API route that will be protected by an authorizer This authorizer will be a Cognito user pool and will allow us to authenticate users before they can access the API route We will also create a sign up confirm and a sign in route that will allow users to authenticate themselves and get a JWT token that will be used to authenticate themselves on the protected route In terms of architecture it will look like this To build this infrastructure I will use the AWS CDK combined with TypeScript I already used this deployment method in the last articles of this series feel free to check them out if you need a refresher Create a User Pool and a User Pool ClientUsing AWS CDK it is intuitive to create a user pool and an app client import as cdk from aws cdk lib import Construct from constructs export class MyFirstStack extends cdk Stack constructor scope Construct id string props cdk StackProps super scope id props const userPool new cdk aws cognito UserPool this myFirstUserPool selfSignUpEnabled true autoVerify email true const userPoolClient new cdk aws cognito UserPoolClient this myFirstUserPoolClient userPool authFlows userPassword true Two steps I create a User Pool with options allowing the users to self sign up and receive a confirmation email on their address Then I plug this user pool to a user pool client which will be used to authenticate users I enable the userPassword authentication flow which will allow users to authenticate themselves using a username and a password Signing up confirming email address and signing inIn this tutorial I will try to keep it simple I will create three authentication API routes the sign up route will allow users to create an account and receive a code by email the confirm route will allow them to confirm their account and the sign in route will allow users to authenticate themselves and get a JWT token Let s start by provisioning the lambda functions corresponding to these routes Previous code Provision a signup lambda functionconst signup new cdk aws lambda nodejs NodejsFunction this signup entry path join dirname signup handler ts handler handler environment USER POOL CLIENT ID userPoolClient userPoolClientId Give the lambda function the permission to sign up userssignup addToRolePolicy new cdk aws iam PolicyStatement actions cognito idp SignUp resources userPool userPoolArn Provision a signup lambda functionconst confirm new cdk aws lambda nodejs NodejsFunction this confirm entry path join dirname confirm handler ts handler handler environment USER POOL CLIENT ID userPoolClient userPoolClientId Give the lambda function the permission to sign up usersconfirm addToRolePolicy new cdk aws iam PolicyStatement actions cognito idp ConfirmSignUp resources userPool userPoolArn Provision a signin lambda functionconst signin new cdk aws lambda nodejs NodejsFunction this signin entry path join dirname signin handler ts handler handler environment USER POOL CLIENT ID userPoolClient userPoolClientId GIve the lambda function the permission to sign in userssignin addToRolePolicy new cdk aws iam PolicyStatement actions cognito idp InitiateAuth resources userPool userPoolArn In this code snippet I create three lambda functions one for the sign up route one for the confirm route and one for the sign in route I also pass to them the user pool client id which will be used to authenticate users Finally I add the required IAM permissions to the lambda functions to allow them to interact with the user pool The first lambda function will need the cognito idp SignUp permission the second one will need the cognito idp ConfirmSignUp and the third one will need the cognito idp InitiateAuth permission Next step create the code inside of these Lambda functions Let s start with the sign up function import CognitoIdentityProviderClient SignUpCommand from aws sdk client cognito identity provider const client new CognitoIdentityProviderClient export const handler async event body string Promise lt statusCode number body string gt gt const username password email JSON parse event body as username string password string email string if username undefined password undefined email undefined return Promise resolve statusCode body Missing username email or password const userPoolClientId process env USER POOL CLIENT ID await client send new SignUpCommand ClientId userPoolClientId Username username Password password UserAttributes Name email Value email return statusCode body User created In this code snippet using the SDK I send a SignUp command to the user pool I get the clientId from the environment variable I specified in the provisioning part of the code before The confirm function is very similar import CognitoIdentityProviderClient ConfirmSignUpCommand from aws sdk client cognito identity provider const client new CognitoIdentityProviderClient export const handler async event body string Promise lt statusCode number body string gt gt const username code JSON parse event body as username string code string if username undefined code undefined return Promise resolve statusCode body Missing username or confirmation code const userPoolClientId process env USER POOL CLIENT ID await client send new ConfirmSignUpCommand ClientId userPoolClientId Username username ConfirmationCode code return statusCode body User confirmed The handler expects a confirmation code which was received by email by the user wanting to sign up Then it triggers a ConfirmSignUp command to the user pool Finally the sign in function import CognitoIdentityProviderClient InitiateAuthCommand from aws sdk client cognito identity provider const client new CognitoIdentityProviderClient export const handler async event body string Promise lt statusCode number body string gt gt const username password JSON parse event body as username string password string if username undefined password undefined return Promise resolve statusCode body Missing username or password const userPoolClientId process env USER POOL CLIENT ID const result await client send new InitiateAuthCommand AuthFlow USER PASSWORD AUTH ClientId userPoolClientId AuthParameters USERNAME username PASSWORD password const idToken result AuthenticationResult IdToken if idToken undefined return Promise resolve statusCode body Authentication failed return statusCode body idToken This function expects a username and a password Then it triggers an InitiateAuth command to the user pool This command will return an id token which is a JWT token This token can be used later by the user to authenticate Create the API and the protected routeNow that the lambda functions are created I can create the API and the protected route I will use the API Gateway construct from the AWS CDK previous code Create a new APIconst myFirstApi new cdk aws apigateway RestApi this myFirstApi Add routes to the APImyFirstApi root addResource sign up addMethod POST new cdk aws apigateway LambdaIntegration signup myFirstApi root addResource sign in addMethod POST new cdk aws apigateway LambdaIntegration signin myFirstApi root addResource confirm addMethod POST new cdk aws apigateway LambdaIntegration confirm This code snippet creates a new API and adds three routes to it Each route is linked to a lambda function The API Gateway construct will automatically create the required permissions to allow the API to trigger the lambda functions Now let s create an authorizer based on the Cognito user pool and assign it to a new route that we want to protect previous code Create an authorizer based on the user poolconst authorizer new cdk aws apigateway CognitoUserPoolsAuthorizer this myFirstAuthorizer cognitoUserPools userPool identitySource method request header Authorization const secretLambda new cdk aws lambda nodejs NodejsFunction this secret entry path join dirname secret handler ts handler handler Create a new secret route triggering the secret Lambda and protected by the authorizermyFirstApi root addResource secret addMethod GET new cdk aws apigateway LambdaIntegration secret authorizer authorizationType cdk aws apigateway AuthorizationType COGNITO Finally the simple code for the secret lambda function export const handler async Promise lt statusCode number body string gt gt return Promise resolve statusCode body CAUTION THIS IS VERY SECRET Deploying and testing the appWe are done Last step deploy the app and test it To deploy the app run the following command npm run cdk deployYou can find the URL of the API in the AWS console in the API Gateway section I explained it in details in the first article of this series feel free to check it out Time to test everything First let s sign up I specify a username email and password Once signed up I receive an email with a confirmation code Then I confirm the sign up by entering the code I received by email and my username Finally I can sign in with my username and password The result of this request is a JWT token I can use this token to access the secret route by passing it in the Authorization header with this format Bearer Everything works as expected ConclusionThis tutorial is a very shallow introduction to serverless authentication on Cognito It is a simple starter to be able to register and authenticate users There are many more features that can be used like multi factor authentication hosted UI authentication on your own domain and more Maybe I will cover these topics in a future article I plan to continue this series of articles on a bi monthly basis I already covered the creation of simple lambda functions and REST APIs as well as interacting with DynamoDB databases and S buckets You can follow this progress on my repository I will cover new topics like creating event driven applications type safety and more If you have any suggestions do not hesitate to contact me I would really appreciate if you could react and share this article with your friends and colleagues It will help me a lot to grow my audience Also don t forget to subscribe to be updated when the next article comes out I you want to stay in touch here is my twitter account I often post or re post interesting stuff about AWS and serverless feel free to follow me |
2023-04-27 12:25:42 |
Apple |
AppleInsider - Frontpage News |
Aqara G4 Video Doorbell review: The best wireless doorbell with HomeKit Secure Video |
https://appleinsider.com/articles/23/04/27/aqara-g4-video-doorbell-review-the-best-wireless-doorbell-with-homekit-secure-video?utm_medium=rss
|
Aqara G Video Doorbell review The best wireless doorbell with HomeKit Secure VideoThe all new Aqara G Video Doorbell stands out from a crowded market not just because of its affordable price but by being the only battery powered model to support HomeKit Secure Video Aqara G smart video doorbellEvery company is dueling to put cameras on your front door these days Amazon owned Ring has almost wholly cornered the market while HomeKit models are a bit far between Read more |
2023-04-27 12:50:59 |
Apple |
AppleInsider - Frontpage News |
Despite global smartphone market contraction, Apple is thriving with 21% market share |
https://appleinsider.com/articles/23/04/27/despite-global-smartphone-market-contraction-apple-is-thriving-with-21-market-share?utm_medium=rss
|
Despite global smartphone market contraction Apple is thriving with market shareApple was the only company to grow its market share year over year even though global smartphone shipments have been on a downward trend iPhone According to estimates from April global smartphone sales have decreased for five consecutive quarters All companies are selling fewer smartphones due to the general smartphone market drop but Apple has seen a more encouraging rise in market share Read more |
2023-04-27 12:34:42 |
Apple |
AppleInsider - Frontpage News |
Sketchy rumor suggests Apple Watch will be able to sync with Mac & iPad |
https://appleinsider.com/articles/23/04/27/sketchy-rumor-suggests-apple-watch-will-be-able-to-sync-with-mac-ipad?utm_medium=rss
|
Sketchy rumor suggests Apple Watch will be able to sync with Mac amp iPadA new leak suggests that the Apple Watch may soon be capable of syncing with more than one Apple device at once ーalthough it s not clear why Apple Watch UltraAllegedly Apple Watch owners will soon be able to sync their devices across multiple iPhone iPad and Mac devices Read more |
2023-04-27 12:32:34 |
海外TECH |
Engadget |
The best 2-in-1 laptops for 2023 |
https://www.engadget.com/the-best-2-in-1-laptops-for-2023-155052641.html?src=rss
|
The best in laptops for The perfect hybrid machine that s just as good a tablet as it is a laptop still doesn t exist But throughout last year companies like Microsoft Apple and Google continued to improve their operating systems for machines that do double duty Windows has features that make it friendlier for multi screen devices while Android has been better optimized for larger displays Plus with the rise of ARM based chips for laptops especially Apple s impressive M series prospects for a powerful in with a vast touch friendly app ecosystem is at an all time high Even the best in laptops still have their limits of course Since they re smaller than proper laptops they tend to have less powerful processors Keyboards are often less sturdy with condensed layouts and shallower travel Plus they re almost always tablets first leaving you to buy a keyboard case separately And those ain t cheap So you can t always assume the advertised price is what you ll actually spend on the in you want Sometimes getting a third party keyboard might be just as good and they re often cheaper than first party offerings If you re looking to save some money Logitech s Slim Folio is an affordable option and if you don t need your keyboard to attach to your tablet Logitech s K Multi Device wireless keyboard is also a good pick While we ve typically made sure to include a budget in laptop in previous years this time there isn t a great choice We would usually pick a Surface Go but the latest model is still too expensive Other alternatives like cheaper Android tablets are underpowered and don t offer a great multitasking interface If you want something around that s thin lightweight and long lasting you re better off this year looking at a conventional laptop like those on our best budget PCs list Chris Velazco Engadget When you re shopping for a in there are some basic criteria to keep in mind First look at the spec sheet to see how heavy the tablet is alone and with the keyboard Most modern hybrids weigh less than pounds with the pound Surface Pro being one of the heaviest around The iPad Pro and Samsung s Galaxy Tab S are both slightly lighter If the overall weight of the tablet and its keyboard come close to pounds you ll be better off just getting an ultraportable laptop See Also Best Laptops for Best Gaming LaptopsBest Cheap Windows Laptops for Best ChromebooksBest Laptops for College StudentsYou ll also want to opt for an inch or inch screen instead of a smaller inch model The bigger displays will make multitasking easier plus their companion keyboards will be much better spaced Also try to get GB of RAM if you can for better performance ーyou ll find this in the base model of the Galaxy Tab S while this year s iPad Pro and the Surface Pro start with GB of RAM Finally while some convertible laptops offer built in LTE or G connectivity not everyone will want to pay the premium for it An integrated cellular radio makes checking emails or replying to messages on the go far more convenient But it also often costs more and that s not counting what you ll pay for data And as for G ーyou can hold off on it unless you live within range of a mmWave beacon Coverage is still spotty and existing nationwide networks use the slower sub technology that s barely faster than LTE Best overall Surface Pro Intel There s no beating the Surface series when it comes to in s They re powerful sleek tablets running an OS that s actually designed for productivity The Surface Pro is Microsoft s latest and great tablet and it builds upon the already excellent Pro It features speedy th gen Intel CPUs and all of the major upgrades from last year including a Hz display and a more modern design It s the best implementation of Microsoft s tablet PC vision yet Don t confuse this with the similarly named Surface Pro with G though which has a slower ARM processor and inferior software compatibility Built in cellular is nice and all but the Intel Pro is a far better PC Like most of the other convertible laptops on this list the Pro doesn t come with a keyboard cover ーyou ll have to pay extra for that That s a shame considering it starts at Microsoft offers a variety of Type Covers for its Surface Pros ranging from to depending on whether you want a slot for a stylus But at least they re comfortable and well spaced You can also get the Surface Slim Pen for sketching out your diagrams or artwork which features haptic feedback for a more responsive experience Best for Apple users inch iPad ProIf you re already in the Apple ecosystem the best option for you is obviously an iPad The inch Pro is our pick Like older models this iPad Pro has a stunning inch screen with a speedy Hz refresh rate as well as mini LED backlighting This year it includes Apple s incredibly fast M chip and more battery life than ever before Apple s Magic Keyboard provides a satisfying typing experience and its trackpad means you won t have to reach for the screen to launch apps But it ll also cost you an extra making it the most expensive case on this list by a lot The iPad also lacks a headphone jack and its webcam is awkwardly positioned along the left bezel when you prop it up horizontally so be aware that it s still far from a perfect laptop replacement Still with its sleek design and respectable battery life the iPad Pro is a good in for Apple users Best for Android users Samsung Galaxy Tab S While Windows is better than iPadOS and Android for productivity it lags the other two when it comes to apps specifically designed for touchscreens If you want a tablet that has all the apps you want and only need it to occasionally double as a laptop the Galaxy Tab S is a solid option You ll enjoy watching movies and playing games on its gorgeous inch Hz AMOLED screen and Samsung includes the S Pen which is great for sketching and taking notes The Snapdragon Gen chip and GB of RAM keep things running smoothly too Last year Samsung dramatically improved its keyboard case making the Tab an even better convertible laptop You could type for hours on this thing and not hate yourself or Samsung The battery life is also excellent so you won t need to worry about staying close to an outlet The main caveat is that Android isn t great as a desktop OS even with the benefits of Android L And while Samsung s DeX mode offers a somewhat workable solution it has plenty of quirks Read our Full Review of Samsung Galaxy Tab S in LaptopCherlynn Low contributed to this report This article originally appeared on Engadget at |
2023-04-27 12:18:44 |
金融 |
金融庁ホームページ |
”DX”を推進のみなさま「ZEDI(ゼディ)」で経営が変わります! |
https://www.fsa.go.jp/policy/zedi/zenginedi.html
|
推進 |
2023-04-27 13:12:00 |
ニュース |
BBC News - Home |
Furious Microsoft boss says confidence in UK 'severely shaken' |
https://www.bbc.co.uk/news/business-65407005?at_medium=RSS&at_campaign=KARANGA
|
darkest |
2023-04-27 12:38:56 |
ニュース |
BBC News - Home |
Levi Bellfield makes double murder confession |
https://www.bbc.co.uk/news/uk-england-kent-65410340?at_medium=RSS&at_campaign=KARANGA
|
megan |
2023-04-27 12:00:48 |
ニュース |
BBC News - Home |
Gambling white paper: Young gamblers could face £2 slot machine limit |
https://www.bbc.co.uk/news/uk-65249542?at_medium=RSS&at_campaign=KARANGA
|
government |
2023-04-27 12:38:28 |
ニュース |
BBC News - Home |
Lucy Letby trial: Nurse cries as interview excerpts read in court |
https://www.bbc.co.uk/news/uk-england-merseyside-65413379?at_medium=RSS&at_campaign=KARANGA
|
cheshire |
2023-04-27 12:11:04 |
ニュース |
BBC News - Home |
Train drivers to strike again on FA Cup final day |
https://www.bbc.co.uk/news/business-65410800?at_medium=RSS&at_campaign=KARANGA
|
firms |
2023-04-27 12:38:13 |
コメント
コメントを投稿