投稿時間:2021-06-26 03:23:10 RSSフィード2021-06-26 03:00 分まとめ(27件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Architecture Blog Audit Your Supply Chain with Amazon Managed Blockchain https://aws.amazon.com/blogs/architecture/audit-your-supply-chain-with-amazon-managed-blockchain/ Audit Your Supply Chain with Amazon Managed BlockchainFor manufacturing companies visibility into complex supply chain processes is critical to establishing resilient supply chain management Being able to trace events within a supply chain is key to verifying the origins of parts for regulatory requirements tracing parts back to suppliers if issues arise and for contacting buyers if there is a product part recall … 2021-06-25 17:35:26
AWS AWS Machine Learning Blog Reduce computer vision inference latency using gRPC with TensorFlow serving on Amazon SageMaker https://aws.amazon.com/blogs/machine-learning/reduce-compuer-vision-inference-latency-using-grpc-with-tensorflow-serving-on-amazon-sagemaker/ Reduce computer vision inference latency using gRPC with TensorFlow serving on Amazon SageMakerAWS customers are increasingly using computer vision CV models for improved efficiency and an enhanced user experience For example a live broadcast of sports can be processed in real time to detect specific events automatically and provide additional insights to viewers at low latency Inventory inspection at large warehouses capture and process millions of images … 2021-06-25 17:37:39
AWS AWS - Webinar Channel Final Implementation and Architecture of Your Application with Your Data - AWS Virtual Workshop https://www.youtube.com/watch?v=moJ3dIKYjbA Final Implementation and Architecture of Your Application with Your Data AWS Virtual WorkshopIn this last session we ll experience the full implementation of the GraphQL Real time Race application at scale We ll demonstrate how to easily and effortlessly make any supported data source in AppSync real time with connection management handled automatically between the client and the service We ll have incorporated plenty of data to drive the real time updates and take you through setting up Amazon Kinesis to handle the ingestion of data of live race results Don t miss the this last lap where you and your application drive through the finish line Learning Objectives Learn how to ensure your app can scale with demand Learn how to set up Amazon Kinesis to ingest data for your app Learn how to scale your app as data ingestion scales To learn more please visit 2021-06-25 17:41:52
js JavaScriptタグが付けられた新着投稿 - Qiita JavaScriptでランドスケープモードを検知する https://qiita.com/golira5151/items/b2c0eff52f6f2b55c272 ※wikipediaより引用JavaScriptでランドスケープモードを検知する方法windowmatchMediaを使うことで、現在のdocumentがランドスケープモードなのか、ポートレートモードなのかを判定することができますwindowmatchMediaは戻り値として、MediaQueryListオブジェクトを返します。 2021-06-26 02:40:47
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) flask-wtformのHiddenFieldのvalueをjQueryで動的にセットしてPOSTすることが出来ない https://teratail.com/questions/346162?rss=all flaskwtformのHiddenFieldのvalueをjQueryで動的にセットしてPOSTすることが出来ない困っていることflaskwtformを利用してフォームの作成し、button要素がクリックされた際にHiddenFieldへ値を設定し、POSTするといった処理を実装したいです。 2021-06-26 02:52:38
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) webpackでswiperが動かないです。 https://teratail.com/questions/346161?rss=all 現在試行錯誤しながら作成した下記に記述している環境下でコーディングを行っているのですが、swiperがどうしても動きません。 2021-06-26 02:16:45
海外TECH DEV Community 5 Async/Await Design Patterns for Cleaner Async Logic https://dev.to/masteringjs/5-async-await-design-patterns-for-cleaner-async-logic-1fkh Async Await Design Patterns for Cleaner Async LogicAt Mastering JS we love async await You might even say we wrote the book on async await Here s design patterns we use regularly Async forEach Do not use an async callback with forEach In general the way to simulate forEach with async functions is to use await Promise all arr map callback const values Do this await Promise all values map async v gt await new Promise resolve gt setTimeout resolve v console log Slept for v ms Not this values forEach async v gt await new Promise resolve gt setTimeout resolve v console log Slept for v ms return awaitAsync await works with try catch almost There s a gotcha If you await on a promise that rejects JavaScript throws an error that you can catch But if you return a promise that rejects that ends up as an unhandled promise rejection const p Promise reject new Error Oops try await p catch err console log This runs try return p catch err console log This does NOT run There are a few workarounds for this quirk but one approach we like is using return await try return await p catch err console log This runs Delayed awaitSometimes you want to call an async function do something else and then await on the async function Promises are just variables in JavaScript so you can call an async function get the promise response and await on it later const ee new EventEmitter Execute the function but don t await so we can setTimeout const p waitForEvent ee test setTimeout gt ee emit test Wait until ee emits a test eventawait p async function waitForEvent ee name await new Promise resolve gt ee once name resolve await with Promise ChainingWe recommend using Axios over fetch but in some cases you may need to use fetch And fetch famously requires you to asynchronously parse the response body Here s how you can make a request with fetch and parse the response body with await const res await fetch users then res gt res json Another quirk of fetch is that it doesn t throw an error if the server responds with an error code like Here s how you can make fetch throw a catchable error if the response code isn t in the or range const res await fetch users then res gt if res status lt res status gt throw new Error Server responded with status code res status return res then res gt res json Waiting for EventsEvent emitters are a common pattern in JavaScript but they don t work well with async await because they re not promises Here s how you can await on an event from a Node js event emitter const ee new EventEmitter setTimeout gt ee emit test Wait until ee emits a test eventawait new Promise resolve gt ee once test resolve 2021-06-25 17:26:41
海外TECH DEV Community Introduction to Security, Identity, and Compliance with AWS https://dev.to/aws-builders/introduction-to-security-identity-and-compliance-with-aws-3ike Introduction to Security Identity and Compliance with AWSWhile companies increasingly look to cloud computing as a means to expand modernize and stay competitive so too do those companies expose themselves to new risks In fact Ermetic and IDC report that of CISOs claim their company has had a cloud data breach in the past months Nearly half of those had experienced or more breaches The benefits of cloud computing are numerous but organizations cannot make the switch to this modern platform without understanding the risks involved and more importantly how to protect themselves their staff and their customers Amazon Web Services AWS is a cloud service provider that s on almost every company s radar today But many AWS customers today wonder what the best approach to security is and how to get there companies often struggle to understand how they can protect and secure their data their customers and their very existence before moving to or while expanding on AWS In this blog post we will discuss some of the most important AWS security services that protect your data accounts and workloads from unauthorized access My Background Cloud Engineer AWS Community Builder AWS Educate Cloud Ambassador x AWS Certified x OCI Certified x Azure Certified The Introduction to AWS is a Series containing different articles that provide a basic introduction to different aws topics categories Each article covers the detailed guide on how to work with particular topic category This series aims at providing A Getting Started Guide on Different aws topics categories Security Identity and ComplianceUsing AWS you will gain the control and confidence you need to securely run your business with the most flexible and secure cloud computing environment available today As an AWS customer you will benefit from AWS data centers and a network architected to protect your information identities applications and devices With AWS you can improve your ability to meet core security and compliance requirements such as data locality protection and confidentiality with our comprehensive services and features AWS allows you to automate manual security tasks so you can shift your focus to scaling and innovating your business Plus you pay only for the services that you use All customers benefit from AWS being the only commercial cloud that has had its service offerings and associated supply chain vetted and accepted as secure enough for top secret workloads AWS Security HubAWS Security Hub gives you a comprehensive view of your high priority security alerts and compliance status across AWS accounts There are a range of powerful security tools at your disposal from firewalls and endpoint protection to vulnerability and compliance scanners But oftentimes this leaves your team switching back and forth between these tools to deal with hundreds and sometimes thousands of security alerts every day With Security Hub you now have a single place that aggregates organizes and prioritizes your security alerts or findings from multiple AWS services such as Amazon GuardDuty Amazon Inspector and Amazon Macie as well as from AWS Partner solutions Your findings are visually summarized on integrated dashboards with actionable graphs and tables You can also continuously monitor your environment using automated compliance checks based on the AWS best practices and industry standards your organization follows Get started with AWS Security Hub just a few clicks in the Management Console and once enabled Security Hub will begin aggregating and prioritizing findings Amazon Cloud DirectoryAmazon Cloud Directory enables you to build flexible cloud native directories for organizing hierarchies of data along multiple dimensions With Cloud Directory you can create directories for a variety of use cases such as organizational charts course catalogs and device registries While traditional directory solutions such as Active Directory Lightweight Directory Services AD LDS and other LDAP based directories limit you to a single hierarchy Cloud Directory offers you the flexibility to create directories with hierarchies that span multiple dimensions For example you can create an organizational chart that can be navigated through separate hierarchies for reporting structure location and cost center Amazon Cloud Directory automatically scales to hundreds of millions of objects and provides an extensible schema that can be shared with multiple applications As a fully managed service Cloud Directory eliminates time consuming and expensive administrative tasks such as scaling infrastructure and managing servers You simply define the schema create a directory and then populate your directory by making calls to the Cloud Directory API AWS Identity and Access ManagementAWS Identity and Access Management IAM enables you to securely control access to AWS services and resources for your users Using IAM you can create and manage AWS users and groups and use permissions to allow and deny their access to AWS resources IAM allows you to do the following Manage IAM users and their access You can create users in IAM assign them individual security credentials access keys passwords and multi factor authentication devices or request temporary security credentials to provide users access to AWS services and resources You can manage permissions in order to control which operations a user can perform Manage IAM roles and their permissions You can create roles in IAM and manage permissions to control which operations can be performed by the entity or AWS service that assumes the role You can also define which entity is allowed to assume the role Manage federated users and their permissions You can enable identity federation to allow existing identities users groups and roles in your enterprise to access the AWS Management Console call AWS APIs and access resources without the need to create an IAM user for each identity Amazon GuardDutyAmazon GuardDuty is a threat detection service that continuously monitors for malicious or unauthorized behavior to help you protect your AWS accounts and workloads It monitors for activity such as unusual API calls or potentially unauthorized deployments that indicate a possible account compromise GuardDuty also detects potentially compromised instances or reconnaissance by attackers Enabled with a few clicks in the AWS Management Console Amazon GuardDuty can immediately begin analyzing billions of events across your AWS accounts for signs of risk GuardDuty identifies suspected attackers through integrated threat intelligence feeds and uses machine learning to detect anomalies in account and workload activity When a potential threat is detected the service delivers a detailed security alert to the GuardDuty console and Amazon CloudWatch Events This makes alerts actionable and easy to integrate into existing event management and workflow systems Amazon GuardDuty is cost effective and easy It does not require you to deploy and maintain software or security infrastructure meaning it can be enabled quickly with no risk of negatively impacting existing application workloads There are no upfront costs with GuardDuty no software to deploy and no threat intelligence feeds required Customers pay for the events analyzed by GuardDuty and there is a day free trial available for every new account to the service Amazon InspectorAmazon Inspector is an automated security assessment service that helps improve the security and compliance of applications deployed on AWS Amazon Inspector automatically assesses applications for exposure vulnerabilities and deviations from best practices After performing an assessment Amazon Inspector produces a detailed list of security findings prioritized by level of severity These findings can be reviewed directly or as part of detailed assessment reports which are available via the Amazon Inspector console or API Amazon Inspector security assessments help you check for unintended network accessibility of your Amazon EC instances and for vulnerabilities on those EC instances Amazon Inspector assessments are offered to you as pre defined rules packages mapped to common security best practices and vulnerability definitions Examples of built in rules include checking for access to your EC instances from the internet remote root login being enabled or vulnerable software versions installed These rules are regularly updated by AWS security researchers Amazon MacieAmazon Macie is a security service that uses machine learning to automatically discover classify and protect sensitive data in AWS Amazon Macie recognizes sensitive data such as personally identifiable information PII or intellectual property and provides you with dashboards and alerts that give visibility into how this data is being accessed or moved The fully managed service continuously monitors data access activity for anomalies and generates detailed alerts when it detects risk of unauthorized access or inadvertent data leaks Today Amazon Macie is available to protect data stored in Amazon S with support for additional AWS data stores coming later this year AWS ArtifactAWS Artifact is your go to central resource for compliance related information that matters to you It provides on demand access to AWS security and compliance reports and select online agreements Reports available in AWS Artifact include our Service Organization Control SOC reports Payment Card Industry PCI reports and certifications from accreditation bodies across geographies and compliance verticals that validate the implementation and operating effectiveness of AWS security controls Agreements available in AWS Artifact include the Business Associate Addendum BAA and the Nondisclosure Agreement NDA AWS Certificate ManagerAWS Certificate Manager is a service that lets you easily provision manage and deploy Secure Sockets Layer Transport Layer Security SSL TLS certificates for use with AWS services and your internal connected resources SSL TLS certificates are used to secure network communications and establish the identity of websites over the Internet as well as resources on private networks AWS Certificate Manager removes the time consuming manual process of purchasing uploading and renewing SSL TLS certificates With AWS Certificate Manager you can quickly request a certificate deploy it on ACM integrated AWS resources such as Elastic Load Balancing Amazon CloudFront distributions and APIs on API Gateway and let AWS Certificate Manager handle certificate renewals It also enables you to create private certificates for your internal resources and manage the certificate lifecycle centrally Public and private certificates provisioned through AWS Certificate Manager for use with ACM integrated services are free You pay only for the AWS resources you create to run your application With AWS Certificate Manager Private Certificate Authority you pay monthly for the operation of the private CA and for the private certificates you issue AWS CloudHSMThe AWS CloudHSM is a cloud based hardware security module HSM that enables you to easily generate and use your own encryption keys on the AWS Cloud With CloudHSM you can manage your own encryption keys using FIPS Level validated HSMs CloudHSM offers you the flexibility to integrate with your applications using industry standard APIs such as PKCS Java Cryptography Extensions JCE and Microsoft CryptoNG CNG libraries CloudHSM is standards compliant and enables you to export all of your keys to most other commercially available HSMs subject to your configurations It is a fully managed service that automates time consuming administrative tasks for you such as hardware provisioning software patching high availability and backups CloudHSM also enables you to scale quickly by adding and removing HSM capacity on demand with no up front costs AWS Directory ServiceAWS Directory Service for Microsoft Active Directory also known as AWS Managed Microsoft AD enables your directory aware workloads and AWS resources to use managed Active Directory in the AWS Cloud AWS Managed Microsoft AD is built on actual Microsoft Active Directory and does not require you to synchronize or replicate data from your existing Active Directory to the cloud You can use standard Active Directory administration tools and take advantage of built in Active Directory features such as Group Policy and single sign on SSO With AWS Managed Microsoft AD you can easily join Amazon EC and Amazon RDS for SQL Server instances to a domain and use AWS Enterprise IT applications such as Amazon WorkSpaces with Active Directory users and groups AWS Firewall ManagerAWS Firewall Manager is a security management service that makes it easier to centrally configure and manage AWS WAF rules across your accounts and applications Using Firewall Manager you can easily roll out AWS WAF rules for your Application Load Balancers and Amazon CloudFront distributions across accounts in AWS Organizations As new applications are created Firewall Manager also makes it easy to bring new applications and resources into compliance with a common set of security rules from day one Now you have a single service to build firewall rules create security policies and enforce them in a consistent hierarchical manner across your entire Application Load Balancers and Amazon CloudFront infrastructure AWS Key Management ServiceAWS Key Management Service KMS makes it easy for you to create and manage keys and control the use of encryption across a wide range of AWS services and in your applications AWS KMS is a secure and resilient service that uses FIPS validated hardware security modules to protect your keys AWS KMS is integrated with AWS CloudTrail to provide you with logs of all key usage to help meet your regulatory and compliance needs AWS Secrets ManagerAWS Secrets Manager helps you protect secrets needed to access your applications services and IT resources The service enables you to easily rotate manage and retrieve database credentials API keys and other secrets throughout their lifecycle Users and applications retrieve secrets with a call to Secrets Manager APIs eliminating the need to hardcode sensitive information in plain text Secrets Manager offers secret rotation with built in integration for Amazon RDS for MySQL PostgreSQL and Amazon Aurora Also the service is extensible to other types of secrets including API keys and OAuth tokens In addition Secrets Manager enables you to control access to secrets using fine grained permissions and audit secret rotation centrally for resources in the AWS Cloud third party services and on premises AWS ShieldAWS Shield is a managed Distributed Denial of Service DDoS protection service that safeguards web applications running on AWS AWS Shield provides always on detection and automatic inline mitigations that minimize application downtime and latency so there is no need to engage AWS Support to benefit from DDoS protection There are two tiers of AWS Shield Standard and Advanced All AWS customers benefit from the automatic protections of AWS Shield Standard at no additional charge AWS Shield Standard defends against most common frequently occurring network and transport layer DDoS attacks that target your website or applications When you use AWS Shield Standard with Amazon CloudFront and Amazon Route you receive comprehensive availability protection against all known infrastructure Layer and attacks For higher levels of protection against attacks targeting your applications running on Amazon Elastic Compute Cloud Amazon EC Elastic Load Balancing ELB Amazon CloudFront and Amazon Route resources you can subscribe to AWS Shield Advanced In addition to the network and transport layer protections that come with Standard AWS Shield Advanced provides additional detection and mitigation against large and sophisticated DDoS attacks near real time visibility into attacks and integration with AWS WAF a web application firewall AWS Shield Advanced also gives you x access to the AWS DDoS Response Team DRT and protection against DDoS related spikes in your Amazon Elastic Compute Cloud Amazon EC Elastic Load Balancing ELB Amazon CloudFront and Amazon Route charges AWS Shield Advanced is available globally on all Amazon CloudFront and Amazon Route edge locations You can protect your web applications hosted anywhere in the world by deploying Amazon CloudFront in front of your application Your origin servers can be Amazon S Amazon Elastic Compute Cloud Amazon EC Elastic Load Balancing ELB or a custom server outside of AWS You can also enable AWS Shield Advanced directly on an Elastic IP or Elastic Load Balancing ELB in the following AWS Regions Northern Virginia Oregon Ireland Tokyo and Northern California AWS Single Sign OnAWS Single Sign On SSO is a cloud SSO service that makes it easy to centrally manage SSO access to multiple AWS accounts and business applications With just a few clicks you can enable a highly available SSO service without the upfront investment and on going maintenance costs of operating your own SSO infrastructure With AWS SSO you can easily manage SSO access and user permissions to all of your accounts in AWS Organizations centrally AWS SSO also includes built in SAML integrations to many business applications such as Salesforce Box and Office Further by using the AWS SSO application configuration wizard you can create Security Assertion Markup Language SAML integrations and extend SSO access to any of your SAML enabled applications Your users simply sign in to a user portal with credentials they configure in AWS SSO or using their existing corporate credentials to access all their assigned accounts and applications from one place AWS WAFAWS WAF is a web application firewall that helps protect your web applications from common web exploits that could affect application availability compromise security or consume excessive resources AWS WAF gives you control over which traffic to allow or block to your web application by defining customizable web security rules You can use AWS WAF to create custom rules that block common attack patterns such as SQL injection or cross site scripting and rules that are designed for your specific application New rules can be deployed within minutes letting you respond quickly to changing traffic patterns Also AWS WAF includes a full featured API that you can use to automate the creation deployment and maintenance of web security rules AWS OrganizationsAWS Organizations offers policy based management for multiple AWS accounts With Organizations you can create groups of accounts automate account creation apply and manage policies for those groups Organizations enables you to centrally manage policies across multiple accounts without requiring custom scripts and manual processes Using AWS Organizations you can create Service Control Policies SCPs that centrally control AWS service use across multiple AWS accounts You can also use Organizations to help automate the creation of new accounts through APIs Organizations helps simplify the billing for multiple accounts by enabling you to setup a single payment method for all the accounts in your organization through consolidated billing AWS Organizations is available to all AWS customers at no additional charge ConclusionAWS provides services that help you protect your data accounts and workloads from unauthorized access AWS provide encryption and key management and threat detection that continuously monitors and protects your accounts and workloads AWS identifies threats by continuously monitoring the network activity and account behavior within your cloud environment AWS gives you a comprehensive view of your compliance status and continuously monitors your environment using automated compliance checks based on the AWS best practices and industry standards your organization follows Hope this guide helps you with the Introduction to Security Identity and Compliance with AWS feel free to connect with me on LinkedIn Twitter If you are interested in learning more about AWS Services then follow me on github If you liked this content then do clap and share it Thank You 2021-06-25 17:16:06
海外TECH DEV Community New PFP (part 2)! https://dev.to/baenencalin/new-pfp-part-2-4h3b binary 2021-06-25 17:14:00
海外TECH DEV Community Full Stack Developer Roadmap 2021 https://dev.to/hidaytrahman/full-stack-developer-roadmap-2021-92h Full Stack Developer Roadmap Most of the newcomers are planning to go for full stack development What is a full stack developer A person who can develop the entire application both client and server Advantages Master all the techniques involved in a development project Can provide help to all the team membersCan reduce the cost of the projectCan reduce the time used for team communicationDisadvantages The solution chosen can be dependent on developer skillsThe solution chosen can be wrong for the projectBeing a full stack developer is increasingly complex HTMLIs designed to be displayed in a web browser It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript and mandatory for all web developersMust read Basic HTML and DOMFormHTML APIs Storage A beginner can start from wschools CSSCSS ーStyling for web pages Makeup HTML Must read Selectors class ID element attribute pseudo Box ModelPosition absolute fixed relative Flex GridMedia Query screen print JavaScriptJavascript is the programming language of the Web Must read Basics var loop statements ScopeClosureFunctionsHoistingDOM manipulationEvent handling ReactReact is an open source front end JavaScript library for building user interfaces or UI components React can be used as a base in the development of single page or mobile applications Must read ComponentsHooksRouterData bindingState Management NodeJSNode js is an open source cross platform back end JavaScript runtime environment that runs on the V engine and executes JavaScript code outside a web browser Must read HTTPFile Storage CRUD OSEventsSync and AsyncEvent Loop ExpressJSExpress is a minimal and flexible Node js web application framework that provides a robust set of features for web and mobile applications Must read Middleware sRoutingError HandlingDebuggingAdditionallyAuthenticationAuthorizationCrypto MySQLMySQL is an open source relational database management system Its name is a combination of “My the name of co founder Michael Widenius s daughter and “SQL the abbreviation for Structured Query LanguageThis is not necessary but basic knowledge will definitely help you with the relational database management system MongoDBMongoDB is a source available cross platform document oriented database program Classified as a NoSQL database program MongoDB uses JSON like documents with optional schemasMust read DatabasescollectionsSchemaAggregation Live Projects and DeploymentsWoohoo You did it… now it s time to develop something with a real world solution Project IdeasBlog CRUD Todo AppChat BotQuiz AppCongratulations You re now a full stack developer You can now consider yourself as a one man army All the best lt Happy Code gt 2021-06-25 17:12:12
海外TECH DEV Community HEIC support for Active Storage https://dev.to/mario_chavez/heic-support-for-active-storage-p66 HEIC support for Active Storage Post originally published at HEIC support for Active StorageActive Storage is the Ruby on Rails solution to work with file attachments on an application It is not the only solution available but it comes by default as part of the framework so there is a chance that it is used on new projects Working with images is as easy as possible creating variants to display images in different sizes might be the most common use case in a Rails Application The image processing gem is responsible for abstracting the complexity of creating an image variant like resizing the image to be px on the longest side Underneath the image processing gem it uses ImageMagick or Vips to handle image operations and transformations by default it uses the first ImageMagick HEIF and HEIC image formats High Efficiency Image File format or HEIF is a container for images and videos that requires half of the storage as JPEG with the same image quality The HEIC format which is a variation of HIEF and stands for High Efficiency Image Container was introduced by Apple with the release of iOS and macOS High Sierra The format is not widely adopted For example no browser can display a HEIC image and only a few Android devices support it to optimize the space of Apple s devices The format is not widely adopted For example no browser can display a HEIC image and only a few Android devices support it There is a case where High School students failed a test because their school systems didn t support the HEIC format Add Active Storage support for HEIC At Creditar io we are working on a service that allows customers to upload a photo of a Mexican ID then the service validates the ID extracts its information Everything was fine until we received our first HEIC file our service could not do anything with the file A quick DuckDuckGo search about this told me what I already knew no support out of the box for HEIC on Active Storage Some work needs to be done to enable it I came across this post “How to generate HEIC previews in Rails using ActiveStorage The post explains how to create an Active Storage Previewer that converts a HEIC image into a PNG or any other format It uses Vips as image processing library and describes how to enable Vips support on Heroku ImageMagick is used at Creditar io and I didn t want to switch to Vips With the latest versions of ImageMagick it can be compiled with HEIC support If you are on macOS and use Homebrew to install dependencies version x comes with support for HEIC The changes in the previewer to work with ImageMagick are very simple app previewers heic previewer rbclass HeicPreviewer lt ActiveStorage Previewer CONTENT TYPE image heic class lt lt self def accept blob blob content type CONTENT TYPE amp amp minimagick exists end def minimagick exists return minimagick exists unless minimagick exists blank minimagick exists defined ImageProcessing MiniMagick Rails logger error self class MiniMagick is not installed unless minimagick exists minimagick exists end end def preview transformations download blob to tempfile do input io ImageProcessing MiniMagick source input convert png call yield io io filename blob filename base png content type image png end endendThe previewer needs to be registered with Active Storage via an initializer config initializers active storage rbRails application configure do config active storage previewers lt lt HeicPreviewer config active storage variable content types lt lt image heic config active storage variable content types lt lt image heif endAnd we must tell Active Storage that HEIC HEIF content types are supported The test for this previewer is as follows test previewers heic previewer test rbrequire test helper class HeicPreviewerTest lt ActiveSupport TestCase include ActiveStorageBlob CONTENT TYPE image heic test it previews a heic image do skip it does not run on CI due to missing support for HEIC if ENV CI true blob create file blob filename heic image file heic content type CONTENT TYPE refute nil blob assert HeicPreviewer accept blob HeicPreviewer new blob preview do attachable assert equal image png attachable content type end endendThe create file blog method is a helper that I use to create an Active Storage blob object from a file The test is simple it tests that previewing or downloading a file get converted to PNG Running this test on GitHub s CI was impossible because the ImageMagick version it provides comes without HEIC support I tried to download and compile ImageMagick in the pipeline but it takes too much time so I decided to skip this test there It works on my machine tm so what can go wrong right To deploy these changes Heroku needs a buildpack with an ImageMagick binary compiled with HEIC There are a few of those in Heroku s marketplace so I settle for this one It needs to be installed before deploying the code changes Installation is simple heroku buildpacks add https github com HiMamaInc heroku buildpack imagemagick heif https github com HiMamaInc heroku buildpack imagemagick heif index After these changes in the code customers can take a picture with their iPhone and send it to our service to validate their ID no need to worry if they had HEIC enable on their phones The service displays the thumbnail and sends a png version to the Python ML backend to be processed 2021-06-25 17:05:57
海外TECH DEV Community Learning Python - Week 3 https://dev.to/evanrpavone/learning-python-week-4-7i8 Learning Python Week This week I continued to learn the control flow in Python from last week What I want to focus on in this post is accepting the input from a user Having a user input information is very easy all you need is the input function and as the argument for the function you pass in the text or information that you want to see in the console so that the user knows what information they need to put Here is an example of how to use the input function name input Enter your name print Hello there name strip strip removes any white spacesage input Enter your age input returns a string not an integerprint name strip you are str age strip years old print name strip you will be str int age in years The name variable accepts an input of name and the age variable accepts the input of your age When you run the program it will say Enter your name You will enter your name and press enter The strip function at the end is a way to remove the white space meaning if you happen to add a lot of spaces before you enter your name it will remove it Next is the age when you put your age in it is not an integer it is a string So when you press enter it will say your name you are your age years old and then it will say your name you will be add to your age in five years This was a quick practice and this is what I really like to do when it comes to programming having a user experience I am sure I will be able to have a more advanced way of having a user experience in the future but for now this is what I know I know this is a short post but it was for a good reason Week will be a whole new section focusing on packages modules and object oriented programming It s still a fun time learning this and I will talk to you guys next week 2021-06-25 17:02:28
Apple AppleInsider - Frontpage News Apple premieres trailer for new musical series 'Schmigadoon!' https://appleinsider.com/articles/21/06/25/apple-premieres-trailer-for-new-musical-series-schmigadoon?utm_medium=rss Apple premieres trailer for new musical series x Schmigadoon x A new two minute long trailer gives viewers a sneak peek into Apple TV s new musical comedy Schmigadoon Described as a parody of iconic musicals the series follows a couple played by Cecily Strong and Keegan Michael Key on a backpacking trip designed to reinvigorate their relationship Read more 2021-06-25 17:19:12
Apple AppleInsider - Frontpage News Intel Macs can't run Windows 11 without this workaround https://appleinsider.com/articles/21/06/25/intel-macs-cant-run-windows-11-without-this-workaround?utm_medium=rss Intel Macs can x t run Windows without this workaroundWindows requires a processor with TPM support and a compatible motherboard to install but this isn t fully available in Macs at present But ーthere are workarounds Windows is compatible with certain newer Intel processorsMicrosoft announced Windows on Thursday with an all new UI and better multitasking features One requirement ーthe need for support for TPM ーmay keep Macs from ever officially running the OS Read more 2021-06-25 17:15:53
Apple AppleInsider - Frontpage News Apple revives controversial Athenry, Ireland datacenter plan https://appleinsider.com/articles/21/06/25/apple-revives-controversial-athenry-ireland-datacenter-plan?utm_medium=rss Apple revives controversial Athenry Ireland datacenter planAfter protests previously caused it to abandon creating a datacenter in Athenry Ireland Apple has revived its plans and now intends to complete it by Proposed Apple datacenterPlans for a billion Apple datacenter in Ireland s Atherny County Galway are back following previous protests and legal challenges Apple had put the land up for sale but has now filed for an extension on its original planning permission Read more 2021-06-25 17:22:04
海外科学 NYT > Science Discovery of ‘Dragon Man’ Skull in China May Add Species to Human Family Tree https://www.nytimes.com/2021/06/25/science/dragon-man-skull-china.html Discovery of Dragon Man Skull in China May Add Species to Human Family TreeA laborer discovered the fossil and hid it in a well for years Scientists say it could help sort out the human family tree and how our species emerged 2021-06-25 17:37:45
海外科学 NYT > Science Is This Some Kind of Code? You Can Solve the … https://www.nytimes.com/2021/06/25/science/puzzles-fonts-math-demaine.html entire 2021-06-25 17:54:26
海外科学 NYT > Science How to Make Summer Last (Almost) Forever https://www.nytimes.com/2021/06/25/science/summer-solstice-time.html newsletter 2021-06-25 17:44:20
海外TECH WIRED US Vaccinations Slow, Americans Venture Out, and More News https://www.wired.com/story/vaccinations-slow-americans-travel-coronavirus-news important 2021-06-25 17:19:43
ニュース BBC News - Home Matt Hancock affair: Health secretary apologises for breaking social distancing guidelines https://www.bbc.co.uk/news/uk-politics-57612441 health 2021-06-25 17:33:54
ニュース BBC News - Home Colin Pitchfork: Government to ask for review of child killer's release https://www.bbc.co.uk/news/uk-england-leicestershire-57429092 colin 2021-06-25 17:31:44
ビジネス ダイヤモンド・オンライン - 新着記事 【直前でも間に合う!面接対策】 「あなたの特技は何ですか。」の意図と攻略法 - 絶対内定 https://diamond.jp/articles/-/275083 面接対策 2021-06-26 02:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 “昭和の街”として甦った西武園ゆうえんちに 刀が吹き込んだ“持続可能な仕組み” - 苦しかったときの話をしようか https://diamond.jp/articles/-/274643 2021-06-26 02:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 「図々しい人」は嫌われるだけだが、 「図々しいけど、愛嬌のある人」は最強である - 超★営業思考 https://diamond.jp/articles/-/274907 「図々しい人」は嫌われるだけだが、「図々しいけど、愛嬌のある人」は最強である超営業思考プルデンシャル生命保険で「前人未到」の圧倒的な業績を残した「伝説の営業マン」である金沢景敏さん。 2021-06-26 02:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 ワークマンが 社員に求める3つの力 - ワークマン式「しない経営」 https://diamond.jp/articles/-/270858 2021-06-26 02:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 コロナ禍のアルコール依存症治療、「断酒」と「減酒」の違いを【1枚の図】にしてみた! - なんでも図解 https://diamond.jp/articles/-/275122 違い 2021-06-26 02:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 2000万円の節税になる「おしどり贈与」に注意! 損をする可能性もあります! - ぶっちゃけ相続 https://diamond.jp/articles/-/275127 贈与 2021-06-26 02:30: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件)