投稿時間:2021-09-30 03:36:23 RSSフィード2021-09-30 03:00 分まとめ(43件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Machine Learning Blog Deploy multiple machine learning models for inference on AWS Lambda and Amazon EFS https://aws.amazon.com/blogs/machine-learning/deploy-multiple-machine-learning-models-for-inference-on-aws-lambda-and-amazon-efs/ Deploy multiple machine learning models for inference on AWS Lambda and Amazon EFSYou can deploy machine learning ML models for real time inference with large libraries or pre trained models Common use cases include sentiment analysis image classification and search applications These ML jobs typically vary in duration and require instant scaling to meet peak demand You want to process latency sensitive inference requests and pay only for what you … 2021-09-29 17:23:31
AWS AWS Networking and Content Delivery Complying with city-level embargos using Amazon CloudFront https://aws.amazon.com/blogs/networking-and-content-delivery/complying-with-city-level-embargos-using-amazon-cloudfront/ Complying with city level embargos using Amazon CloudFrontIntroduction You may run into occasions where due to sanctions from governmental organizations like OFAC Office of Foreign Assets Control you need to implement granular city level embargos for your websites This blog will walk you through an approach to achieving this using Amazon CloudFront geolocation headers and Amazon CloudFront Functions Note that geographical restrictions at … 2021-09-29 17:12:37
AWS AWS Startups Blog Catching Up with the Winners of the 2020 AWS University Startup Competition https://aws.amazon.com/blogs/startups/catching-up-with-the-winners-of-last-years-aws-university-startup-competition/ Catching Up with the Winners of the AWS University Startup CompetitionLast year over startups applied from different U S universities Applications were reviewed by representatives from the AWS Startup Business Development team who then selected teams to compete in the last round Each startup was paired with a subject matter expert from AWS to help them polish their pitches before their final presentations Winners received up to in cash up to in AWS credits as well as intros to AWS partners like Techstars and Dorm Room Fund 2021-09-29 17:56:32
AWS AWS Back to Basics: Building an Efficient Data Lake https://www.youtube.com/watch?v=tDhkE8JHzm4 Back to Basics Building an Efficient Data LakeThe amount of data generated by IoT smart devices cloud applications and social is growing exponentially You need ways to easily and cost effectively analyze all of this data with minimal time to insight regardless of the data source Join Orit as she dives deep into the basics of data lake and lake house patterns Additional Resources What is a Data Lake   loc Lake house architecture blogpost  Amazon Kinesis Data Firehose AWS Glue Amazon Athena Amazon QuickSight Amazon Redshift Check out more resources for architecting in the AWS cloud AWS AmazonWebServices CloudComputing BackToBasics 2021-09-29 17:40:09
AWS AWS CEPSA: Large-scale Predictive Maintenance with Amazon Lookout for Equipment https://www.youtube.com/watch?v=3gfJhL5jcww CEPSA Large scale Predictive Maintenance with Amazon Lookout for EquipmentCEPSA is a global energy company that uses Amazon Lookout for Equipment to perform large scale predictive maintenance across their industrial sites With this cloud based technology CEPSA can detect and predict anomalies quickly in rotating equipment such as pumps or compressors reducing false alerts and avoiding expensive downtime by taking action before machine failures occur Check out more resources for architecting in the AWS​​​cloud AWS AmazonWebServices CloudComputing ThisIsMyModel Cloud AWSCloud CEPSA 2021-09-29 17:36:12
AWS AWS - Webinar Channel Automated Mainframe CI/CD Pipelines with AWS Developer Tools and Micro Focus - AWS Virtual Workshop https://www.youtube.com/watch?v=pLhxMetZ0-M Automated Mainframe CI CD Pipelines with AWS Developer Tools and Micro Focus AWS Virtual WorkshopAWS Developer Tools facilitate the acceleration of development cycles through CI CD implementation Join this workshop for hands on experience in using AWS Developer Tools for deploying an automated CI CD Pipeline as you modernize your mainframe workloads using Micro Focus Learning objectives Learn how to deploy an automated CI CD Pipeline using Micro Focus 2021-09-29 17:21:26
Google Official Google Blog How 5 cities plan to use Tree Canopy to fight climate change http://feedproxy.google.com/~r/blogspot/MKuf/~3/z851boGIRjA/ How cities plan to use Tree Canopy to fight climate changePlanting trees in cities helps provide shade lower temperatures and contribute to cleaner air ーall of which are huge benefits when it comes to adapting to the effects of climate change That s why we re expanding our Environmental Insights Explorer Tree Canopy insights to more than cities around the world next year helping local governments fight climate change We chatted with city officials in Los Angeles Louisville Chicago Austin and Miami to learn more about how they plan to use Tree Canopy insights to build thriving sustainable cities in and beyond Los AngelesTree canopy coverage in Los AngelesLos Angeles was the first city to pilot Tree Canopy Insights Since then it s become an essential part of the city s goal to increase tree canopy coverage by by in areas of the city with the highest need The city is working to plant trees this year and Tree Canopy Insights helps them prioritize which neighborhoods need tree shade the most Rachel Malarich Los Angeles City Forest Officer and her team use Tree Canopy Insights alongside their inventory system to look at canopy acreage projections current canopy cover and temperatures The land use types within the tool allows them to consider the type of outreach needed and opportunities that exist in a given neighborhood Most importantly it helps Rachel and her team know which program initiatives are working and which aren t “Tree Canopy Insights ability to give us timely feedback allows me to have data to make arguments for changes to the City s policies and procedures as well as potentially see the impact of different outreach activities going forward Rachel Malarich Los Angeles City Forest OfficerLouisvilleTree canopy coverage in LouisvilleSimilar to other cities Louisville officials found that monitoring tree coverage on their own was hugely expensive and time intensive Sometimes it took years to get the accurate up to date data needed to make decisions  With Tree Canopy Insights they ve been able to glean actionable insights about tree cover faster In just a few weeks they ve pinpointed that the west side of town was losing tree shade at an unprecedented rate and jump started a plan to plant more trees in the area  “Planting trees is one of the simplest ways we can reduce the impacts and slow the progress of climate change on our city With support from Google s Tree Canopy Insights Louisville can enhance its ongoing surveillance of hot spots and heat islands and understand the impact of land use and development patterns on tree canopy coverage “ Louisville Mayor Greg FischerAustinTree canopy coverage in AustinAustin s summers are hot with the heat regularly reaching over degrees Using Tree Canopy Insights Marc Coudert an environmental program manager for the city noticed a troubling trend ambient temperatures were higher in the eastern part of the city known as the Eastern Crescent With these insights Marc and the City s forestry team developed Austin s Community Tree Priority Map and doubled down on planting trees in neighborhoods in the Eastern Crescent to make sure there was equitable tree canopy coverage across the city  “At the city of Austin we re committed to making data backed decisions that bring equity to all of our communities Google s Tree Canopy Insights empowers us to do exactly that Austin Mayor Steve AdlerChicagoTree canopy coverage in ChicagoChicago s Department of Public Health understands that planting trees is an essential part of promoting health and racial equity After all a lack of trees can be associated with chronic diseases like asthma heart disease and mental health conditions With Tree Canopy Insights the department discovered that their hottest neighborhoods are often also the most disadvantaged ーmaking these communities extremely vulnerable With the use of this tool the City of Chicago is committed to focusing their tree planting efforts specifically on these high risk areas   Trees not only provide our city with shade green spaces and beauty but they are also precious resources that produce clean air ーmaking them key to shaping our sustainable future Through this partnership with Google our sustainability and public health teams will have access to real time insights on our tree coverage that will inform how we develop and execute our equitable approach to building a better Chicago landscape I look forward to seeing how this technology uses our city s natural resources to benefit all of our residents   Chicago Mayor Lori E Lightfoot MiamiTree canopy coverage in MiamiMiami gets over inches of rain per year leading to potentially devastating effects from flooding and infrastructure damage To address this the city recently launched their Stormwater Master Plan The multi year initiative has already resulted in over trees planted translating to an additional gallons of water absorption capacity per day Moving forward the city plans to use Tree Canopy Insights to evolve and improve this plan “Google s Tree Canopy Insights is going to help us build on the progress of our Stormwater Master Plan in smarter more effective ways We believe that every city needs to be a “tech city and leveraging Google s AI capabilities to improve every Miamians quality of life is exactly what I mean by that Miami Mayor Francis SuarezIf you re part of a local government and think Tree Canopy Insights could help your community please get in touch with our team by filling out this form 2021-09-29 18:00:00
Google Official Google Blog How AI is making information more useful http://feedproxy.google.com/~r/blogspot/MKuf/~3/us4oHYhb46U/ How AI is making information more usefulToday there s more information accessible at people s fingertips than at any point in human history And advances in artificial intelligence will radically transform the way we use that information with the ability to uncover new insights that can help us both in our daily lives and in the ways we are able to tackle complex global challenges At our Search On livestream event today we shared how we re bringing the latest in AI to Google s products giving people new ways to search and explore information in more natural and intuitive ways Making multimodal search possible with MUMEarlier this year at Google I O we announced we ve reached a critical milestone for understanding information with Multitask Unified Model or MUM for short We ve been experimenting with using MUM s capabilities to make our products more helpful and enable entirely new ways to search Today we re sharing an early look at what will be possible with MUM  In the coming months we ll introduce a new way to search visually with the ability to ask questions about what you see Here are a couple of examples of what will be possible with MUM With this new capability you can tap on the Lens icon when you re looking at a picture of a shirt and ask Google to find you the same pattern ーbut on another article of clothing like socks This helps when you re looking for something that might be difficult to describe accurately with words alone You could type “white floral Victorian socks but you might not find the exact pattern you re looking for By combining images and text into a single query we re making it easier to search visually and express your questions in more natural ways Some questions are even trickier Your bike has a broken thingamajig and you need some guidance on how to fix it Instead of poring over catalogs of parts and then looking for a tutorial the point and ask mode of searching will make it easier to find the exact moment in a video that can help Helping you explore with a redesigned Search pageWe re also announcing how we re applying AI advances like MUM to redesign Google Search These new features are the latest steps we re taking to make searching more natural and intuitive First we re making it easier to explore and understand new topics with “Things to know Let s say you want to decorate your apartment and you re interested in learning more about creating acrylic paintings If you search for “acrylic painting Google understands how people typically explore this topic and shows the aspects people are likely to look at first For example we can identify more than topics related to acrylic painting and help you find the right path to take We ll be launching this feature in the coming months In the future MUM will unlock deeper insights you might not have known to search for ーlike “how to make acrylic paintings with household items ーand connect you with content on the web that you wouldn t have otherwise found Second to help you further explore ideas we re making it easy to zoom in and out of a topic with new features to refine and broaden searches  In this case you can learn more about specific techniques like puddle pouring or art classes you can take You can also broaden your search to see other related topics like other painting methods and famous painters These features will launch in the coming months Third we re making it easier to find visual inspiration with a newly designed browsable results page If puddle pouring caught your eye just search for “pour painting ideas to see a visually rich page full of ideas from across the web with articles images videos and more that you can easily scroll through  This new visual results page is designed for searches that are looking for inspiration like “Halloween decorating ideas or “indoor vertical garden ideas and you can try it today Get more from videosWe already use advanced AI systems to identify key moments in videos like the winning shot in a basketball game or steps in a recipe Today we re taking this a step further introducing a new experience that identifies related topics in a video with links to easily dig deeper and learn more  Video format not supportedUsing MUM we can even show related topics that aren t explicitly mentioned in the video based on our advanced understanding of information in the video In this example while the video doesn t say the words “macaroni penguin s life story our systems understand that topics contained in the video relate to this topic like how macaroni penguins find their family members and navigate predators The first version of this feature will roll out in the coming weeks and we ll add more visual enhancements in the coming months Across all these MUM experiences we look forward to helping people discover more web pages videos images and ideas that they may not have come across or otherwise searched for  A more helpful GoogleThe updates we re announcing today don t end with MUM though We re also making it easier to shop from the widest range of merchants big and small no matter what you re looking for And we re helping people better evaluate the credibility of information they find online Plus for the moments that matter most we re finding new ways to help people get access to information and insights  All this work not only helps people around the world but creators publishers and businesses as well  Every day we send visitors to well over million different websites and every month Google connects people with more than million businesses that don t have websites by enabling phone calls driving directions and local foot traffic As we continue to build more useful products and push the boundaries of what it means to search we look forward to helping people find the answers they re looking for and inspiring more questions along the way 2021-09-29 17:45:00
Google Official Google Blog Helpful Search tools for evaluating information online http://feedproxy.google.com/~r/blogspot/MKuf/~3/6VJwwlNpIB8/ Helpful Search tools for evaluating information onlineWhether you re looking for facts about the COVID vaccine or information on how to apply for a loan having access to relevant credible information is crucial People turn to Google for trustworthy high quality results especially when it matters most   That s why we design our ranking systems to prioritize the most useful highest quality content and provide direct access to reliable information for important topics We re also looking into new ways to give you more context about the information you find online and introducing more information literacy features based on research and best practices from experts  More insights from About This ResultEarlier this year we launched the About This Result feature which provides details about a website before you visit it including its description when it was first indexed and whether your connection to the site is secure In the coming weeks we re expanding these panels to help you learn more about the sources and topics you find on Search  Video format not supportedWe re bringing new and important insights to About This Result When you tap the three dots on any search result you ll be able to learn more about the page You can  See more information about the source In addition to seeing a source description from Wikipedia you ll also be able to read what a site says about itself in its own words when that information is available Find what others on the web have said about a site Reading what others on the web have written about a site news reviews and other helpful background context can help you better evaluate sources Learn more about the topic In the “About the topic section you can find information such as top news coverage or results about the same topic from other sources About This Result panel shows the new more about this page link About This Result panel shows the new About the source section About This Result panel shows the new Web results about the source section About This Result panel shows new About the topic section People don t just come to Google looking for quick facts They often really want to explore the information that s out there and learn about where it s coming from ーespecially in situations where there s a source they may not be familiar with We want to make it easier to evaluate information with this update to About This Result which will be rolling out in the coming weeks in English in the United States And we re working to bring About This Result to more countries around the world  Empowering you with contextThere are a range of other Google tools that help people evaluate the credibility of information online For instance we make it easy to spot fact checks published by independent authoritative sources on the web We highlight relevant fact checks on results in Search News and Google Images These fact check features have received billions of impressions in Search this year alone One of the most important pieces of context we can provide is letting you know when helpful or relevant information isn t available on the web just yet This could be true in a rapidly evolving event  where interest in a topic can often travel faster than the facts Or when relevant information simply doesn t exist for your search In these moments we alert you with a notice recommending that you check back later or try another search  With each of these tools our goal is to offer simple useful ways for you to evaluate and make sense of the information you find online We ll continue to look for new ways to improve and add to these features and make sure they re easy to find and use 2021-09-29 17:35:00
Google Official Google Blog New ways to find shopping inspiration on Google http://feedproxy.google.com/~r/blogspot/MKuf/~3/euLIBT774vs/ New ways to find shopping inspiration on GoogleShopping online is as much about inspiration and discovery as it is about the final purchase People are shopping across Google more than a billion times a day and we have been working to make those experiences even more helpful by expanding your options We re here to help you find new ideas discover unique products or get the best value from the widest possible range of merchants ーfrom large retailers marketplaces and well known brands to local stores and new direct to consumer companies  We ve made a number of changes over the last couple of years to improve your shopping experience including giving you more choice when you shop on Google For example we ve made it free for merchants to list on Google and made it easy for sellers on Shopify and other digital platforms to start selling on Google so their products and inventory are discoverable for shoppers And today we re adding new tools to make it easier for shoppers to browse for inspiration find new products and brands and ultimately find what they re looking for in a more visual way  Shop in the moment with Google Lens We know that inspiration can strike at any time Whether it s an image that you see online a photo you saved on your phone or something in the real world that catches your eye Google Lens makes the products you see instantly shoppable  Starting soon iOS users will see a new button in the Google app to make all the images on a page searchable through Google Lens Now finding this lamp or that shirt and ones like it is just a tap away We re also bringing Lens to Chrome on your desktop Soon you will be able to select images video and text content on a website with Lens to quickly see search results in the same tab ーwithout leaving the page you re on Shop in the moment with Lens in the Google app for iOSWindow shop right from Search Starting today we re making it easier to browse for clothing shoes and accessories on mobile right from your Search results For example when you search for “cropped jackets we ll show you a visual feed of jackets in various colors and styles alongside other helpful information like local shops style guides and videos From there you can easily filter your search by style department brand and more and when you find something you like you can check out ratings reviews and even compare prices to get the best deal  This new experience is powered by Google s Shopping Graph a comprehensive real time dataset of products inventory and merchants with more than billion listings This not only helps us connect shoppers with the right products for them it also helps millions of merchants and brands get discovered on Google every day Browse and explore options for cropped jackets on mobile right from SearchSearch in store inventory from homeShoppers are increasingly starting their in person shopping experience online Before heading out the door you can find local stores that carry the products you want right from Search And starting today when you are looking for products like “kids bike helmet or even a specific brand you can select the “in stock filter to see only the nearby stores that have it on their shelves You can now use the “in stock filter to see only the nearby stores with a specific item on their shelves Showing in store availability is especially valuable for small businesses helping them attract new local customers For example a mother daughter duo in Greenville South Carolina discovered local toy store Hollipops Fine Toys and Gifts after searching for “squishmallows near them Check out their story and find out what a squishmallow is Throughout the entire process ーfrom the first spark of an idea to the final purchase ーGoogle is helping to breathe new life into shopping experiences 2021-09-29 17:29:00
python Pythonタグが付けられた新着投稿 - Qiita タスクスケジューラでpythonスクリプトを起動する https://qiita.com/nuyuyuri/items/809af209690f41a71de6 タスクスケジューラでpythonスクリプトを起動するwindowsタスクスケジューラでpythonファイルを定期実行させたい場合、pythonexeを指定すると起動されないことがあるようなのでCWindowspyexeにpyファイルを渡すといいよっていう小ネタです。 2021-09-30 02:40:58
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) フォルダ内にあるpdfファイルのテキストを抽出 https://teratail.com/questions/361980?rss=all フォルダ内にあるpdfファイルのテキストを抽出Pythonでフォルダ内にあるpdfファイルのテキストを抽出したいのですが、以下のコードでは、どのpdfファイルのテキストデータも取ってくることができません。 2021-09-30 02:50:47
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 【GO】golang-migrateインストール後も、migrate: not foundとなる件について https://teratail.com/questions/361979?rss=all go配下にインストールされていることは確認済みで、実行ディレクトリ配下のgomodにもgolangmigrationの記載があります。 2021-09-30 02:38:27
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 余暇のレクリエーション活動 https://teratail.com/questions/361978?rss=all 週末 2021-09-30 02:27:10
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) aws rdsのメモリの使用率または空きメモリ率は、拡張モニタリングで拾えないなら計算結果を拾えないか? https://teratail.com/questions/361977?rss=all awsrdsのメモリの使用率または空きメモリ率は、拡張モニタリングで拾えないなら計算結果を拾えないか公式サイトrdsのメモリの使用率または空きメモリ率について言及がありませんが、参考urlのようにメモリの使用率の計算をしてメトリクスとしてコンソール上でメトリクスとしてフィルターを使って受け取ることはできないでしょうか何か参考urlなどございましたらご共有願いたいです。 2021-09-30 02:18:34
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) GAS docs カーソル移動orテキスト挿入 https://teratail.com/questions/361976?rss=all パラグラフに挿入するものは見つかるのですが、テキストの何文字目に挿入するとかいう情報は見つかりません。 2021-09-30 02:09:43
AWS AWSタグが付けられた新着投稿 - Qiita Cloud9で利用しているEC2の空き容量不足を解決する https://qiita.com/USI/items/895f236c7b4b070c7fbe 環境の移動とAmazonEBSボリュームのサイズ変更または暗号化AWSCloud手順を要約するとCloud環境内でシェルファイルを作成コードは公式が準備済み引数に変更後のサイズ単位はGiBを指定しシェル実行環境にアタッチされたEBSボリュームのサイズが変更されたAWSコンソールのECサービスページのEBSの情報からも変更を確認することができました。 2021-09-30 02:39:00
海外TECH Ars Technica Expanded robocall blocking has begun—but there are still “too many loopholes” https://arstechnica.com/?p=1799376 limit 2021-09-29 17:43:45
海外TECH Ars Technica Malaria seems to be evolving to hide from rapid tests https://arstechnica.com/?p=1799378 means 2021-09-29 17:09:43
海外TECH Ars Technica Google Maps tracks global warming with new “Fire” layer, tree canopy tool https://arstechnica.com/?p=1799341 transit 2021-09-29 17:00:40
海外TECH DEV Community 7 Amazing Tips While Redesigning Your Website https://dev.to/5gqjwj/7-amazing-tips-while-redesigning-your-website-2kpk Amazing Tips While Redesigning Your WebsiteRedesigning a website may be a stressful time consuming and complex task It s natural if the amount of information you need to know in order to build a new fresh design repulses you However if you take the time to educate yourself and gain hands on experience you can avoid making mistakes and achieve your goals Here are seven golden pointers for redesigning your website to get you started When you consider rebuilding your website you most likely imagine something huge and powerful It s the ideal opportunity to give your website a bold and dramatic new appearance However the world is not what you might assume  READ More Amazing Tips While Redesigning Your Website 2021-09-29 17:42:12
海外TECH DEV Community Print images to console using Python https://dev.to/pranavbaburaj/print-images-to-console-using-python-23k6 Print images to console using PythonHello everyone hope you all are doing good I would like to show you how to print images onto the console using Python So let s get started Before getting started make sure to have pip and python installed in your system Getting startedInstall required packagespip install pillow colrNow you have setup the development environment Let s get into the codeFirst import the necessary libraries The script uses the pillow library for Image processingfrom PIL import Imagefrom colr import Colr Ask the user for image filenameimage path input Image In this example I am prompting the user to enter the filename for the image and collect it in the image path variable Next open the imageimage Image open image path Now that we have opened the image we need to read the image and get the colors For that usepixel values image getdata The image getdata function returns a list of RGB or RGBA values Now lets print the imagewidth height image sizefor index character in enumerate pixel values if not isinstance character tuple list continue r g b character if index width print print Colr rgb r g b u end Wait let me explain width height image sizeThis image size property is a tuple containing the width and the height of the image for index character in enumerate pixel values if not isinstance character tuple list continueWe loop through the list of rgb colors and make sure that all the values are either in the form of tuple or list r g b character This line unpacks the tuple into variables for red r green g and blue b print Colr rgb r g b u end This line prints a pixel onto the screen I have created a python library for printing images onto the console Check out the GitHub repository pranavbaburaj img A python library to display images in the terminal ImgDisplay Images in your terminal with python InstallationThe package can be installed via pippip install terminal imgQuick StartThe library is really simple to get started with Here s is an example of how you display an imagefrom image import DrawImageimage DrawImage image png You can also use a url if you dont have the file locally storedimage DrawImage from url url Methodsimage DrawImagefilename The name of the file containing the imagesize Optional Tuple The size of the image to be displayed Default draw Whether to draw on creating an instance or wait for the user to call the functionimage DrawImage from urlurl The url of the imagesize Optional Tuple The size of the image to be displayed Default draw Whether to draw on… View on GitHubPlease let me know what you thing Hope you learned something new today Thank you for reading 2021-09-29 17:40:12
海外TECH DEV Community Discuss: Open Source Contribution Pain Points and Success? https://dev.to/devteam/discuss-open-source-contribution-pain-points-and-success-297n Discuss Open Source Contribution Pain Points and Success Hey I am Christina a Developer Advocate at Forem who focuses on the open source community As I continue to work with the community in our open source project I would love to understand any pain points or successes you have had while trying to contribute to an open source project Note You do not need to name the specific project If you have tried to contribute to DEV Forem and want to give specifics that is fine Have you tried contributing to open source before Were you unsuccessful If so what prevented you from contributing Did you encounter any unusual roadblocks What could the project maintainers have done better to help you Did you feel like the documentation was hard to follow Were you successful If so what do you think helped you succeed in contributing to the project What advice would you give to someone else trying to contribute to open source Is there anything you would do differently 2021-09-29 17:17:28
海外TECH DEV Community URL Shortener with Rust, Svelte, & AWS (5/): Frontend https://dev.to/mileswatson/url-shortener-with-rust-svelte-aws-5-frontend-p0n URL Shortener with Rust Svelte amp AWS FrontendIn the last post we worked on containerizing the backend of our application so that we can deploy it with a single command In this post we will create a static front end application with Svelte Bulma and then integrate it into our Rust code Dockerfile I will be using the Yarn package manager but feel free to use npm if you prefer Cloning the TemplateFirst run the following command in the root of your repo This will create a directory called svelte which contains a template that we ll use to build a simple frontend for our API npm init svelte next svelteSelect the Skeleton project template Yes to Typescript and then No to all the other questions Inside the svelte directory run yarn install to install dependencies and then yarn dev to start a dev server By going to http localhost you should see a simple message Adding a Static AdapterBefore we can deploy the site we need to adapt it to our deployment target SvelteKit provides a number of different adapters for platforms like Cloudflare Workers Netlify and Vercel In our case however we will be using adapter static to prerender our entire site First we need to install the adapter using Yarn yarn add dev sveltejs adapter static nextNext we need to change the svelte config js file to configure the adapter Import the adapter import adapter from sveltejs adapter static then update config kit hydrate the lt div id svelte gt element in src app html target svelte prerender the pages so they can be served statically adapter adapter By running yarn build you should see that the svelte build directory is populated with an index html file among some other files folders Serving with RocketNow that we have statically built our application we can serve it with Rocket To do so simply change our launch function to the following launch fn rocket gt rocket build manage DashMap lt u String gt new mount routes shorten redirect mount if cfg debug assertions debug mode therefore serve relative to crate root FileServer from rocket fs relative svelte build else dockerized therefore serve from absolute path FileServer from app static The if cfg debug statement will become clearer later on when we update the Dockerfile Fixing TestsUnfortunately you may get an email saying that your Github Actions tests have failed If you look at the logs it should be apparent that the FileServer failed to mount because it couldn t find the provided directory To fix this we can add steps to install yarn install dependencies and then build the static site steps uses actions checkout v name Build Rust run cargo build name Install Yarn run npm install global yarn name Install Dependencies run yarn cwd svelte install name Build Svelte run yarn cwd svelte run build name Run Tests run cargo testFor the sake of completion I also added a simple test to check that the static site is being served as expected test fn static site let client Client tracked rocket expect valid rocket instance let response client get dispatch assert eq response status Status Ok Tests should now pass as expected Updating the DockerfileCurrently our Dockerfile uses two images one to build the Rust project and the second to run the executable Now we need to add a third one for building the static site RUN cargo install offline path use a node image for building the siteFROM node as staticWORKDIR svelteCOPY svelte RUN yarn install amp amp yarn build use a slim image for actually running the container FROM rust slim COPY from build usr local cargo bin aws rust api usr local bin aws rust apiCOPY from static svelte build static You should now be able to start your application using docker compose build and see your site when you go to Adding FunctionalityAlthough our site is being served statically we still don t have any functionality First we will add support for simple Bulma styling to the app html lt head gt lt head gt tags lt link rel stylesheet href css bulma min css gt We will be using SuperAgent for making API requests so let s add it to our dependency list yarn add superagentNext we will create a routes layout svelte file which will wrap around any of the routes in the directory lt div id svelte class container is fluid my gt lt nav class navbar is dark role navigation gt lt div class navbar brand gt lt div class navbar item ml is dark gt lt img src favicon png width height alt logo gt lt div gt lt h class title is navbar item gt URL Shortener lt h gt lt div gt lt nav gt lt slot gt lt div gt This will give us a simple function less navbar to go across the top of the screen Next change the index svelte file to contain the following script lt script gt import superagent from superagent let url let request null function click request superagent post api shorten url url function getUrl key return http window location host key lt script gt Finally we can bind to these variables functions by appending the following to the index svelte file lt div class box gt if request null lt div class field has addons gt lt div class control gt lt input class input type text bind value url placeholder URL gt lt div gt lt div class control gt lt button class button is info on click click gt Shorten lt button gt lt div gt lt div gt else await request lt p gt Loading lt p gt then response lt div class card gt lt header class card header gt lt p class card header title gt Done lt p gt lt header gt lt div class card content gt lt a class content href getUrl response text target blank gt getUrl response text lt a gt lt div gt lt footer class card footer gt lt button class card footer item button on click gt request null gt Back lt button gt lt button class card footer item button is info on click gt navigator clipboard writeText getUrl response text gt Copy lt button gt lt footer gt lt div gt catch lt p gt Something went wrong lt p gt await if lt div gt The bind value url is one of Svelte s special two way bindings updating the textbox will update the variable and vice versa When the user clicks the button the click function will start an asynchronous request to the API and set the request variable to the uncompleted promise This will then cause the page to show Loading until the request completes at which point the shortened URL is displayed with some buttons Final ProductIf you did everything correctly you should be able to run docker compose up build and use your site at That s all for this post If you have any issues make sure to check out the part tag of my repo In the next post we will cover the basics of EB and set up a CD pipeline for automatically deploying your program to the cloud Make sure to click the Follow button if you want to be alerted when the next part is available FootnoteIf you enjoyed reading this then consider dropping a like or following me DEVLinkedInTwitterGithubI m just starting out so the support is greatly appreciated Disclaimer I m a mostly self taught programmer and I use my blog to share things that I ve learnt on my journey to becoming a better developer Because of this I apologize in advance for any inaccuracies I might have made criticism and corrections are welcome 2021-09-29 17:04:06
海外TECH DEV Community Flowrift - Tailwind CSS UI blocks https://dev.to/sergejcodes/flowrift-tailwind-css-ui-blocks-4fdb Flowrift Tailwind CSS UI blocksIntroducing Flowrift an assistant library made of beautifully designed Tailwind CSS UI blocks All blocks are vanilla HTML and work with Tailwind CSS default configuration Go big or go small Stack blocks on top of each other to build full page layouts or selectively copy small code snippets Your imagination is the only limit All blocks are well organized inside a highly performant app Just view copy amp customize Are you Busy Missing a section in your design Lacking inspiration We got you covered Some highlights Growing LibraryResponsive PreviewCode ViewKeyboard ShortcutsRandomizerGo to the Flowrift AppMore about Flowrift 2021-09-29 17:02:18
Apple AppleInsider - Frontpage News Apple releases latest iOS, iPadOS & macOS Monterey betas to public testers https://appleinsider.com/articles/21/09/29/apple-releases-latest-ios-ipados-macos-monterey-betas-to-public-testers?utm_medium=rss Apple releases latest iOS iPadOS amp macOS Monterey betas to public testersApple has released the second version beta of iOS and iPadOS and the eighth beta of macOS Monterey to members of its public beta software testing program Credit Andrew O Hara AppleInsiderThe public beta release comes about a day after Apple issued the second developer beta versions of iOS iPadOS tvOS and watchOS on Tuesday Apple also released the eighth developer beta of its macOS Monterey software update on Tuesday Read more 2021-09-29 17:25:00
Apple AppleInsider - Frontpage News How to use iCloud to create rules that automatically sort, delete, & forward Mail https://appleinsider.com/articles/21/09/29/how-to-use-icloud-to-create-rules-that-automatically-sort-delete-forward-mail?utm_medium=rss How to use iCloud to create rules that automatically sort delete amp forward MailUse iCloud to give Apple Mail on iOS some much needed if still basic rules to automatically handle your emails Using iCloud gives Mail more powerful rulesIf you get a lot of email anything that helps you stay on top of it is a good thing So even though it s hardly very powerful you have to give a shout out to the Filter option on Apple Mail for iOS Read more 2021-09-29 17:11:56
海外TECH Engadget Google Lens is coming to Chrome on the desktop https://www.engadget.com/google-lens-chrome-desktop-174633237.html?src=rss Google Lens is coming to Chrome on the desktopYou no longer have to point your phone at your computer screen if you want to use Google Lens on your computer As part of a string of updates Google has revealed that Lens will be available for Chrome on the desktop in the quot coming months quot You just have to right click on a website choose to search with Lens and select the part of the page you want to examine After that you ll get results relating to the content you highlighted Needless to say that could be helpful if you re trying to identify an animal or a hot new jacket There are some upgrades coming to Lens on your phone An update in early will let you ask a question after snapping a photo If you need to know how to repair a part on your bike for instance you ll get results even if you don t know what that part is The Google app for iPhones meanwhile will let you search for products within images This is a not so subtle effort to boost Google Shopping You might be more likely to buy apparel or bike parts if you can identify them after all Even so the expansion could make Lens more useful as a general search tool not just for special circumstances Inspiration can strike at any time Soon you ll be able to use GoogleLens to instantly search for products within images while browsing on the Google app on iPhone And psst…Lens is coming to Chrome on desktop too SearchOnpic twitter com HTQCzsjoOーGoogle Google September MUM our advanced AI model is coming to GoogleLens early next year You ll be able to snap a photo AND ask a question which can be helpful in those moments you need to fix a broken part and have no idea what it is SearchOnpic twitter com cmedcedBーGoogle Google September 2021-09-29 17:46:33
海外TECH Engadget Google wants to streamline the tricky process of assigning addresses in rural areas https://www.engadget.com/google-address-maker-plus-codes-app-174025559.html?src=rss Google wants to streamline the tricky process of assigning addresses in rural areasThere are many places in the world that don t have an address system which can restrict the opportunities available for people who live and work in those areas Without an address you can t get mail or packages nor can you vote or sign up for bank accounts for example Emergency responders can t even find you easily if you don t have an address Google s open source Plus Codes system has been around since to help assign addresses to places matching a series of letters and numbers to a set of latitude and longitude coordinates But according to Google quot previously creating addresses for an entire town or village could take years quot The company is releasing a new tool today called Address Maker that would make mass generation of these codes easier for governments and organizations Google said that governments and non government organizations NGOs in Kenya India South African and the US are already using Address Maker quot with more partners on the way quot Anyone can enter one of these codes which look like quot PJ C quot into Google Maps and see where that place is or get directions For people who already have existing addresses that are long or complicated these could be helpful in making sure your contacts find you at the correct spot If you ve ever tried to send a package to an industrial area in a country you re not familiar with you ll probably find Plus Codes helpful too GoogleAddress Maker is a free Android app and shorted the previously years long process to a few weeks Google said Based on an animated render it appears you can outline segments on a map and add addresses for multiple structures within the area at once You can check out Google s page for more help especially if you re part of a local government or NGO 2021-09-29 17:40:25
海外TECH Engadget Google adds more information to its ‘About this result’ feature https://www.engadget.com/google-about-this-result-update-170038402.html?src=rss Google adds more information to its About this result featureAt the start of the year Google added a feature to its search engine called About This Result By tapping on the three dots icon located next to most results the tool allows you to find out more about a website before you navigate to it With the initial rollout of About This Result Google displayed information from Wikipedia and if that wasn t available it pulled what it could from one of its services The panels also included details about the website like when it was first indexed by the company and if you could expect a secure connection Today Google is making those panels more robust by adding to the diversity of information they display To start in addition to a description from Wikipedia you ll see what each website has to say about itself in its own words You will also see what others have had to say about them ーbe that through reviews or a simple news article In the “about the topic section Google will include other coverage or results from different sources As before the idea behind the About This Result feature is to save you an extra search when you want to find out more about a website you re about to visit Google also sees it as a way to help people make more informed decisions about how they use the internet and provide peace of mind if you re looking for important information related to important topics nbsp Aside from these quot Information Literacy features quot the company also announced new features coming to its results pages during its Search On event today They re called Things to Know Refine This Search Broaden This Search and Related Topics to its results to make it easier to learn more about different topics Things To Know for example will pull up the basics you ll need to understand a new subject while refining and broadening your search can help you explore related issues Google Search users in the US will see today s expansion roll out over the coming weeks and months Cherlynn Low contributed to this post 2021-09-29 17:35:08
海外TECH Engadget Google Maps will roll out wildfire tracking worldwide https://www.engadget.com/google-maps-wildfire-tracking-worldwide-170837067.html?src=rss Google Maps will roll out wildfire tracking worldwideGoogle has introduced a wildfire layer for Maps allowing users around the world to keep a close eye on multiple fires at once The tech giant says this new feature builds on the wildfire boundary map it rolled out in the US last year and it s meant to help people quot make quick informed decisions during times of emergency quot With the layer enabled users will be able to see the wildfires raging in their location ーtapping on any of them will bring up links to emergency websites helpline numbers and evacuation details provided by local government nbsp If available the tool will also show details about the fire including its containment the acres it has already burned and the time that information was last reported The wildfire layer will start its global rollout to Android devices this week and to iOS devices and PCs in October While it will display most major fires ーthe kind that necessitates evacuations ーaround the world it ll have the capability to display smaller incidents in the US thanks to data provided by the National Interagency Fire Center Google is planning to offer that level of detail in more locations starting with Australia in the coming months nbsp GoogleIn addition Google is expanding the information available through its Tree Canopy tool At the moment it can only provide data for cities in the US but it ll be able to show information for cities around the world in Google s Tree Canopy Insights combines AI capabilities with aerial data to determine the parts of a city with the greatest risk of rapidly rising temperatures It could help local governments figure out where to plant trees and where to focus any project they may have to fight climate change Los Angeles authorities for instance are already using the tool to help them increase the city s tree canopy by percent by While Google didn t say which cities are getting access to the tool by next year it said Guadalajara London Sydney and Toronto are in the list 2021-09-29 17:08:37
Cisco Cisco Blog UCS X-Series Intelligent Fabric Modules deliver simplicity and performance https://blogs.cisco.com/datacenter/ucs-x-series-intelligent-fabric-modules-deliver-simplicity-and-performance UCS X Series Intelligent Fabric Modules deliver simplicity and performanceOne of UCS biggest benefits has always been Unified Fabric That is carrying data storage and management traffic over a single wire The IFM combined with Cisco VICs deliver Unified Fabric Reducing the number of cables per server CapEx and OpEx considerations but TCO will be in a future blog while being able to deliver the right amount and type of bandwidth to the server depending on the application is the hallmark of UCS With the IFM UCS X Series ensures fast and secure delivery of packages data 2021-09-29 17:20:42
ニュース BBC News - Home Katie Price admits to Sussex car crash while drink-driving https://www.bbc.co.uk/news/uk-england-58733613?at_medium=RSS&at_campaign=KARANGA drink 2021-09-29 17:48:50
ビジネス ダイヤモンド・オンライン - 新着記事 焦る気持ちってうつるのよ - 精神科医Tomyが教える 1秒で悩みが吹き飛ぶ言葉 https://diamond.jp/articles/-/280522 焦る気持ちってうつるのよ精神科医Tomyが教える秒で悩みが吹き飛ぶ言葉人気シリーズ万部突破『精神科医Tomyが教える秒で悩みが吹き飛ぶ言葉』から、きょうのひと言勉強も仕事も、焦ってしまうといい結果が生まれにくいですよね夜、なかなか眠れないと、焦る気持ちが生まれて、余計に眠れなくなったりもします。 2021-09-30 02:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 「縁結び」や「子孫繁栄」の神様になった浦島太郎 - 最強の神様100 https://diamond.jp/articles/-/283353 「縁結び」や「子孫繁栄」の神様になった浦島太郎最強の神様「仕事運」「金運」「恋愛運」「健康運」アップ「のご利益」の組み合わせからあなたの願いが叶う神様が必ず見つかる八百万やおよろずの神様から項目にわたって紹介。 2021-09-30 02:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 【あの億万長者の原点】 ベゾス、バフェットなど 億万長者8人の意外な 「はじめての仕事」とは? - 13歳からの億万長者入門 https://diamond.jp/articles/-/282499 2021-09-30 02:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 「リーダー向きの人とそうでない人」の決定的差 - だから、この本。 https://diamond.jp/articles/-/282495 集団力学 2021-09-30 02:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 プレゼン資料、企画書が見違える! コピーライターが使っている「二者択一」文章術とは? - 短いは正義 https://diamond.jp/articles/-/282792 二者択一 2021-09-30 02:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 「失われた30年」は、なぜ起こったのか? アーキテクト人材なくして、日本の再生はない - アーキテクト思考 https://diamond.jp/articles/-/283402 2021-09-30 02:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 知らないと一生後悔する「肝臓がん」の予防法 - 40歳からの予防医学 https://diamond.jp/articles/-/283236 予防医学 2021-09-30 02:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 「経済のため」とは、誰のためか? - お金のむこうに人がいる https://diamond.jp/articles/-/283157 金利 2021-09-30 02:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 【無神経な人に傷つけられないために】こんな些細なことでOK! 繊細な心に平和と安定をもたらす超納得の簡単習慣 - とても傷つきやすい人が無神経な人に悩まされずに生きる方法 https://diamond.jp/articles/-/283158 2021-09-30 02:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 精神科医が提言!「ミスが多い人ほど、人の手を借りたほうがいい」。その理由とは? - 「しなくていいこと」を決めると、人生が一気にラクになる https://diamond.jp/articles/-/283356 思い込み 2021-09-30 02:05:00

コメント

このブログの人気の投稿

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