投稿時間:2021-09-23 01:43:02 RSSフィード2021-09-23 01:00 分まとめ(51件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Microsoft、2画面端末の新モデル「Surface Duo 2」を発表 https://taisy0.com/2021/09/23/146237.html android 2021-09-22 15:49:26
IT ITmedia 総合記事一覧 [ITmedia PC USER] Microsoftが「Surface Pro 8」「Surface Go 3」発表 Windows 11をプリインストール https://www.itmedia.co.jp/pcuser/articles/2109/23/news029.html itmediapcusermicrosoft 2021-09-23 00:45:00
AWS AWS Compute Blog Managing federated schema with AWS Lambda and Amazon S3 https://aws.amazon.com/blogs/compute/managing-federated-schema-with-aws-lambda-and-amazon-s3/ Managing federated schema with AWS Lambda and Amazon SSchema Management is a non trivial challenge in federated GQL systems The highest risk to your system availability comes with the potential of introducing breaking schema change by one of the graphlets Your system cannot serve any requests after that There is the problem of the delayed feedback loop for the engineers working on schema changes and the impact of schema composition during runtime on the service latency 2021-09-22 15:02:45
AWS AWS Cloud Enterprise Strategy Blog Taking Pole Position in Your Industry: Agility in Formula One https://aws.amazon.com/blogs/enterprise-strategy/taking-pole-position-in-your-industry-agility-in-formula-one/ Taking Pole Position in Your Industry Agility in Formula OneTruth be told most large organizations don t exactly resemble perfectly tuned machines In stark contrast is the breathtaking teamwork focus and precise execution we witness during Formula One F pit stops An F fan myself I will explore the world of F in this blog post about digital transformation Why Because behind each on podium champagne … 2021-09-22 15:19:43
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Discord読み上げBOTのテキストチャンネルの指定 https://teratail.com/questions/360855?rss=all Discord読み上げBOTのテキストチャンネルの指定前提・実現したいこと前提・DiscordpyとGoogleのTextToSpeechを使った読み上げBOTを作成中・Python初心者・参考にしたサイト実現したいこと・複数サーバーでの利用を想定しているためチャンネルIDを指定する方法をとりたくない。 2021-09-23 00:59:54
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) SVMで決定境界線を引きたい(MNIST数字分類) https://teratail.com/questions/360854?rss=all SVMで決定境界線を引きたいMNIST数字分類実現したいことMNISTのからまでの数字を分類したのち、各数字がどのように線形分離されているか決定境界線を引いて見える化したい。 2021-09-23 00:46:25
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 年度の異なるデータを結合し、グラフを作成したい。 https://teratail.com/questions/360853?rss=all 年度の異なるデータを結合し、グラフを作成したい。 2021-09-23 00:32:28
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) docker-compose.ymlのcommandについて https://teratail.com/questions/360852?rss=all dockercomposeymlのcommandについてReactの環境をdockerで作成しようとして、下記サイトを参考にしました。 2021-09-23 00:29:50
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 取得した要素を文字列ではなく配列に格納するメリットをお聞きしたいです。 https://teratail.com/questions/360851?rss=all 目的地や旅行テーマでホテルを検索できるようになっていて、各ホテルの記事にはquot目的地quotやquot旅行テーマquotのカテゴリーが割り振られています。 2021-09-23 00:02:04
Ruby Rubyタグが付けられた新着投稿 - Qiita [Ruby]破壊的メソッドと値渡しについて https://qiita.com/mkato1013/items/35c4f2f706efaeae1ecb Ruby破壊的メソッドと値渡しについてはじめに本記事では、新しく知った破壊的メソッドと値渡しについてを記述します。 2021-09-23 00:56:39
Ruby Rubyタグが付けられた新着投稿 - Qiita Rails6とBootstrap5 https://qiita.com/2016asap/items/3925ca5f2e285874b29a その中に以下を追加。 2021-09-23 00:00:51
Linux Ubuntuタグが付けられた新着投稿 - Qiita Ubuntu 18.04 LTSでAmazon Time Sync Serviceを利用して時刻同期する https://qiita.com/tabimoba/items/87b55b02655300ada016 UbuntuLTSでAmazonTimeSyncServiceを利用して時刻同期するUbuntuLTSでAWSのTimeSyncServiceの使い方がすぐに見当たらなかったので、手順をまとめてみました。 2021-09-23 00:59:02
Linux Ubuntuタグが付けられた新着投稿 - Qiita Ubuntu 20.04LTSでブリッジ接続を作成する https://qiita.com/tabimoba/items/e371dddb4c87baa07832 2021-09-23 00:45:16
Docker dockerタグが付けられた新着投稿 - Qiita CosmosDBエミュレータとAzureストレージエミュレータをdockerで動かしてAzureのローカル開発環境に利用する https://qiita.com/cnaos/items/3e1c00910e860c9a6890 この記事ではローカル開発環境用にDocker上でCosmosDBエミュレータとストレージエミュレータAzuriteを動かすためのdockercompose用ファイルを紹介します。 2021-09-23 00:19:01
Ruby Railsタグが付けられた新着投稿 - Qiita railsチュートリアル第五章 Userコントローラ https://qiita.com/masatom86650860/items/b533bcb65bf6a84b9483 railsチュートリアル第五章Userコントローラユーザー登録最初のステップこの節では、レイアウトとルーティングの取り組みにおける頂点として、ユーザー登録ページへのルーティングを作成番目のコントローラを作成することになります。 2021-09-23 00:32:15
海外TECH Ars Technica Facebook’s oversight board demands clarity on rules for high-profile users https://arstechnica.com/?p=1797434 enforcement 2021-09-22 15:23:01
海外TECH DEV Community Creating a JS Connector Map to Visualize Tour de France 2021 Route https://dev.to/andreykh1985/creating-a-js-connector-map-to-visualize-tour-de-france-2021-route-3k89 Creating a JS Connector Map to Visualize Tour de France RouteA connector map is a set of straight or curved lines that link points on a geographical map It is commonly used to graphically represent routes or any other connections between locations Would you like to learn how to build an attractive data visualization like that for a web page or app Actually it is easy to create an interactive connector map using JavaScript And I am ready to show you how right now Follow along with this tutorial as I depict the cycling path of the Tour de France in the form of a JS connector map and thoroughly explain all steps Here is a preview to get you excited for the ride the beautiful interactive JavaScript connector map that will have been built by the end of the tutorial Creating a JS Connector Map in Four Basic StepsBuilding a connector map with JavaScript is a bit more complex than other basic charts But it becomes simpler when we use a JS charting library that can provide an out of the box option to create it In this tutorial I will use AnyChart one such library that has a special AnyMap product with good mapping documentation to help develop a connector map with ease and I ll explain the entire process from start to finish so you perfectly understand what each step and line of code do Get ready to build a stunning interactive JavaScript connector map in four basic steps Creating an HTML pageFirstly I require a blank HTML page to hold my connector map I add a lt div gt element with a unique id in the lt body gt of my HTML page which I will reference later I also set the width and height of the lt div gt to using the lt style gt tag to make my map fit the entire screen You can adjust these parameters based on your requirements lt html gt lt head gt lt title gt JavaScript Connector Map lt title gt lt style type text css gt html body container width height margin padding lt style gt lt head gt lt body gt lt div id container gt lt div gt lt body gt lt html gt Adding the necessary scriptsI am going to use the AnyChart library so I need to add the necessary JS scripts in the lt head gt part of the HTML page To create the connector map I need AnyChart s core and map modules Moreover I also add the geodata of France since the route points are all there One more script to wrap up the map related additions is Projjs a JavaScript library that ensures the plotting of coordinates over the appropriate geographical area lt html gt lt head gt lt title gt JavaScript Connector Map lt title gt lt script src gt lt script gt lt script src gt lt script gt lt script src gt lt script gt lt script src gt lt script gt lt style type text css gt html body container width height margin padding lt style gt lt head gt lt body gt lt div id container gt lt div gt lt script gt All the code for the JS connector map will come here lt script gt lt body gt lt html gt Preparing the dataI collect the data for the cycling route from the official website of the Tour de France A JS connector map requires the data to be in a certain format so I created a specific dataset by adding the data in the required format You can check out the file here In a connector map dataset the main thing to remember is that the start and end points are defined by the latitude and longitude of each location where the latitude is defined first and then the longitude For your information I took the latitude and longitude information for each point from LatLong net To use the data in the code I need to include the handy Data Adapter script that comes with the AnyChart JavaScript charting library to load the file lt script src gt lt script gt Writing the JS code to draw the connector mapNow is the time for the final and most important stage of the race which is writing the main lines of JavaScript code for generating the connector map itself To begin with I enclose all the code inside the anychart onDocumentReady function to ensure that it is executed only when the web page is fully loaded Then I add the data using the anychart data loadJsonFile function lt script gt anychart onDocumentReady function anychart data loadJsonFile function data lt script gt To create a connector map I use the connector function and set the geodata of France Next I just provide the map with a title create a connector map chartvar map anychart connector set the geodata for francemap geoData anychart maps france add a title for the mapmap title Tour de France Route Map Before showing the connections I plot all the places on the route using the marker function I use the circle marker and fill it with the red color of the French flag create a marker series for the place namesvar citiesSeries map marker data citiesData type circle fill c stroke Now I represent the various connections using a helper function that accepts the map the name of the series and the data You will see later on in this tutorial why I have made five different series In the helper function I create the links with the connector function and set the color of the lines to the blue color of the French flag create individual seriescreateSeries map Hilly data hillyData createSeries map Mountain data mountainData createSeries map Flat data flatData createSeries map Individual Time Trial data timeTrialData createSeries map Connector data connectorData a helper function to create several seriesfunction createSeries map name data configure and customize the series var connectorSeries map connector data stroke eca fill eca In the last two steps I reference the container div to display the chart and draw the map set the container id for the mapmap container container command to draw the resulting connector mapmap draw And that s the finish line A beautiful JavaScript connector map is all ready Here is the complete code and you can also check it out on AnyChart Playground lt html gt lt head gt lt title gt JavaScript Connector Map lt title gt lt script src gt lt script gt lt script src gt lt script gt lt script src gt lt script gt lt script src gt lt script gt lt script src gt lt script gt lt style type text css gt html body container width height margin padding lt style gt lt head gt lt body gt lt div id container gt lt div gt lt script gt anychart onDocumentReady function anychart data loadJsonFile function data create a connector map chart var map anychart connector set the geodata for france map geoData anychart maps france add a title for the map map title Tour de France Route Map create a marker series for the place names var citiesSeries map marker data citiesData type circle fill c stroke create individual series createSeries map Hilly data hillyData createSeries map Mountain data mountainData createSeries map Flat data flatData createSeries map Individual Time Trial data timeTrialData createSeries map Connector data connectorData sets the container id for the map map container container command to draw the resulting connector map map draw a helper function to create several series function createSeries map name data configure and customize the series var connectorSeries map connector data stroke eca fill eca lt script gt lt body gt lt html gt Customizing a JavaScript Connector MapI think the current connector map already looks great But we can certainly pack in more information and also improve it aesthetically So pedal on with me to see how a JavaScript based connector map visualization can be customized and become even more awesome Setting the colors according to the stage route terrainFormatting the labelsChanging the curvature of the connector linesFormatting the connector line typeEnhancing the tooltipModifying the marker sizeEnhancing the titleCONTINUE READING HERE FOR A WALKTHROUGH OF THESE JS CONNECTOR MAP CUSTOMIZATIONS 2021-09-22 15:35:57
海外TECH DEV Community Get Paid to Write for These 45+ Websites https://dev.to/olanetsoft/get-paid-to-write-for-these-45-websites-16ap Get Paid to Write for These Websites How can I acquire more opportunities is a question I ask myself from time to time and it was a major concern for me As a result I d like to provide a list of a few websites that pay you to create technical articles You may see their name URL and the estimated payment amount Adam the Automator per articleIT operations cloud and DevOps technical tutorials You have the option of selecting from a list of suggested themes or submitting your own Run by a Microsoft MVP this site was created to assist geeks in improving their writing skills and getting started with blogging Adeva per articleEngineering Managers will benefit from technical guides thought leadership materials and tools Agora per articleFor the Agora community technical content and tutorials Arctype per articleSQL and Databases technical manuals case studies and thought leadership Auth Up to per pieceCode based technical tutorials CircleCI Up to per pieceTutorials that contains code for technical subjects Choose an article from a list Clubhouse io Up to per pieceHow to instructions and technical tutorials Code Tuts Quick tip Tutorial Articles with a technical focus ContentLab io Up to per pieceCloud DevOps Containers AI ML Security Web and Gaming related articles Couchbase per pieceContent area experts can submit tutorials and blog content Currently on HoldCSS Tricks Around per piece depends on the length research and audience Technical focused articles No limitation on topics Cube Dev Up to per pieceBuilding analytical apps data visualization and data engineering are covered in technical tutorials and blog posts using Cube js Choose from a list of suggestions or make your own Deepsource Around per pieceCode quality code review and static analysis are all covered in this section Dev Spotlight Around per piece depending on length and contentTechnical content production agency that works with many clients Dockship Data Science and Machine Learning To be able to create content you must be logged in Draft dev Pays per pieceA technical content agency with a diverse client base FaunaDB per pieceThe content centered on serverless development and FaunaDB technical education Hasura Up to per pieceHasura or GraphQL technical tutorials with code Honeybadger From per pieceRuby and Elixir tutorials with code Pick from a list of possible articles ImageKit per pieceA technical tutorial on ImageKit and Image Optimization Linode Up to per pieceSpecialized instructional exercises with code on Linux or Linode LoginRadius Up to per pieceTechnical tutorials with code Not limited to LoginRadius products LogRocket Up to per pieceTechnical tutorials with code Write about anything frontend Neptune Up to per article Articles about machine learning and data science as well as how to instructions and tutorials Okta Paid through Toptal based on your hourly rateTechnical tutorials and demos using Okta s products Paperspace per pieceGet paid to publish articles about data science machine learning and other topics PHP Architect per pieceTechnical articles about PHP Rancher per pieceWriting about devops Kubernetes and Rancher Real Python Up to per pieceTechnical tutorials with code Pick from a list of possible articles Sanity io Up to per pieceArticles and how to instructions with a technical focus Section io to per articleComputer Science university students can contribute articles for cash to a blog about engineering education SitePoint per articleDevelopment design and the business concepts that underpin them are all covered in depth The most popular channels are JavaScript and PHP Smashing Magazine to per articleTechnical focused articles No limitation on topics Software Engineering DailySoshace per pieceTutorials on web development teach the skills needed to test deploy grow and optimize apps Strapi Up to per pieceVue Open Source JavaScript GraphQL Jamstack and React are examples of articles or tutorials with code that highlight use cases solutions and projects made with Strapi Choose a report from a list of possibilities or submit your own TakeShape Up to per pieceCode based web development tutorials React JavaScript GraphQL and Jamstack are examples of general frontend concepts Choose an article from a list of possibilities or submit your own Tech Beacon per pieceDevelopment DevOps QA and security are all covered in depth TechWell per pieceA vast range of technical and business topics is taken into account TestDriven io per guest postWeb development tutorials are designed to teach critical skills needed to test Tutorials on web development that teach the skills needed to test deploy grow and optimize apps Tutorialspoint Up to per pieceIn depth tutorials on technical and business topics Twilio Up to per pieceTechnical tutorials with code A writer doesn t necessarily have to use Twilio TypingDNA Up to per pieceTechnical articles tutorials related to TypingDNA Vonage per pieceTechnical tutorials and general pieces on programmingWPHUB per pieceWordpress tutorials and articles ResourcesWho Pays Technical WritersCommunity Writer ProgramsWho Pays Writers ConclusionI hope you found this post to be informative I d love to connect with you at Twitter LinkedIn GitHubSee you in my next blog article Take care 2021-09-22 15:27:59
海外TECH DEV Community Glassmorphism login form with CSS https://dev.to/posandu/glassmorphism-login-form-with-css-mb5 Glassmorphism login form with CSSFirst published on TronicIn this article you will learn how to create a Glassmorphism login form with CSS Look below to see how it looks like scroll down to the end if you want to get the code Let s get startedFirst as usual we will prepare the HTML before we style it We will create a div with the class main for the container and add a div with the class login for the login form Now the code looks like this lt div class main gt lt div class login gt lt div gt lt div gt Then add a h with the class heading for the heading Inside the h tag type Login to your account or whatever you want Now there s a heading Time for the most important component … It s the inputs username password For the inputs we will create a div with the class input And add a label and an input inside it The component will look like this lt div class input gt lt label gt Username lt label gt lt input gt lt div gt Now that isn t fully complete without the attributes lt div class input gt lt label for username gt Username lt label gt lt input type text id username autocomplete false gt lt div gt We will create two inputs like this one for the username and one for the password lt div class input gt lt label for username gt Username lt label gt lt input type text id username autocomplete false gt lt div gt lt div class input gt lt label for password gt Password lt label gt lt input type password id password autocomplete false gt lt div gt Now there are inputs STOP TALKING inputs inputs OK It s over Then after those i We ll add the submit button with the class login btn And inside that type login or submit After the button add this other stuff lt div class social icons gt lt button class social icon fb gt lt svg fill xmlns viewBox width px height px gt lt path d MC c Vh v hv c c vh c vhL h v C C z gt lt svg gt lt button gt lt button class social icon pr gt lt svg fill xmlns viewBox width px height px gt lt path d MC s s S z M c s s c c c c c l c c c c c c c c c c l c C C C C z gt lt svg gt lt button gt lt button class social icon in gt lt svg fill xmlns viewBox width px height px gt lt path d M C L C L C L C L z M C C C C z M C C C C z M A A A A z gt lt svg gt lt button gt lt div gt Yay We finished our HTML complete Our full code looks like this lt div class main gt lt div class login gt lt h class heading gt Login to your account lt h gt lt div class input gt lt label for username gt Username lt label gt lt input type text id username autocomplete false gt lt div gt lt div class input gt lt label for password gt Password lt label gt lt input type password id password autocomplete false gt lt div gt lt div class divider gt lt div gt lt button class login btn gt Log In lt button gt lt p class meta text gt Too lazy Login with a social media account lt p gt lt div class social icons gt lt button class social icon fb gt lt svg fill xmlns viewBox width px height px gt lt path d MC c Vh v hv c c vh c vhL h v C C z gt lt svg gt lt button gt lt button class social icon pr gt lt svg fill xmlns viewBox width px height px gt lt path d MC s s S z M c s s c c c c c l c c c c c c c c c c l c C C C C z gt lt svg gt lt button gt lt button class social icon in gt lt svg fill xmlns viewBox width px height px gt lt path d M C L C L C L C L z M C C C C z M C C C C z M A A A A z gt lt svg gt lt button gt lt div gt lt div gt lt div gt Time for the CSSFirst we import the Poppins font and reset the layout like this import url display swap before after margin padding box sizing border box font family inherit body font family Poppins sans serif Then we style the login form and the background like this main height vh width display flex align content center align items center justify content center background url ixlib rb amp auto format amp fit crop amp w amp q background size cover background repeat no repeat login position relative background dfa padding px px border radius px z index overflow hidden box shadow px px px ffffff px px px a animation login s ease keyframes login transform translateY scale opacity transform scale opacity login after content position absolute top left height background url ixlib rb amp auto format amp fit crop amp w amp q width z index background size vh background position filter blur px background repeat no repeat opacity Now we have our glass like login form and background It looks like this Nice Then we style the heading heading font size px font weight text align center margin bottom px color white After that the inputs input display block margin bottom px margin top px input label display block margin bottom px font size px color white cursor pointer input input width padding px outline none border none font size px border radius px background b color white transition all s ease input input hover background dc input input focus box shadow px px px b px px px background Now we can see a beautifully designed login page like this done login btn margin top px margin bottom px padding px px font size px background border px solid color eee border radius px width transition all s cubic bezier cursor pointer login btn hover background b transition all s ease login btn focus box shadow px px px px aaab background meta text font size px margin bottom px color white social icons text align center display flex justify content center align items center social icon min height px background var c margin right px display flex align items center justify content center min width px max width px max height px border radius px box shadow px px px cbb transition all s ease border none outline none social icon hover box shadow px px px a social icon focus box shadow px px px px currentColor transform scale social icon pointer events none fill fff social icon fb c b social icon pr c e social icon in c bd Okay We finished our work Click Here to view full code so you can copy paste it easily That s all for now then You know now how to create a Glassmorphism login form with CSS 2021-09-22 15:18:38
海外TECH DEV Community 10 Minute Tutorial - Full Stack GitHub Authentication with Supabase & React https://dev.to/dabit3/10-minute-tutorial-full-stack-github-authentication-with-supabase-react-3c6b Minute Tutorial Full Stack GitHub Authentication with Supabase amp ReactIn this post I want to show how quickly and easily GitHub authentication can be enabled with Supabase and React a full stack project in around lines of code The video for this tutorial is available hereAs I ve mentioned before one of the reasons I like Supabase is the wide variety of authentication providers it give you out of the box Also the APIs for interacting with them are about as simple as it gets authenticate const user session error await supabase auth signIn provider github request signed in user const user supabase auth user As a developer GitHub authentication is something you ll probably want to offer for any developer facing product or service you create Let s look at how we can set this up in just a few minutes and not much code with Supabase and React You can view all of the Supabase Authentication guides here at any time Creating the Supabase projectTo get started visit app supabase io and create a new project Once you ve created your project click on Settings in the left hand menu then click API Here copy the project URL to your clipboard and then move on to the next step Creating the GitHub appNext we need to create the GitHub OAuth application To do so click here and then click Register a new Application Here we can give the app a name homepage url http localhost for now and for the callback use the Supabase app URL copied to your clipboard appended with auth v callback https lt project id gt supabase co auth v callbackOnce you create the OAuth App you should be given both a Client ID as well as a way to create a new client secret Create the client secret then move on to the next step Configuring the OAuth settings in SupabaseIn the Supabase dashboard click on Authentication in the left hand menu then Settings and toggle the Github enabled switch Here you should be able to configure your GitHub client ID as well as the GitHub secret Your Supabase project is now ready to be used in your front end app Building the front endNow that the Supabase project is ready to go let s create the front end We ll be using React but these ideas can be applied using any front end framework without a ton of fundamental changes First create a new React project and change into the new directory npx create react app my supabase appcd my supabase appNext install the Supabase JS library using either NPM or Yarn npm install supabase supabase jsNext we need to configure the Supabase project in our client application To do so it s nice to have a separate configuration file that we we can import and use anywhere in our app Create a new file in the src directory named client js Here we ll need the Supabase App URL as well as the anon public API Key from your project You can get these values from your Supabase project by clicking on Settings and then API Using these values create and export your Supabase client configuration src client js import createClient from supabase supabase js const supabase createClient anon public key export supabase Now we can start interacting with our Supabase app by importing this client Next update src App js with the following code import App css import useState useEffect from react import supabase from client function App const user setUser useState null useEffect gt when the app loads check to see if the user is signed in checkUser check user on OAuth redirect window addEventListener hashchange function checkUser async function checkUser if a user is signed in update local state const user supabase auth user setUser user async function signInWithGithub authenticate with GitHub await supabase auth signIn provider github async function signOut sign the user out await supabase auth signOut setUser null if user return lt div className App gt lt h gt Hello user email lt h gt lt button onClick signOut gt Sign out lt button gt lt div gt return lt div className App gt lt h gt Hello please sign in lt h gt lt button onClick signInWithGithub gt Sign In lt button gt lt div gt export default App Now we should be able to run the app and have a basic authentication flow set up for us npm start Next stepsRight now we do not have a way to query for the users of our application We can set this up pretty easily by following this guide to create a profiles table referencing id in the auth users table using a user id field and then setting row level access rules for reading and writing 2021-09-22 15:04:13
海外TECH DEV Community Three New Next.js Features and How to Use Them https://dev.to/aspittel/three-new-next-js-features-and-how-to-use-them-1d3d Three New Next js Features and How to Use ThemAWS Amplify recently added support for Next js features including incremental static regeneration optional catch all routes and image optimization In this post we ll dig into what each of these features is how to implement a fullstack app using them and how to deploy them to AWS Let s dive in Please note that I work as a Developer Advocate on the AWS Amplify team if you have any feedback or questions about it please reach out to me or ask on our Discord discord gg amplify If you re new to Next js check out this tutorial first to get you started I also wrote this tutorial on creating a fullstack Next js app if you want to check that out SetupFirst let s create a Next js app npx create next app next blogNow let s create our app backend Head to the Amplify Sandbox and then get started Choose data on the next page and start with the blog schema I deleted the Blog model and added the content field to the Post model Then you can skip the Test locally in your app page and go straight to deploying with your AWS account Follow the guided steps to deploy your app Once your backend has deployed enter the Admin UI for your app and then click on Local setup instructions on the top right Run the Amplify pull command into the Next app you created Also install the AWS Amplify libraries as well as TypeScript you don t need TypeScript for your code it s just for the generated DataStore models amplify pull appId your appID envName stagingnpm install aws amplify typescriptI m also going to generate some blog posts for my app Click on Manage app content within the Amplify Admin UI Under the Actions drop down you ll see an option to Auto generate data Go ahead and generate blog posts You ll see titles and descriptions pop up Now it s code time Open up the Next js app that you generated a few steps ago Open the app js file and ad the following This will make it so that Amplify s frontend libraries are automatically tied to your backend resources that you created We ll also enable server side rendering import Amplify from aws amplify import awsconfig from src aws exports Amplify configure awsconfig ssr true Now we ll implement the index js route this home page will list all of our blog posts and link them to a secondary page that will display one post We ll use SSR for this route First I ll import my data model from the generated src models directory I ll also import the withSSRContext function from Amplify this will allow us to run our query on the server side import withSSRContext from aws amplify import Post from src models Now create a getServerSideProps function Then we ll allow Amplify to run on the server with withSSRContext we ll provide it the request information as well Then we ll run a query to get all of our blog posts Finally we ll return an object that provides our models as props You can either convert to JSON manually or use the serializeModel function from Amplify export async function getServerSideProps context const SSR withSSRContext context req const models await SSR DataStore query Post return props models JSON parse JSON stringify models Now we can map through the posts and render them on the page export default function Home posts return lt div gt lt Head gt lt title gt Amplify Next lt title gt lt meta name description content Amplify Next gt lt Head gt lt main gt posts map post gt lt div key post id gt lt a href post post id gt lt h gt post title lt h gt lt a gt lt div gt lt main gt lt div gt ISRNow on to the new Next features First we ll implement ISR or incremental static regeneration Normally when you use static site generation the site builds once when you deploy your app But in a lot of cases you want your static pages to update when your data changes ISR enables that you provide a revalidation time to your getStaticProps and then once that time window is reached the page will regenerate Essentially the pages are statically generated initially and the initial users that hit the page before the provided regeneration time get served that statically generated site Then the next request to that page after the regeneration time is hit triggers the page to rebuild in the background the user that triggered the regeneration gets served the old version of the page but subsequent users get the new version This is especially helpful in e commerce scenarios and in our case a blog that you don t need to re deploy every time you want to add a new post We ll create a page that displays one blog post First we ll create a post post js page component in the pages directory Let s start with the imports we ll need import withSSRContext from aws amplify import useRouter from next router import Post from src models Now we ll create a getStaticPaths function that will generate a static page for each post We ll query all of our posts map through them and then return them from the function We ll also provide a fallback true here which will make it so that instead of immediately giving a when a non generated route is hit Next js will instead try and generate the page in the background and then render it export async function getStaticPaths const SSR withSSRContext const posts await SSR DataStore query Post const paths posts map post gt params post post id return paths fallback true Now we ll implement our getStaticProps We ll this time query for just one post using its id Then we ll return the post in the props object and we ll also add the revalidate key This will implement ISR for our page I ll provide which will make the revalidation time seconds You could change this value depending on your use case export async function getStaticProps context const SSR withSSRContext context req const post await SSR DataStore query Post context params post return props post JSON parse JSON stringify post revalidate Now we ll render the post on the page I ll use the router isFallback to render the loading indicator if a non generated path is hit I only did this because I used fallback true export default function PostPage post const router useRouter if router isFallback return lt div gt Loading lt div gt return lt div gt lt h gt post title lt h gt lt p gt post content lt p gt lt div gt Then I ll push my code to GitHub Then I ll go back to the AWS Console page for my app You should see the backend environments page populated with your Admin UI link Head over to the frontend environments tab and you ll have the option to deploy your app Follow the guided deployment steps you should be able to select your branch from GitHub and use the default build scripts detected from your package json You ll also see information about what was deployed in this case you ll have a Lambda Edge function that will handle ISR for you Optional Catch All RoutesWe have two more much quicker features to chat about first optional catch all routes These allow you to create a route that can have any parameters after it We ll create one for an about page about should render the page but so should about hi and about ali spittel We can do this by creating a page component and then putting it in double brackets and adding three dots before it First create the file for the page pages about about js Now I ll implement the compnent I ll use useRouter from Next to get information about the route then I ll render the route parameters on the page Try about about hi and about ali spittel and see how this changes import useRouter from next router import React from react export default function About props const routeData useRouter return lt div gt JSON stringify routeData query lt div gt Now push your code to GitHub and Amplify will automatically redeploy your frontend with the new about page Image ComponentFinally let s try out the Next js Image component This component automatically enables image optimization with resizing optimization and serving different image types like webp when browsers support them I added a picture of my dog Blair to the public directory Then I imported the Image component in the index js fileimport Image from next image Then I rendered her picture on the page lt Image src blair jpeg alt Fluffy white dog lying on a couch height width gt I again pushed to GitHub to redeploy the site ConclusionI hope this tutorial helped you implement a few of the new Next js features and deploy them to AWS Amplify If you want to take down your app you can run amplify delete from your CLI and your code will persist locally but it will no longer be deployed to the cloud If you have any feedback on AWS Amplify or this tutorial please let me know 2021-09-22 15:00:55
Apple AppleInsider - Frontpage News Microsoft unveils Surface Laptop Studio, Surface Pro 8, Surface Duo 2 https://appleinsider.com/articles/21/09/22/microsoft-unveils-surface-laptop-studio-surface-pro-8-surface-duo-2?utm_medium=rss Microsoft unveils Surface Laptop Studio Surface Pro Surface Duo On Wednesday Microsoft showed off its new lineup of Surface computers ーthe Surface Laptop Studio the updated Surface Pro and the Surface Duo The new Surface Pro Each of these tablet computers have been redesigned with thinner bezels new connectivity and improved display technology The Surface Pro X is an ARM based laptop the Surface Pro runs Intel and the Surface Duo is an Android foldable Read more 2021-09-22 16:00:02
Apple AppleInsider - Frontpage News Apple partner TSMC fired staff who violated company's 'core values' https://appleinsider.com/articles/21/09/22/apple-partner-tsmc-fired-staff-who-violated-companys-core-values?utm_medium=rss Apple partner TSMC fired staff who violated company x s x core values x While TSMC did not give an official reason why it fired the employees reports claim that the seven workers let go leaked confidential information to outsiders Taiwan based chip partner TSMC has reportedly fired seven employees at once noting that the employees had failed to comply with company standards According to the company the employees in question exhibited improper behavior that had violated the company s core values TSMC always operates on the company s most important principles of integrity and integrity so employees must follow these core values when working for the company a spokesperson for the company said in a statement seen by WorldAkkam In the future TSMC will continue to follow these principles and require all employees to do the same Read more 2021-09-22 15:23:49
Apple AppleInsider - Frontpage News In leaked memo, Tim Cook says leakers do not belong inside Apple https://appleinsider.com/articles/21/09/22/tim-cook-says-leakers-do-not-belong-at-apple?utm_medium=rss In leaked memo Tim Cook says leakers do not belong inside AppleFollowing leaks about his all hands Apple meeting about pay equity Tim Cook has told staff that the company does not tolerate disclosures of confidential information Immediately after Apple s Sept all hands meeting Tim Cook s comments were leaked to the press Subsequently Cook issued a memo about his frustration at how confidential meetings and product news are being leaked That email has now also been leaked It includes Cook saying that whether it s regarding a private meeting or is a leaked detail about a product people who leak confidential information do not belong here Read more 2021-09-22 15:24:55
Apple AppleInsider - Frontpage News Best Deals Sept. 22 - $97 MagSafe Duo Charger, $110 2nd gen Apple Pencil, and more! https://appleinsider.com/articles/21/09/22/best-deals-sept-22---97-magsafe-duo-charger-110-2nd-gen-apple-pencil-and-more?utm_medium=rss Best Deals Sept MagSafe Duo Charger nd gen Apple Pencil and more Wednesday s best deals include more than off Apple MagSafe Duo Charger off the Star Wars Movie Collection off a second generation Apple Pencil and more Wednesday September Shopping online for the best discounts and deals can be an annoying and challenging task So rather than sifting through miles of advertisements check out this list of sales we ve hand picked just for the AppleInsider audience Read more 2021-09-22 15:42:27
Apple AppleInsider - Frontpage News iPad mini review roundup: Superior speed but missing a critical feature https://appleinsider.com/articles/21/09/22/ipad-min-review-roundup-superior-speed-but-missing-a-critical-feature?utm_medium=rss iPad mini review roundup Superior speed but missing a critical featureThe first reviews for the iPad mini are out and they all follow the same line that it is a remarkable device yet not meant to be used for serious work CNBC Exciting but expensiveCNBC s review of the iPad mini is mostly a rave but comes with huge caveats It calls this device the more exciting of the two latest iPad releases but if you re not dead set on the smaller device you can save a lot of money with the regular iPad Read more 2021-09-22 15:58:23
海外TECH Engadget The Surface Laptop Studio transforms into an easel, because of course https://www.engadget.com/microsoft-surface-laptop-studio-easel-hinge-153618416.html?src=rss The Surface Laptop Studio transforms into an easel because of courseIf we learned anything from last year s Surface Book it s that Microsoft s wild detachable tablet design wasn t long for this world There was just no way to compete with other powerful notebooks when it required shoving full Windows PC complete with a power hungry CPU into a large slate Enter the Surface Laptop Studio a new stab at building a powerful Surface notebook While it looks like a typical PC at first a unique hinge allows you to pull the screen forward over the keyboard And if you pull it all the way down it turns into an easel like a miniaturized version of the Surface Studio all in one While I m sure some Microsoft fans may miss the sheer weirdness of the Surface Book s design the Laptop Studio is clearly more functional for typical users I ve yet to meet any Surface Book owners who actually use it in tablet mode very often ーeven flipping the screen around becomes a chore eventually The Laptop Studio clearly has plenty of quirks of its own too Its lower half almost looks like two PCs stacked on top of each other with an odd tiered design And if its screen flexibility looks familiar it may be because it takes a few cues from HP s leather clad Folio That PC also let you pull out the screen and turn it into a tablet It s a design I m surprised more computer makers haven t adopted as it seems more genuinely useful than convertibles with screens that fold a full degrees MicrosoftSurprisingly Microsoft still held back a bit when it came to power The Surface Laptop Studio features Intel s quad core th gen H processors which were originally intended for ultraportable gaming notebooks Those watt chips will certainly be an upgrade over the Book s th gen hardware but you d think Microsoft would take this new model as a chance to spread its wings and cram in a six or eight core CPU The Surface Laptop Studio starts at and is available for pre order today It ll be on sale with the rest of the Surface lineup on October th Developing Follow all of the news from Microsoft s fall Surface event right here 2021-09-22 15:36:18
海外TECH Engadget Surface Duo 2 gets proper cameras and dual 90Hz displays https://www.engadget.com/microsoft-surface-duo-2-annoucement-152736648.html?src=rss Surface Duo gets proper cameras and dual Hz displaysMicrosoft s first attempt at a dual screen Android device wasn t exactly a success Middling hardware and consistently buggy software held back what could have been a compelling experience But with the Surface Duo the company wants to change all that with a device that focuses on addressing the shortcomings of its predecessor nbsp Take one look at the Surface Duo and you ll notice it has a substantial camera bump That might not seem like much of an upgrade but it is because it means the Surface Duo comes with a far more capable and versatile camera system than its predecessor The original featured a single megapixel above its right display That meant you had to use that one camera for both selfies and regular shots Add some imprecise software for switching between camera modes and the Surface Duo was never great at capturing snapshots With the addition of three new cameras the Surface Duo should at the very least allow you to capture a greater variety of shots The triple rear camera array consists of a megapixel wide angle a megapixel telephoto and a megapixel ultra wide The primary and telephoto cameras feature f and f aperture lenses phase detection autofocus and optical image stabilization Less noticeable but welcome all the same are the tweaks Microsoft has made to Duo s signature dual PixelSense displays The new model features slightly larger inch AMOLED screens that combine into a single inch display They re also brighter and feature a variable refresh rate of up to Hz for smoother scrolling Other notable features include a new sound system Microsoft says delivers stereo sound no matter how you hold or position the Surface Duo On the side of the device you ll find a nifty ambient display that shows things like how much battery life you have Oh there s also a new Obsidian black that is quite fetching and you can attach a Surface Pen magnetically to the device Developing Follow all of the news from Microsoft s fall Surface event right here 2021-09-22 15:27:36
海外TECH Engadget The Surface Adaptive Kit makes Microsoft's laptops more accessible https://www.engadget.com/microsoft-surface-adaptive-kit-accessibility-160002034.html?src=rss The Surface Adaptive Kit makes Microsoft x s laptops more accessibleWe all know what to expect with new laptops Upgraded chips often thinner designs and whiz bang new features But it s easy to ignore how some of those changes can affect people with disabilities Making a notebook thinner can also make it harder to open for example So to better equip its PCs to be more accessible Microsoft created the Surface Adaptive Kit a collection of add ons that can help you find specific keys locate ports and flip open your PC or kickstand While they may just look like a collection of simple stickers it still shows that Microsoft is actually thinking of people with disabilities The Adaptive Kit comes from its Inclusive Tech Lab the same folks behind the revolutionary Xbox Adaptive Controller The impetus for the Surface kit is also very similar It s all about making Microsoft s hardware easier for everyone to use In the box you ll find a set of translucent keycap labels to highlight keys you use often a set of three dimensional bump labels for ports and buttons and raised port indicators with matching cable wrap To give you more leverage with cases and kickstands there s also a ring opener and pull tab opener nbsp The company isn t saying how much the Surface Adaptive Kit will cost when it arrives later this year but hopefully it ll come in relatively cheap After all an accessibility focused product should work for all budgets nbsp nbsp Follow all of the news from Microsoft s fall Surface event right here 2021-09-22 15:23:31
海外TECH Engadget Microsoft's Surface Pro X will start at $899 with Windows 11 refresh https://www.engadget.com/microsoft-surface-pro-x-wifi-only-899-usd-151558748.html?src=rss Microsoft x s Surface Pro X will start at with Windows refreshWhen Microsoft introduced the Surface Pro X in it promised the start of something new for the company s in line Unfortunately buggy limited app compatibility due to the computer s ARM based architecture and Windows on ARM software meant the Pro X never quite delivered on its promise nbsp nbsp With today s Surface event Microsoft isn t updating the Pro X s hardware As before you can configure the computer with either the company s original SQ chip or its more recent SQ chip However Microsoft is introducing a new WiFi only model that starts at More important here is that the computer now comes with Windows out of the box and includes support for native bit software emulation That means app compatibility should be greatly improved nbsp Follow all of the news from Microsoft s fall Surface event right here 2021-09-22 15:15:58
海外TECH Engadget Microsoft sticks faster chips in the tiny Surface Go 3 https://www.engadget.com/microsoft-surface-go-3-release-date-specs-151539602.html?src=rss Microsoft sticks faster chips in the tiny Surface Go Microsoft s new Surface launches include a refresh for its smallest tablet the Surface Go The tech firm has unveiled the Surface Go a performance focused upgrade that brings faster chips to the inch slate You ll get up to a percent speed boost Microsoft claimed Developing Follow all of the news from Microsoft s fall Surface event right here 2021-09-22 15:15:39
海外TECH Engadget Surface Slim Pen 2 offers paper-like haptic feedback https://www.engadget.com/microsoft-surface-slim-pen-2-151216222.html?src=rss Surface Slim Pen offers paper like haptic feedbackIt wouldn t be a major Surface launch without a new pen and Microsoft is happy to deliver The company has introduced a Surface Slim Pen that uses a haptic motor to provide quot tactical signals quot as you draw and write In theory it ll feel like you re putting pen to paper rather than glass Developing Follow all of the news from Microsoft s fall Surface event right here 2021-09-22 15:12:16
海外TECH Engadget Surface Pro 8 is a media-centric 13-inch tablet with a 120Hz Dolby Vision display https://www.engadget.com/microsoft-surface-pro-8-13-inch-screen-dolby-vision-150951070.html?src=rss Surface Pro is a media centric inch tablet with a Hz Dolby Vision displayMicrosoft s new Surface Pro tablet can actually go toe to toe with most ultraportables It features a inch PixelSense screen a significant upgrade from the previous inch display Even better it s one of the first non gaming notebooks we ve seen that supports a Hz refresh rate which makes scrolling through web pages and jotting down notes a lot smoother And of course it s built with Windows in mind Together with some of Intel s latest th gen processors as well as long awaited support for Thunderbolt the Surface Pro could tempt over potential buyers who were turned off by the limitations of previous models As much as I ve liked earlier Surface Pros the last model made it clear that Microsoft seriously needed to change things up Thankfully the Surface Pro finally supports Thunderbolt on its two USB C ports That means you ll be able to connect fast external hard drives several K external monitors or even an external GPU As for other updates the rear camera is now MP instead of MP and it also supports K video The front facing camera is still MP with p video but it should offer better low light performance Developing Follow all of the news from Microsoft s fall Surface event right here 2021-09-22 15:09:51
Cisco Cisco Blog Having Confidence in Your Wireless Security https://blogs.cisco.com/networking/having-confidence-in-your-wireless-security Having Confidence in Your Wireless SecurityWhile the move to Wi Fi increases worker mobility it increases the attack surface for hackers Cisco s aWIPS and Rogue Management wireless security solution has been verified by Synopsys to identify a wide range of attacks to help keep the network secure 2021-09-22 15:51:36
海外TECH CodeProject Latest Articles C# Bad Practices: Learn How to Make a Good Code by Using Example of Bad Code – Part 2 https://www.codeproject.com/Articles/1097145/Csharp-Bad-Practices-Learn-How-to-Make-a-Good-Code improve 2021-09-22 15:12:00
Linux OMG! Ubuntu! GNOME 41 Released with New Settings, Power Savings, and More http://feedproxy.google.com/~r/d0od/~3/9JXq1TOLAAY/gnome-41-released-see-whats-new GNOME Released with New Settings Power Savings and MoreThe GNOME release is out with new multitasking and mobile network settings updated Software store and a new Remote Desktop client Learn more This post GNOME Released with New Settings Power Savings and More is from OMG Ubuntu Do not reproduce elsewhere without permission 2021-09-22 15:15:00
海外TECH WIRED Everything Microsoft Announced, Including a Wacky Flippy Laptop https://www.wired.com/story/everything-microsoft-announced-september-2021 redmond 2021-09-22 15:53:53
金融 金融庁ホームページ みずほ銀行及びみずほフィナンシャルグループに対する行政処分について公表しました。 https://www.fsa.go.jp/news/r3/ginkou/20210922.html 行政処分 2021-09-22 16:00:00
金融 金融庁ホームページ 「サステナブルファイナンス有識者会議」(第9回)議事次第を公表しました。 https://www.fsa.go.jp/singi/sustainable_finance/siryou/202100922.html 有識者会議 2021-09-22 15:45:00
ニュース BBC News - Home Gas crisis: Two energy firms go bust amid warning more to come https://www.bbc.co.uk/news/business-58652083?at_medium=RSS&at_campaign=KARANGA thousands 2021-09-22 15:13:28
ニュース BBC News - Home US lifting ban on imports of British lamb, says Boris Johnson https://www.bbc.co.uk/news/uk-politics-58654045?at_medium=RSS&at_campaign=KARANGA trade 2021-09-22 15:40:38
ニュース BBC News - Home President Biden pledges 500m more vaccine doses to developing world https://www.bbc.co.uk/news/world-us-canada-58654350?at_medium=RSS&at_campaign=KARANGA commitment 2021-09-22 15:48:12
ニュース BBC News - Home Willie Garson: Sex and the City actors remember late co-star https://www.bbc.co.uk/news/world-us-canada-58647331?at_medium=RSS&at_campaign=KARANGA blatch 2021-09-22 15:39:27
ニュース BBC News - Home James Rodriguez: Everton midfielder's best Premier League moments https://www.bbc.co.uk/sport/av/football/58640460?at_medium=RSS&at_campaign=KARANGA James Rodriguez Everton midfielder x s best Premier League momentsWatch James Rodriguez s best moments for Everton from the season after the Columbian midfielder left the Premier League club for Qatari side Al Rayyan 2021-09-22 15:44:20
ニュース BBC News - Home Covid-19 in the UK: How many coronavirus cases are there in my area? https://www.bbc.co.uk/news/uk-51768274?at_medium=RSS&at_campaign=KARANGA cases 2021-09-22 15:44:31
ニュース BBC News - Home Travel update: What are the new rules for holidays in Europe and the US? https://www.bbc.co.uk/news/explainers-52544307?at_medium=RSS&at_campaign=KARANGA amber 2021-09-22 15:10:42
サブカルネタ ラーブロ 船堀「日高屋」汁なしラーメン http://feedproxy.google.com/~r/rablo/~3/n4scAciIJ6E/single_feed.php 中途半端 2021-09-22 16:00:51
北海道 北海道新聞 殺人未遂疑い23歳男逮捕 余市の刺傷事件 https://www.hokkaido-np.co.jp/article/592082/ 殺人未遂 2021-09-23 00:18:09
北海道 北海道新聞 車いすバスケ、パラ存続へ IPCが条件付き復帰承認 https://www.hokkaido-np.co.jp/article/592105/ 国際パラリンピック委員会 2021-09-23 00:16:00
仮想通貨 BITPRESS(ビットプレス) 日本暗号資産ビジネス協会(JCBA)、9/29に「9月度勉強会(会員向け)」開催 https://bitpress.jp/count2/3_15_12725 資産 2021-09-23 00:15:38
海外TECH reddit aespa - Savage (Ningning & Winter Teaser Images - Hallucination Quest 1) https://www.reddit.com/r/kpop/comments/pt9gt0/aespa_savage_ningning_winter_teaser_images/ aespa Savage Ningning amp Winter Teaser Images Hallucination Quest submitted by u CronoDroid to r kpop link comments 2021-09-22 15:06:05

コメント

このブログの人気の投稿

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