投稿時間:2021-11-19 04:38:28 RSSフィード2021-11-19 04:00 分まとめ(48件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Management Tools Blog AWS attendee guide for Cloud Operations track at re:Invent 2021 https://aws.amazon.com/blogs/mt/aws-attendee-guide-for-cloud-operations-track-at-reinvent-2021/ AWS attendee guide for Cloud Operations track at re Invent AWS re Invent is a learning conference hosted by Amazon Web Services AWS for the global cloud computing community We are super excited to join you at the th annual re Invent to share the latest from AWS leaders and discover more ways to learn and build Let s celebrate this milestone which will be offered in person … 2021-11-18 18:16:28
AWS AWS Media Blog The 2021 Streaming Media Readers’ Choice Award Winners https://aws.amazon.com/blogs/media/the-2021-streaming-media-readers-choice-award-winners/ The Streaming Media Readers Choice Award WinnersThe results of this year s Streaming Media Readers Choice Awards brought good news for services and solutions for media and entertainment from AWS With nominees in categories and votes cast the results are in Winner Cloud Encoding Transcoding Services AWS Elemental MediaLive Winner Content Delivery Network Amazon CloudFront Winner DRM Content Protection AWS Elemental … 2021-11-18 18:54:32
AWS AWS Government, Education, and Nonprofits Blog Preserving the history and language of the Confederated Tribes of the Umatilla Indian Reservation using AWS https://aws.amazon.com/blogs/publicsector/preserving-history-language-confederated-tribes-of-umatilla-indian-reservation-using-aws/ Preserving the history and language of the Confederated Tribes of the Umatilla Indian Reservation using AWSOregon and Washington are home to the Confederated Tribes of the Umatilla Indian Reservation CTUIR ーa union of the Cayuse Walla Walla and Umatilla tribes Their language Sahaptin is classified as severely endangered by UNESCO CTUIR was searching for a way to preserve legacy knowledge in a way that can be passed down to future generations and strengthen its community To do this CTUIR worked with Amazon Web Services AWS and AWS Partner Dan Ryan to build an online dictionary of the Sahaptin language powered by the cloud 2021-11-18 18:37:59
Google Official Google Blog A decade in deep learning, and what's next https://blog.google/technology/ai/decade-deep-learning-and-whats-next/ A decade in deep learning and what x s nextTwenty years ago Google started using machine learning and years ago it helped spur rapid progress in AI using deep learning Jeff Dean and Marian Croak of Google Research take a look at how we ve innovated on these techniques and applied them in helpful ways and look ahead to a responsible and inclusive path forward Jeff DeanFrom research demos to AI that really worksI was first introduced to neural networks ーcomputer systems that roughly imitate how biological brains accomplish tasks ーas an undergrad in I did my senior thesis on using parallel computation to train neural networks In those early days I thought if we could X more compute power using processors at the time we could get neural networks to do impressive things I was way off It turns out we would need about million times as much computational power before neural networks could scale to real world problems A decade later as an early employee at Google I became reacquainted with machine learning when the company was still just a startup In we used a simpler version of machine learning statistical ML to detect spam and suggest better spellings for people s web searches But it would be another decade before we had enough computing power to revive a more computationally intensive machine learning approach called deep learning Deep learning uses neural networks with multiple layers thus the “deep so it can learn not just simple statistical patterns but can learn subtler patterns of patterns ーsuch as what s in an image or what word was spoken in some audio One of our first publications in was on a system that could find patterns among millions of frames from YouTube videos That meant of course that it learned to recognize cats To get to the helpful features you use every day ーsearchable photo albums suggestions on email replies language translation flood alerts and so on ーwe needed to make years of breakthroughs on top of breakthroughs tapping into the best of Google Research in collaboration with the broader research community Let me give you just a couple examples of how we ve done this A big moment for image recognitionIn a paper wowed the research world for making a huge jump in accuracy on image recognition using deep neural networks leading to a series of rapid advances by researchers outside and within Google Further advances led to applications like Google Photos in letting you search photos by what s in them We then developed other deep learning models to help you find addresses in Google Maps make sense of videos on YouTube and explore the world around you using Google Lens Beyond our products we applied these approaches to health related problems such as detecting diabetic retinopathy in and then cancerous cells in and breast cancer in Better understanding of aerial imagery through deep learning let us launch flood forecasting in now expanded to cover more than million people in It s been encouraging to see how helpful these advances in image recognition have been Similarly we ve used deep learning to accelerate language understanding With sequence to sequence learning in we began looking at how to understand strings of text using deep learning This led to neural machine translation in Google Translate in which was a massive leap in quality particularly for less prevalent languages We developed neural language models further for Smart Reply in Gmail in which made it easier and faster for you to knock through your email especially on mobile That same year Google invented Transformers leading to BERT in then T and in MUM which lets you ask Google much more nuanced questions And with “sparse models like GShard we can dramatically improve on tasks like translation while using less energy We ve driven a similar arc in understanding speech In Google used deep neural networks to make major improvements to speech recognition on Android We kept advancing the state of the art with higher quality faster more efficient speech recognition systems By we were able to put the entire neural network on device so you could get accurate speech recognition even without a connection And in we launched Live Translate on the Pixel phone letting you speak and be translated in languages all on device while you re traveling with no Internet image of speech to text on phoneProject Relate A communication tool for people with speech impairments image of flood forecasting map on phoneML based flood forecasting helps equip those in harm s way with accurate and detailed alerts image of mammogramGoogle Health s AI system helps radiologistsidentify cancer in mammograms with greater accuracy More invention aheadAs our research goes forward we re balancing more immediately applied research with more exploratory fundamental research So we re looking at how for example AI can aid scientific discovery with a project like mapping the brain of a fly which could one day help better understand and treat mental illness in people We re also pursuing quantum computing which will likely take a decade or longer to reach wide scale applications This is why we publish nearly papers a year including around related to responsible AI and we ve given over grants to external researchers over the past decade and a half Looking ahead from to I m excited about the next generation AI systems we can build and how much more helpful they ll be We re planting the seeds today with new architectures like Pathways with more to come Marian CroakMinding the gap s As we develop these lines of research and turn them into useful technologies we re mindful of the broader societal impact of AI and especially that technology has not always had an equitable impact This is personal for me ーI care deeply about ensuring that people from all different backgrounds and circumstances have a good experience So we re increasing the depth and rigor of how we review and evaluate our research to ensure we re developing it responsibly We re also scaling up what we learn by inventing new tools to understand and calibrate critical AI systems across Google s products We re growing our organization to experts in Responsible AI and Human Centered Technology and working with hundreds of partners in product privacy security and other teams across Google As one example of our work on responsible AI Google Research began exploring the nascent field of ML fairness in The teams realized that on top of publishing papers they could have a greater impact by teaching ML practitioners how to build with fairness in mind as with the course we launched in We also started building interactive tools that coders and researchers could use from the What If Tool in to the launch of our Fairness Indicators tool all the way to Know Your Data in All of these are concrete ways that AI developers can test their datasets and models to see what kind of biases and gaps there are and start to work on mitigations to prevent unfair outcomes A principled approachIn fact fairness is one of the key tenets of our AI Principles We developed these principles in and published them in announcing not only the Principles themselves but a set of responsible AI practices with practical organizational and technical advice from what we ve learned along the way I was proud to be involved in the AI Principles review process from early on ーI ve seen firsthand how rigorous the teams at Google are on evaluating the technology we re developing and deciding how best to deploy it in the real world Indeed there are paths we ve chosen not to go down ーthe AI Principles describe a number of areas we avoid In line with our principles we ve taken a very cautious approach on face recognition We recognize how fraught this area is not only in terms of privacy and surveillance concerns but also its potential for unfair bias and impacts on historically marginalized groups I m glad that we re taking this so thoughtfully and carefully We re also developing technologies that help engineers apply the AI Principles directly ーfor example incorporating privacy design principles We invented Federated Learning in as a way to train ML models without your personal data leaving your phone In we showed how well this works on Gboard the free keyboard you can download for your phone ーit learns to provide you more useful suggestions while keeping what you type private on your device If you re curious you can learn more about all these veins of research product impact processes and external engagement in our AI Principles Progress Update AI by everyone for everyoneAs we look to the decade ahead it s incredibly important that AI be built in a way that works well for everyone That means building as inclusive a team as we can ourselves at Google It also means ensuring the field as a whole increasingly represents the people whose lives it aims to improve I m proud to lead the Black Leadership Advisory Group BLAG at Google We helped craft and drive programs included in Google s recent update on racial equity work For example we paired up new director level hires with BLAG members and the feedback has been really positive with of respondents saying they d recommend the program We re looking at extending this to other groups including for Lantinx and Asian Googlers We re holding ourselves accountable as leaders too ーwe now evaluate all VPs and above at Google on progress on diversity equity and inclusion This is crucial if we re going to have a more representative set of researchers and engineers building future technologies For the broader research and computer science communities we re providing a wide variety of grants programs and collaborations that we hope will welcome a more representative range of researchers Our Research Scholar Program begun in gave grants to more than universities in countries ーand of the principal investigators identify as part of a group that s been historically marginalized in tech Similarly our exploreCSR and CS Research Mentorship programs support thousands of undergrads from marginalized groups And we re partnering with groups like the National Science Foundation on their new Institute for Human AI Collaborations We re doing everything we can to make AI work well for all people We ll not only help ensure products across Google are using the latest practices in responsible AI ーwe ll also encourage new products and features that serve those who ve historically missed out on helpful new technologies One example is Project Relate which uses machine learning to help people with speech impairments communicate and use technology more easily Another is Real Tone which helps our imaging products like our Pixel phone camera and Google Photos more accurately and beautifully represent a diverse range of skin tones These are just the start We re excited for what s ahead in AI for everyone 2021-11-18 18:30:00
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ピクチャーボックスにきちんと写真が表示できません。 https://teratail.com/questions/370030?rss=all ピクチャーボックスにきちんと写真が表示できません。 2021-11-19 03:26:25
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) PythonでのTwitterAPIで 403 Forbiddenが発生する https://teratail.com/questions/370029?rss=all PythonでのTwitterAPIでForbiddenが発生する前提・実現したいことはじめまして。 2021-11-19 03:10:15
Ruby Rubyタグが付けられた新着投稿 - Qiita Pryのlsを使うと謎の^A^B^A^Bとかが表示されて格闘した話 https://qiita.com/Tatumaki/items/bc1d86e618c9790a7d1f 2021-11-19 03:45:42
Ruby Rubyタグが付けられた新着投稿 - Qiita 【RSpec】Railsチュートリアル第6版 第14章 https://qiita.com/supyolo888/items/532390902bf3e0f5348e 【RSpec】Railsチュートリアル第版第章はじめにRailsチュートリアル第版のテストをRSpecで書き直していく。 2021-11-19 03:00:51
Ruby Railsタグが付けられた新着投稿 - Qiita 【RSpec】Railsチュートリアル第6版 第14章 https://qiita.com/supyolo888/items/532390902bf3e0f5348e 【RSpec】Railsチュートリアル第版第章はじめにRailsチュートリアル第版のテストをRSpecで書き直していく。 2021-11-19 03:00:51
海外TECH MakeUseOf 6 Ways to Make It Harder for Data Brokers to Collect Your Data https://www.makeuseof.com/ways-to-make-it-harder-for-data-brokers-collect-your-data/ stalk 2021-11-18 18:45:12
海外TECH MakeUseOf Fast Charging Standards Compared: What Is Your Phone Using? https://www.makeuseof.com/fast-charging-standards-compared/ chargers 2021-11-18 18:30:53
海外TECH MakeUseOf The 6 Greatest Free Christmas Music and Radio Apps https://www.makeuseof.com/christmas-music-and-radio-apps/ radio 2021-11-18 18:15:22
海外TECH MakeUseOf How to Shoot RAW/DNG Photos on Your Samsung Galaxy Phone https://www.makeuseof.com/how-to-shoot-raw-photos-samsung-galaxy/ galaxy 2021-11-18 18:00:33
海外TECH DEV Community How to build GitHub Actions in PHP with Minicli and Docker https://dev.to/sourcegraph/how-to-build-github-actions-in-php-with-minicli-and-docker-1k6m How to build GitHub Actions in PHP with Minicli and DockerGitHub Actions facilitates creating CI CD automated workflows that can be triggered by GitHub events such as when a pull request is created a merge is made or a new comment is posted on an issue What some people may not know is that you can also run GitHub actions at scheduled times based on cron expressions Public repositories get unlimited GitHub Actions for free which makes this feature a really great tool for open source and personal projects that must run scheduled tasks In this guide you ll learn how to use GitHub Actions to periodically run a PHP command line application built with Minicli This application will update a CONTRIBUTORS file in the same repository where the workflow action is set updating information about top contributors of a project We ll implement the repository update portion using the update files on github action which will generate a commit with the file change to the repository where the workflow is run PrerequisitesTo follow this tutorial you ll need access to A PHP command line environment php cli no need for web servers and Composer installed The php curl extension is required to connect to the GitHub API An empty GitHub repository where you re going to set up your action For more info check this documentation Step Bootstrapping the applicationStart by bootstrapping a new Minicli application This will be a single command application so we don t need to use the minicli application template Create a new folder and require minicli minicli to start building your command cd mkdir action contributorscd action contributorscomposer require minicli minicliThis will create a new composer json file and download the base minicli minicli package Next you need to create the entry point script that runs your command Using your code editor of choice create a new file in the root of the application called minicli or another name of your choice nano minicliInclude the following code which bootstraps a Minicli application with a single command defined as callback usr bin php lt phpif php sapi name cli exit require DIR vendor autoload php use Minicli App app new App app path gt DIR app Command app gt registerCommand update contributors function use app app gt getPrinter gt info Fetching top contributors app gt runCommand argv Save and close the file Then run the following command to make this script executable chmod x minicliNow you can test your command with minicli update contributorsIn the next step you ll update the example command to pull the top contributors of a GitHub project and generate a markdown file with the list Step Pulling contributors with the GitHub APITo make requests to the GitHub API we ll use the Curly Minicli extension You can import it to your project with the following command composer require minicli curlyObtaining the top contributors for an open source project on GitHub doesn t require an authentication token You only need to include a couple headers in your request Accept application vnd github v jsonUser Agent My user agent vYou ll now edit the update contributors command to query the GitHub API and save information about top contributors in the project of your choice Replace the current content in your minicli script with the following updated code usr bin php lt phpif php sapi name cli exit require DIR vendor autoload php use Minicli App use Minicli Curly Client app new App app path gt DIR app Command repository gt getenv CONTRIB REPOSITORY minicli minicli output file gt getenv CONTRIB OUTPUT FILE CONTRIBUTORS md app gt registerCommand update contributors function use app app gt getPrinter gt info Fetching top contributors client new Client response client gt get app gt config gt repository contributors Accept application vnd github v json User Agent Curly if response code app gt getPrinter gt error an error occurred response code return content Contributors n n content Shout out to our top contributors n n foreach json decode response body as item content item gt login item gt url n try contrib file fopen app gt config gt output file w fwrite contrib file content fclose contrib file catch Exception exception app gt getPrinter gt error An error occurred while trying to save the contrib file return app gt getPrinter gt success Finished updating contrib file return app gt runCommand argv The updated code defines a couple configuration variables repository and output file with default values set to minicli minicli and CONTRIBUTORS md respectively When building your action workflow you can overwrite these default values with environment variables named CONTRIB REPOSITORY and CONTRIB OUTPUT FILE respectively The update contributors method now uses a Curly Client client to query the GitHub API using the endpoint When the request is successful the application builds a markdown text with the contributors that are returned as response and writes it to the file defined by the output file configuration value Now run the application again with minicli update contributorsFetching top contributors Finished updating contrib file If you check your repository files now you should see a new CONTRIBUTORS md file in the root of the repository cat CONTRIBTORS md ContributorsShout out to our top contributors erikaheidi syntaxseed tombenevides ScullWM wandersonwhcr lotfio flug mauriciofauth mrpc peterk zaghadon The application is now ready but you still need to set up the environment that will execute it on the GitHub runtime In the next step you ll build a custom Docker image based on PHP to install and execute the application Step Setting up the application DockerfileGitHub offers a few different runners to execute code as actions For PHP applications you ll need to provide the runner with a custom environment based on a Docker image capable of executing your application code as a single command Create a new Dockerfile in the root of your application and copy the following code to the file FROM php cliRUN apt get update amp amp apt get install y git curl libxml dev zip unzipRUN apt get clean amp amp rm rf var lib apt lists Install Composer and set up applicationCOPY from composer latest usr bin composer usr bin composerRUN mkdir applicationCOPY application RUN cd application amp amp composer installENTRYPOINT php application minicli CMD update contributors Save the file The example Dockerfile starts by setting up the base image to PHP cli Then it will set up a few required packages install Composer by copying its executable from its official image create a directory for the application inside the container copy the application files from the current directory and into the container run composer install set up the container entry point and default command You may want to test if the application runs through Docker with this image Use the following command to build the image under the tag action contributors docker build t action contributorsTo run the application in a disposable container using the newly built image run docker container run rm v pwd action contributorsYou should be able to see the same output as before However the generated CONTRIBUTORS md file will be confined to the container and won t show up in your application directory on the host machine When setting up your workflow you ll need to include an additional GitHub Action to either commit the changes directly to the master branch or open a pull request with the changes so that you can review the update before merging Step Creating the action fileWith the application ready you ll need to set up a YAML file to define your action Create a new file called action yml on the root of the project and copy the following content to that file action ymlname Update CONTRIBUTORS description Updates contributors file outputs response description Output from command runs using docker image Dockerfile Save the file The file starts by defining the name and description of the action Because our command doesn t require inputs we don t need to set up an inputs section for this action The response output will be available for logs that might refer to this information for debug purposes Then we get to the runs portion where we define what the action will do This action will build and execute the image defined by Dockerfile Your action is almost ready You re encouraged to create a README md file explaining how to use it and including an example workflow For now you can create a simple README with some basic information about the action You can use the following template for your README My Action TitleA paragraph about my action what it does and how it works Example usageInclude an example of workflow using this action When you re finished with your README you ll need to commit and push the files to the GitHub repository you ve created git add action yml composer json composer lock minicli Dockerfile README mdgit commit m My first action is ready git tag a m My first action release vgit push follow tagsOnce you have pushed your code including the tag the action is ready to be used by a workflow in any project on GitHub referenced by your user or org your action repo v In the next step you ll create a workflow to test this action Step Setting up a workflowWhen creating a workflow for a GitHub action there are quite a few different things to consider what triggers the action which other actions are needed and in which order they should run and what kinds of inputs or environment variables are required for the action to run This action should run on a scheduled basis without the need for a specific event to trigger it It doesn t require inputs but it uses two environment variables to define which repository is being pulled for contributors and the name of the file that will be created with the list of contributors We ll need to combine this action with another action to either commit the changes directly to the main project s branch or open a pull request with the changes Committing the updated CONTRIBUTORS file directly to the main branchThe following workflow will run once a month and commit an updated CONTRIBUTORS md file directly into the default remote branch of the project where this workflow is set name Update CONTRIBUTORS fileon schedule cron workflow dispatch jobs main runs on ubuntu latest steps uses minicli action contributors v name Update a projects CONTRIBUTORS file env CONTRIB REPOSITORY minicli minicli CONTRIB OUTPUT FILE CONTRIBUTORS md name Commit changes uses test room action update file v with file path CONTRIBUTORS md commit msg Update Contributors github token secrets GITHUB TOKEN Remember to change the CONTRIB REPOSITORY environment variable to the project you want to pull contributors from using the format owner repository Opening a Pull Request with the updated CONTRIBUTORS fileYou can also opt to open a pull request instead of committing the changes directly into the main project s branch For that you ll need an additional action called actions checkout This action checks out the repository code to a location inside the container name Update CONTRIBUTORS fileon schedule cron workflow dispatch jobs main runs on ubuntu latest steps uses actions checkout v uses minicli action contributors v name Update a projects CONTRIBUTORS file env CONTRIB REPOSITORY minicli docs CONTRIB OUTPUT FILE CONTRIBUTORS md name Create a PR uses peter evans create pull request v with commit message Update Contributors title automated Update Contributors File token secrets GITHUB TOKEN Copy your preferred workflow code to the following location inside the project where you want the keep your CONTRIBUTORS file github workflows contributors ymlThen commit and push your changes to the repository where the workflow will run Once you push the workflow file to that location you ll be able to see the workflow listed in the Actions tab of your GitHub repository Then you can manually run the workflow by clicking on the Run workflow button on the right If you choose to commit the changes directly into the main project s branch once the workflow has finished running you should find the updated CONTRIBUTORS file in the root of the project If you chose to create a pull request you should find an open pull request in the Pull requests tab of your project s repository carrying the updated CONTRIBUTORS file Find more example workflows using these actionsGitHub provides a large library of readily available actions you can integrate into your project and you can also find user contributed actions in the marketplace However because workflows are so flexible sometimes it can be difficult to figure out how to combine multiple actions and which inputs or environment variables are required in certain scenarios To find usage examples related to the actions used in this guide you can use the following Sourcegraph search queries Find more examples of the actions checkout actionSearch Query lang YAML uses actions checkout vSearch URL global lang YAML uses actions checkout v amp patternType literal Find more examples of the test room action update file actionSearch Query lang YAML uses test room action update file vSearch URL global lang YAML uses test room action update file v amp patternType literal Find more examples of the peter evans create pull request actionSearch Query lang YAML uses peter evans create pull request vSearch URL global lang YAML uses peter evans create pull request v amp patternType literal Search for anything related to GitHub actionsSearch URL global github actions amp patternType literalSearch Query github actions ConclusionIn this step by step tutorial we ve seen how to create a GitHub action to programmatically update a CONTRIBUTORS file for an open source project using the Minicli framework for command line applications in PHP If you d like to use this action in one of your projects and don t want to build it from scratch you can head over to the minicli action contributors repository on GitHub to set up this action within a workflow on your project To find more about GitHub actions you can check the official documentation and you can also search for practical examples of workflows using Sourcegraph code search 2021-11-18 18:30:36
海外TECH DEV Community How to auto-generate OpenAPI docs for Django, Flask, Spring and Rails apps https://dev.to/appland/how-to-auto-generate-openapi-docs-for-django-flask-spring-and-rails-apps-2bco How to auto generate OpenAPI docs for Django Flask Spring and Rails appsThe OpenAPI Specification also previously called Swagger helps developers model document implement and test web applications and services APIs It s a wonderful thing And unsurprisingly it s embraced by dev teams and documentation communities across the globe The trouble is keeping OpenAPI documentation accurate and in sync with implementation updates particularly for fast evolving applications and services can be really challenging and time consuming It s also a never ending task Because the OpenAPI standard can be such an intimidating format to work with it takes a true yaml guru to manage long configuration files quickly and precisely API documentation is often inaccurate and outdated And when API documentation isn t accurate or up to date devs face frustrating collaboration set backs broken applications and integrations and an overall inefficient use of OpenAPI automation tools To help devs avoid the risks associated with inaccurate and outdated API documentation we built a free and open source tool called AppMap that automatically generates OpenAPI documentation from running code AppMap ensures your API documentation is always current accurate and readily available no tedious manual labor required Huzzah Here s how AppMap OpenAPI generation works An AppMap agent is added to the tool chain of your application as a new build dependency When you run your tests the AppMap agent records AppMaps which are visual interactive maps of your application s code AppMaps include details about all of the web service requests made in your tests The AppMap openapi tool generates OpenAPI documentation from the recorded AppMaps You can execute this flow in either your local environment or in automated CI CD pipelines And you can download AppMap with OpenAPI generation for free for your preferred framework here Below is a script summary for the AppMap OpenAPI generation for Python video in case you prefer to read vs watch If you re working in Java or Ruby I ve included videos for those below too We re putting the finishing touches on AppMap for JavaScript right now so if you re interested in trying that out let us know in our Discord Thanks for reading and watching How to auto generate OpenAPI documentation for Python Django and Flask applications Today I am going to demonstrate how to automatically generate OpenAPI docs for my Python application with AppMap My application is Misago a popular forum application written in Python Django ES and React js I already have a Python development environment set up and I am ready to install AppMap and run tests Installing AppMap is easy with the command line installation tool it requires Node js Here s a terminal window with the Misago dev environment active In the project folder I ll run npm install appland appmapnpx appmap installThe installer asks me to confirm the environment and sets up AppMap automatically Now I am ready to record AppMaps I ll simply run tests with APPMAP true in the environment APPMAP true pytestif I used Windows it would be set APPMAP truepytest When the tests finish AppMap files will be stored in the tmp appmap pytest subfolder of my project In the final step I will run the AppMap openapi command npx appmap openapi openapi title Misago openapi version o misago openapi yaml appmap dir tmp appmap pytest And that s it The misago openapi yml is my generated OpenAPI documentation for my application If my application consisted of additional microservices I would generate documentation for each service using the same approach install AppMap agent run tests generate documentation I can inspect misago openapi yml in my IDE or in any OpenAPI tool Let me upload it to swagger io now And here it is an OpenAPI documentation of the Misago app in swagger io generated and imported in minutes How to auto generate OpenAPI documentation for Java Spring applications I am going to demonstrate how to automatically generate OpenAPI docs for my Java Spring application with AppMap My application is WebGoat a deliberately insecure application that lets developers test vulnerabilities commonly found in Java based applications that use common and popular open source components You can find the WebGoat repository used in this demo here I already have a Java environment set up and am ready to install AppMap and run tests Installing AppMap is easy with the command line installation tool which requires Node js In the WebGoat project folder I ll run this npx appland appmap installThe installer asks me to confirm the environment and sets up AppMap for the project automatically WebGoat uses Maven and the AppMap installer adds the AppMap Maven plugin to the master pom xml file A similar gradle plugin exists for gradle built applications Let me quickly review the pom xml files of the project because it s always recommended to verify the build configuration of complex Java applications The standard surefire plugin configuration was modified and the change unfortunately breaks all Java agent plugins such as AppMap or jacoco To quickly fix this issue I ve modified the surefire configuration lt configuration gt lt forkCount gt lt forkCount gt lt reuseForks gt true lt reuseForks gt lt argLine gt argLine illegal access permit lt argLine gt lt configuration gt Now I will run tests to record AppMaps mvnw testIf I used Windows mvnw testWhen the tests finish AppMap files will be stored in the target appmap subfolders of all sub modules that have tests In the final step I will install and run the AppMap openapi command npm install appland appmapnpx appmap openapi openapi title WebGoat openapi version o webgoat openapi yaml appmap dir And that s it webgoat openapi yml is my generated OpenAPI documentation If my applicationconsisted of additional microservices I would generate documentation from each service using the same approach install the AppMap agent run tests generate OpenAPI documentation from AppMaps I can inspect webgoat openapi yml in my IDE or in any OpenAPI tool Let me upload it to swagger io now And here it is the OpenAPI documentation of the WebGoat app generated and imported to swagger io in minutes How to auto generate OpenAPI documentation for Ruby on Rails applicationsPlease visit How to auto generate detailed Swagger OpenAPI for all your Rails routes 2021-11-18 18:29:20
海外TECH DEV Community LeetCode - Binary Tree Level Order Traversal https://dev.to/_alkesh26/leetcode-binary-tree-level-order-traversal-1d5o LeetCode Binary Tree Level Order Traversal Problem statementGiven the root of a binary tree return the level order traversal of its nodes values i e from left to right level by level Problem statement taken from Example Input root null null Output Example Input root Output Example Input root Output Constraints The number of nodes in the tree is in the range lt Node val lt Explanation Recursive functionWith trees recursion is the most widely used approach as the code is easy to read But for a few problems recursion increases the time complexity For large trees recursion can result in stack overflow or because of O N time complexity will take a lot of time For this problem we can use recursion but we need to calculate the height of the tree A small C snippet of the above approach will look as below void printLevelOrder node root int h height root for int i i lt h i printCurrentLevel root i void printLevel node root int level if root NULL return if level cout lt lt root gt data lt lt else if level gt printLevel root gt left level printLevel root gt right level The time complexity of the above approach is O N for skewed trees The worst case space complexity is O N Iterative approachWe can improve the time complexity by using a queue as a data structure Let s check the algorithm initialize D array as vector vector lt vector lt int gt gt result initialize size and i return result if root null initialize queue lt TreeNode gt q push root to queue q push root initialize TreeNode node for iterating on the tree loop while q empty queue is not empty initialize vector lt int gt tmp set size q size loop for i i lt size i set node q front if node gt left push in queue q push node gt left if node gt right push in queue q push node gt right remove the front node q pop push the tmp to result result push back tmp return result C solutionclass Solution public vector lt vector lt int gt gt levelOrder TreeNode root vector lt vector lt int gt gt result int size i if root NULL return result queue lt TreeNode gt q q push root TreeNode node while q empty vector lt int gt tmp size q size for i i lt size i node q front if node gt left q push node gt left if node gt right q push node gt right q pop tmp push back node gt val result push back tmp return result Golang solutionfunc levelOrder root TreeNode int result int queue TreeNode root for len queue tmp int size len queue for i i lt size i if queue nil tmp append tmp queue Val queue append queue queue Left queue append queue queue Right queue queue result append result tmp return result len result Javascript solutionvar levelOrder function root let result let queue if root queue push root while queue length gt tmp let len queue length for let i i lt len i let node queue shift tmp push node val if node left queue push node left if node right queue push node right result push tmp return result Let s dry run our algorithm to see how the solution works Input root null null Step vector lt vector lt int gt gt result int size i Step root null null falseStep queue lt TreeNode gt q q push root q Step loop q empty q q empty false false true vector lt int gt tmp size q size for i i lt i lt true node q front node if node gt left node gt left q push node gt left q if node gt right node gt right q push node gt right q q pop q tmp push back node gt val tmp push back i i for i lt lt false result push back tmp result Step loop q empty q q empty false false true vector lt int gt tmp size q size for i i lt i lt true node q front node if node gt left node gt left nil false if node gt right node gt right nil false q pop q tmp push back node gt val tmp push back i i for i lt lt true node q front node if node gt left node gt left q push node gt left q if node gt right node gt left q push node gt right q q pop q tmp push back node gt val tmp push back tmp i i for i lt lt false result push back tmp result Step loop q empty q q empty false false true vector lt int gt tmp size q size for i i lt i lt true node q front node if node gt left node gt left nil false if node gt right node gt right nil false q pop q tmp push back node gt val tmp push back i i for i lt lt true node q front node if node gt left node gt left nil false if node gt right node gt right nil false q pop q tmp push back node gt val tmp push back tmp i i for i lt lt false result push back tmp result Step loop q empty q q empty true true falseStep return resultSo we return the result as 2021-11-18 18:28:32
海外TECH DEV Community Ironhack Full Stack Developer Bootcamp - Week 2 - Calvin Torra https://dev.to/calvin087/ironhack-full-stack-developer-bootcamp-week-2-calvin-torra-2hol Ironhack Full Stack Developer Bootcamp Week Calvin TorraLinks Mentioned in Video Hour Productivity Draw Conley JS Games Zorbi FlashCards Socials️calvintorra comtwittergithubWe were actually given the entire curriculum as an online platform that contains all of the documentation for the course in English which is useful for me If I get lost at all in Spanish I have the online platform as a backup It only occurred to me the other day to skip ahead and see what things need to be done at the end of each module And For this first section it s an HTML CSS and JS game All of the lessons for the next few weeks leading up to the building presentation and submission of a game which was a bit worrying for me as I ve never done that before So that got me pondering on what my game is going to be about Obviously it shouldn t be too complicated as I d end up not finishing it but after doing a little bit of youtube searching to see what is actually possible I m now a little obsessed For instance there s this guy Drew Conley who just walks through the mechanics of his javascript game the graphics look super cute and simple and they remind me of those old Pokémon games on the Gameboy I d love to make something like this and if I start early enough maybe I can crank out an MVP in time for the end of the module that is not a complete pile of crap Theme of the gameI ve never read a lot of fiction so my imagination is really crap compared to when I was a kid All of my books are instructional how tos or knowledge books However when I m super tired I do binge watch this youtube series called the SCP Foundation I have no idea how I came across the first video but it sucked me into a massive rabbit hole of never ending stories The SCP foundation stands for Secure Contain Protect It s a community based wiki that includes elements of many genres such as science fiction urban fantasy and horror and I looooove horror I m thinking maybe the game can be a simple puzzle game a monster has breached containment one or two puzzle features maybe a scare jump and a count down timer until the SCP Monsters catches up with you and does its thing I haven t actually felt excited about a project in a long time so I feel that If I try to achieve this I might be able to make something I m actually proud of Style of the gameA work colleague warned me not to make things too complicated but I m sure there must be a shortcut I can take somewhere So For example something that I found fascinating is a sprite sheet Rather than animated characters you simply rapidly change the X and y position of the sprite sheet and hide the rest This happens so fast that the player s eyes simply see a moving character Things like this can probably save me time in development Building in public I m probably going to make a start on this game idea this week and I might document the journey whether I succeed or fail I guess it s more of a form of accountability than anything else as I usually get bored of side projects pretty quickly Problems Now that I think about it I don t know if we re supposed to do this in pairs If we are then I may have to make this game on my own time rather than burden someone with my silly ideas and over ambitious projects but we ll see Back to the course Array methodsMap Reduce Filter Sort It s quite interesting how early on they introduced these methods as they aren t easy concepts to get your head around as a beginner We had a brief intro into how they worked and then we got told to crack on with solving some problems Problems that I thought were pretty intense for someone s second week of programming Array Sort tripped me up quite a bit this time around We had an array of objects that contained dates titles director names as properties We had to sort these in ascending order by their date fine but if two objects have the same date those two had to be sorted alphabetically all in the same sort iteration I ve literally never seen this pattern before and even had a hard time finding solutions or examples online Naturally I came home and spent another hour digging into how Array Sort actually works under the hood and how to get it working without just copying and pasting a solution found online Now that I ve got it I ll probably make a video for my future self as that will probably come up again at some point Pair Programming Second StageI was looking forward to pair programming again but this time around I paired up with a new person I think this guy was a little bit similar to me in the sense that he just wanted to be in his own headspace and crank out the problems So we exchanged a few words here and there but in the end we were solving the new challenges in our own way and moving on without waiting for the other to catch up Not ideal but I guess this is the reality of working with other people on a mentally taxing exercise Some people are going to be more open to collaboration while others just want to crank out the code and get in the zone Not quite sure which one of those I am yet FlashCards AppI ve already moved away from Mochi and found something called Zorbi It s a free app and I ve already loaded it up without new Spanish words to remember It s already one of my favourite apps just for its ease of use 2021-11-18 18:16:37
海外TECH DEV Community Internal PR for Release 0.3 https://dev.to/ar/internal-pr-for-release-03-588m Internal PR for Release Part of Release was to make a meaningful contribution to either telescope or the modernization of IPC project I went with the latter The IssueI scrolled through the list of issues to get an idea of what s being worked on I noticed a large issue that requested an audit of all markdown pages I chose a random markdown page from the list and created my own issue stating that I d like to work on it I quickly noticed a lot of small problems with the page Such as missing alt texts extra code block indentations missing backticks and images not being centered For the image centering I wanted to use the text align CSS property This property only works in div tags so I changed the mdImg CSS class to div mdImg Because mdImg was being used on another markdown page I had to change the span elements to div on that page Pull RequestOnce I was done auditing I submitted a pull request and waited A day later it was explained to me that we d soon be using the ideal image plugin to handle all of the image stuff so my changes weren t needed I was told we could keep my changes for now and replace them with ideal image whenever it s implemented This made sense and the pull request was merged 2021-11-18 18:14:43
海外TECH DEV Community Python array Example - Create two different arrays and join them https://dev.to/rrtutors/python-array-example-create-two-different-arrays-and-join-them-1o1 Python array Example Create two different arrays and join themCreate two arrays one contains three numbers that the user enters and other containing a set of five random numbers Join these two arrays and display this arrayfrom array import import randomnum array i num array i for i in range num int raw input Enter a number num append num print Second Random Array for i in range num random randint num append num print Join two Arrays num extend num for i in num print i print Sort Joined Array num sorted num for i in num print i In the above example we createArray num with user enetered elementsCreate Array num with random numbersThen we joined two arrays using extend methodFinally we sorted joined array using sorted methodOutputEnter a number Enter a number Enter a number Second Random ArrayJoin two ArraysSort Joined ArrayPython Array ExamplesAsk the user to enter numbers If the user enter number between to store them in array other wise display message Outside the Range If the list contains five items then display message Thank you and disply entered list itemsPython Array Example Create array with fixed size elementsCreate an Array which contains numbers one can be multiple times display whole array to user then ask user to enter one of the numbers from the array and then display a message that how many times that number appears in the listPython Array Example Check array elements availability countAsk the user to Enter five integeres then Store them in an array After that sort the list and display them in reveres orderPython Array Example Insert and sort the array itemsCreate an Array which will store integeres Generate Random numbers and add them in created list and finally display the list itemsPython Array Example Create array with Random Integer Numbers 2021-11-18 18:12:32
海外TECH DEV Community Contribution to course curriculum https://dev.to/mqnguyen/contribution-to-course-curriculum-2eb9 Contribution to course curriculum IntroductionFinally I made it through Hacktoberfest And I also got myself a fancy new T shirt Celebration aside I still have a lot of work to do Working in open source means you always have to be ready to look for new issues find ways to contribute to the community of developers and always set yourself up for new challenges And this week I had a chance to contribute to my school s course curriculum The projectThe IPC course curriculum renewal is a project that aims to update the original course note to a brand new one using Docusaurus As mentioned before in one of my blogs Docusaurus is a static site generator for building deploying and maintaining documentation websites Most of the notes have already been changed to use Docusaurus but the project needs contributions to review each converted section add new features or fix existing bugs The issueAfter looking at all the available issues I decided to go with adding static analysis tooling specifically installing and configuring Prettier as the source code formatter Working on the issueWorking on the issue was not too difficult and I already have a different blog where I walk through how I setup Prettier but here is an overview of what I did Installed Prettier using npm Added a prettierrc file to configure all the options and a prettierignore file to skip the ones that don t need formatting Added the necessary scripts to run Prettier in package json Submitting the PROnce I was satisfied with my work I created a pull request and explained what I had done Getting in touch with the project s maintainers was quick as I could reach them through Slack However during the reviewing process my professor one of the maintainers noticed an issue when Prettier formatted the Markdown files Per my professor s request I decided to alert other students working on auditing and fixing the documentation about this problem by filing a new issue I made sure to write down a detailed explanation of how and why it happened while providing Prettier configurations so that other contributors could test their changes or replicate the issue if needed ConclusionAt the moment the pull request was waiting to be merged I will constantly keep track of any notifications and add changes if needed Happy coding 2021-11-18 18:07:28
海外TECH DEV Community You MUST store this Javascript Operator Index https://dev.to/codeoz/you-must-store-this-javascript-operator-index-2bec You MUST store this Javascript Operator IndexHere is a list of javascript operator and how to use it You should mark this and use it when you need to know what is this operator In order to naviguate you can make a cmd f or ctrl f and put the operator that you need and put after this Example if I m looking for what is operator Popularity is defined by my OWN usage Ambidextrous operator addition unary plusPopularity If you use operator BEFORE operand it will be used as unary plus operator The unary plus operator precedes its operand and evaluates to its operand but attempts to convert it into a number if it isn t already const x const y console log x expected output console log y expected output console log expected output console log true expected output console log false expected output console log hello expected output NaNNote If you try to use it with a string that is not a number it will return NaN not a number If you use operator in other context will be used as addition operator It Produces the sum of numeric operands except for stringNote It will convert boolean to number object to numberconsole log console log true When you use it with string it will make a string concatenationconst name code oz console log hello my name is name Note you should use template litterals string instead of concatenation subtraction unary negationPopularity If you use operator BEFORE operand it will be used as unary negation operator The unary negation operator precedes its operand and negates it Note It will convert boolean to number object to number amp string to numberconst a console log a console log Note If you try to use it with a string that is not a number it will return NaN not a number If you use operator in other context will be used as subtraction operator It subtracts the two operands producing their difference console log expected output console log expected output console log hello expected output NaNconsole log true expected output spread rest If you use operator in function parameters it will be used as rest operatorIt allows us to have an unlimited number of parameter for this function rest parameter is handle as array in the functionconst add rest gt return rest reduce total current gt total current Nice your function can handle different number of parameters add add If you use operator in other context it will be used as spread operatorIf you use it as arguments in function It will allows an iterable such as an array expression in function parameters const fruits Apple Orange Banana const getFruits f f f gt console log Fruits f f and f getFruits fruits Fruits Apple Orange and BananaYou can also use it for extracting values from array or object We extract the first Item of the array into the variable and the others variable in an array named othersconst firstItem others firstItem others const toto a b c const a others totoa we extract the a key from toto objectothers b c we extract other key in the object thanks to rest operator Note When you are doing const toto anotherObject it s equal to const toto Object assign anotherObject Logical operatorThing to know All value in Javascript are falsy or truthy value it means that you can make Boolean any value and you will get boolean value In Javascript all value are truthy value except null undefined NaN empty string amp amp logical ANDPopularity Use to check if all value in general value are condition are truthy It will return the first value falsy otherwise it will return the final value const isTrue trueconst isFalse falseconst value isFalse amp amp isTrue will return false const valueBis isTrue amp amp isFalse will return falseconst toto amp amp amp amp will return since all value before are true amp const tutu amp amp amp amp will return since it s the first falsy valueif firstCondition amp amp secondCondition console log hello console log will be shown only if both condition are true amp amp logical AND assignementPopularity Value is assigned only if value passed is truthy let toto let tutu toto amp amp toto value will be NOT changed since toto is falsy tutu amp amp tutu value will be replaced by since tutu is trusly toto amp amp It s a shortcut of let toto toto toto amp amp logical ORPopularity Use to check if one value in general value are condition are truthy among a set of value It will return the first value truthy otherwise it will return the final value const isTrue trueconst isFalse falseconst value isFalse isTrue will return true const valueBis isTrue isFalse will return trueconst toto will return since it s the first truthy valueconst tutu will return since it s the first truthy valueif firstCondition secondCondition console log hello console log will be shown if one condition matches logical OR assignementPopularity Value is assigned only if value passed is falsy let toto let tutu toto toto value will be replaced by since toto is falsy tutu tutu value will NOT changed since tutu is not a falsy value toto It s a shortcut of let toto toto toto logical Nullish CoalescingPopularity Returns its right hand side operand when its left hand side operand is null or undefined nullish value const toto since is not equal to nullish value const tutu null hello hello since the right hand side is equal to null const tata undefined since the right hand side is equal to undefined const titi null undefined undefined since the right hand side is equal to null ️Be careful operator is different of so when you need to assign a value depending on other value you should pick the correct operator const toto since is a falsy valueconst titi since is different of nullish valueconst tutu undefined since undefined is a falsy valueconst tata undefined since undefined is equal to nullish value logical Nullish assignementPopularity Value is assigned only if value passed is equal to null or undefined nullish let toto nulltoto toto is equal to since it s a nullish value null let tutu tutu toto is equal to since it s not a nullish value toto It s a shortcut of let toto nulltoto toto Equal to since toto is equal to null logical NOTPopularity Swap a true value into false value and false value into true value It also convert any value to boolean value So all truthy value become falsy value and vice versa Tips I use double logical operator a lot in order to convert any value to boolean It s equal to use Boolean any value console log true falseconsole log true trueconsole log falseconsole log trueconsole log falseconsole log falseconsole log undefined true My tips console log true equal to Boolean console log true equal to Boolean if value I use a lot in order to check if a value is defined or undefined Be careful if the value is equal to it will be false Special operator Optional chainingPopularity It allows to accesses a property on an object without having to check if each reference in the chain is valid It s not really clear Ok let s have a look const toto a b toto a b toto a b toto a b c undefinedtoto a b c d Uncaught TypeError Cannot read properties of undefinedIn fact in you try to access to a property on an undefined property Javascript engine will trigger an error So to be safe we need to make something like const toto a b if toto a amp amp toto a b amp amp toto a b c amp amp toto a b c d console log toto a b c d It s safe to use it since we check before if the property exist But it s not really convenient to make this isn t So opional chaining is here to save us ‍ ️You can try to access to a property without check if all property exist before as show above You just need to use this operator on property if the property doesn t exist it will return undefined const toto a b toto a b toto a b c d undefined TernaryPopularity Is the only operator in Javascript that requires two pseudo operand and It evaluate a condition depending on whether that condition is falsy or truthy It s equivalent to if amp else console log true console log const toto gt console log toto ok not ok It s a shortcut of if toto console log ok else console log not ok Comparator operator EqualityPopularity It checks whether its two operands are equal returning a Boolean result Unlike the strict equality operator it attempts to convert make an implicit coercion and compare operands that are of different types Note The mechanic of implicit coercion is not easy to understand but you can check it in details at this post Here an exemple of how the implicit corecion is done Not the same type so implicit coercion will be made Convert string into number so Number We got an number so we can check value true In general you should use strict equality and avoid this operator Strict EqualityPopularity It checks whether its two operands are equal returning a Boolean result Unlike the equality operator the strict equality operator always considers operands of different types to be different console log expected output trueconsole log hello hello expected output trueconsole log expected output falseconsole log false expected output falseYou should always use this operator instead of equality operator InequalityPopularity It checks whether its two operands are not equal returning a Boolean result Unlike the strict inequality operator it attempts to convert and compare operands that are of different types console log expected output falseconsole log hello hello expected output falseconsole log expected output falseconsole log false expected output falseIn general you should use strict inequality and avoid this operator Strict InequalityPopularity It checks whether its two operands are not equal returning a Boolean result Unlike the inequality operator the strict inequality operator always considers operands of different types to be different console log expected output falseconsole log hello hello expected output falseconsole log expected output trueconsole log false expected output trueYou should always use this operator instead of inequality gt Greater thanPopularity It returns true if the left operand is greater than the right operand and false otherwise console log gt expected output trueconsole log gt expected output falseconsole log ab gt aa expected output true gt Greater than or Equal ToPopularity It returns true if the left operand is greater than or equal to the right operand and false otherwise console log gt expected output trueconsole log gt expected output trueconsole log ab gt aa expected output true lt Less thanPopularity It returns true if the left operand is less than the right operand and false otherwise console log lt expected output falseconsole log lt expected output falseconsole log aa lt ab expected output true lt Less than or Equal ToPopularity It returns true if the left operand is less than or equal to the right operand and false otherwise console log lt expected output falseconsole log lt expected output true Compare bigint to number note bigint is not supported in all browsers console log n lt expected output trueconsole log aa lt ab expected output true Arithmetic operator Addition AssignmentPopularity Adds the value of the right operand to a variable and assigns the result to the variable let a let b b a b will be equal to since we are adding to b variable Subtraction AssignmentPopularity Subtracts the value of the right operand to a variable and assigns the result to the variable let a let b b a b will be equal to since we are subtracting to b variable MultiplicationPopularity Its produces the product of the operands let a let b let c a b Multiplication AssignmentPopularity Multiple the value of the right operand to a variable and assigns the result to the variable let a let b b a DivisionPopularity Its produces the quotient of its operands where the left operand is the dividend and the right operand is the divisor let a let b let c a b console log Infinity Division AssignmentPopularity Divide the value of the right operand to a variable and assigns the result to the variable let a let b b a ExponentiationPopularity Its returns the result of raising the first operand to the power of the second operand It is equivalent to Math pow except it also accepts BigInts as operands let a let b let c a b it equals to or Math pow Exponentiation AssignmentPopularity It raises the value of a variable to the power of the right operand let a let b b a it equals to or Math pow a b it equals to or Math pow Remainder modulo Popularity Its returns the remainder left over when one operand is divided by a second operand It always takes the sign of the dividend let a let b let c a b More information about modulo in mathematic gt Remainder AssignmentPopularity It divides a variable by the value of the right operand and assigns the remainder to the variable let a let b a b it s equal to a bMore information about modulo in mathematic gt IncrementPopularity It increments adds one to its operand and returns a value You can use it in two ways As pre increment It increment the value before the operationlet toto console log toto console log toto console log toto As post increment It increment the value after the operationlet toto console log toto console log toto console log toto DecrementPopularity It decrement subtracts one to its operand and returns a value You can use it in two ways As pre decrement It decrement the value before the operationlet toto console log toto console log toto console log toto As post decrement It decrement the value after the operationlet toto console log toto console log toto console log toto Bits operator amp Bitwise ANDPopularity Returns a in each bit position for which the corresponding bits of both operands are s ️Be careful Don t be confused between amp and amp amp operator The amp amp is the logical operator ANDconst a const b console log a amp b Tips If you need to check if a number is even you can use numberVar amp if the result is equal to your number is even amp Bitwise AND assignmentPopularity It uses the binary representation of both operands does a bitwise AND operation on them and assigns the result to the variable let a a amp console log a Bitwise NOTPopularity It inverts the bits of its operand Like other bitwise operators it converts the operand to a bit signed integerconst a const b console log a expected output console log b expected output Bitwise ORPopularity It returns a in each bit position for which the corresponding bits of either or both operands are s const a const b console log a b expected output Bitwise OR assignmentPopularity It uses the binary representation of both operands does a bitwise OR operation on them and assigns the result to the variable let a a console log a expected output Bitwise XORPopularity It returns a in each bit position for which the corresponding bits of either but not both operands are s const a const b console log a b Bitwise XOR assignmentPopularity It uses the binary representation of both operands does a bitwise XOR operation on them and assigns the result to the variable let a a console log a expected output lt lt Left shiftPopularity Shifts the first operand the specified number of bits to the left Excess bits shifted off to the left are discarded Zero bits are shifted in from the right const a const b console log a lt lt b expected output lt lt Left shift assignmentPopularity Moves the specified amount of bits to the left and assigns the result to the variable let a a lt lt console log a expected output gt gt Right shiftPopularity Shifts the first operand the specified number of bits to the right Excess bits shifted off to the right are discarded Copies of the leftmost bit are shifted in from the left Since the new leftmost bit has the same value as the previous leftmost bit the sign bit the leftmost bit does not change Hence the name sign propagating const a const b const c console log a gt gt b expected output console log c gt gt b expected output gt gt Right shift assignmentPopularity Moves the specified amount of bits to the right and assigns the result to the variable let a a gt gt console log a expected output let b b gt gt console log b expected output gt gt gt Unsigned Right shiftPopularity Shifts the first operand the specified number of bits to the right Excess bits shifted off to the right are discarded Zero bits are shifted in from the left The sign bit becomes so the result is always non negative Unlike the other bitwise operators zero fill right shift returns an unsigned bit integer const a const b const c console log a gt gt gt b expected output console log c gt gt gt b expected output gt gt gt Unsigned Right shift assignmentPopularity Moves the specified amount of bits to the right and assigns the result to the variable let a a gt gt gt console log a expected output let b b gt gt gt console log b expected output 2021-11-18 18:04:09
海外TECH DEV Community React SketchBoard DevLog #1 - Drawing with mouse, color and width selection and panning. https://dev.to/nordicbeaver/react-sketchboard-devlog-1-drawing-with-mouse-color-and-width-selection-and-panning-5h3o React SketchBoard DevLog Drawing with mouse color and width selection and panning Recently I started developing a react library for drawing in a browser It turned out that it s not as trivial as it seemed and there is a lot of cool stuff and interesting problems there So I decided to do a DevLog and share those thing with you I hope you ll enjoy 2021-11-18 18:01:11
Apple AppleInsider - Frontpage News Apple releases watchOS 8.1.1 with charging issue fix for Apple Watch Series 7 https://appleinsider.com/articles/21/11/18/apple-releases-watchos-811-with-charging-issue-fix-for-apple-watch-series-7?utm_medium=rss Apple releases watchOS with charging issue fix for Apple Watch Series Apple has released watchOS a minor update that addresses an issue that occurred when charging the Apple Watch Series watchOS fixes an issue with Apple Watch Series chargingAccording to the release notes the update addresses a charging issue with the Apple Watch Series No user facing features were added or altered Read more 2021-11-18 18:44:41
Apple AppleInsider - Frontpage News Apple employees to return to in-office work in February 2022 https://appleinsider.com/articles/21/11/18/apple-employees-to-return-to-in-office-work-in-february-2022?utm_medium=rss Apple employees to return to in office work in February Apple has told its corporate employees that they should expect to return to in office work by Feb according to an internal company memo Credit AppleIn a memo penned by Apple CEO Tim Cook and sent to staffers Thursday Apple plans to have corporate workers return to a hybrid work model that would see staff work at Apple campuses and offices for one or two days a week Read more 2021-11-18 18:18:12
Apple AppleInsider - Frontpage News Apple ramps up work on fully autonomous 'Apple Car,' targets 2025 release https://appleinsider.com/articles/21/11/18/apple-ramps-up-work-on-fully-autonomous-apple-car-targets-2025-release?utm_medium=rss Apple ramps up work on fully autonomous x Apple Car x targets releaseApple is preparing to accelerate development of its electric self driving Apple Car with a new focus on a vehicle that s fully autonomous and a potential launch date in Credit AppleInsiderReportedly Apple has explored two potential options for its self driving car a model with limited autonomous abilities like current production vehicles or a version that can fully drive itself without human intervention According to Bloomberg the company has settled on the latter Read more 2021-11-18 18:04:07
海外TECH Engadget Subaru's Solterra EV has a 220-mile range and 360-degree safety camera https://www.engadget.com/subaru-solterra-crossover-details-182128199.html?src=rss Subaru x s Solterra EV has a mile range and degree safety cameraFollowing not one but two teases Subaru has finally shared more information on its first EV the Solterra after the AWD crossover made an appearance at the LA Auto Show As expected the Solterra shares many similarities with Toyota s upcoming bZX crossover That should come as no surprise since the two automakers jointly developed the e TNGA powertrain at the heart of both electric vehicles Subaru s crossover features a kWh lithium battery that the automaker estimates will provide miles of range on a single charge Subaru says it s possible to charge the Solterra s power cell from dead to percent in under an hour with a DC fast charger The dual motors can output horsepower and lb ft of torque SubaruThe Solterra will come with Subaru s symmetrical all wheel drive system and X Mode feature The latter offers better traction in off road conditions Inside the cabin there s a inch touchscreen display that works with both Apple CarPlay and Android Auto The Solterra will also mark the debut of a couple of new safety technologies for Subaru First there s a degree “Surround View camera the company says allows for better situational awareness Second there s a feature called Safe Exit Assist that will warn your passengers if a vehicle is approaching as they re about to exit the car Subaru will start selling the Solterra sometime in mid The automaker has yet to announce final pricing for the crossover but it s expected to start somewhere in the range 2021-11-18 18:21:28
海外TECH Engadget Apple reportedly aims to debut a fully self-driving car in 2025 https://www.engadget.com/apple-first-electric-car-full-self-driving-181011414.html?src=rss Apple reportedly aims to debut a fully self driving car in Apple may be sharpening the focus of its long in development electric car Bloombergsources claim Apple is now shifting its attention to a fully self driving car not just a more conventional vehicle with semi autonomous features New project leader Kevin Lynch wants the very first model to drive itself the insiders said The company is reportedly speeding up its plans to match Where Apple had recently targeted a launch in five to seven years the sources said it was now aiming for or just four years The plan is believed to be quot fluid quot however and revolves around Apple completing its full autonomous system on time Apple supposedly finished much of the quot core work quot on the car s processor Tipsters also suggested Apple had an quot ideal quot interior in mind with lounge like seating for passengers a touchscreen infotainment system in the middle and no steering wheel or pedals An emergency takeover mode has been under discussion the sources added Apple declined to comment The new priority could help a project that has seen its share of setbacks including departing executives and skittish partners The company could match or beat incumbent car manufacturers planning to offer full or near full autonomy around the same time such as VW However full self driving has many challenges including difficult to predict traffic and weather problems like snow It wouldn t be surprising if Apple had to delay the car or at least ask drivers to take over in certain conditions 2021-11-18 18:10:11
海外TECH Network World IDC: Cisco, Fortinet, HPE-Aruba, VMware lead hot SD-WAN market https://www.networkworld.com/article/3641253/idc-cisco-fortinet-hpe-aruba-vmware-lead-hot-sd-wan-market.html#tk.rss_all IDC Cisco Fortinet HPE Aruba VMware lead hot SD WAN market Cisco Fortinet HPE Aruba and VMware lead the evolving and highly competitive software defined wide area networking SD WAN market according to a new report from IDC  “MarketScape Worldwide SD WAN Infrastructure Vendor Assessment looks at the capabilities of SD WAN infrastructure vendors evaluating then on a core set of SD WAN features such as WAN routing WAN link management application based policy controls and application steering and prioritization Beyond these features most current SD WAN packages include others such as optimized connections to public clouds IaaS and SaaS WAN link visibility and analytics end user experience monitoring zero touch provisioning and forward error correction according to the author of the report Brandon Butler IDC research manager Enterprise Networks To read this article in full please click here 2021-11-18 18:33:00
海外TECH CodeProject Latest Articles Theming and Localization functionality for Multiplaform Avalonia UI Framework https://www.codeproject.com/Articles/5317972/Theming-and-Localization-functionality-for-Multipl Theming and Localization functionality for Multiplaform Avalonia UI FrameworkNew simple and flexible package for Theming and Localizing multiplatform Avalonia applications is described here with samples 2021-11-18 18:42:00
海外TECH CodeProject Latest Articles Web API – A Solid Approach https://www.codeproject.com/Articles/1066348/Web-API-A-Solid-Approach Web API A Solid ApproachThis article demonstrates how to very easily create a lean Web API on top of a NET library of stateless services Although the sample code is quite simple the described architecture is rock solid 2021-11-18 18:21:00
海外科学 NYT > Science Vials Labeled ‘Smallpox’ Are Found in Pennsylvania Laboratory https://www.nytimes.com/2021/11/18/us/smallpox-vials-pennsylvania.html enforcement 2021-11-18 18:37:39
ニュース BBC News - Home HS2 rail extension to Leeds scrapped amid promise to transform rail https://www.bbc.co.uk/news/business-59334043?at_medium=RSS&at_campaign=KARANGA criticism 2021-11-18 18:20:25
ニュース BBC News - Home Zephaniah McLeod: Birmingham stabbing spree killer sentenced https://www.bbc.co.uk/news/uk-england-birmingham-59292090?at_medium=RSS&at_campaign=KARANGA september 2021-11-18 18:06:25
ニュース BBC News - Home Cricketer Rafiq sorry for anti-Semitic messages https://www.bbc.co.uk/sport/cricket/59338118?at_medium=RSS&at_campaign=KARANGA facebook 2021-11-18 18:17:33
ニュース BBC News - Home Covid-19: Cases highest in young children and 'VIP' contracts named https://www.bbc.co.uk/news/uk-59338555?at_medium=RSS&at_campaign=KARANGA coronavirus 2021-11-18 18:08:50
ニュース BBC News - Home HS2: Has the government broken its promises over high-speed rail? https://www.bbc.co.uk/news/59338295?at_medium=RSS&at_campaign=KARANGA reality 2021-11-18 18:11:42
ニュース BBC News - Home Tennis chief has 'hard time believing' email was sent by Chinese player Peng https://www.bbc.co.uk/news/world-asia-china-59325399?at_medium=RSS&at_campaign=KARANGA allegations 2021-11-18 18:20:33
ビジネス ダイヤモンド・オンライン - 新着記事 竹下派会長に茂木幹事長内定で怒りに震える青木氏の思惑とは - 永田町ライヴ! https://diamond.jp/articles/-/287946 国対委員長 2021-11-19 03:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 習近平主席はいかに中国の歴史を塗りかえたか - WSJ PickUp https://diamond.jp/articles/-/288127 殿堂入り 2021-11-19 03:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 ロシアで進むインフレと金利上昇、停滞するワクチン接種 - 西濵徹の新興国スコープ https://diamond.jp/articles/-/288213 新型コロナウイルス 2021-11-19 03:42:00
ビジネス ダイヤモンド・オンライン - 新着記事 ソフトバンク出資のペイティーエム、完璧期待のIPO - WSJ PickUp https://diamond.jp/articles/-/288128 中国企業 2021-11-19 03:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 ビジネスでYouTube、初心者がやりがちな失敗とは - ニュース3面鏡 https://diamond.jp/articles/-/287985 ビジネスでYouTube、初心者がやりがちな失敗とはニュース面鏡近年、YouTubeはメディアで注目されがちなエンタメ系ユーチューバーによる「娯楽としての動画媒体」から変化し、調べものをしたりノウハウやハウツーを吸収するための「検索エンジン」としての需要が高まっています。 2021-11-19 03:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 「隠れ内向」の心理学、親しい人でも1日中一緒にいると疲れるのはなぜ? - 榎本博明のビジネス心理学 https://diamond.jp/articles/-/287892 四六時中 2021-11-19 03:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 オープンイノベーションの成功確率をグンと上げる「スイッチの入れ方」 - 大企業ハック大全 https://diamond.jp/articles/-/288033 確率 2021-11-19 03:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 マインドフルネスはどれほど有効なのか?精神科医でもある禅僧が解説 - 半分、減らす。 https://diamond.jp/articles/-/287238 精神科医 2021-11-19 03:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 中国の不動産締め付け、アリババのさらなる逆風に - WSJ発 https://diamond.jp/articles/-/288232 逆風 2021-11-19 03:17:00
ビジネス ダイヤモンド・オンライン - 新着記事 77歳「伝説の経営者」が、瑛人の『香水』を聴くワケとは? - だから、この本。 https://diamond.jp/articles/-/287576 歳「伝説の経営者」が、瑛人の『香水』を聴くワケとはだから、この本。 2021-11-19 03:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 小さな会社のネット販促は、意外と大変! - 「A4」1枚チラシで今すぐ売上をあげるすごい方法 https://diamond.jp/articles/-/287101 2021-11-19 03: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件)