投稿時間:2023-08-03 04:30:31 RSSフィード2023-08-03 04:00 分まとめ(31件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Big Data Blog Estimating Scope 1 Carbon Footprint with Amazon Athena https://aws.amazon.com/blogs/big-data/estimating-scope-1-carbon-footprint-with-amazon-athena/ Estimating Scope Carbon Footprint with Amazon AthenaToday more than organizations have signed The Climate Pledge a commitment to reach net zero carbon by Some of the drivers that lead to setting explicit climate goals include customer demand current and anticipated government relations employee demand investor demand and sustainability as a competitive advantage AWS customers are increasingly interested in ways to … 2023-08-02 18:41:55
AWS AWS Machine Learning Blog Build a personalized avatar with generative AI using Amazon SageMaker https://aws.amazon.com/blogs/machine-learning/build-a-personalized-avatar-with-generative-ai-using-amazon-sagemaker/ Build a personalized avatar with generative AI using Amazon SageMakerGenerative AI has become a common tool for enhancing and accelerating the creative process across various industries including entertainment advertising and graphic design It enables more personalized experiences for audiences and improves the overall quality of the final products One significant benefit of generative AI is creating unique and personalized experiences for users For example … 2023-08-02 18:34:51
AWS AWS Using Windows Authentication on Amazon RDS SQL Server with AWS Managed Active Directory https://www.youtube.com/watch?v=DOmbH8fAWa8 Using Windows Authentication on Amazon RDS SQL Server with AWS Managed Active DirectoryIn this video we show you how to setup Windows authentication in order to connect to Amazon RDS for SQL Server DB instances including setting up a forest trust with an on premises Active Directory environment Learn more at Subscribe More AWS videos More AWS events videos Do you have technical AWS questions Ask the community of experts on AWS re Post ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster MSSQL RDSSQL ActiveDirecotry RDS AWS AmazonWebServices CloudComputing 2023-08-02 18:19:34
AWS AWS Using continuously available shares on Amazon FSx for Windows File Server https://www.youtube.com/watch?v=xjidp0vHxgc Using continuously available shares on Amazon FSx for Windows File ServerIn this video we show you how to enable continuously available shares for Amazon FSx for Windows File Server in Multi AZ Setups Learn more at Subscribe More AWS videos More AWS events videos Do you have technical AWS questions Ask the community of experts on AWS re Post ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AmazonFSX FSXForSQL FSX AWS AmazonWebServices CloudComputing 2023-08-02 18:19:30
AWS AWS How to choose Active Directory solutions on AWS https://www.youtube.com/watch?v=8xhHEtekgZ4 How to choose Active Directory solutions on AWSIn this video we walk you through the various Active Directory options on AWS and guidance helping choose the appropriate solution AWS Directory Service Pricing AWS Managed Microsoft AD Admin Guide AWS Managed Microsoft AD Application Compatibility AWS Active Directory Connector Admin Guide AWS Active Directory Connector Application Compatibility Everything you wanted to know about trusts with AWS Managed Microsoft AD blog Microsoft on AWS Cost Optimization MACO Active Directory AWS re Inforce Deploy and secure Active Directory with AWS Managed Microsoft AD IAM AWS re Invent REPEAT Active Directory on AWS to support Windows workloads WIN R Amazon RDS for SQL Server now supports self managed Active Directory Subscribe More AWS videos More AWS events videos Do you have technical AWS questions Ask the community of experts on AWS re Post ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWSDirectoryService AWSManagedMicrosoftAD ADConnector ManagedAD AWS AmazonWebServices CloudComputing 2023-08-02 18:19:27
AWS AWS Automate Patching with AWS Systems Manager Quick Setup Patch Policy https://www.youtube.com/watch?v=nDe9kLnDmsk Automate Patching with AWS Systems Manager Quick Setup Patch PolicyIn this video we show you how to can automate patching of your applications and EC Instances in your organization and AWS accounts using AWS Systems manager Learn more at Subscribe More AWS videos More AWS events videos Do you have technical AWS questions Ask the community of experts on AWS re Post ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster Patching PatchManager WindowsUpdates SSMPatchManager AWS AmazonWebServices CloudComputing 2023-08-02 18:19:24
AWS AWS Migrating your Amazon EBS volumes from GP2 to GP3 | Microsoft on AWS Cost Optimization (MACO) https://www.youtube.com/watch?v=ajhDlm5Yvpc Migrating your Amazon EBS volumes from GP to GP Microsoft on AWS Cost Optimization MACO In this video we show you the steps to migrate your EBS volumes from gp to gp to save storage costs Learn more at Subscribe More AWS videos More AWS events videos Do you have technical AWS questions Ask the community of experts on AWS re Post ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster EBS GP MACO CostOptimization AWS AmazonWebServices CloudComputing 2023-08-02 18:19:19
AWS AWS Console-based RDP access to Windows instances using AWS Systems Manager Fleet Manager https://www.youtube.com/watch?v=M-HKTcpt_Xg Console based RDP access to Windows instances using AWS Systems Manager Fleet ManagerIn this video we show you how to open an RDP connection into your EC Windows instance without publicly exposing the RDP port via a simple and secure browser based method using AWS Systems Manager Fleet Manager Learn more at Subscribe More AWS videos More AWS events videos Do you have technical AWS questions Ask the community of experts on AWS re Post ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster FleetManager SSM RDP ECWindows AWS AmazonWebServices CloudComputing 2023-08-02 18:19:13
Google Official Google Blog A new fund for women creating AI startups in Asia Pacific https://blog.google/around-the-globe/google-asia/new-ai-women-fund/ founders 2023-08-02 19:47:00
海外TECH MakeUseOf What Is Hardware-Accelerated GPU Scheduling on Windows? Here's How to Disable It https://www.makeuseof.com/hardware-accelerated-gpu-scheduling-disable-windows/ What Is Hardware Accelerated GPU Scheduling on Windows Here x s How to Disable ItHardware accelerated GPU scheduling is handy but it s not perfect by any means Here s how to turn it off on Windows 2023-08-02 18:16:26
海外TECH DEV Community JavaScript Under The Hood: The typeof Operator and Data Types Demystified https://dev.to/gokhantaskan/javascript-under-the-hood-the-typeof-operator-and-data-types-demystified-1j93 JavaScript Under The Hood The typeof Operator and Data Types DemystifiedAs the sole front end developer at a startup I ve found myself conducting technical interviews primarily focused on JavaScript My aim has been to gauge the fundamental understanding of the language among the candidates I soon realized that many programmers lacked comprehension of the basics of JavaScript Interestingly some developers have even stopped using Google since the ChatGPT craze This trend could be a potential setback for those engaged in developing large scale software In this article I will delve into the questionnaire I prepared and discuss the basic principles of JavaScript I aim to cover the essentials in parts avoiding easily accessible details that are readily available on the internet Let s start with the first part Part The typeof Operator in JavaScriptIn JavaScript typeof is an operator that returns a string indicating the type of the operand which is the data type of the unevaluated operand Now let s look at this code console log typeof undefined console log typeof n console log typeof Symbol id console log typeof null console log typeof Math console log typeof alert console log typeof a console log typeof NaN If you re familiar with the answers that s excellent If you can t answer all of them let s delve into the reasons why Understanding JavaScript Data TypesIn JavaScript a value is always of a certain type There are eight data types in JavaScript UndefinedNullStringNumberBooleanBigintSymbolObject Primitive TypesThe primitive types include string number bigint boolean symbol null and undefined All primitives are immutable they cannot be altered However this does not apply to variables assigned with primitive values Those variables can be reassigned to a new value but the existing value cannot be changed Primitives don t have methods but JavaScript auto boxes these values into wrapper objects when properties are accessed allowing them to behave as if they do Non primitive Reference TypesThe object type in JavaScript is unique It can store collections of data and more complex entities like array object or date Objects are the only mutable values Functions are in fact also objects with the additional capability of being callable In JavaScript everything is essentially an object Typetypeof return valueObject wrapperNull object N AUndefined undefined N ABoolean boolean BooleanNumber number NumberBigInt bigint BigIntString string StringSymbol symbol Symbol Understanding Specific typeof OutputsLet s dig deeper into the specific outputs of the typeof operator we saw in our initial code snippet typeof undefinedThe special value undefined is unique and signifies an unassigned value typeof nullThe typeof operator returning object for null is an officially recognized error in JavaScript coming from its early days and kept for compatibility In reality null is a special value with a separate type of its own Conceptually  undefined indicates the absence of a value while null indicates the absence of an object typeof nThe BigInt type was recently added to JavaScript to represent integers of arbitrary length It s particularly useful for values larger than max safe integers typeof Symbol id The symbol type is used to create unique identifiers for objects Symbols are often used to add unique property keys to an object that won t collide with keys any other code might add to the object and which are hidden from any mechanisms other code will typically use to access the object typeof MathMath is a built in object that provides mathematical properties and methods typeof alertInterestingly typeof alert returns function instead of object Functions in JavaScript belong to the object type but typeof treats them differently due to historical reasons typeof a In this case trying to divide a string by a number results in NaN which stands for Not A Number NaN represents a computational error resulting from an incorrect or undefined mathematical operation typeof NaNNaN is considered a number in JavaScript This seeming contradiction is one of the interesting quirks of the language Another note worth mentioning is the behavior of the typeof operator when applied to arrays In JavaScript arrays are a special kind of object and this can lead to some unexpected results when using typeof For instance if you try console log typeof you might expect the result to be array However the output will be object This is because in JavaScript arrays are essentially specialized objects While this might seem confusing at first it s one of the unique characteristics of JavaScript that you ll get accustomed to over time Grasping the fundamentals of any language including JavaScript is key This language s versatility can both empower us and create room for confusion To truly harness JavaScript s potential we must understand its finer points such as data types and operators like typeof Bear in mind that no number of libraries or frameworks can supplant a robust understanding of the language s basics Keep learning explore new areas and embrace each challenge as a learning opportunity Utilize tools like MDN and JavaScript info to further enrich your knowledge I welcome your feedback on this article and I m open to making edits where necessary If you spot an error or have a suggestion please get in touch Together we can create the most accurate and helpful content possible Your input helps make this a learning journey for all of us Thank you for reading and I eagerly await your thoughts Stay curious and happy coding Sources Primitive MDN Web Docs Glossary Definitions of Web related terms MDN mozilla org JavaScript data types and data structures MDNData Types The Modern JavaScript Tutorial 2023-08-02 18:38:34
海外TECH DEV Community Tic Tac Toe : HTML scripting https://dev.to/balagmadhu/tic-tac-toe-html-scripting-4c5c Tic Tac Toe HTML scriptingIntro Building the timeless game Tic Tac Toe with HTML scripts UX Component The below code defines the layout and styling for the Tic Tac Toe board and its cells using CSS It creates a x grid layout for the board with each cell being a square of x pixels The cells have borders and the content X or O is centered both vertically and horizontally The content is displayed with a font size of em and the cursor changes to a pointer when hovering over a cell indicating that it is clickable lt style gt board display grid grid template columns repeat px grid template rows repeat px cell width px height px border px solid black display flex align items center justify content center font size em cursor pointer lt style gt Event Trigger Component The board is represented as a grid with nine cells Each cell is a element with the class name cell When any cell is clicked the corresponding makeMove function is called passing the index of the clicked cell as an argument lt div class board id board gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div class cell onclick makeMove gt lt div gt lt div gt Rules Engine he JavaScript code enables the functionality of the Tic Tac Toe game by handling player moves checking for a win or draw and resetting the game when needed The game s logic and flow are defined in this script allowing users to play and enjoy the game on the HTML and CSS designed board lt script gt const board document getElementById board const cells board querySelectorAll cell let currentPlayer X let moves const winningCombinations function checkWinner player return winningCombinations some combination gt return combination every cell gt cells cell textContent player function makeMove index if cells index textContent cells index textContent currentPlayer moves if checkWinner currentPlayer alert currentPlayer wins resetGame else if moves alert It s a draw resetGame else currentPlayer currentPlayer X O X function resetGame cells forEach cell gt cell textContent currentPlayer X moves lt script gt Demo Power Apps Tic Tac Toe 2023-08-02 18:37:53
海外TECH DEV Community How I Discovered That the AWS Lambda Runtime Might Be Written in Go https://dev.to/aws-builders/how-i-discovered-that-the-aws-lambda-runtime-might-be-written-in-go-3i9l How I Discovered That the AWS Lambda Runtime Might Be Written in GoHave you ever wondered how your Lambda function code is triggered Each runtime has to conform to the AWS Lambda runtime API In managed runtimes you don t need to take care of that that s the whole point of using a managed runtime AWS takes care of that for you But how It s hard to say because it s not clearly documented However while I was conducting some unrelated experiments I made a very cool discovery I think you ll find it interesting too If you re working with Go and care about performance you might want to look at some important metrics such as the number of allocations the time taken for each init functionsTo do so you need to setup a environment variable GODEBUG to inittrace And tada In addition to information about the binary I wanted to test I m now able to see traces from another binary which seems to be the one from AWS that conforms to the runtime API Here is an example of the output init internal bytealg ms ms clock bytes allocs init go amzn com lambda fatalerror ms ms clock bytes allocs init go amzn com lambda interop ms ms clock bytes allocsinit go amzn com lambda telemetry ms ms clock bytes allocsinit go amzn com lambda core ms ms clock bytes allocsinit go amzn com lambda rapi rendering ms ms clock bytes allocsinit go amzn com lambda rapi handler ms ms clock bytes allocsinit go amzn com lambda rapid ms ms clock bytes allocs INIT START Runtime Version nodejs v Runtime Version ARN arn aws lambda us east runtime dfbcdaabceadafebbafcacdHere we can clearly see some explicit package names coming from AWS Another important thing to note is that those logs are output BEFORE the INIT START log line which provides further evidence that it might be how AWS Lambda is managing your code Voila What do you think You can find me on LinkedIn and Twitter 2023-08-02 18:28:23
海外TECH DEV Community Should You Roll Your Own RBAC Authorization? https://dev.to/gemanor/should-you-roll-your-own-rbac-authorization-42l4 Should You Roll Your Own RBAC Authorization Building a secure application is a top priority for any developer and managing permissions or authorization is a key component in achieving that One of the most critical decisions that developers face when building an application is whether to build their own security features or buy them from a third party provider a question that commonly sparks some lively debates In the past few years a solid consensus has been established that developers should not roll their own authentication and numerous content pieces have been created on the subject This type of shift isn t limited to the security space building your own payment infrastructure instead of using solutions like Stripe has been considered absurd for a while now With Authorization the question of build vs buy has not been debated as much as full stack Authz solutions are only now beginning to emerge This blog aims to point out the main challenges you will face in building your own authorization layer to help you consider this decision Build Vs Buy in a nutshellThe decision between building or buying a security component can be a difficult one Building your own authorization system gives you complete control over the code and you can customize it to meet the specific needs of your application However building an authorization system from scratch can be a time consuming and resource intensive process Here are some questions you should consider before deciding to roll your own authorization layer Will your solution keep your data protected THE number one question you should ask yourself when deciding whether to build your own authorization is “Can I build a solution that is robust enough to keep my data secure While you may think that building your own authorization system gives you complete control over security making a mistake can pose enormous potential security risks putting your application if not your whole organization at risk Building a secure authorization system requires expertise in best practices as well as in depth knowledge of the authorization field which may not be readily available in house Who creates implements and maintains your authorization Another key challenge of building your own security features is ensuring that the knowledge of how the component works is not solely dependent on one person If only one person knows how the system works it can become a bottleneck for the entire development team as well as your end users This is especially true when that person leaves the company goes on vacation or simply becomes unavailable for an extended period of time It s also important to note that authorization doesn t end at the point of implementation Depending on the expertise of a single developer Or even a designated team of developers if your organization has the workforce to spare to create implement and maintain the authorization layer can easily result in an unending stream of feature requests you might not be able to handle A quick review of large scale companies that persisted in building authorization on their own shows dedicated AuthZ dev teams growing to an average of engineers an average cost of per year Who interacts with your authorization Who writes the code One important best practice to consider when adopting an authorization solution is to manage the authorization policy as code In short when managed as code policies can be managed using the same tools and processes used to manage and deploy software This makes it easier to track changes to policies over time roll back changes if necessary and in general enjoy the well thought through best practices of the code world e g GitOps The thing is even if we have our policies managed as code this does not give us the ability to create manage and enforce them in a way that anyone in your organization can use If only your developers know how to operate this system i e generate new policies or modify existing ones by writing policy code they become bottlenecks in your app s permission management leaving other stakeholders locked out of the conversation Every time a non technical user be it from your own organization or your end user will need to make changes to the policy they will be fully dependent on your developer team to do so The solution is creating or adopting a solution that provides no code interfaces which allows creating policy as code This UI will need to be accessible to every relevant stakeholder allowing them to take part in the permission management process Is your authorization built to scale and evolve Your application and organization are Hopefully going to grow This will require the application to support more users requests and data Not to mention features more on that in a sec When building authorization it is crucial that you plan ahead and structure it in a way that allows for easy modification and expansion Note that building an authorization system that can handle scalability requires significant expertise and resources As your business requirements change your security system needs to evolve with them Building your own authorization system requires constant maintenance and updates to keep up with changing business requirements This can be a drain on development resources and may result in delays in delivering new features or fixing bugs Netflix is a good example of this and there s a lot to learn from how they approached building their authorization layer and the challenges they faced when moving from RBAC to ABAC If you don t plan for it accordingly something as simple as adding attributes to an existing RBAC layer If say you now need to monitor access to certain resources based on Time Geo Location or any other type of ABAC rule could mean completely refactoring your entire authorization system Pros of Building Your Own Security ComponentsBuilding your own authorization system gives you complete control over the code and allows you to tailor it perfectly to meet your application s needs This can be especially important if your application has unique business requirements or need to integrate with legacy systems that may not be supported by third party solutions Additionally building your own authorization system can be a valuable learning experience giving you a deeper understanding of security principles and best practices That being said it s all a question of what your organization can actually afford in terms of time and workforce allocation ConclusionBuilding your own security features specifically authorization can be a challenging and time consuming process that most organizations especially small ones cannot afford While there are some benefits to building your own solution including customization and learning opportunities the risks and challenges outweigh the benefits for most organizations Good third party authorization services can offer a secure solution that can scale evolve and most importantly save you the time and effort of building implementing and maintaining your own authorization layer Ultimately the decision between build or buy depends on your specific needs and resources but it s important to carefully consider the trade Want to learn more about implementing Authorization Join our Slack community where hundreds of devs including top authorization professionals are building and implementing authorization 2023-08-02 18:22:00
海外TECH DEV Community Como praticar sempre e com constância https://dev.to/eronalves1996/como-praticar-sempre-e-com-constancia-524o Como praticar sempre e com constânciaExistem dois aspectos que me ajudam na prática diária e que me contribuem para me tornar um dev cada vez melhor Me acompanha aíque eu te falo melhor sobre Existem algumas verdades da nossa profissão que temos que aceitar e encarar de frente Duas delas são essenciais para sedimentar nosso conhecimento e expertise Programação éuma atividade que requer prática por que disso Porque a prática ativa um aspecto do nosso conhecimento conhecido como recalling ou seja um conhecimento que eu adquiri anteriormente e preciso chamar ou relembrar ele novamente para aplicar ele no momento presente Quantas vezes eu jánão estudei Promises estruturas condicionais estruturas de loop métodos de coleções e eu uso elas todos os dias Todos os dias eu preciso dar o recall desse conhecimento novamente para aplicá lo e quanto mais eu der o recall eu vou relembrar esse conhecimento por mais tempo e com muito mais facilidade Acaba se tornando uma segunda natureza Outra questão érelacionada àassociação da prática de programação com nossa memória muscular Ao programarmos usamos nossos dedos para digitar todas as keywords e estruturas lógicas e quanto mais fazemos isso mais nosso cérebro vai associar as atividades e relembrar como faz A memória muscular assim como o recalling são construídos e hipertrofiados todos os dias com a prática Programação éuma atividade de cunho lógico A todo momento quando vocêestádesenvolvendo um backend ou pintando um botão vocêestáconstruindo uma série de instruções que o computador deve executar em uma determinada sequência ou algoritmos Portanto praticando programação vocêcada vez mais estáaperfeiçoando sua lógica Jáque eu tenho essas verdades na mesa a prática se justifica daí Mas como posso atingir melhor consistência e constância na programação Eu tenho duas dicas A primeira delas éadotar Prática Deliberada Sabe aquele assunto que vocênão domina na programação e toda vez que tem que lidar com ele vocêpassa um perrengue Pratique este assunto aténão se tornar mais um problema para você Feito isso qual o próximo assunto que vocêpassa perrengue Pratique esse assunto e por aívai Éimportante garantir esse ciclo assim vocêconsegue melhorar sempre suas deficiências Eu játive muita dificuldade em entender Lambda Functions em Java e seu funcionamento O que eu fiz para entender melhor Pratiquei e estudei o assunto que nem um louco atédominar esse assunto por completo Hoje eu estudo o funcionamento interno do Spring Web MVC que ainda não émuito claro para mim A segunda dica que não éminha mas do Uncle Bob extraído do livro The Clean Coder éexercitar diariamente sua lógica e programação juntos através de Katas Katas são pequenos desafios lógicos de código que estimulam trabalhar sua lógica De quebra vocêsedimenta também sua memória muscular A quantidade évocêquem escolhe um por dia jáestáok Vocêpode fazer um quando começar seu expediente e um ao final dele como forma de aquecimento alongamento análogo a um exercício físico Eu particularmente utilizo a plataforma da codewars que tem uma boa quantidade de katas em diversos níveis e em diversas linguagens para praticar Seguindo essas dicas pode ter certeza que sua habilidade vai melhorar muito e eventualmente vocêficarámais confortável programando 2023-08-02 18:18:20
海外TECH DEV Community Scaling Node.js Web Apps with Docker https://dev.to/fabiancdng/scaling-nodejs-web-apps-with-docker-mep Scaling Node js Web Apps with DockerThis article explores how Node js web applications can be scaled across multiple CPU cores and even machines using Docker IntroductionDeploying and scaling a Node js web app like a Next js app is easier than ever thanks to the cloud and serverless But what if you still want to be in charge of your own server architecture Or maybe you just want to pay for your server resources and not your traffic or execution time Deploying your web app on a VPS Virtual Private Server is the perfect option in that case The problem with Node js and single threadingNode js is single threaded by nature That means that it can usually only utilize one CPU core thread and only achieve concurrency by switching between tasks on that single thread the so called Event Loop But what if your server has more than one CPU core How can you leverage those to be able to handle more incoming traffic Utilizing multiple CPU cores with Node jsDespite its single threaded nature Node js still allows you to utilize multiple CPU cores Node js introduced cluster mode to achieve some level of multi threading However because Node js is still a single threaded runtime all cluster mode does is running multiple instances of your app each having their own interpreter runtime There are also very popular third party libraries like pm that implement this concept pm also has built in load balancing so it s definitely worth checking out Multiple Node js instances with Docker ComposeIf you re already using Docker and Docker Compose in your setup it can be a great alternative to skip implementing cluster mode or pm altogether You can just use Docker Compose to create multiple replicas of your Node js app a Next js app in my case The docker compose ymlDocker Compose makes it super easy to create multiple containers running the same service replicas They can all utilize a different CPU core without the need for any tools or additional code in your app It just requires a little edit of the docker compose yml version services your web app image registry your website image latest deploy replicas Simply add the deploy key to the service you want to replicate and specify the amount of replicas you wish just like in the example above Load BalancingThe last thing you have to figure out now is load balancing After starting your Docker Compose stack there are three containers running the same application Your reverse proxy or load balancer needs to evenly send requests to one of the replicas For an example setup see the example below A real world example This websiteLet s take a look at my website fabiancdng com as a real world example The hosting requirementsMy website is a Next js application that uses Server Side Rendering SSG on some pages Therefore it needs the Node js runtime and can t just be deployed as static assets I deployed the site in a Docker container with Docker Compose on a cheap VPS with virtual CPU cores In configured Docker Compose to run three replicas of the Next js app all in their own container For routing and distributing incoming traffic evenly across the replicas I need a reverse proxy that also acts as a load balancer The reverse proxy and load balancerI use Traefik as a reverse proxy that takes all the incoming traffic to http s fabiancdng com and routes it to the corresponding Docker container within the internal Docker network NGINX is another popular solution for this purpose And both NGINX and Traefik support load balancing In my case Traefik supports load balancing between replicas of the same service out of the box so there was no additional configuration needed Once you ve got your load balancing between the replicas in place your traffic will be distributed among CPU cores making your service able to handle many more incoming requests A look ahead Scaling horizontally across machinesIf you run this configuration using a container orchestration tool like Kubernetes or Docker Swarm you can even scale your app horizontally this way You can distribute the load not just across replicas on one server you can have a ton of replicas running on a ton of different servers Docker Swarm has built in load balancing between nodes So if you plan on doing this that might be worth checking out However if your application has reached an amount traffic that is worth distributing across multiple machines you might just consider moving to the cloud and a managed infrastructure ConclusionWhether this is a good alternative to just moving to a managed service like Vercel or AWS Amplify when deploying a Next js app for instance or a managed container orchestration service is hard to tell Even though those services can get quite expensive for high traffic sites they often offer generous free tiers and pay as you go models Also they guarantee availability all around the globe thanks to edge routing and CDNs However you can scale a loooong way with just a cheap VPS and you can protect yourself from unexpected costs for traffic or execution time Also you can deploy many different services on a single machine maybe you would like a database or a free open source analytics tool as well and you can learn a lot about server administration Docker and the complexity behind web applications and their architecture My recommendation If you plan on building a full stack side project or small SaaS and you need to deploy front end back end database caching layer etc use a VPS if you are okay with the additional configuration effort If you need to scale and you re just getting started with networking and backend engineering Don t even bother with tools like Kubernetes The growing complexity and maintenance effort to just keep your service running is likely not worth your time Focus on building the app rather than the architecture around it and just use a cloud service Cheers This post was originally published on my website on May If you found this article helpful consider following for more and giving the post a You can also show your appreciation by leaving me a tip for my next coffee ️ Your support would mean a lot to me ️ 2023-08-02 18:04:06
海外TECH DEV Community Using AI to Generate Realistic Data for Development https://dev.to/giantmachines/using-ai-to-generate-realistic-data-for-development-49c8 Using AI to Generate Realistic Data for DevelopmentFinding appropriate development data when building an application is hard Real data is often highly sensitive and not permitted to be used in development while typical fake data is often not realistic enough to let us develop with confidence But machine learning ML tools open exciting new avenues for generating synthetic data that is not only safe and secure but accurately models hard to see trends in our real data At Giant Machines we ve been experimenting with using ML generated synthetic data to develop with real ish data when data security or privacy are important concerns The ProblemAs a digital product studio working with clients across a variety of industries Giant Machines teams often need access to highly sensitive data Beyond common concerns such as Personal Identifiable Information PII Giant Machines also specializes in industries with additional legal and regulatory considerations such as HIPAA compliance in health care applications or various forms of financial regulation in FinTech The Current SolutionThere are two general approaches The first is to apply a variety of techniques such as data masking or tokenization to scrub a large dataset before giving access to developers The second is to generate dummy or fake data to seed a database Think lots of John and Jane Does who live at Main Street Scrubbing or tokenizing data is more difficult in practice than it first appears often due to the internal process and approvals required Great care must be taken since a theoretical attacker could triangulate PII based on non protected data While dummy data seems fine at first it can lead to subtle and important mistakes during the design and build phase due to poor assumptions about what production data will look like For example maybe a drop down menu is not the best design choice for an accounts page if the average number of connected accounts in the drop down will be in the hundreds What if there was a hybrid approach that combined the best of both worlds generating dummy data that actually looks like the real data our application will use in production Proposed SolutionWe can solve this problem by training an ML model on a real dataset and then using that model to generate a synthetic dataset The synthetic data does not match but closely mimics the properties of the original dataset It often does so in ways that are difficult to predict such as the relationship between two columns in different database tables For example if you are working on an e commerce system with users and orders tables your synthetic data will have a similar number of orders associated with each user as your real data keeping numbers like the average order count similar Generating fake or dummy data would not necessarily maintain this relationship Another advantage is that this sort of training could be done on premise and entirely behind a firewall Once the model is generated which does not copy or store any of the underlying data a team could use that model to safely generate development data for a variety of use cases Proof of ConceptDuring Studio Time a small team of engineers set out to build a proof of concept process for incorporating synthetic data into our work We started by taking a large public health datasetーin this case patient data that is used to predict early indicators of heart attacksーand pretended it was a dataset received from an imaginary health care client Using Synthetic Data Vault SDV ーan open source library for generating and evaluating synthetic dataーwe trained our model on this dataset and then used it to generate a large synthetic dataset This took a few iterations to get right but we were eventually able to generate a synthetic dataset that looked very similar to our original data For a deeper assessment and evaluation of the synthetic dataset we used some of SDV s built in evaluation tools These tools compare the statistical and mathematical properties of columns by comparing column shapes and correlations between the real and synthetic datasets and can even plot them onto charts for easy visualization In the graph below for our health care dataset you can see a comparison of the resting heart rate column in beats per second “trestbps by the value and frequency of that value s appearance between the real and synthetic datasets Image caption A plotted comparison of the resting heartbeat “trestbps column using SDV s built in evaluation toolsTo visualize the synthetic data further we built a quick admin panel using Admin js and imported our data into a local postgres database for navigating and viewing Image caption Our quick and simple synthetic data viewer built with AdminJSNext StepsWe re excited to keep investigating novel use cases for emerging technologies such as synthetic data and machine learning in general As a next step we plan to generate a variety of synthetic datasets in industries and use cases common to our workーsuch as health care financial services and climate tech We re also incorporating synthetic data into our rapid prototyping stackーimagine generating API endpoints that return real ish data for early stage prototyping work If this sort of work sounds interesting to you get in touch ーWith contributions from Dani Jaramillo Aksana Lapkouskaya and Nick MendesHeader image credit Stable Diffusion prompt “A network of connected synthetic data notes 2023-08-02 18:03:31
Apple AppleInsider - Frontpage News Apple Savings deposits hit $10 billion in just over three months https://appleinsider.com/articles/23/08/02/apple-savings-deposits-hit-10-billion-in-just-over-three-months?utm_medium=rss Apple Savings deposits hit billion in just over three monthsApple Savings deposits have hit a landmark billion since inception fueled by holders sweeping Daily Cash into the high yield savings accounts Apple s first savings account for customersThe high water mark was reached after days of availability and announced in a release on Wednesday afternoon In the release it was also revealed that of Apple Savings accounts customers were sweeping Daily Cash directly into the savings account Read more 2023-08-02 18:10:24
海外TECH Engadget The Sonos Move 2 will reportedly offer stereo audio and 24-hour battery life https://www.engadget.com/the-sonos-move-2-will-reportedly-offer-stereo-audio-and-24-hour-battery-life-181950125.html?src=rss The Sonos Move will reportedly offer stereo audio and hour battery lifeThe original Sonos Move stood out as one of the few fully connected portable speakers when it debuted in but technology has moved on since then ーand so apparently has Sonos The Vergeclaims to have leaked details of a Move speaker that promises major upgrades to the outdoor friendly device Most notably it should upgrade from mono to stereo sound If you thought the first version didn t sound as good as conventional speakers you may be happier this time The new speaker s battery life reportedly leaps from hours on the Move to a full hours of playback You could easily host an all day party without plugging in The power pack is said to still be replaceable and reduced idle power consumption could make it easier to use the speaker over the course of a weekend There will reportedly be smaller but still useful upgrades Like the Roam the Move will let you share Bluetooth audio across the home Bluetooth and WiFi support will also help the speaker keep up with modern devices You ll need a USB C adapter as with the Era for line in audio but the same port can also charge your phone during a camping trip The IP dust and water resistance hasn t changed but that s still good enough to survive the rain or a windy day Other touches may include revised controls a mic cutoff switch and a detachable power adapter on the base station You can t use Google Assistant for obvious reasons but Alexa and Sonos own voice controls would be available Sonos is said to be launching the Move at the end of September for or more than its predecessor That makes it as expensive as the spatial audio capable Era As before though the portability might justify the premium You re buying a speaker that can be useful in both your living room and the backyard saving you the trouble of getting two devices as long as you re willing to haul a speaker around nbsp This article originally appeared on Engadget at 2023-08-02 18:19:50
海外科学 NYT > Science Leprosy May Be Endemic in Central Florida, Scientists Report https://www.nytimes.com/2023/08/02/health/leprosy-florida.html decades 2023-08-02 18:40:08
海外科学 NYT > Science Amid Signs of a Covid Uptick, Researchers Brace for the ‘New Normal’ https://www.nytimes.com/2023/08/02/health/covid-rise.html Amid Signs of a Covid Uptick Researchers Brace for the New Normal Infections remain very low despite signs of a slight increase Now experts are looking for clues to what living with the coronavirus will be like this winter and beyond 2023-08-02 18:38:38
海外科学 NYT > Science Alan Roland, 93, Psychoanalyst Who Cautioned Against Western Bias, Dies https://www.nytimes.com/2023/08/02/science/alan-roland-psychoanalyst-dead.html patient 2023-08-02 18:35:06
ニュース BBC News - Home Beyoncé pays tribute to dancer fatally stabbed while dancing to her music https://www.bbc.co.uk/news/world-us-canada-66388976?at_medium=RSS&at_campaign=KARANGA sibley 2023-08-02 18:05:32
ニュース BBC News - Home VIP abuse ‘liars’ to be investigated after seven-year delay https://www.bbc.co.uk/news/uk-66389708?at_medium=RSS&at_campaign=KARANGA harvey 2023-08-02 18:22:32
ニュース BBC News - Home Wet weather hitting critical harvest time, say farmers https://www.bbc.co.uk/news/uk-england-berkshire-66370228?at_medium=RSS&at_campaign=KARANGA source 2023-08-02 18:01:52
ニュース BBC News - Home Netball World Cup 2023: South Africa score in last second to draw with New Zealand https://www.bbc.co.uk/sport/av/netball/66385965?at_medium=RSS&at_campaign=KARANGA world 2023-08-02 18:14:33
ビジネス ダイヤモンド・オンライン - 新着記事 長年にわたる貯蓄の末にお金持ちになった倹約家が「人生で後悔している1つのこと」 - トゥー・ビー・リッチ https://diamond.jp/articles/-/326994 長年 2023-08-03 03:49:00
ビジネス ダイヤモンド・オンライン - 新着記事 【数学が生活に役立っている瞬間!】1分でわかる確率の超基礎! - 【フルカラー図解】高校数学の基礎が150分でわかる本 https://diamond.jp/articles/-/327100 【数学が生活に役立っている瞬間】分でわかる確率の超基礎【フルカラー図解】高校数学の基礎が分でわかる本子どもから大人まで数学を苦手とする人は非常に多いのではないでしょうか。 2023-08-03 03:46:00
ビジネス ダイヤモンド・オンライン - 新着記事 MARCHに続く人気大学・東京農大生のリアルな就活状況は? - 大学図鑑!2024 有名大学82校のすべてがわかる! https://diamond.jp/articles/-/327095 2023-08-03 03:43:00
ビジネス ダイヤモンド・オンライン - 新着記事 職場にいる「仕事で勝負強い人」と「仕事で勝負弱い人」の決定的な差とは - 1秒で答えをつくる力 お笑い芸人が学ぶ「切り返し」のプロになる48の技術 https://diamond.jp/articles/-/327125 2023-08-03 03:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 獺祭でなく普通酒を造っていたころ旭酒造・桜井会長が考えたこと:「普通」はすなわち「負け」である【書籍オンライン編集部セレクション】 - 逆境経営 ~山奥の地酒「獺祭」を世界に届ける逆転発想法~ https://diamond.jp/articles/-/326974 獺祭でなく普通酒を造っていたころ旭酒造・桜井会長が考えたこと「普通」はすなわち「負け」である【書籍オンライン編集部セレクション】逆境経営山奥の地酒「獺祭」を世界に届ける逆転発想法日本酒「獺祭」のブランドを確立する以前の旭酒造は、低迷から脱しようともがき苦しみました。 2023-08-03 03:37:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

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

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