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

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS The Internet of Things Blog Building an OCPP-compliant electric vehicle charge point operator solution using AWS IoT Core https://aws.amazon.com/blogs/iot/building-an-ocpp-compliant-electric-vehicle-charge-point-operator-solution-using-aws-iot-core/ Building an OCPP compliant electric vehicle charge point operator solution using AWS IoT CoreThe shift from fossil fuels to electric powered vehicles is a key component of government and commercial commitments to achieve net zero emissions by It is projected that the United States alone will require a national network of at least electric vehicle EV chargers by to support the projected number of EVs on … 2023-03-21 18:40:58
AWS AWS Security Blog Simplify management of Network Firewall rule groups with VPC managed prefix lists https://aws.amazon.com/blogs/security/simplify-management-of-network-firewall-rule-groups-with-vpc-managed-prefix-lists/ Simplify management of Network Firewall rule groups with VPC managed prefix listsIn this blog post we will show you how to use managed prefix lists to simplify management of your AWS Network Firewall rules and policies across your Amazon Virtual Private Cloud Amazon VPC in the same AWS Region AWS Network Firewall is a stateful managed network firewall and intrusion detection and prevention service for your … 2023-03-21 18:09:27
AWS AWS Getting Started on Amazon SES | Amazon Web Services https://www.youtube.com/watch?v=4pHhz6YL45I Getting Started on Amazon SES Amazon Web ServicesLearn how to get started using Amazon SES AWS scalable reliable email service Follow along with AWS Solutions Architect Pavlos Ioannou Katidis as we set up a new SES account to send transactional and marketing emails Learn more at Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster email marketingemail SES AWS AmazonWebServices CloudComputing 2023-03-21 18:08:12
AWS AWS Security Blog Simplify management of Network Firewall rule groups with VPC managed prefix lists https://aws.amazon.com/blogs/security/simplify-management-of-network-firewall-rule-groups-with-vpc-managed-prefix-lists/ Simplify management of Network Firewall rule groups with VPC managed prefix listsIn this blog post we will show you how to use managed prefix lists to simplify management of your AWS Network Firewall rules and policies across your Amazon Virtual Private Cloud Amazon VPC in the same AWS Region AWS Network Firewall is a stateful managed network firewall and intrusion detection and prevention service for your … 2023-03-21 18:09:27
Ruby Rubyタグが付けられた新着投稿 - Qiita Apple Silicon Dockr 上での Failed to initialize inotify (Errno::ENOSYS) を根本的に回避する方法 https://qiita.com/rotelstift/items/5dbfe438d7ae9eea7555 varwwwbund 2023-03-22 03:20:47
Docker dockerタグが付けられた新着投稿 - Qiita Apple Silicon Dockr 上での Failed to initialize inotify (Errno::ENOSYS) を根本的に回避する方法 https://qiita.com/rotelstift/items/5dbfe438d7ae9eea7555 varwwwbund 2023-03-22 03:20:47
海外TECH Ars Technica Google defends auto-deletion of chats after US alleged it destroyed evidence https://arstechnica.com/?p=1925623 material 2023-03-21 18:03:31
海外TECH MakeUseOf Computer Screen Still Blank? Here Are 8 Ways to Fix Your PC's Screen https://www.makeuseof.com/ways-to-fix-your-pc-blank-screen/ blank 2023-03-21 18:45:16
海外TECH MakeUseOf How to Reconnect a Smart Light Switch that Has Lost Connection https://www.makeuseof.com/reconnect-smart-light-switch/ connectionis 2023-03-21 18:30:17
海外TECH MakeUseOf 11 Reasons Your Mac's Fan Is Loud https://www.makeuseof.com/reasons-your-mac-fan-is-loud/ loudapple 2023-03-21 18:30:16
海外TECH MakeUseOf Looking for an Affordable 4K TV? The Samsung QE43Q60B Fits the Bill https://www.makeuseof.com/review-samsung-qe43q60b-43/ Looking for an Affordable K TV The Samsung QEQB Fits the BillStunning visuals immersive audio and seamless connectivity make it an exceptional choice for your entertainment needs if you re on a budget 2023-03-21 18:15:16
海外TECH DEV Community Create text change hover effect with JavaScript https://dev.to/rmmgc/create-text-change-hover-effect-with-javascript-4k5g Create text change hover effect with JavaScriptI stumbled upon one website that had this hover effect where the original text would change to some random characters and start revealing itself over time It looked like a fun exercise so I decided to recreate it Below you can see how it looks and check out the source code as well This is a beginner friendly article and includes a step by step guide If you completely understand the source code feel free to skip reading so you do not waste your time In case you decided to continue reading you might be interested in what we are going to cover here We will start with a basic HTML structure and mention some CSS styles However the main focus will be on JavaScript You can learn how to listen for and handle events a little bit of string manipulation and how to leverage the power of closure If you are ready let s get started HTML structureAs for any hover effect you need to have something that you want to hover over In this case let s create a couple of links using lt a gt tag and put them into a body tag just for demonstration purposes lt body gt lt a class text hover effect href gt pricing lt a gt lt a class text hover effect href gt projects lt a gt lt a class text hover effect href gt about us lt a gt lt a class text hover effect href gt subscribe lt a gt lt body gt Notice that every lt a gt tag has a class attribute with a value of text hover effect We will need it later so we can target those HTML elements with JavaScript CSS stylesSince the HTML structure is ready let s add some styles In this case I only want to do some simple things like changing the background color and making sure that links are centered on the page We can also add styles to links so they look a bit nicer box sizing border box body margin background color b display flex align items center justify content center flex direction column flex height vh a font family sans serif color text transform uppercase letter spacing rem font size rem font weight bold box shadow rem rem rgba background transparent padding rem border radius rem min width px border px solid text decoration none display block margin bottom rem I will not go into details about what every CSS declaration does you can always play around with them in the sample project However I want to bring your attention to one thing Even though we added some CSS it is actually not required Notice that there is not even a hover pseudo class This is because the hover effect will be handled entirely by JavaScript Understanding the effectTo implement the desired effect and behavior we first need to understand it Take a look at the following image In the default state the original text is visible When the cursor hovers over the text it will immediately be populated with random characters Only the first character from the original text should remain the same After some artificial delay the character in the second position from the original text will replace the randomly generated character in the same position This delay and replace process will continue until the last character is reached and the original text is completely revealed I hope this was clear enough for you to understand what we are trying to create here If not do not worry we will split it into manageable chunks and cover every chunk separately JavaScript codeThis is the part where we will spend the most time First of all we need to somehow generate random characters for our effect We can do that by creating a simple array of characters Characters to cycle troughlet allowedCharacters X Y The variable allowedCharacters holds a list of the allowed characters Feel free to add or remove them from your version We also need a function that can randomly select one of the characters from the previously created list Function to return random characterfunction getRandomCharacter const randomIndex Math floor Math random allowedCharacters length return allowedCharacters randomIndex Function getRandomCharacter uses Math object to randomly generate a number index between and the length of the allowedCharacters array The generated index is then used to get the character from the allowedCharacters To handle hover events we need to get all lt a gt tags and attach event listeners to all of them Event handlerfunction handleHoverEvent e TODO Add implementation Attach an event listener to elementsdocument querySelectorAll text hover effect forEach element gt element addEventListener mouseover handleHoverEvent Here document querySelectorAll is used to get all elements that have a value of text hover effect in the class attribute Since we only added this class to lt a gt tags it will return the iterable collection of Anchor lt a gt elements Using addEventListener we can add mouseover event listener to every element and pass the function handleHoverEvent to handle the events Now whenever a user hovers over any of lt a gt tags handleHoverEvent function will be executed So far so good The groundwork is complete it s time to work on the hover effect implementation now As we already said we will split the task into multiple chunks For the beginning let s focus on the following part On hover we have to replace the original text except for the first character with a randomly generated one When an event is triggered the handleHoverEvent function gets called and an Event based object will be passed as an argument to the function function handleHoverEvent e const text e target innerHTML const randomizedText text split map getRandomCharacter join e target innerHTML text substring randomizedText substring The function will receive the e the event object when the event is triggered First we have to save the current text value from the lt a gt tag that was hovered To do so we can use e target innerHTML and save the value into the text variable Keep in mind that innerHTML gets or sets the HTML markup contained within the element If your hovered element has other HTML tags as children they will be serialized and returned as well Next we need to generate randomized text with the same length as the original This is where we can use the getRandomCharacter function that was created before The value saved in the text variable is a string that includes multiple characters But getRandomCharacter generates only one character per call To solve this problem we can convert the original text into an array of characters using the split method Now that we have an array we can chain the map method and pass the getRandomCharacter function to it Now for every original character a random one will be generated Finally to convert the resulting array back to a string the join method is used The subscribe string is used as an example to illustrate how the text is being processed You can see that at the end we have randomly generated text that is the same length as the original one Good we now have two strings one original and one randomly generated The last step is to combine them and update the e target innerHTML property To get the first character from the original text we can use text substring and to get the rest of the characters from the randomized text we can use randomizedText substring We could have done this in a different way as well but I think using the substring method is totally fine and if interested you can find more details here After some delay the next character from the original text must be shown instead of the random one and it needs to be repeated until the last character is revealed We can achieve this using for loop and the setTimeout web API method function handleHoverEvent e const text e target innerHTML const randomizedText text split map getRandomCharacter join for let i i lt text length i setTimeout gt const nextIndex i e target innerHTML text substring nextIndex randomizedText substring nextIndex i String values are iterable so we can use the for loop on them as well We will loop through the original text saved in the text variable In every iteration we invoke the setTimeout function Notice that the delay for setTimeout is multiplied by the i value This allows us to properly schedule updates one after another using the same wait time of milliseconds between each update Lastly we just needed to modify the assignment part of e target innerHTML to include nextIndex value instead of hardcoded ones We need the nextIndex to ensure that substring method works properly and produces the expected result We used the for loop and setTimeout to create scheduled tasks When the delay time expires setTimeout will invoke the task function which will update the innerHTML value of the hovered element This will be repeated for every scheduled task generated by the for loop Our effect should work fine now but there is one more problem If you hover over the element really fast the handleHoverEvent function could be triggered multiple times This is obviously not what we want We need to make sure that handleHoverEvent cannot be triggered unless the currently running effect is over To make this happen we can rely on the power of closure Consider the following code Creates new event handler with a private variablefunction createEventHandler ‍ ️Private variable Keep track of the event in progress let isInProgress false Event handler implementation return function handleHoverEvent e if isInProgress return const text e target innerHTML const randomizedText text split map getRandomCharacter join for let i i lt text length i isInProgress true setTimeout gt const nextIndex i e target innerHTML text substring nextIndex randomizedText substring nextIndex if nextIndex text length isInProgress false i Most of the code is the same but there are a couple of important differences First of all we have put our handleHoverEvent function inside another function called createEventHandler Also we make sure that createEventHandler returns handleHoverEvent In doing so we have created the conditions for closure to occur Why do we even need closure in the first place In this particular case we need to create a variable where we can store information if the effect is in progress This variable must be private to the handleHoverEvent function since only this function should be able to update it When it comes to creating private variables closure is the way to go In createEventHandler we have defined the variable isInProgress and initialized it with false This variable is used to keep track of whether the current effect is still in progress In the function handleHoverEvent as soon as the loop starts we will set isInProgress to true indicating that the effect has started When the last task is executed isInProgress is set to false indicating that the effect has finished In the same function at the beginning we will check if isInProgress is set to true In case it s set we can assume that the effect is still running and return immediately effectively skipping the handling of the event Now we need to modify the code responsible for attaching an event handler to the lt a gt tag Anchor elements document querySelectorAll text hover effect forEach element gt const eventHandler createEventHandler element addEventListener mouseover eventHandler For every Anchor lt a gt element new handleHoverEvent function will be created using the createEventHandler function The resulting function is then saved into the eventHandler and passed to the addEventListener Since we have leveraged the power of closure to keep track of the event in progress new events will not be handled until the currently running one is finished ConclusionInitially I did not plan to make this tutorial too big but it turned out to be quite lengthy I wanted to give a detailed explanation of how this hover effect could be achieved and to show that it is not difficult at all if you split it into smaller pieces You should be able to do this for every taskーsplit and conquer This was also a nice opportunity to show just how useful the concept of closure is in JavaScript and how it can be leveraged in a practical example Check out other articles on my blog 2023-03-21 18:25:30
海外科学 NYT > Science ‘We Were Helpless’: Despair at the CDC as the Covid Pandemic Erupted https://www.nytimes.com/2023/03/21/health/covid-cdc.html We Were Helpless Despair at the CDC as the Covid Pandemic EruptedCurrent and former employees recall rising desperation as Trump administration officials squelched research into the new coronavirus 2023-03-21 18:42:16
海外ニュース Japan Times latest articles Kishida meets Zelenskyy for talks in surprise visit to Ukraine https://www.japantimes.co.jp/news/2023/03/22/national/politics-diplomacy/kishda-ukraine-visit-zelenskyy/ Kishida meets Zelenskyy for talks in surprise visit to UkraineThe Japanese leader s unannounced visit for talks with Ukrainian President Volodymyr Zelenskyy underscored Tokyo s support for the war torn country 2023-03-22 03:44:23
ニュース BBC News - Home Putin: China plan could end war, but Ukraine and West not ready for peace https://www.bbc.co.uk/news/world-asia-65030929?at_medium=RSS&at_campaign=KARANGA ukraine 2023-03-21 18:48:08
ニュース BBC News - Home Abdoulaye Doucoure: Everton midfielder on Islam, Ramadan, Idrissa Gueye and Amadou Onana https://www.bbc.co.uk/sport/football/64966647?at_medium=RSS&at_campaign=KARANGA Abdoulaye Doucoure Everton midfielder on Islam Ramadan Idrissa Gueye and Amadou OnanaEverton midfielder Abdoulaye Doucoure speaks to BBC Sport about his faith as a Muslim fasting during Ramadan and his relationship with team mates Amadou Onana and Idrissa Gueye 2023-03-21 18:05:50
ニュース BBC News - Home Casey report: Rape victim says no chance of reforming 'vile' Met Police https://www.bbc.co.uk/news/uk-england-london-65016253?at_medium=RSS&at_campaign=KARANGA casey 2023-03-21 18:09:43
ビジネス ダイヤモンド・オンライン - 新着記事 なぜか好かれる人の無意識な行動とは?「見た目・第一印象」より大事なこと - ニュースな本 https://diamond.jp/articles/-/319805 なぜか好かれる人の無意識な行動とは「見た目・第一印象」より大事なことニュースな本新生活が始まり、新しい出会いが多いこの時期、「人は見た目で割決まる」と思い込んで、つい外見のみに気をかけていませんか。 2023-03-22 03:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 中ロ関係ほころびの兆し、国境都市で鮮明 - WSJ PickUp https://diamond.jp/articles/-/319804 wsjpickup 2023-03-22 03:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 銀行で“ゆるキャラ”増加だが戦略もゆるすぎ…取材に「うちにはいない」の珍回答も - きんざいOnline https://diamond.jp/articles/-/319831 銀行で“ゆるキャラ増加だが戦略もゆるすぎ…取材に「うちにはいない」の珍回答もきんざいOnline近年、ゆるキャラを採用する銀行が増えてきた。 2023-03-22 03:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 ボウリングに5万円? 米で広がる変動価格制 - WSJ PickUp https://diamond.jp/articles/-/319803 wsjpickup 2023-03-22 03:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 米小売りの人材難続く、賃金上昇圧力も - WSJ PickUp https://diamond.jp/articles/-/319802 wsjpickup 2023-03-22 03:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 失敗しない「就活面接」攻略法、ルール&マナーは対面とリモートでこんなに違う! - 親と子の「就活最前線」 https://diamond.jp/articles/-/315703 面接 2023-03-22 03:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 愛犬にも「がんの血液検査」を、7歳前後を目安に - カラダご医見番 https://diamond.jp/articles/-/319816 血液検査 2023-03-22 03:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 チーム(チャネル)の活用で ノンストレスな会議運営を - 業務効率改善のためのMicrosoft Teams活用術 https://diamond.jp/articles/-/317807 microsoftteams 2023-03-22 03:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 【精神科医が教える】 幸福感の低い人に決定的に欠けていること - 精神科医Tomyが教える 心の執着の手放し方 https://diamond.jp/articles/-/317972 【精神科医が教える】幸福感の低い人に決定的に欠けていること精神科医Tomyが教える心の執着の手放し方【大好評シリーズ万部突破】誰しも悩みや不安は尽きない。 2023-03-22 03:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 頭のいい人が「話しながら」たった1つ気をつけていること - 超完璧な伝え方 https://diamond.jp/articles/-/319677 頭のいい人が「話しながら」たったつ気をつけていること超完璧な伝え方「自分の考えていることが、うまく人に伝えられない」「他人とのコミュニケーションに苦手意識がある」と悩む方は多くいます。 2023-03-22 03:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 【人気YouTuberが教える】 日本人が初対面で英会話をするときの「鉄板フレーズ」(2) - バカでも英語がペラペラ! 超★勉強法 https://diamond.jp/articles/-/318275 【人気YouTuberが教える】日本人が初対面で英会話をするときの「鉄板フレーズ」バカでも英語がペラペラ超勉強法【大反響発売前発売即大増刷】新潟の片田舎で生まれ育ち、勉強はからっきし苦手。 2023-03-22 03:05:00

コメント

このブログの人気の投稿

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

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

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