投稿時間:2022-04-23 02:30:40 RSSフィード2022-04-23 02:00 分まとめ(35件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Big Data Blog Author AWS Glue jobs with PyCharm using AWS Glue interactive sessions https://aws.amazon.com/blogs/big-data/author-aws-glue-jobs-with-pycharm-using-aws-glue-interactive-sessions/ Author AWS Glue jobs with PyCharm using AWS Glue interactive sessionsData lakes business intelligence operational analytics and data warehousing share a common core characteristicーthe ability to extract transform and load ETL data for analytics Since its launch in AWS Glue has provided serverless data integration service that makes it easy to discover prepare and combine data for analytics machine learning and application development AWS … 2022-04-22 16:48:42
AWS AWS Machine Learning Blog Secure AWS CodeArtifact access for isolated Amazon SageMaker notebook instances https://aws.amazon.com/blogs/machine-learning/secure-aws-codeartifact-access-for-isolated-amazon-sagemaker-notebook-instances/ Secure AWS CodeArtifact access for isolated Amazon SageMaker notebook instancesAWS CodeArtifact allows developers to connect internal code repositories to upstream code repositories like Pypi Maven or NPM AWS CodeArtifact is a powerful addition to CI CD workflows on AWS but it is similarly effective for code bases hosted on a Jupyter notebook This is a common development paradigm for Machine Learning developers that build and train … 2022-04-22 16:56:29
AWS AWS Government, Education, and Nonprofits Blog Transforming animal conservation with open data and more on AWS https://aws.amazon.com/blogs/publicsector/transforming-animal-conservation-open-data-more-aws/ Transforming animal conservation with open data and more on AWSOpen data is helping researchers and nonprofit conservationists protect vulnerable species around the world In celebration of Earth Day we are shining a spotlight on two sustainability stories from the AWS Fix This podcast from AWS a podcast exploring the ways people use technology to address some of the world s most pressing challenges 2022-04-22 16:15:04
Google Official Google Blog Get more out of the Google app https://blog.google/products/search/google-app-tips/ Get more out of the Google appThere s a lot you can do with the Google app from immersing yourself in D augmented reality to sending a message to loved ones and searching for fashion inspiration Here are a few of our favorite ways to use the Google app for Android and iOS to search for information and get things done through text your voice or even your phone s camera Go beyond the search boxWith the Google app you can go beyond using text to find information and inspiration in a variety of helpful and innovative ways For example you can Search with text and images at the same time With multisearch in Lens you can now use text and images at the same time to search for those hard to express queries To get started simply open up the Google app on Android or iOS tap the Lens camera icon and either search one of your screenshots or snap a photo of the world around you like the stylish orange dress that you actually want in green Then swipe up and tap the Add to your search button to add text Video format not supportedSpeak or hum to Search In addition to searching with your camera you can also use your voice to search on the Google app instead of typing Just tap the mic icon and say whatever it is you want to search for on Google What about if you can t remember the name of a song or the words but the tune is stuck in your head The Google app can help you figure it out Tap the mic icon and say “What s this song or click the “Search a song button Then start humming whistling or singing for seconds Don t worry you don t need perfect pitch to use this feature Keep up with your interests With Discover you can get updates for your interests like your favorite sports teams celebrities fitness routines and more If you have personal results enabled you can follow and unfollow topics and browse through a visual and immersive set of stories and updates tailored to your interests You can read more about how to customize what you find in Discover on our support page And you can save links images and places from Google search results to Collections within the app to easily find them later Stay organized and save timeWith the Google app you can knock out important tasks quickly and easily to take your productivity to the next level Keep your calendar updated You can create Calendar events using Google Assistant and also see Calendar updates like important meetings that are upcoming You can also get notifications when it s time to leave for your event Copy your handwritten notes If you ve taken notes on paper you can use Lens to quickly copy and paste the text to your phone or to another signed in device with Chrome like your computer No more retyping those handwritten notes Make calls and texts Want to get in touch with someone quickly The Google app lets you use Google Assistant to send messages or make calls with your voice no need to even open up your texts to type something out Simplify your checkout Forgot to order a cooler for your upcoming camping trip With the Google app you can autofill saved info like your addresses or payment info for a seamless checkout Learn new facts concepts and skillsThere are many ways you can use the Google app to help you learn new things immersing yourself in new concepts and getting help breaking down complex problems Translate Learning a new language or did you come across a photo with text in another language Lens can translate more than languages such as Spanish and Arabic and you can tap to hear words and sentences pronounced out loud Get homework help You can use Lens to get help on a homework problem With step by step guides and videos you can learn and understand the foundational concepts to solve math chemistry biology and physics problems Immerse yourself in AR Augmented reality is also a powerful tool for visual learning With Lens you can view and interact with D objects and concepts from animals to STEM concepts to world monuments to your favorite athletes right from Search Placing these D objects directly into your own space can give you a sense of scale and detail The Google app offers the best way to search enabling you to go beyond the search box to uncover new information enhance your productivity and have fun along the way 2022-04-22 17:00:00
js JavaScriptタグが付けられた新着投稿 - Qiita 【React / Next】親から関数をpropsで子へ渡して、子でonClick={someFun}と記述したら「is not assignable to type ts(2322)」の型エラーがでた https://qiita.com/tak001/items/748f02e41f8a47d3ebb2 exportconstparentgt 2022-04-23 01:38:18
Ruby Rubyタグが付けられた新着投稿 - Qiita Rails+docker環境構築でyarnが上手くインストールできない https://qiita.com/yyy_muu/items/6d92c5a1b3ee4a5bd5b9 docker 2022-04-23 01:26:11
AWS AWSタグが付けられた新着投稿 - Qiita EC2のキーペア ssh接続の際の権限エラーの解決方法 https://qiita.com/paupau/items/3f30b06f8dd5b9ce1e20 参考文献 2022-04-23 01:05:16
Docker dockerタグが付けられた新着投稿 - Qiita Rails+docker環境構築でyarnが上手くインストールできない https://qiita.com/yyy_muu/items/6d92c5a1b3ee4a5bd5b9 docker 2022-04-23 01:26:11
Ruby Railsタグが付けられた新着投稿 - Qiita Rails+docker環境構築でyarnが上手くインストールできない https://qiita.com/yyy_muu/items/6d92c5a1b3ee4a5bd5b9 docker 2022-04-23 01:26:11
海外TECH Ars Technica Microsoft enters “final phase” of disabling SMB1 file-sharing in Windows 11 https://arstechnica.com/?p=1849715 enters 2022-04-22 16:12:37
海外TECH MakeUseOf How to Move, Reorder, and Rearrange Pages in Microsoft Word https://www.makeuseof.com/tag/how-to-move-pages-in-word/ How to Move Reorder and Rearrange Pages in Microsoft WordWhen you work in Microsoft Word you ll have to rearrange pages It s not always clear how to do that so use these tips to make it a lot easier 2022-04-22 16:45:13
海外TECH MakeUseOf 5 Signs of Phone Tracking You Should Look Out For https://www.makeuseof.com/signs-of-phone-tracking-look-for/ activities 2022-04-22 16:30:13
海外TECH MakeUseOf 9 Ways to Fix Slow Download Speeds on Chrome https://www.makeuseof.com/fix-slow-download-speeds-chrome/ chrome 2022-04-22 16:30:14
海外TECH MakeUseOf Windows 11 PC Shutting Down For No Reason? Here's How to Fix It https://www.makeuseof.com/random-shutdown-windows-11/ itthere 2022-04-22 16:15:13
海外TECH DEV Community Have a Community-Powered Earth Day 🌍 https://dev.to/devteam/have-a-community-powered-earth-day-5jc Have a Community Powered Earth Day As you might know I ve been highlighting some of the early Forems joining the network of late over the last few weeks in this series Today is Earth Day and to celebrate I wanted to highlight two special and very relevant spaces Forest and Development Hackers I also highlighted Development Hackers last week but I wanted to bring them up again in the context of Earth Day Environmental justice is a matter of awareness and impact and I think these two spaces are absolutely providing this Development Hackers Work together to build impactful tech solutions for global problems developmenthackers com Forest A community for discovering sharing and learning about sustainable living joinforest com While there is currently no easy and sweeping way to fix the health of our planet the decisions we make as software developers are critical to a sustainable environment We are a group capable of discovering and solving pressing problems like no other ーespecially if we commit to applying ourselves on an ongoing basis Today I ll be spending some time in both of these communities to fully immerse myself in their overlapping mission statements of using the power of software to help our ailing planet I invite you to join me by clicking the links above and setting up accounts on both Forest and Development Hackers Forest Welcome Thread Development Hackers Welcome Thread Happy coding and happy Earth Day One last thing You ll notice Sign up with Forem as an option on these Forems This is a service we now offer to most seamlessly navigate the ecosystem and manage your identity We want you to be able to bring your full self without having to bring your full data so making this distributed ecosystem as straightforward as possible in the long run is really important Create a Forem account and connect it with your DEV account via your settings 2022-04-22 16:32:43
海外TECH DEV Community Como criar uma GitHub Action para importar posts do DEV.to em PHP com o Minicli - Vídeo + Tutorial https://dev.to/erikaheidi/como-criar-uma-github-action-para-importar-posts-do-devto-em-php-com-o-minicli-video-tutorial-2lnd Como criar uma GitHub Action para importar posts do DEV to em PHP com o Minicli Vídeo TutorialGitHub Actions éuma funcionalidade oferecida pelo GitHub que permite a execução de processos automatizados que podem ser engatilhados por eventos tais como pull requests pushs novos comentários mas também podem rodar em agendamento similar ao crontab Actions podem ser combinadas para a criação de workflows automatizados diversos que podem ser usados para CI CD e também para outras finalidades Repositórios open source tem acesso ilimitado a esse recurso fazendo dessa funcionalidade uma ótima ferramenta para execução de tarefas agendadas pequenos workers e bots Esse post reúne os vídeos que produzi mostrando como criar uma GitHub Action em PHP com o Minicli um microframework PHP para a linha de comando O primeiro vídeo traz uma introdução rápida sobre o Minicli útil para fornecer um contexto antes de iniciarmos o desenvolvimento da aplicação No segundo vídeo vemos como criar a aplicação que iráimportar os posts do DEV to e salvá los como arquivos markdown No terceiro e último vídeo vemos como adaptar a aplicação para ser usada como GitHub Action Logo abaixo dos vídeos vocêencontra os comandos e arquivos necessários para reproduzir o tutorial Prerequisitos para seguir o tutorialPara executar os passos desse tutorial vocêprecisaráde Um ambiente de desenvolvimento PHP cli com a extensão php curl instalada Composer instalado Introdução ao Minicli Opcional Nesse vídeo curto mostro uma visão geral sobre o Minicli e como fazer o bootstrap de uma nova aplicação usando esse framework Criando uma aplicação Minicli para importar posts do DEV toNesse vídeo criamos uma aplicação Minicli do zero e desenvolvemos um comando para importar posts de um usuário ou org do DEV to usando a API fornecida por essa plataforma de conteúdo Bootstrap da aplicaçãoVocêpode criar uma nova aplicação Minicli com o seguinte comando composer create project minicli application importDevTo Adicionando dependência minicli curlyVamos usar o pacote minicli curly para fazer requisições àAPI do DEV to composer require minicli curly Criando um novo comandoPara criar um novo comando que seráchamado com minicli import dev vocêprecisaráseguir a convenção estabelecida pelo Minicli app Command CommandNamespace SubcommandController php mkdir app Command Importtouch app Command Import DevController phpVamos precisar de alguns valores de configurações que poderão ser usados para customizar essa Action através de variáveis de ambiente Abaixo a versão mais atualizada do arquivo jácontendo alterações que serão trazidas no próximo vídeo lt phpreturn app path gt DIR app Command debug gt true devto username gt getenv DEVTO USERNAME erikaheidi data path gt getenv APP DATA DIR DIR devto Para usar esse config com a aplicação vocêprecisaráeditar o arquivo minicli na raiz da aplicação Substitua a linha onde a aplicação éinstanciada pela seguinte linha app new App require DIR config php A versão mais atualizada do arquivo DevController php que contém o comando chamado por minicli import dev estádisponível abaixo Note que essa versão não irácoincidir com a do vídeo pois contém algumas adaptações incluídas posteriormente para facilitar o uso prático dessa aplicação como GitHub Action lt phpnamespace App Command Import use Minicli Curly Client use Minicli Command CommandController class DevController extends CommandController public string API URL public function handle void this gt getPrinter gt display Fetching posts from DEV crawler new Client if this gt getApp gt config gt devto username throw new Exception You must set up your devto username config devto username this gt getApp gt config gt devto username articles response crawler gt get this gt API URL articles username devto username if articles response code throw new Exception Error while contacting the dev to API if this gt getApp gt config gt data path throw new Exception You must define your data path config value data path this gt getApp gt config gt data path if is dir data path amp amp mkdir data path throw new Exception You must define your data path config value articles json decode articles response body true foreach articles as article get article crawler gt get this gt API URL articles article id if get article code this gt getPrinter gt error Error while contacting the dev to API continue article content json decode get article body true date new DateTime article content published at filepath data path date gt format Ymd article content slug md file fopen filepath w fwrite file article content body markdown fclose file this gt getPrinter gt info Saved article article content title to filepath this gt getPrinter gt info Finished importing true Convertendo a aplicação demo em GitHub ActionNesse vídeo partimos da aplicação desenvolvida no vídeo anterior fazendo pequenas adaptações e criando os arquivos necessários para usar a aplicação como GitHub Action Criando um Dockerfile para a aplicaçãoO arquivo Dockerfile deve ser criado na raiz do repositório da sua GitHub Action Ele seráreferenciado pelo arquivo action yml que define o que essa Action iráexecutar 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 import dev Criando um action ymlO arquivo action yml define os metadados da Action e deve ser comitado na raiz do repositório name Import DEV to posts description Imports posts from DEV to as markdown files outputs response description Output from command runs using docker image Dockerfile Montando um WorkflowO workflow deve ser criado no repositório onde vocêquer salvar os arquivos markdown Esse arquivo pode ter qualquer nome desde que esteja dentro da pasta github workflows dentro do repositório O workflow abaixo irácriar um pull request sempre que houver uma diff entre a versão atual do repositório e o conteúdo importado pela Action Ele utiliza três actions actions checkout v erikaheidi importDevTo veter evans create pull request vname Import posts from DEVon schedule cron workflow dispatch jobs main runs on ubuntu latest steps uses actions checkout v uses erikaheidi importDevTo v name Import posts from DEV env DEVTO USERNAME erikaheidi APP DATA DIR github workspace devto name Create a PR uses peter evans create pull request v with commit message Import posts from DEV title automated Import posts from DEV token secrets GITHUB TOKEN Testando workflowPara testar o workflow acesse o repositório e váatéa aba Actions selecione o workflow no sidebar da esquerda e clique em Run Workflow Após o workflow finalizar sua execução vocêdeveráver um pull request aberto no repositório onde o workflow estádefinido desde que haja posts que não foram importados jáanteriormente ConclusãoGitHub Actions éuma ferramenta poderosa e versátil oferecida pelo GitHub que nos permite executar workflows customizados que vão muito além de CI CD Nesse tutorial eu procurei passar um pouco mais de contexto para enriquecer os tutoriais em vídeo que compartilhei recentemente sobre o assunto Links Úteis Playlist no YouTubeRepositório com todo o código desenvolvido nos tutoriaisDocumentação do MinicliDocumentação do GitHub Actions 2022-04-22 16:30:53
海外TECH DEV Community Exploring React Relay 13’s Rust compiler https://dev.to/logrocket/exploring-react-relay-13s-rust-compiler-9bm Exploring React Relay s Rust compilerWritten by Samson Omojola️The Relay compiler is a GraphQL code generation tool used for React apps Previously created in JavaScript the compiler was recently rewritten in Rust In this article we ll explore its features how it works and why the rewrite was necessary Overview of Relay and its compilerThere are quite a number of GraphQL clients available in the market but Relay comes with some distinct features and advantages One advantage Relay has is that it lets you think in terms of small scopes Using GraphQL fragments in RelayFor instance when creating a component you can tell Relay to only source the specific data required inside that particular component by creating a fragment This way you never need to worry about the big picture Each component can have its own fragment and at compile time all the fragments stitch together into a query that proceeds to fetch all the needed data The concept of a fragment living inside a component along with its view code is called colocation The advantage of colocation is that there is no over fetching data which allows your application to perform better There is also no under fetching data which prevents errors that might occur from missing data Another advantage of colocation is that a component only rerenders when specifying data in its fragment changes thereby preventing unnecessary re renders Relay s data maskingRelay also provides its scope management advantage at runtime after data responds to a query with data the compiler creates data files that serve each component its own required data when the component is about to render This concept is called data masking The advantage of this is that components cannot assess data that wasn t specified in their GraphQL fragments This way changes made to a component and its data dependencies do not affect another component As one component cannot rely on another for data data masking prevents data dependency bugs and provides your application with stability Fragments can easily be used in multiple components are easy to refactor and make your application efficient Why Relay needs a compilerRelay uses a compiler to improve runtime performance and guarantee stability With Relay much of the components work and GraphQL s communication executes at build time thereby improving your application s runtime performance significantly Refetching and paginationTasks like refetching data and pagination in applications can be tricky to implement and are error prone Through Relay s APIs like useRefetchableFragment and usePaginationFragment Relay takes advantage of its compiler to automate these tasks With Relay s out of the box pagination feature you only need a few lines of code to implement pagination in your app compared to implementing it manually The compiler helps you create the custom query needed for pagination and helps you keep track of information that s often needed when paginating like data that s already loaded and the amount of data that has yet to load It hides away a lot of complexity which is great if you simply want to put a quick pagination feature together Automatic type generationThe Relay compiler also enables automatic type generation to implement type safety in your application and prevent bugs The Relay compiler optimizes performance in your application by removing redundancies in queries and as a result reduces the size of your query payload The compiler creates compact optimized queries that run your app smoothly at runtime It also helps to save your users bandwidth and improve your application s performance by excluding the schema or string representation of GraphQL fragments from your application bundle Using a unique query IDAnother way the Relay compiler helps users save bandwidth is rather than sending a long query to your application s server the compiler generates a unique query ID and uses that to source data from the server The limitations of JavaScript in Relay s compilerAs mentioned above the previous compiler was written in JavaScript According to the React Relay team JavaScript was originally picked for the compiler because it was the language that the Relay runtime and other GraphQL tools were written in But in spite of all the attempts made to optimize the JavaScript compiler its performance dwindled over time The team s biggest challenge with JavaScript was the fact that it s a single threaded language In Node js you can t run multiple threads with shared memory Although worker threads can be created to share memory with the size of schema that Relay has this method wouldn t have been efficient Why Relay uses Rust for the new compilerWith the previous JavaScript compiler as the Relay codebase grew it took increasingly more time to compile code According to the React Relay team the constant increase in the number of queries in Relay s codebase had been slowing down performance It eventually became suboptimal for the problem it was created to solve When it became obvious JavaScript wouldn t cut it anymore a number of languages which didn t have JavaScript s single thread limitations and had strong internal support were considered before landing on Rust C was eliminated for its steep learning curve and its weak memory safety Java was eliminated for not providing enough low level control and OCaml was eliminated for its inefficient concurrency In the end React settled on Rust for its speed memory safety and concurrency and with it large data structures that can be easily and safely shared across different threads The new Rust based compiler is faster has many new features and was designed with scaling in mind Features of Relay s new Rust compilerThe new compiler was created as a collection of independent modules that can be used in other GraphQL tools Basically the same modules used in the new React Relay compiler are also used internally in GraphQL tools for other platforms The compiler comes with features like TypeScript support Support for remote persisted queries The no inline directive applied to fragments to prevent them from inlining The requireddirective which simplifies null checksThe required directive can be added to fields in a GraphQL fragment to handle null values generated at runtime Take the fragment below as an example const data useFragment graphql fragment ArticleComponent article on Article tech article required action NONE title required action NONE Above you have a basic fragment requesting the titles of tech articles The required directive attached to the title field performs a null check on it If the title is null then its parent field tech article is declared null as well by Relay The same thing happens with the required directive applied to the tech article field Now the action parameter is the important part This is where you specify what you want Relay to do if it finds a null field When action is set to NONE instead of throwing an error your UI renders fine and nothing displays wherever the title value is used in your UI There are of course other options you can apply to your fields when handling null checks This feature is especially useful when performing many null checks in your code According to React Relay team the rewrite was also done to support some future plans like abstracting more common complexities in apps and shipping with more out of the box features beyond pagination One tool that was built into the new compiler but is not public yet is a VS Code extension that makes using GraphQL easier by autocompleting field names as you type and showing you information on a field when you hover over it Why many use Rust to rewrite JavaScript toolingIt seems that a lot of JavaScript tooling is currently being rewritten in Rust But why Better speed better performance and better memory efficiency Instead of the traditional garbage collection method that JavaScript uses Rust uses a much more efficient memory management system making it faster and more performant The Next js team recently added a Rust compiler to the framework to replace JavaScript tools like Babel and Terser This was done to maximize performance achieve faster builds and refresh rates Their new Rust compiler is times faster than Babel and seven times faster than Terser Fast and memory efficient Rust found a way to bring both low level control and high level comfort design to the software world Memory safety which is one of Rust s most prominent features and biggest selling points lets you easily identify and get rid of bugs at compile time We are also starting to see Rust alternatives for tooling like Prettier ESLint and Webpack spring up ConclusionRust which was voted the most loved programming language in the last six years and appears to complement JavaScript really well With JavaScript s simplicity and ease of use and Rust s speed and memory efficiency I believe both languages together would be unstoppable Full visibility into production React appsDebugging React applications can be difficult especially when users experience issues that are hard to reproduce If you re interested in monitoring and tracking Redux state automatically surfacing JavaScript errors and tracking slow network requests and component load time try LogRocket LogRocket is like a DVR for web and mobile apps recording literally everything that happens on your React app Instead of guessing why problems happen you can aggregate and report on what state your application was in when an issue occurred LogRocket also monitors your app s performance reporting with metrics like client CPU load client memory usage and more The LogRocket Redux middleware package adds an extra layer of visibility into your user sessions LogRocket logs all actions and state from your Redux stores Modernize how you debug your React apps ーstart monitoring for free 2022-04-22 16:18:54
海外TECH DEV Community Why Your CSS is Always Messy and Chaotic – Understanding CSS Complexity https://dev.to/itstrueintheory/why-your-css-is-always-messy-and-chaotic-understanding-css-complexity-3o94 Why Your CSS is Always Messy and Chaotic Understanding CSS ComplexityDoes the thought of making a minor style update in a large front end project give you pause It does for me It can be especially hard when I m modifying a project written by another team even if the change is small Somehow CSS stylesheets preprocessed or otherwise are always a jumbled mess of classes and ids Why is it common to have clean JS Python PHP code and spaghetti CSS in the same code base This week I want to take a look at what makes CSS complex using the ontology of software complexity from John Ousterhout s excellent book A Philosophy of Software Design This post sets the table for why CSS gets so messy before we dig into design patterns and solutions next week What is Complexity Let s start off with a complexity definition From A Philosophy of Software Design Complexity is anything related to the structure of a software system that makes it hard to understand and modify the system This definition fits CSS quite well Complex CSS is hard to understand and harder to modify obligatory link to the CSS stool joke Ousterhout also points out three symptoms of complexity that make a piece of code hard to work with Change AmplificationChange amplification occurs when a seemingly simple change requires changes in multiple places Example in CSS land  you are tasked with changing all paragraph text colors on a website from black to navy With a simple HTML page it s as simple as a one line p color navy On a large project you spend the whole day defeating the highest specificity that applies to all  lt p gt  elements on all pages only to discover the checkout gadget s shipping confirmation modal has a paragraph element that somehow inherited text color from the teal heading Cognitive LoadCognitive load is the amount of information a developer needs to keep in mind in order to make a change Example in CSS land  You are asked to change the font size of the hero section CTA button on large viewports from px to px Here s a list of information you may have to keep in mind Default body font size from user agent stylesheets Existing button font size for small and medium viewports font size of hero section text because the em unit seems like a good fit Maybe we use rem instead does the project use the standard px rem size or px rem size for ease of calculation Potential hero section variation of the button and its font size Any font size utility classes the project may have Unknown UnknownsYou face unknown unknowns when it is not obvious where to get the information needed to complete a task or where to make the necessary change Example in CSS land  You are changing the error message color for a  lt span gt  element in a login widget on the category page Do you make the change in utilities css  form css  widget css  login css  category css or index css Depending on your project s CSS methodology this could be a component variation a new component or a new utility class Why CSS gets ComplexNext let s take a look at different technical causes of CSS complexity Selector SpaceWhile CSS properties belong to a single matched element at a time CSS selectors are matched against all elements in the DOM So as a project grows in size and the number of total selectors both actual and potential grows we have a natural increase in CSS complexity The total number of CSS properties in the DOM grows linearly with DOM size a page with n total elements at x properties per element have at most nx total adjustable properties On the other hand the size of the set of potential selectors grows exponentially with respect to DOM depth Assume using only a single class per element a m level deep DOM element has  m number of applicable class based selectors Since the total number of potential selectors grows exponentially on large projects it impacts both cognitive load and change amplification to understand and modify its implemented subset If you ever wondered why front end developers spend so much time tinkering with and cursing at CSS selectors it s because the selector solution space for any given change is HUGE SpecificityIn my experience there s no quicker road to unmanageable CSS than specificity escalation Because any moderately complex project will have a huge set of potential selectors for each change and because CSS selector specificity score is additive in nature a project s average CSS selector specificity tends to increase as it grows As Chris Coyier pointed out in this answer about CSS code smell when you see a selector like  articles comments ul gt li gt a button in your dev tools it s already too late  Specificity related complexity is symptomatic in all categories We already covered the need to create ever more specific CSS selectors in the change amplifications case eventually reaching id selectors   important and inline styles Specificity escalation also means developers reading and modifying CSS now need to keep a detailed mental model of the DOM in their mind when working is it  comments inside  articles or is it  comments inside uls inside  articles Lastly ever increasing selector length means the number of locations that a style change may belong to also increases linearly In the selector example above should the change go in articles css  comments css  global css or just use find in the project  and what if you use a preprocessor that supports nested selector Source OrderCSS source order gives us a way to consistently predict how a style resolves when multiple selectors have the same specificity score It also handles when multiple values are declared for the same property in the same scope an especially tricky combination with CSS shorthands The rule is simple the value that appears last wins Straight forward right Not so fast This means each change we make is potentially affected by all other selectors with the same specificity Your  nav button could be affected by  header button In fact you need to be aware of the intersection of all sets of elements matched by each selector with the same specificity score as the one you are working on I can t even keep the entire DOM in my head at once never mind the subset matched by all stylesheets It s easy to see how this is a significant cognitive load that grows with project size Source order is an even bigger problem in large projects where multiple stylesheets are included per page either plain CSS or via preprocessor imports Assume you are changing the color of the span in the following BEM based DOM structure to green lt div class widget gt lt div class widget content gt lt div class media box gt lt span class media box label gt Change Me lt span gt lt div gt lt div gt lt div gt and the CSS files widget css widget widget content color red media css media media label color blue If you have no guarantees on the order of the stylesheet imports which file do you change This is a clear case of unknown unknowns and it grows linearly with project file size Do you change both just to be safe and thus engage in change amplification Or do you write  widget widget content media box and engage in specificity escalation InheritanceCSS inheritance governs how certain CSS properties when not specified inherit values from their parent elements Some common properties that inherit include color  font size and line height Inheritance is not as problematic as the other issues covered so far It s a layer of abstraction that has little impact on change amplification and does not produce unknown unknowns What it does is lead to additional cognitive load even if the issues are mostly discovered via the browser can you picture what hello world in the below example look like lt div class a gt lt div class b gt lt div class c gt lt div class d gt lt p gt Hello World lt p gt lt div gt lt div gt lt div gt lt div gt a color blue font size px letter spacing px line height b font size px font weight letter spacing px c color teal font weight font family Serif d font size px font family arial Final WordI hope I ve convinced you that CSS is inherently complex and its complexity grows superlinearly with the size of your project Next time you get frustrated with a design change that seems to take much longer than it should know it s probably caused by the project s CSS complexity Next time you see a long selector in a code review call it out and nip specificity escalation in the bud And if you are starting a new project I hope this post has further convinced you to adopt a tried and true CSS methodology and enforce it really enforce it No need to make CSS more complex than it has to be Next week I ll go over some historically successful patterns for combating CSS complexity their tradeoffs and the methodologies that use them 2022-04-22 16:14:02
海外TECH DEV Community Redirect www to non www via web.config on IIS web app https://dev.to/senadmeskin/redirect-www-to-non-www-via-webconfig-on-iis-web-app-4517 Redirect www to non www via web config on IIS web appAll you need to do is to add a rule into the rewrite module section lt rule name Force non WWW enabled true stopProcessing true gt lt match url gt lt conditions logicalGrouping MatchAny gt lt add input HTTP HOST pattern www gt lt conditions gt lt action type Redirect url https C REQUEST URI appendQueryString true redirectType Permanent gt lt rule gt Your rewrite section should look like this lt rewrite gt lt rules gt lt rule name Force non WWW enabled true stopProcessing true gt lt match url gt lt conditions logicalGrouping MatchAny gt lt add input HTTP HOST pattern www gt lt conditions gt lt action type Redirect url https C REQUEST URI appendQueryString true redirectType Permanent gt lt rule gt lt rules gt lt rewrite gt 2022-04-22 16:13:46
海外TECH DEV Community NPM dependencies vs devDependencies https://dev.to/khriztianmoreno/npm-dependencies-vs-devdependencies-46jl NPM dependencies vs devDependencies tl drLas dependencies son requeridas por nuestra aplicación en tiempo de ejecución Paquetes como react redux y lodash son todos ejemplos de dependencias Las devDependencies solo son necesarias para desarrollar o compilar su aplicación Paquetes como babel enzyme y prettier son ejemplos de devDependencies npm installLa diferencia real entre dependencies y devDependencies se ve cuando ejecuta npm install Si ejecuta npm install desde un directorio que contiene un archivo package json lo que normalmente hace después de clonar un proyecto por ejemplo Se instalarán todos los paquetes ubicados en dependenciesSe instalarán todos los paquetes ubicados en devDependenciesSi ejecuta npm install lt package name gt lo que normalmente hace cuando desea agregar un nuevo paquete aL proyecto existente es decir npm install react Se instalarán todos los paquetes ubicados en dependenciesNo se instalaráninguno de los paquetes ubicados en devDependencies Dependencias transitivasSi el paquete A depende del paquete B y el paquete B depende de C entonces el paquete C es una dependencia transitiva del paquete A Lo que eso significa es que para que el paquete A se ejecute correctamente necesita el paquete B instalado Sin embargo para que el paquete B se ejecute correctamente es necesario que estéinstalado el paquete C ¿Por quémenciono esto Bueno las dependencies y devDependencies también tratan las dependencias transitivas de manera diferente Cuando ejecutas npm install desde un directorio que contiene un archivo package json dependencies Descarga todas las dependencias transitivas devDependencies No descarga ninguna dependencia transitiva Especificar dependencies frente a devDependenciesA partir de NPM cuando ejecuta npm install lt package name gt ese paquete se guardaráautomáticamente dentro de sus dependencies en su archivo package json Si quisiera especificar que el paquete específico debería incluirse en devDependencies en su lugar agregaría la marca save dev npm install prettier save dev Instalación en un servidor de producciónA menudo necesitaráinstalar su proyecto en un servidor de producción Cuando haga eso no querráinstalar devDependencies ya que obviamente no las necesitaráen su servidor de producción Para instalar solo las dependencies y no devDependencies puede usar la marca production npm install production khriztianmoreno 2022-04-22 16:09:22
海外TECH DEV Community Why mistakes at work should not be discriminatory (and why they sometimes are). https://dev.to/danieleaurilio/why-mistakes-at-work-should-not-be-discriminatory-and-why-they-sometimes-are-1n6l Why mistakes at work should not be discriminatory and why they sometimes are Nobody was born learnedSince i was born my grandmother tells me “Nobody was born learned but people at work seems didn t remember this Everyday people learn something and the biggest lesson comes from mistakes Everyone knows how is complicated write code and write good code if you are a junior in most cases good code doesn t exist   but senior doesn t care what you did and why If you did some mistakes write some bugs or fails a new improvement you will be discriminated against It is not something that happens the first time but over time If you fails more times your credibility within the team drops and no one cares your mood You can study learn grow develop cool stuff with errors contribute to the best open source project but your reputation will not be rebuilt And if you are never appreciated there is a slow detachment from your work team which will lead you to fall into the trap of the impostor syndrome Like a dog chasing its own tail you will think that the fault is yours Let me clarify this speech is quite crude and written in a flash many may never find themselves in this condition but we are talking about a very subtle discrimination almost imperceptible which can cause annoyance when you suffer it Look at yourself in the mirrorIf at work you are discriminated not appreciated or simply ignored please look at yourself in the mirror The mirror know exactly who are you what are you doing and where are you Not a senior or tech lead in company until the other day they did not know about your existence nobody cares about your growth Only to yourself No one would feed you with the risk that one day you might take his place It is survival in a world which run too fast Make mistakes as many times as you want you don t have to justify yourself in front of anyone Companies and people pass your goals remain and evolve over time Photo by Inga Gezalian on Unsplash 2022-04-22 16:06:33
海外TECH DEV Community Solved "Convert HTML Entities" algorithm // FreeCodeCamp https://dev.to/francesito/solved-convert-html-entities-algorithm-freecodecamp-282d Solved quot Convert HTML Entities quot algorithm FreeCodeCampfunction convertHTML str let arr str split let regex amp amp lt lt gt gt for let x x for let i i for let y y arr x i regex y str str replace arr x i regex y false return str console log convertHTML Sixty gt twelve 2022-04-22 16:03:52
海外TECH Engadget Paradox outlines a revenue-sharing plan for Vampire: The Masquerade fan games https://www.engadget.com/paradox-vampire-the-masquerade-fan-games-world-of-darkness-164855282.html?src=rss Paradox outlines a revenue sharing plan for Vampire The Masquerade fan gamesMany publishers and developers are very protective of their intellectual property what s up Nintendo But Paradox Interactive and World of Darkness are taking things in a slightly different direction As part of the Unbound project they ll let anyone make a Vampire The Masquerade fan game as long as they abide by certain rules Developers need to get their games approved by Paradox and can only offer them through the Itch io storefront They can charge for their creations if they want but they ll need to give Paradox a percent cut of revenue The developers will own all game assets that don t use World of Darkness intellectual property and can sell them in art books soundtracks and so on They can t run crowdfunding campaigns for their project however and aren t able to use science fiction steampunk or cyberpunk settings Beyond those and a few other restrictions developers can let their imaginations run wild The Unbound program stems from a successful game jam that took place in “Following the Vampire Jam last year we realized how passionate our community is about creating Vampire The Masquerade games quot World of Darkness community developer Martyna Zych said in a statement quot While we could only award one grand prize to Heartless Lullaby we knew we had to create a platform that empowered our community to work on the projects they love while giving them the support they need to be successful Developers created more than games during Vampire Jam and six of those are available through Unbound at the outset They include survival horror game Descent puzzle project The Chantry Trials nbsp and strategic card title The Game of Elders There s a first person shooter called The Autumn People You can also check out point and click adventure Prodigal nbsp as well as x strategy and roleplaying game Praxis All are free to download It s neat to see a publisher and transmedia brand approve fan made games The fact that all of those six titles are in different genres is fascinating as well since it shows the breadth of what developers can do when they have the freedom to be creative with a notable IP nbsp As it happens these titles might be the only way for fans to play a new Vampire The Masquerade game for a while Last year Paradox parted ways with Vampire The Masquerade Bloodlines studio Hardsuit Labs and delayed the game indefinitely The publisher said in November it was happy with the progress made by the game s new unnamed developer but the release window remains unknown 2022-04-22 16:48:55
海外TECH Engadget Twitter is experimenting with a status update feature https://www.engadget.com/twitter-vibe-status-feature-leak-163014924.html?src=rss Twitter is experimenting with a status update featureTwitter might soon take a page from Instagram s defunct Threads app ーnot to mention other messaging apps you used in the past two decades As The Vergereports code sleuth Jane Manchun Wong has discovered that Twitter is developing a quot Vibe quot feature that would let you set status updates akin to Threads and the many many IM clients at the turn of the century You could set status at the profile level but you could also attach them to specific tweets to indicate what you were doing at a specific moment Wong s examples only showed generic presets like eating listening to music and shopping It s not clear if you have the option of writing your own updates or if third party apps could hook into the feature say for music and videos The concept of a Twitter status update isn t completely new either The social network was testing another form of status update back in although it didn t work the same way and never reached everyday users We ve asked Twitter for comment There are no guarantees Vibe will reach the broader public or even enter testing We wouldn t be surprised if it does however Twitter has long had messaging features that could benefit from status updates such as letting others know you re busy and it s increasingly relying on live features like Spaces audio sessions where you might want to share what you re doing Twitter is working on “Set a status in Tweet Composer codenamed “Vibe You can think of it as something similar to Instagram Threads app s Status pic twitter com TGXHuVeZーJane Manchun Wong wongmjane April 2022-04-22 16:30:14
Cisco Cisco Blog Automation in Retail https://blogs.cisco.com/retail/automation-in-retail Automation in RetailOpportunities for using automation in retail operations are limitless As retailers evaluate these opportunities they need to consider the types of work that can be automated which improvements can be realized the capabilities and limitations of technology and the effort required to implement automated capabilities 2022-04-22 16:43:10
金融 金融庁ホームページ 金融安定理事会によるG20財務大臣・中央銀行総裁へのレターについて掲載しました。 https://www.fsa.go.jp/inter/fsf/20220422/20220422.html 中央銀行 2022-04-22 17:00:00
金融 金融庁ホームページ 「金融商品取引業者等向けの総合的な監督指針」等の一部改正(案)について公表しました。 https://www.fsa.go.jp/news/r3/shouken/20220422-2/20220422-2.html 金融商品取引業者 2022-04-22 17:00:00
ニュース BBC News - Home Pension fraudsters jailed after £13m scam https://www.bbc.co.uk/news/business-61181938?at_medium=RSS&at_campaign=KARANGA lifetime 2022-04-22 16:45:31
ニュース BBC News - Home Supermarkets set limits on sale of cooking oil https://www.bbc.co.uk/news/business-61193141?at_medium=RSS&at_campaign=KARANGA ukraine 2022-04-22 16:36:25
ニュース BBC News - Home IPL 2022: Jos Buttler hits third century of the season for Rajasthan Royals https://www.bbc.co.uk/sport/cricket/61194875?at_medium=RSS&at_campaign=KARANGA IPL Jos Buttler hits third century of the season for Rajasthan RoyalsEngland s Jos Buttler continues his incredible form at this year s Indian Premier League with his third century of the season 2022-04-22 16:11:27
北海道 北海道新聞 <Fノート>大勝にも「こういう試合、面白い?」 「守備の人」ビッグボス、接戦が大好物 アルカンタラの好返球に興奮 https://www.hokkaido-np.co.jp/article/673086/ 日本ハム 2022-04-23 01:18:00
北海道 北海道新聞 ルノー、日産株売却検討か EV開発推進 https://www.hokkaido-np.co.jp/article/673085/ 開発 2022-04-23 01:10:00
北海道 北海道新聞 日ロ、サケマス交渉が妥結 経済制裁下、異例の決着 https://www.hokkaido-np.co.jp/article/673082/ 経済制裁 2022-04-23 01:10:25
北海道 北海道新聞 維新、青島健太氏擁立へ 参院比例、元プロ野球選手 https://www.hokkaido-np.co.jp/article/673084/ 日本維新の会 2022-04-23 01:08:00
海外TECH reddit [Charania] Boston Celtics center Robert Williams is close to a return and could play in Game 3 (Saturday) or Game 4 (Monday) vs. Nets, sources tell @TheAthletic @Stadium . Final determination will be made on how Williams feels day-to-day after suffering torn meniscus on March 27. https://www.reddit.com/r/nba/comments/u9ixko/charania_boston_celtics_center_robert_williams_is/ Charania Boston Celtics center Robert Williams is close to a return and could play in Game Saturday or Game Monday vs Nets sources tell TheAthletic Stadium Final determination will be made on how Williams feels day to day after suffering torn meniscus on March submitted by u nedryerson to r nba link comments 2022-04-22 16:40:54

コメント

このブログの人気の投稿

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