IT |
気になる、記になる… |
Twitterの広告収入は最大50%減 ー イーロン・マスク氏が明らかに |
https://taisy0.com/2023/07/16/174169.html
|
twitter |
2023-07-16 00:40:07 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
現在の製造業でのデータサイエンティストとしての業務内容 |
https://qiita.com/yutut/items/bbf5b946194cb9155012
|
説明 |
2023-07-16 09:48:50 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Qiitaに自動投稿と画像アップロード |
https://qiita.com/6e5d/items/57c0f186a220178ec2ab
|
pythonrequests |
2023-07-16 09:37:33 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
ConftestでCFnをテストする |
https://qiita.com/a_b_/items/994f5eec5a415ed57269
|
awsdevdaytokyo |
2023-07-16 09:46:34 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
アカウント内のS3バケット容量を一括出力する方法 |
https://qiita.com/Lamaglama39/items/cc4a6488eaeba30cdbbe
|
発生 |
2023-07-16 09:07:47 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
【社内向け】Google Cloud Modern App Summit参加してきました |
https://qiita.com/kurogoma939/items/f3280c81132b308a68be
|
cloudmodernappsummit |
2023-07-16 09:20:44 |
海外TECH |
DEV Community |
Building a Progressive Web App with React |
https://dev.to/elliot_brenya/building-a-progressive-web-app-with-react-ifd
|
Building a Progressive Web App with ReactProgressive web applications PWAs are web apps that utilize modern web capabilities and features to provide an experience comparable to native mobile apps PWAs offer advantages like working offline push notifications fast load times and an installable home screen icon In this article we ll walk through building a PWA from scratch using React We ll implement key features like offline support push notifications and app installation to turn our React web app into a fully featured PWA PrerequisitesTo follow along with this tutorial you should have Basic familiarity with React concepts like components state props hooks etc Node js and npm installed on your development machineBasic knowledge of the command line interface Who this article is forThis guide is designed for front end web developers who have some experience with React and JavaScript You may be looking to take an existing React app and turn it into a PWA to provide a more native like and resilient user experience By the end you ll understand how to implement PWA capabilities like offline support push notifications app manifests and more within a React application Now that we ve covered the basics let s get started building our React PWA Setting Up Our React PWALet s start by bootstrapping our React project using Create React App This will generate a starter React project with build tools already configured for us npx create react app my pwacd my pwaNow we have a standard React project we can turn into a PWA Next we ll install the key libraries we need npm install workbox build workbox webpack pluginThis adds workbox build which generates our service worker code and workbox webpack plugin to integrate workbox into our build process In webpack config js we ll add the Workbox plugin const WorkboxPlugin require workbox webpack plugin module exports plugins new WorkboxPlugin GenerateSW This configures Workbox to generate a service worker file for us which handles things like caching and offline support With our dependencies installed and project setup we re ready to start adding PWA capabilities to our React app Adding Offline SupportNow that our React project is set up let s add offline support using the service worker generated by Workbox This will allow our web app to work even when the user has lost their internet connection In workbox config js we can define runtime caching rules that tell the service worker what to cache module exports runtimeCaching urlPattern png jpg jpeg svg gif handler CacheFirst options cacheName images expiration maxEntries maxAgeSeconds This caches image assets using a Cache First strategy limiting the cache to entries for days For caching the app shell HTML JS CSS we ll use the GenerateSW plugin we already added to Webpack This automatically caches our build artifacts To cache API responses we can wrap fetch requests in the service worker to a Network First strategy workbox routing registerRoute googleapis gstatic com new workbox strategies StaleWhileRevalidate With offline support in place let s test it out by disabling the network Our app should now work offline Adding Push NotificationsIn addition to offline support we can also add push notifications to our PWA This allows users to receive notifications even when the app is not open in the browser First we need to generate the application server keys for the Push API npm install web push gweb push generate vapid keysThis gives us a public and private key to identify our app server to the push service In our React code we ll request notification permission when the app loads App jsNotification requestPermission then result gt if result granted console log Notification permission granted Next we ll subscribe the user using the public key registerServiceWorker jsconst publicVapidKey YOUR PUBLIC KEY serviceWorkerRegistration pushManager subscribe userVisibleOnly true applicationServerKey urlBaseToUintArray publicVapidKey This registers the user with the push service Finally we can send notifications from the server using the private key server jswebpush setVapidDetails mailto example domain com privateVapidKey publicVapidKey webpush sendNotification pushSubscription payload And that s it Our PWA can now receive push notifications when the app is not in focus App Manifest and InstallationTo allow users to install our PWA to their home screen like a native app we need to add a web app manifest First create manifest json in the public folder short name My App name My Example App icons src logo png type image png sizes x start url display standalone theme color background color ffffff This provides metadata like the app name icon colors and more Next we link to this in index html lt link rel manifest href PUBLIC URL manifest json gt Now when a user meets the required engagement criteria they will be prompted to install the PWA We can handle the beforeinstallprompt event window addEventListener beforeinstallprompt event gt deferredPrompt event button style display block button addEventListener click async gt button style display none deferredPrompt prompt const outcome await deferredPrompt userChoice This allows us to show an install button and programmatically trigger the install prompt Our PWA can now be installed just like a native app Deploying the PWAOnce our React PWA is built we can deploy it like any other web app Popular options include Static site hosting like Vercel Netlify or AWS SServerless platforms like AWS Amplify or Firebase HostingTraditional servers like AWS EC Heroku or shared hostingThe main considerations are Registering the Service Worker We need to register our Workbox generated service worker on load so it can handle caching and offline functionality if serviceWorker in navigator window addEventListener load gt navigator serviceWorker register service worker js Handling Push NotificationsIf using push notifications our server needs to integrate with a push service provider to send notification messages Popular options Firebase Cloud MessagingAWS PinpointWeb Push ProtocolWith those two requirements met we can deploy our PWA like any other React app ConclusionIn this article we walked through Setting up a React app with Workbox for PWA supportImplementing offline caching with a service workerAdding push notifications with the Push APIConfiguring a web app manifest for installationDeploying to productionPWAs provide a powerful way to build resilient app like experiences with web technologies By harnessing modern browser APIs React and other frameworks make it easy to turn websites into installable offline capable progressive web apps |
2023-07-16 00:52:45 |
海外TECH |
DEV Community |
Exploring the AWS CI/CD Landscape: A Comprehensive Overview of Tools and Services |
https://dev.to/brandondamue/exploring-the-aws-cicd-landscape-a-comprehensive-overview-of-tools-and-services-57mn
|
Exploring the AWS CI CD Landscape A Comprehensive Overview of Tools and ServicesCI CD has revolutionized the way software is developed by introducing a culture of automation collaboration and faster feedback loops into the development lifecycle It has enabled developers to deliver higher quality software at a faster pace with reduced risk and greater customer satisfaction As organizations strive for faster and more reliable software delivery CI CD has emerged as a crucial practice Throughout this write up we are going to explore the AWS CI CD landscape where a multitude of powerful tools and services exist From source code management and automated testing to build automation deployment orchestration and monitoring AWS offers a rich ecosystem of solutions to streamline and optimize the software delivery process Fasten your proverbial seatbelt as we cruise through the CI CD terrain of AWS unravelling the services that can transform your development workflows and empower your team to deliver high quality software with speed and confidence CodeCommitCodeCommit is a fully managed source code control service that revolutionizes the way developers collaborate on code With CodeCommit teams can securely host their Git repositories and benefit from a range of features designed to enhance productivity and code management By seamlessly integrating with popular Git tools and clients it makes it possible for developers to work with their preferred workflows whether through command line interfaces or graphical interfaces This flexibility allows for a smooth transition and ensures a seamless development experience In addition to its versatility CodeCommit prioritizes data privacy and security With encryption at rest using AWS Key Management Service KMS and encrypted data transmission over SSL TLS CodeCommit safeguards your code against unauthorized access Fine grained access control managed through IAM further strengthens security by granting precise permissions at the repository branch or even file level These robust security measures ensure the integrity and confidentiality of your source code throughout its lifecycle CodeCommit s scalability and performance capabilities empower teams to handle projects of any size It accommodates large codebases allowing developers to store and version code efficiently The service automatically scales to meet demand eliminating the need for manual infrastructure management By seamlessly integrating with other AWS services such as CodePipeline and CodeBuild CodeCommit becomes a vital component in building robust CI CD pipelines automating build and deployment processes based on repository changes CodePipelineCodePipeline is a powerful and versatile service offered by AWS With it developers can design and automate end to end software release pipelines encompassing all stages of the software delivery process It provides seamless integration with various AWS services as well as third party tools allowing developers to create custom pipelines tailored to their specific requirements The pipeline stages can include source code versioning building testing deploying and monitoring all orchestrated in a cohesive and automated manner The key strength of CodePipeline lies in its simplicity and flexibility It offers a visual interface that enables developers to define and manage their pipelines effortlessly By configuring the pipeline stages and connecting them to various AWS services or external tools developers can automate the entire release process from code commit to production deployment CodePipeline also supports the parallel execution of multiple pipelines enabling efficient and concurrent development workflows With real time visibility into each stage s progress and the ability to set up manual approvals developers can maintain control and ensure quality throughout the software delivery lifecycle Overall AWS CodePipeline empowers teams to achieve faster more reliable software releases by streamlining and automating the CI CD process allowing them to focus on building innovative applications and delivering value to end users CodeBuildCodeBuild simplifies the process of building testing and packaging applications as part of a CI CD workflow With CodeBuild developers can automate the build process by defining build specifications in a code centric manner specifying the steps required to compile test and package their applications These build specifications written in either YAML or JSON format are versioned along with the source code ensuring reproducibility and consistency across builds One of the key advantages of this service is its scalability It automatically provisions the necessary resources such as compute instances based on the specified build requirements ensuring fast and efficient build execution This scalability allows developers to handle varying workloads and build projects of any size CodeBuild seamlessly integrates with other AWS services including CodePipeline enabling the creation of end to end CI CD pipelines By incorporating CodeBuild as a build provider within the pipeline developers can trigger builds automatically based on code changes leading to streamlined and efficient software delivery CodeDeployCodeDeploy facilitates the process of deploying applications across various compute resources By leveraging this service developers can automate and standardize their deployment workflows ensuring consistent and reliable deployments across different environments It supports multiple deployment strategies allowing developers to choose the approach that aligns best with their application and deployment requirements Whether it s a rolling deployment to gradually shift traffic to the new version a blue green deployment to enable seamless switching between versions or a canary deployment to test changes in a controlled manner CodeDeploy provides the necessary flexibility and control over the deployment process It integrates seamlessly with popular version control systems such as CodeCommit GitHub and Bitbucket enabling developers to easily trigger deployments based on code changes It provides hooks and scripts that can be executed at different stages of the deployment process allowing for customizations and tasks like database migrations or configuration updates With detailed deployment logs and monitoring capabilities developers can closely monitor the status and health of deployments enabling them to quickly identify and address any issues that may arise CodeStarCodeStar is a comprehensive development service that brings together a range of tools and services to streamline the software development process With CodeStar teams can quickly set up and manage end to end development environments benefiting from pre configured project templates CI CD pipelines and collaboration features By providing a unified platform it simplifies the development workflow and enhances team productivity CodeStar provides project management features such as a centralized dashboard that displays project progress tracks code changes and monitors build and deployment status This visibility enhances team coordination and allows for better project tracking and management By leveraging this formidable service teams can accelerate the software delivery cycle reduce development efforts and increase productivity CodeArtifactCodeArtifact is a fully managed artefact repository service offered by AWS designed to simplify the management of software artefacts and dependencies With CodeArtifact developers can securely store publish and manage packages and dependencies in a central repository It supports popular package formats integrates seamlessly with build tools and package managers and provides fine grained access control through AWS IAM By making use of CodeArtifact teams can ensure consistent and reliable artefact retrieval simplify dependency management and enhance the security and scalability of their software development and deployment processes CodeGuruThis is the last CI CD tool we are going to see in this article It is a machine learning powered developer toolset offered that revolutionizes code quality and application performance optimization With its automated code review capability CodeGuru analyzes code repositories to detect common coding issues security vulnerabilities and concurrency problems It provides developers with intelligent recommendations and best practices to improve code quality maintainability and security By catching potential issues early in the development process it helps developers reduce bugs enhance code reliability and adhere to industry best practices In addition to its code review feature CodeGuru offers a Profiler feature that leverages machine learning algorithms to analyze application runtime behaviour It identifies resource intensive code segments and areas prone to performance bottlenecks providing developers with actionable insights and recommendations for optimization By optimizing these areas developers can significantly improve application performance reduce resource consumption and enhance user experiences With seamless integration into popular IDEs it empowers developers to improve their coding skills write more efficient code and optimize the performance of their applications with ease and confidence Final WordsIn closing the CI CD landscape of AWS offers a catalogue of powerful tools and services that come together to transform the software development and deployment process AWS remains at the forefront continuously expanding and refining its offerings to empower developers like you and me The AWS CI CD landscape is a tapestry that beckons you to weave your own unique path building upon the foundations laid by AWS services and pushing the boundaries of what s possible Embrace the journey embrace the opportunities and let the AWS CI CD landscape be your canvas for creating extraordinary applications that captivate inspire and revolutionize I am a cloud engineer currently flying solo Send me an email at dbrandonbawe gmail com if you need a hand with your cloud projects |
2023-07-16 00:45:46 |
ニュース |
BBC News - Home |
Ben Wallace to quit as defence secretary at next Cabinet reshuffle |
https://www.bbc.co.uk/news/uk-66213245?at_medium=RSS&at_campaign=KARANGA
|
election |
2023-07-16 00:23:24 |
ニュース |
BBC News - Home |
Pavitr Prabhakar, the Indian Spider-Man charming fans worldwide |
https://www.bbc.co.uk/news/world-asia-india-66134944?at_medium=RSS&at_campaign=KARANGA
|
debut |
2023-07-16 00:15:12 |
ニュース |
BBC News - Home |
Spain's hot summer election: A simple guide |
https://www.bbc.co.uk/news/world-europe-66186284?at_medium=RSS&at_campaign=KARANGA
|
election |
2023-07-16 00:05:54 |
ビジネス |
東洋経済オンライン |
世界で大流行する「やせ薬」は本当に悪者なのか 「GLP1ダイエット」は科学的にアリかナシか | 健康 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/685653?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2023-07-16 09:30:00 |
ビジネス |
東洋経済オンライン |
【爪の水虫】10人に1人が感染、爪切りの「NG行為」 塗り薬より飲み薬で内側から効かせるのが有効 | 「病気」と「症状」の対処法 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/685990?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2023-07-16 09:10:00 |
コメント
コメントを投稿