投稿時間:2022-02-06 21:11:35 RSSフィード2022-02-06 21:00 分まとめ(17件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS lambdaタグが付けられた新着投稿 - Qiita cloudwatchのアラームをslackに通知 https://qiita.com/ry0_/items/a94493ffbb26778a98c7 2022-02-06 20:39:32
AWS AWSタグが付けられた新着投稿 - Qiita cloudwatchのアラームをslackに通知 https://qiita.com/ry0_/items/a94493ffbb26778a98c7 2022-02-06 20:39:32
Azure Azureタグが付けられた新着投稿 - Qiita AZ-104 Microsoft Azure Administrator受験体験記 https://qiita.com/naeka-k/items/15139f61dc22b3fd3f68 セクションの存在を忘れていて選択式に念を入れ過ぎて時間を使い切るとまだ問題が続いていてえらいことになります。 2022-02-06 20:42:23
海外TECH MakeUseOf Which Programming Languages Can You Use With Arduino? https://www.makeuseof.com/tag/programming-languages-can-use-arduino/ Which Programming Languages Can You Use With Arduino Ready to try something different with your Arduino You needn t be confined by programming in C Take these alternative languages for a test drive 2022-02-06 11:40:05
海外TECH DEV Community My first Calculator App using Kotlin, Android Studio https://dev.to/vignesh_balan/my-first-calculator-app-using-kotlin-android-studio-3kg5 My first Calculator App using Kotlin Android Studio 2022-02-06 11:22:36
海外TECH DEV Community How to overcomplicate a solution https://dev.to/kmyrrpen/how-to-overcomplicate-a-solution-3902 How to overcomplicate a solutionI found myself needing to build a modal when a button is pressed Seems easy I thought just make a Modal component that renders a fixed div and toggle it whenever we click the button or when we close the modal from the inside const toggle setToggle useState false const handleToggle gt setToggle prev gt prev return lt gt lt button onClick handleToggle gt lt Modal onClose handleToggle gt lt gt what I noticed though is that my modal was being painted over by a relatively positioned element I did have a z index set on my modal and the relatively positioned element had no z index at all I identified the problem being that my modal was inside my position sticky navbar which had a z index of auto the solution was to set the z index of the navbar But that wasn t enough for me what if I wanted the modal in a non statically positioned element with a lesser index than some other element My Solution Create a context that will have a value of children we want our modal to render inside create hooks that will handle subscribing and dispatching to the context Make another component that will act like a placeholder which will live at the top of our app and it s only job is to subscribe to our context and have it render the childrenMake a useModal hook to make using modals easier It will handle dispatching to the context and removing the children from our context once it get s closed Now when I need to use a modal I don t have to worry about it getting painted over as it has the highest z index and it s not constricted by an ancestor s position and z index How useful was this in the long run Not so much I never got into a situation where it met the requirements that my solution above was solving plus now I have even more problems as I had to deal with bugs from logical errors I ve made with my solution And I don t even know if this was the best way to go I haven t considered if someone already solved this problem and had shared a package for it or if I even needed this solution in the first place In retrospect what I now think was the best solution for my project was to set the z index of the navbar Just ONE line of code 2022-02-06 11:17:10
海外TECH DEV Community Build a full-fledged notification center on your React App using Engagespot (Part 1) https://dev.to/h3mandev/build-a-full-fledged-notification-center-on-your-react-app-using-engagespot-part-1-39jn Build a full fledged notification center on your React App using Engagespot Part Build a Notification Center for your Next js Blog Part Series Creating the basic blog structure and integrating the Notification Component using engagespot react component Backend support for Like Follow Comments Implementing View All Notification Page using engagespot react hooks Bonus Supporting android and ios using react nativeIt s no secret that notifications have become an integral part of our lives Whether it s to inform someone liked your photo on Instagram or to notify that your order is coming soon the Notification and Notification center has been evolved into a humongous beast in today s world Due to the sheer complexity involving notifications implementing it from scratch is nothing short of a challenge itself Creating the notification center UI implementing WebPush Email fallbacks adding multiple channels The list goes on and on There hasn t been an easy way to do this until now Enter Engagespot A SaaS product dedicated to building a notification center for your websites and applications Engagespot makes it easy to add in app notification widget real time and push notification features to your product with just a few lines of code Disclamer I am one of the maintainers of EngagespotIn this part series we will create a simple blog site where users can add posts like comment and follow other authors We will have a notification center at the top which will send out notifications for the above cases The first part will focus on creating the basic blog site and adding the notification center component I will be updating links to the upcoming articles above as it goes live So without further ado let s get started Creating the Blog SiteWe ll be using Next js and Supabase as our tech stack I won t be focusing too much on the implementation details of the blog but if you want to follow along doand dogit clone cd blog with notificationsgit checkout tags blog starternpm inpm run devMake sure to populate the superbase URL and keys before starting the server Here s how the DB schema for the blog looks likeI was using Supabase Visualizer for generating the schema and it was not able to detect the default user table Let s take a look at our current blog So far we have implemented the basic functionalities like authentication creating new articles adding comments following Everything looks good so far The next step is to add in the notifications Let s go to Engagespot Website and set up a free accountAfter signing up create a new app called My Blog App copy the API key and secret and keep it for later Add the Enagegspot React component as a dependency in our Next js project npm i engagespot react componentI want the notification button to come on the top navigation So let s add it into the header component components header tsximport Auth from supabase ui import Link from next link import useRouter from next router import supabaseClient from lib supabase client import Engagespot from engagespot react component import User from supabase supabase js interface HeaderProps user User function Header user HeaderProps const user session Auth useUser const router useRouter return lt header className pb gt lt nav className flex gap items center gt lt Link href gt lt a gt Home lt a gt lt Link gt lt button onClick gt router push profile user email gt Profile lt button gt lt Link href posts gt lt a className mr auto gt Posts lt a gt lt Link gt lt Engagespot apiKey process env NEXT PUBLIC ENGAGESPOT API KEY userId user email gt lt Link href create new gt lt a className bg emerald hover bg emerald ease in transition all py px rounded text white gt Create New lt a gt lt Link gt lt button onClick async gt const error await supabaseClient auth signOut if error console log Error logging out error message gt Logout lt button gt lt nav gt lt header gt export default HeaderVoila Instant Notification Center Let s break down what just happened We imported the Engagespot gt component on our lt Header gt Engagespot expects apiKey and userId as mandatory properties apiKey is the one we copied over from the dashboard userId can be anything that can be used to identify a user uniquely I m passing email as the userId but you can pass UUID username or any other unique field as well On getting the userId Engagespot will automatically create a user record in its system if it isn t already there We can even pass additional user attributes which can define a user even more and Engagespot can use it for more powerful features like notification grouping mentioning etc There are many other properties that we can use to customize the default behaviors Head to the docs section for the complete list of properties Once you re done exploring let s try sending a notification to see how it s coming Sending Notifications from the DashboardNow that we integrated the notification component into your app let s try sending a notification and see how it s coming We haven t integrated the API to send out the notifications Luckily we can use the Compose feature to send notifications directly without needing to configure any API This can be useful for testing and other cases where you need to send targeted notifications to some users Head into the Compose section and start adding the details regarding the recipient title and content The title and content fields support Rich Text so that we can be creative with our notification content Click on Submit and go back to your site Looks pretty sick Let s head to the final section where we ll customize the Notification Center and make it truly belong to our site belong Styling the Notification CenterEngagespot supports a theme property that allows extensive customizations on the look and feel of its Notification Center component Again head to the docs to get a complete picture of what all can be customized Or if you re using VSCode and Typescript you can rely on the type definitions from the engagespot react component package and keep experimenting as you go along Right now I am just mainly looking to change the notification icon color to black and the header to RGB to align with our site more Let s see how to do that lt Engagespot apiKey process env NEXT PUBLIC ENGAGESPOT API KEY userId user email theme panel height rem width rem notificationButton iconFill colors brandingPrimary rgb header height rem footer height rem gt As you can see while I was at it I just changed the panel header and footer width so that it looks cleaner in our small width site Let s check out the final result Now that s more like it Here s the final code for the Header componentimport Auth from supabase ui import Link from next link import useRouter from next router import supabaseClient from lib supabase client import Engagespot from engagespot react component import User from supabase supabase js interface HeaderProps user User function Header user HeaderProps const user session Auth useUser const router useRouter return lt header className pb gt lt nav className flex gap items center gt lt Link href gt lt a gt Home lt a gt lt Link gt lt button onClick gt router push profile user email gt Profile lt button gt lt Link href posts gt lt a className mr auto gt Posts lt a gt lt Link gt lt Engagespot apiKey process env NEXT PUBLIC ENGAGESPOT API KEY userId user email theme panel height rem width rem notificationButton iconFill colors brandingPrimary rgb header height rem footer height rem gt lt Link href create new gt lt a className bg emerald hover bg emerald ease in transition all py px rounded text white gt Create New lt a gt lt Link gt lt button onClick async gt const error await supabaseClient auth signOut if error console log Error logging out error message gt Logout lt button gt lt nav gt lt header gt export default HeaderYou can get the full project from ConclusionI am going to stop for now but we haven t event scratched the surface of Engagespot yet In the next article we ll see how to integrate APIs to send notifications when someone follows you or when someone like and comment on your post We ll also see cover Desktop Notifications Email fallbacks Category specific preferences and much more 2022-02-06 11:16:28
海外TECH DEV Community Virtualization Fundamentals for Containers https://dev.to/phagunjain/virtualization-fundamentals-for-containers-4mc3 Virtualization Fundamentals for Containers What is Virtualization It is the technique with which the IT person can create the isolated environments such that the process or the group of processes operating within that isolated environment assumes as if it is executing in the real computing infrastructure this kind of practice leads to more effective use of resources available to the organization along with this the concept of virtualization is the fundamental block upon which the whole cloud computing infrastructure works There are several different kinds of virtualization used like Hardware Virtualization most widely known type VMs Operating System Virtualization trending nowadays containers Network VirtualizationStorage VirtualizationThe Containers work on the concept of Os level virtualization Os level virtualization is the kernel s ability to make multiple isolated environments on a single host These environments encapsulate the programs and hide the true nature of the environment Three fundamental components enable OS level virtualization possible Control Groups Namespaces and Unification Filesystem Control Groups Cgroups A control group is the mechanism of the Linux kernel that allows the limitation accounting and isolation of resources used by a group of processes and their subgroups It allows the limitation of resources such as memory disk I O and network usage for a group of processes The processes of a container are treated as a whole unit containers benefit from Cgroups primarily because they allow system resources to limit for processes grouped by a container also a container may be prioritized for resource allocation NamespacesAnother feature of the Linux system it allows the processes to have restricted visibility of the host system resources It can limit the visibility of cgroups hostname process IDs etc To a process running inside a namespaced resource appear as its dedicated resources Namespace isolates processes from one container to prevent modifying the hostname network interfaces or mounts for processes running in other containers Unification FilesystemThis feature allows the overlay of the multiple filesystems to produce a single mock filesystem The contents of different filesystems are virtually stacked and their contents appear to be in a single filesystem although physically they remain separate unionfs is used in containers to overlay a base container image with other writable layers Storage layers such as ephemeral storage layers custom storage layers config layers are stacked unionfs uses the mechanism called copy on write cow to modify the files in a running container cow strategy lets users indirectly change the content of files available to the running container from the base container image Container image files are read only when a user attempts to modify such files the base image file is copied into the ephemeral storage layer of the container a user is allowed to make changes to this new copy while the base container image files remain untouched Here are some great resources for further read Hardware virtualization vs os virtualization vs application virtualizationWhat is virtualization by educativeHypervisor full and para virtualizationDocker made easy 2022-02-06 11:10:10
ニュース BBC News - Home Prince Charles leads tributes to 'remarkable' Queen https://www.bbc.co.uk/news/uk-60279585?at_medium=RSS&at_campaign=KARANGA consort 2022-02-06 11:32:57
ニュース BBC News - Home Give PM time and space to deliver, says Kwasi Kwarteng https://www.bbc.co.uk/news/uk-politics-60279079?at_medium=RSS&at_campaign=KARANGA boris 2022-02-06 11:36:09
ニュース BBC News - Home 'Nightingale of Bollywood' dies at 92 https://www.bbc.co.uk/news/world-asia-india-60094193?at_medium=RSS&at_campaign=KARANGA bollywood 2022-02-06 11:14:03
北海道 北海道新聞 「もう雪いらない」札幌市民らうんざり 朝から雪かき https://www.hokkaido-np.co.jp/article/642562/ 札幌市民 2022-02-06 20:06:06
北海道 北海道新聞 北京市内で街頭中継が妨害に オランダ記者、バブルの外側 https://www.hokkaido-np.co.jp/article/642577/ 街頭 2022-02-06 20:11:00
北海道 北海道新聞 茨城の河川敷で男性3遺体 埼玉の20~30代、車内から https://www.hokkaido-np.co.jp/article/642576/ 男性遺体 2022-02-06 20:05:00
北海道 北海道新聞 将棋、渡辺が10連覇に好発進 棋王戦第1局 https://www.hokkaido-np.co.jp/article/642575/ 永瀬拓矢 2022-02-06 20:05:00
北海道 北海道新聞 元島民の体験を漫画に 根室 北方領土の日の7日にユーチューブで公開 https://www.hokkaido-np.co.jp/article/642547/ 北方領土の日 2022-02-06 20:04:23
北海道 北海道新聞 大雪、滋賀と札幌は記録更新 冬型気圧配置、上空に寒気 https://www.hokkaido-np.co.jp/article/642572/ 冬型の気圧配置 2022-02-06 20:01: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件)