投稿時間:2021-06-24 03:25:35 RSSフィード2021-06-24 03:00 分まとめ(30件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Partner Network (APN) Blog How Tech Mahindra Built a Self-Service Patch Management Process Using AWS Native Services https://aws.amazon.com/blogs/apn/how-tech-mahindra-built-a-self-service-patch-management-process-using-aws-native-services/ How Tech Mahindra Built a Self Service Patch Management Process Using AWS Native ServicesPatch management is a continuous cybersecurity process that includes identifying reporting and fixing the system vulnerabilities An operating system s patches are part of essential preventative maintenance necessary to keep machines up to date stable and safe from malware and other threats Learn how Tech Mahindra s automated patching solution helps and ensures every server on the infrastructure system s network is up to date by patching quickly and efficiently 2021-06-23 17:57:59
AWS AWS Partner Network (APN) Blog Using Cloudwiry to Optimize Costs and Modernize Your Stack By Leveraging AWS https://aws.amazon.com/blogs/apn/using-cloudwiry-to-optimize-costs-and-modernize-your-stack-by-leveraging-aws/ Using Cloudwiry to Optimize Costs and Modernize Your Stack By Leveraging AWSApplication modernization requires a holistic approach and Cloudwiry enables optimization and modernization of cloud deployments by evaluating AWS services involved Learn how the Cloudwiry Enterprise platform can help your organization make informed decisions about application modernization This post also takes a deeper look into specific examples of how Cloudwiry has helped customers optimize their cloud usage on AWS 2021-06-23 17:06:50
AWS AWS Database Blog Deploy multi-Region Amazon Aurora applications with a failover blueprint https://aws.amazon.com/blogs/database/deploy-multi-region-amazon-aurora-applications-with-a-failover-blueprint/ Deploy multi Region Amazon Aurora applications with a failover blueprintCertain organizations require multi Region redundancy for their workloads to achieve disaster recovery and business continuity Disaster recovery is an important part of resiliency strategy and concerns how a workload responds when a disaster strikes The most common pattern to have as a disaster recovery solution in AWS is to build a multi Region application architecture including … 2021-06-23 17:21:11
AWS AWS Salesforce Service Cloud Voice and Amazon Connect Overview https://www.youtube.com/watch?v=AFBdM4C2URM Salesforce Service Cloud Voice and Amazon Connect OverviewJason Douglas Principal Solutions Architect at Amazon Web Services provides an overview of Salesforce Service Cloud Voice and Amazon Connect Learn more about AWS Subscribe More AWS videos More AWS events videos AWS 2021-06-23 17:17:36
AWS AWS NGINX: Deploy and Scale Applications with Ease Using AWS EKS, ECS and the NGINX Ingress Controller https://www.youtube.com/watch?v=6sY0AunanlM NGINX Deploy and Scale Applications with Ease Using AWS EKS ECS and the NGINX Ingress ControllerWith an ever increasing portfolio of traditional and modern applications across multiple end points from on prem to the cloud to the edge getting visibility across them all and maintaining security can become a major challenge In this episode we explore how the NGNIX Ingress Controller routes protects and manages identity of traffic with the Elastic Kubernetes Service We dive into how to use infrastructure as code with the Elastics Container Registry to build an automated pipeline for application deployment and versioning Check out more resources for architecting in the AWS​​​cloud ​ AWS 2021-06-23 17:06:54
python Pythonタグが付けられた新着投稿 - Qiita 【Python】漢字を平仮名やローマ字に変換する https://qiita.com/twrcd1227/items/df4946b8b7caae58db71 【Python】漢字を平仮名やローマ字に変換する概要Pythonで漢字をひらがなに変換する方法を調べてみた。 2021-06-24 02:56:36
python Pythonタグが付けられた新着投稿 - Qiita [Python]たった三行でProcessingで日本語を表示させる https://qiita.com/enyoku/items/013c65a6720cfc566f05 普段は一切使わないため忘れていた、もしくは知らなかった人も多いのではないでしょうかこの機会に覚えてあげてください、まあここ以外で使うところがあるかは知りませんがさて、余談ですが日本語入力に使えるフォントを上げておきましょう。 2021-06-24 02:12:16
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) スタックオーバーフローの原因がわかりません。 https://teratail.com/questions/345778?rss=all スタックオーバーフローの原因がわかりません。 2021-06-24 02:24:03
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) YOLOでのラベルをひらがな表示にすることは可能か https://teratail.com/questions/345777?rss=all 2021-06-24 02:13:22
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) UTCではかれたログをJSTに変換したい https://teratail.com/questions/345776?rss=all UTCではかれたログをJSTに変換したい下記のようなUTC時刻で表記されている年月日時のログがあり、それを日本時間に直して日ごとにログの数を集計したいです。 2021-06-24 02:01:27
海外TECH Ars Technica NASA expects a decision on a lunar lander protest by early August https://arstechnica.com/?p=1775601 august 2021-06-23 17:39:33
海外TECH DEV Community Getting started with Typescript with React Hooks [2021] https://dev.to/riyanegi/getting-started-with-typescript-with-react-hooks-2021-5cfd Getting started with Typescript with React Hooks Typescript is the next big thing in the Front End Development domain and if you are looking to upgrade your skills from a junior to an intermediate frontend developer then it is a must have skill Typescript is a a subset of javascript so if you know javascript you are already half way there What Typescript brings to the table is more error free code with type checking during run time and a code which can be easily documented This article is for developers who already know react and javascript and want to shift to typescript so I won t be focusing on any react concepts This is a crash course on understanding the basics of using Typescript with React IndexWe will be covering all the topics necessary for understanding the basics of using react with typescript InfoSetupHandling StateHandling PropsHandling FunctionsHandling EventsIn this article we will be building a simple personal watch list that records the movies you input by taking it s name rating and review It looks something like It is a little stylised but the underlying code is basic InfoGithub repo for the projectOnline Demo of the Project SetupLet s start with initializing our project I am naming my project typescript with react but you can go with anything you like npx create react app template typescript typescript with reactOkay now change directory to get into your project folder and proceed usually as you do with any react project cd typescript with react code npm startYour code structure should be looking something like this Notice how the files have ts or tsx extension That denotes that those files are transpiled in typescript Okay now let s get into the Typescript nitty gritty Handling stateIn typescript it s necessary to mention type definitions of all variables and functions and what they return For handling state in react you need to first create an interface where you mention the data type of the variables In the example below we have created an interface called IState You can name it whatever you like The interface IState is where we will write our type definition of how we want the state variables to be which in this case is an array of objects To denote that we add square bracket after the type definitions And then while using useState add lt IState form gt which denotes that the state should be accepting values in the specified format only IState format in this case which is taking the object form as input format We have exported IState so that we can use it in another file later on An alternate inline method of adding state would be as follows const counter setCounter useState lt name string rate number review string gt In our case project we want review to be an optional field while name of the movie and rating of the movie to be compulsory field Thus for review we have done review string where the question mark denotes the value of review could either be a string or undefined However for name and rate we have strict type definitions which won t accept anything apart from the assigned type definitions You can add more than one type definitions to a variable in the following way inputValue number string nullHere the variable inputValue can either be a data type of number string or even a null value Note null and undefined are not the same data types Handling PropsFor handling props in react both the sending and recieving side of the component should make a clear declaration of the type and number of variables or functions involved Typescript will give an error if anything is missing either on the sending or receiving sideThis is the sending side lt List form form gt lt Form form form setForm setForm gt From App tsx we are sending one object ie form to List tsxLet s take a look at the List component s recieving side now import IState as IProps from App const List React FC lt IProps gt form gt List is a react functional component that accepts props In typescript to show that we addReact FC lt IProps gt after the List component declaration We can import the IState under the alias IProps since we know that the type definitions of the object form are exactly the same as the IState object We can then destructure form in the parameters and use it in the function component In the second example from App tsx we are sending one object ie form and one function ie setForm to Form tsxLet s take a look at the Form component s recieving side now As you can see here in this component as well we imported IState under the alias Props however we have made some customized changes here Here we created a new interface called IProps that specifies the type defintion of props incoming since we had to specify the type of setForm We mention form Props form which means form should be assigned the type definition of IState which is imported under the alias PropsAnd then similarly we will now do it for setFormProtip to know the type definitions of something you don t have a clue about just hover over that element like this and copy the type definitions Since we have already declared the type definitions of props as Props form we can cut short the type definition of setForm and write it this way instead setForm React Dispatch lt React SetStateAction lt Props form gt gt Then simply destructure form and setForm in the parameters of the Form function and use it in the component Handling FunctionsIn react typescript you need to mention the type of output that function is giving Here in this example we have called mapList function to map through the array of list and give table row as an output which is a JSX element To mention the output type of this function add JSX Element after the parameters which denotes that the function is supposed to return an array of JSX elements An interesting thing to note is that we have written a nested return statement because the first return points towards the mapping function However we aren t supposed to return the mapping function and thus typescript would give an error if we had only one return statement since we have mentioned our return type as JSX Element We did a nested return statement inside the map function so that it specifically returns a pure JSX element ie a table row in this case Protip If you aren t sure what the return type is hover over the function to know it s return type Alternatively if a function isn t returning anything mention it s null return type as void after parameters in this way const randomFunction void gt Handling EventsFor handling events with react typescript we will take a look at the following DOM events called by the following JSX elements in Form component lt input className inputBox type text name name value input name onChange e gt handleChange e gt lt textarea className inputBox name review value input review onChange e gt handleChange e gt lt textarea gt Here the input tag has a DOM property called onChange which calls handleChange when an event is triggered For this we create a function which knows that it will be recieving an HTML element in parameters const handleChange e React ChangeEvent lt HTMLInputElement HTMLTextAreaElement gt void gt setInput input e target name e target value Here we are declaring that e will either be of type React ChangeEvent lt HTMLInputElement gt which is what the input tag will send And since for the movie review field we are using a textarea tag instead of an input tag the e could also be React ChangeEvent lt HTMLTextAreaElement gt Thus the entire type definition of e can be written as e React ChangeEvent lt HTMLInputElement HTMLTextAreaElement gt We need to add void to specify that this function won t be returning anything In the second example we will take a look at the onClick event called by the form submit button lt button className button type submit onClick e gt handleClick e gt Submit lt button gt const handleClick e React MouseEvent lt HTMLButtonElement gt void gt e preventDefault if input name input rate return setForm form name input name rate parseInt input rate review input review Similar to handleChange function the handleClick function takes a proper type definition of e which in this case is React MouseEvent lt HTMLButtonElement gt ConclusionThat s it for this crash course Hope this gives you a fair enough idea of how to use typescript in react Keep learning and have a great day 2021-06-23 17:26:43
海外TECH DEV Community Build a Twitter Reaction Counter Using FaunaDB, Netlify and the Nuxt framework. https://dev.to/umavictor6/build-a-twitter-reaction-counter-using-faunadb-netlify-and-the-nuxt-framework-3mc1 Build a Twitter Reaction Counter Using FaunaDB Netlify and the Nuxt framework Fauna is at the peak of serverless databases and providing scalable and secure infrastructure to organizations and individuals with easy integration with various frameworks This article will build a Twitter counter with Fauna Netlify and the Nuxt framework I used Fauna as my serverless database of choice because of its high scalability and consistency AudienceThis article will be easier to follow if you have intermediate Vue js Nuxt js knowledge You should also know how to deploy a Nuxt project on Netlify GoalsAfter reading this article you will know how to use a serverless database like Fauna with a Nuxt jamstack site to create a twitter counter What We NeedThe purpose of this tutorial is to implement a kind of Twitter reaction counter in a blog post I will be using the personal portfolio website I quickly built as a reference during this tutorial In the next paragraph we will set up Netlify and Fauna We will be using the Nuxt content module as our content management system to write our blog posts and the blog slug to identify the blog post and properly route each article Slug will be of great use as we implement the reaction system Set up ProjectFirst we will set up a Fauna account To start navigate to their official site create an account with them here and then log into the account and create our database for the project We need a way to store the reaction counter for the articles in our blogs so we add a collection in our new database to do this Create an index that allows for easy organization and retrieval of documents by attributes according to their queried wayFrom the image above we create an index named “reaction count under the reactions collection created to use as the source collection In the terms field we have added data slug as one of the terms that can be searched Using our Fauna configuration we generate our Fauna API key that we can use in our Nuxt application to query our reaction counter database successfully To do this we go to the dashboard and click on the security section to generate the API When we generate the API we have to store it somewhere safe like our environment variable file as YOUR FAUNA SECRET KEY so that it cannot be accessed by a third party Installing Fauna in our Nuxt AppNow we can set up Fauna in our Nuxt application by installing the fauna package npm install save faunadb When setting up my Nuxt project i had already selected the nuxtjs axios plugin in making API request so keep this in mind You can manually install it by running npm install nuxtjs axiosAlso in your Nuxt config file you can add in the modulesexport default modules nuxtjs axios In the env file created at the root of our application we set our fauna API keyYOUR FAUNA SECRET KEY THE KEYWe want to be able to to test our app in development so we set configuration for the local and development deployment link like this in our Nuxt config file publicRuntimeConfig axios baseURL process env NODE ENV production process env BASE URL http localhost http localhost Now if we run the app locally we have it running at port this is to avoid any errors when running our serverless function Securing Fauna s Secret Key on NetlifyWe want to hide our Fauna API secret from prying eyes Use of Netlify functions to protect your Fauna API secret Netlify functions based on AWS lambda give you powerful abilities when building serverless functions allowing you to auto scale your projects In simple terms they are functions that run on the server To do this you can visit Netlify and add the environmental variables we defined earlier We store our Fauna secret key here to query our Fauna database when we deploy successfully After setting up Netlify Fauna and Nuxt we can dive into writing code Yayy Writing our Fauna FunctionsWhen our page loads we want to fetch all the reactions on our blog and want to be able to increase the reaction count The Fauna functions are what we will focus on implementing for now Write a function that allows us to fetch our reaction counter but first create a functions folder at the root of our Nuxt project and in this folder we create a fetch reactions js file to write our fetch reaction functions Note Once deployed Netlify automatically locates the functions folder where all our serverless functions are located const faunadb require faunadb exports handler async event gt const q faunadb query const client new faunadb Client secret process env YOUR FAUNA SECRET KEY const slug event queryStringParameters if slug return statusCode body JSON stringify message Blog slug not available const doesDocExist await client query q Exists q Match q Index reaction count slug if doesDocExist await client query q Create q Collection reactions data slug slug reactions const document await client query q Get q Match q Index reaction count slug return statusCode body JSON stringify reactions document data reactions Several things are going on above we initialized Fauna and set up the Fauna client with our secret password We check if the bog slug is provided as a query parameter If it isn t we return a status code of After doing this we check if the Fauna document that we created exists If it does not exist we create a new document with our reaction collection and set the initial reaction count to using our slug as a unique identifier We send a query for the reaction count index we created and retrieve our reactions and return the reaction count of the blog Increase Reaction Count FunctionThe primary purpose of this function is to increment the reaction count in our blog post As we will see below it is almost the same as the fetch reaction function The difference is that we are increasing the reaction count Note This function is the function that will be called when a reader on the blog post clicks the reaction button To do this we create a new file in our functions folder called increment reactions js and paste the code const faunadb require faunadb exports handler async event gt const q faunadb query const client new faunadb Client secret process env YOUR FAUNA SECRET KEY const slug event queryStringParameters if slug return statusCode body JSON stringify message Blog slug not available const doesDocExist await client query q Exists q Match q Index reaction count slug if doesDocExist await client query q Create q Collection reactions data slug slug reactions const document await client query q Get q Match q Index reaction count slug await client query q Update document ref data reactions document data reactions const updatedDocument await client query q Get q Match q Index reaction count slug return statusCode body JSON stringify reactions updatedDocument data reactions After we query our database we increment the reaction counter by by running an update in our database Using Our Functions In Our Nuxt AppUsing the functions we created earlier we will create a Twitter love reaction button using SVG and assign a click event When we click on the love reaction a function runs that accesses our serverless functions that fetch and increment the love reaction Note When we deploy our application our functions can be located at netlify functions OUR FUNCTION NAMEIn our component folder in our application we will create a TwitterReaction vue component where we will house our love reaction and button TwitterReaction vue lt template gt lt div gt lt button click addReaction class focus outline none gt initialReaction lt svg class w h fill none stroke currentColor viewBox xmlns gt lt path stroke linecap round stroke linejoin round stroke width d M a L l a L l a z gt lt path gt lt svg gt lt button gt lt div gt lt template gt We can see above that we have addReaction function that runs when we click the button The following function below runs in our script TwitterReaction vue lt script gt export default data return initialReaction null async fetch const data await this axios get netlify functions fetch reactions slug this route params slug this initialReaction data reactions fetchOnServer false methods addReaction this initialReaction this incrementLikes async incrementLikes await this axios post netlify functions increment reactions slug this route params slug lt script gt What happens above is we set up a reactive reaction counter initialReaction and using the fetch reactions functions we fetch the reactions and set it to our initialReaction Since we are using static mode we set fetchOnServer to false to ensure the fetch hook is called whenever our component is mounted Then whenever a reader clicks on the reaction button we run the addReaction method which increments our reaction count ConclusionYayy We have finally come to the end of the tutorial In this tutorial we learned how to use a serverless database in a jamstack site we also looked at setting up Netlify and hiding API keys In the end we created a “Twitter like reaction counter If you have any questions feel free to send me a message on Twitter ResourcesRead more about Netlify FunctionsIndexing in FaunaGithub Repo 2021-06-23 17:25:55
Apple AppleInsider - Frontpage News Apple has released slightly revised AirTag firmware https://appleinsider.com/articles/21/06/23/apple-has-released-slightly-revised-airtag-firmware?utm_medium=rss Apple has released slightly revised AirTag firmwareThe anti stalking features of AirTag were updated in and Apple has released a new version of that update to users Apple releases AirTag firmware version updateUnlike other device operating systems the AirTag does not have an update menu to control incoming updates install Instead users must wait for the update to install automatically Read more 2021-06-23 17:45:12
海外TECH Engadget Founders of South African Bitcoin exchange disappear after $3.6 billion 'hack' https://www.engadget.com/africrypt-bitcoin-disappearance-174636634.html?src=rss_b2c Founders of South African Bitcoin exchange disappear after billion x hack x Cryptocurrency investors in South Africa may have lost nearly billion in Bitcoin following the disappearance of two brothers associated with one of the country s largest cryptocurrency exchanges 2021-06-23 17:46:36
海外TECH Engadget AGs push Uber Eats to add a price disclaimer to the checkout page https://www.engadget.com/uber-eats-price-notice-restaurants-pennsylvania-washington-dc-170803449.html?src=rss_b2c washington 2021-06-23 17:08:03
海外科学 NYT > Science What Is a Megadrought? https://www.nytimes.com/article/what-is-a-megadrought.html distant 2021-06-23 17:37:43
金融 金融庁ホームページ 「経済財政運営と改革の基本方針2021」及び「成長戦略実行計画・成長戦略フォローアップ」を踏まえた兼業・副業の普及・促進について公表しました。 https://www.fsa.go.jp/news/r2/sonota/20210623.html 基本方針 2021-06-23 18:00:00
ニュース BBC News - Home Dalian Atkinson: PC guilty of former footballer's manslaughter https://www.bbc.co.uk/news/uk-england-shropshire-57495426 country 2021-06-23 17:50:19
ニュース BBC News - Home Covid: Push to close gap in vaccine uptake https://www.bbc.co.uk/news/uk-57587023 doctor 2021-06-23 17:40:00
ニュース BBC News - Home HMS Defender: Russian jets and ships target British warship https://www.bbc.co.uk/news/world-europe-57583363 coast 2021-06-23 17:20:39
ニュース BBC News - Home Queen describes Matt Hancock as 'poor man' at meeting with PM https://www.bbc.co.uk/news/uk-politics-57584417 hancock 2021-06-23 17:34:49
ニュース BBC News - Home Covid-19: Jab uptake rising in ethnic minority groups and travel industry protests https://www.bbc.co.uk/news/uk-57586194 coronavirus 2021-06-23 17:11:18
ニュース BBC News - Home Ethiopia's Tigray crisis: Heavy casualties reported after air strike https://www.bbc.co.uk/news/world-africa-57580691 force 2021-06-23 17:47:27
ニュース BBC News - Home Travel industry protests against Covid restrictions https://www.bbc.co.uk/news/business-57583389 international 2021-06-23 17:18:58
ニュース BBC News - Home Jadon Sancho: Manchester United increase offer for Borussia Dortmund winger to £72.6m https://www.bbc.co.uk/sport/football/57588639 Jadon Sancho Manchester United increase offer for Borussia Dortmund winger to £mManchester United increase their offer for Jadon Sancho to m Euros £m but it is still short of Borussia Dortmund s valuation of the England winger 2021-06-23 17:42:40
ニュース BBC News - Home PMQs: Fact-checking the debate over low rape prosecution levels https://www.bbc.co.uk/news/57583830 minister 2021-06-23 17:21:46
ニュース BBC News - Home Former Dortmund boss Favre in advanced talks with Palace https://www.bbc.co.uk/sport/football/57587290 crystal 2021-06-23 17:15:57
ニュース BBC News - Home Covid: What's the roadmap for lifting lockdown? https://www.bbc.co.uk/news/explainers-52530518 delta 2021-06-23 17:40:25
ニュース BBC News - Home What are the social distancing rules and when could they end? https://www.bbc.co.uk/news/uk-51506729 will 2021-06-23 17:42:07

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)