投稿時間:2023-05-10 00:22:24 RSSフィード2023-05-10 00:00 分まとめ(29件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… ソニーの新型ワイヤレスイヤホン「WF-1000XM5」が今度はマレーシアの認証機関を通過 − 発表は7月か https://taisy0.com/2023/05/09/171604.html 通過 2023-05-09 14:34:16
IT 気になる、記になる… auとUQ mobile、「Netflix (広告つきスタンダード)」を1カ月間無料で提供へ https://taisy0.com/2023/05/09/171602.html auuqmobile 2023-05-09 14:04:13
AWS AWS Networking and Content Delivery Improve Single-Page Application (SPA) Performance with a Same Domain policy using Amazon CloudFront https://aws.amazon.com/blogs/networking-and-content-delivery/improve-single-page-application-spa-performance-with-a-same-domain-policy-using-amazon-cloudfront/ Improve Single Page Application SPA Performance with a Same Domain policy using Amazon CloudFrontIn this post we demonstrate how you can use a same domain policy with Amazon CloudFront Using this method you eliminate the need for enabling Cross Origin Resource Sharing CORS which results in improved performance for Single Page Applications SPA Over the years SPA frameworks such as ReactJs and AngularJs have become a popular method for developing … 2023-05-09 14:58:59
python Pythonタグが付けられた新着投稿 - Qiita Google Colaboratoryで上書きしたノートブックを以前のものに復元したい https://qiita.com/76r6qo698/items/0e09996dcf6446ab5d0d googlecolaboratory 2023-05-09 23:21:07
js JavaScriptタグが付けられた新着投稿 - Qiita HTML/CSS Javascriptでボタンを作ってみた https://qiita.com/tsubasamaru6/items/4118f22808e6e5757810 google 2023-05-09 23:11:34
Docker dockerタグが付けられた新着投稿 - Qiita Kubernetesのvolumeを触る前にdockerのvolumeを触っていきまっしょい! https://qiita.com/ohtsuka-shota/items/de7b5c344abdb489df53 docker 2023-05-09 23:33:12
Docker dockerタグが付けられた新着投稿 - Qiita CKA試験、Trouble Shooting https://qiita.com/wk0012345/items/9d751a83fd27e78f98fc systemctlstatusdocke 2023-05-09 23:26:50
Docker dockerタグが付けられた新着投稿 - Qiita docker, docker composeコマンドの整理 https://qiita.com/kajiyai/items/8fef6b307ce26f4f0a58 build 2023-05-09 23:23:39
golang Goタグが付けられた新着投稿 - Qiita [Golang][並行処理] スライスへの同時アクセスによる処理速度の検証 https://qiita.com/kurakura0916/items/a45793aa66269f1d5675 関数 2023-05-09 23:55:31
Ruby Railsタグが付けられた新着投稿 - Qiita 【Rails】ToDoコメントを残しておいて一覧形式で表示する方法 https://qiita.com/_teyama3/items/3edc3107bc3f23a28f58 rails 2023-05-09 23:29:16
技術ブログ Developers.IO 【IICS】Informatica Cloud Data Integrationでエラー発生時のリトライ機能を実装してみた https://dev.classmethod.jp/articles/iics-taskflow-retry/ aticaclouddataintegration 2023-05-09 14:51:59
海外TECH MakeUseOf 8 Pro Tips for Painting 3D Models in Procreate https://www.makeuseof.com/procreate-3d-model-painting-pro-tips/ level 2023-05-09 14:30:17
海外TECH MakeUseOf What Is the ARP Cache, and How Do You Clear It on Windows? https://www.makeuseof.com/what-is-arp-cache-windows/ cache 2023-05-09 14:16:17
海外TECH DEV Community How to add In-App notifications to any web app! https://dev.to/novu/how-to-add-in-app-notifications-to-any-web-app-1b4n How to add In App notifications to any web app TL DRIn this article you ll learn how to add a notification system to any app in just a few simple steps The primary focus in making this app was to showcase just how simple it is to add notifications to an app If you take any modern app there s a high chance that it would have notifications functionality baked in And why not Notifications make any app better by providing real time updates and keeping users engaged They help increase user retention by providing a medium of communication between an app and its users If you re reading this article chances are that you already understand the importance of having notifications in your app and are looking for a way to add a notification system to your app Well you ve come to the right place In this tutorial we ll have a look at how we can add notifications to any app Now writing a custom solution every time you want to add notifications somewhere is cumbersome I know But we ll use a magical tool to help make our jobs easier and believe me this whole thing will be much simpler than you might think pinky promise How you ask Enter Novu Novu helped me solve the biggest problem I had every time I wanted to add notifications to an app writing a notifications center from scratch And even though I could re use parts of what I d written earlier the unique use cases of each app ensured I had to make significant changes to my previous system With Novu I could simply grab an API key and use the custom component to add notifications to any web app PERIOD Novu Open source notification infrastructure for developers Novu is an open source notification infrastructure for developers It helps you manage all the product notifications be it an in app notification a bell icon like what s there in Facebook Emails SMSs Discord and what not I ll be super happy if you check us out on GitHub and give us a star ️ Let s write some code We ll make our app in two stages backend and front end Both will live in separate GitHub repositories and I ll also show you how to deploy both to the web enabling us to access the app from anywhere Let s start with the backend Basic set up We ll start with an empty git repo Create an empty git repository enter all the relevant details and publish it to GitHub Then open it in your IDE I m going to use VS Code Our first step here would be to install all the required packages We ll rely on several packages from npm Node Package Manager To start this process we ll generate a package json using the following command npm init yThis command generates the package json file and now we can install all the packages we need Use the following command to install the packages we ll be using npm i novu body parser cors dotenv express mongoose nodemonNow create a env file and a gitignore file in the root of the project We ll keep sensitive data like our MongoDB connection URL and the Novu API key in the env file To stop it from getting staged by git and being pushed onto GitHub add the env file to the gitignore file as shown below This way it ll be accessible to us in the app but nobody will be able to see it on Github Connecting to a database After completing the basic setup it is now time for us to connect to a database If you haven t already create your MongoDB account and sign in We ll need to get a connection URL from our database and will plug that into our backend To get that URL go to the top left corner and create a new project Give your project a name and then click the build a database button After this choose the free option and leave everything else to default Now enter the username and password that you want to use for database authentication and make sure that you ve noted down the password we re going to need it Now only the last step is left which is to obtain our connection URL To get it click on the connect buttonThen choose the compass option Now note down the URL highlighted text in the image In this URL you ll have to replace with your actual password that you noted down above That s it Store this URL in a variable in your env file as shown below Obtaining Novu API key Getting the Novu API key is quite simple You just need to head over to Novu s web platformThen create your account and sign in to it Then go to Settings from the left navigation menu Now in the settings go to the second tab called API Keys There you ll see your Novu API key Copy it and add it to the env file in your project s root directory Let s start coding The backend for this app is rather simple and consists of a few key parts Controller It contains code for the function that runs when we make server requests from our front end It just contains one simple function import inAppNotification from Novu novu js import Notif from models notif js export const createNotif async req res gt const description req body const newNotif new Notif description try await newNotif save await inAppNotification description Sumit res status json newNotif catch error res status json message error The function starts by destructuring the description property from the req body object which is passed in as a parameter when the function is called from the front end Next a new instance of the Notif model is created using the description value which is then saved to a database using the save method After the notification is saved to the database an in app notification is sent using the inAppNotification function which is imported from the Novu novu js module This function takes two arguments The description of the notification and The name of the user who triggered the notification in this case it is my name Sumit If everything is successful the function sends an HTTP status code of along with the new notification object in the response On the contrary if an error occurs during the process the function sends an HTTP status code of along with an error message in the response Database Schema In MongoDB data is stored in things called Collections Collections are like boxes within which we store data A database in this case is the room So the database contains entities called collections and we store data within those collections The schema for notifications is as follows import mongoose from mongoose const notifSchema mongoose Schema description type String required true collection notif export default mongoose model Notif notifSchema Here we re defining a notif collection in our database We re using the Mongoose library to connect to the database Using mongoose Schema method we re creating a new schema object for the notif collection The object passed as the first parameter is defining the shape of the documents in the collection In this case the schema is defining a single field called description which is of type String and is required i e it must be present in every document The second parameter being passed to mongoose Schema is an optional options object In this case it is setting the name of the collection to notif Finally we re using mongoose model method to create a model based on the schema This model is being exported as the default export of this module The benefit of exporting it is that we can now use it to interact with the notif collection in the MongoDB database Now off to the sweet part Setting up Novu notification template We re now left with two tasks in the backend Configuring Novu andStarting the serverTo configure Novu go the the web platform again and go to Notifications from the left menu bar Now create a new workflow give it a name and go to the workflow editor Since we ll be using just one functionality In app notifications we ll set only that one up But with Novu you can send notifications through pretty much every channel out there be it email sms push or chat To setup the in app channel drag the button called in app from the right options menu and click on it to edit it Because we re using description in the backend we ll have to plug that in here as shown below Now back to the code In the controller above we had used a function called inAppNotification but we never defined it Now is the time to do so So go to your project s root and create a new file In that file we ll create this function import Novu from novu node export const inAppNotification async description Id gt const novu new Novu process env NOVU API KEY await novu subscribers identify Id firstName inAppSubscriber await novu trigger in app to subscriberId Sumit payload description description Notice the use of description here that we set up in Novu in the previous step Now the last step of the back end is remaining which is setting up the server and the routes Our app is quite simple here and we need just one route import express from express import createNotif from controller notif js const router express Router router post createNotif export default router And the server setup is also relatively straight forward import express from express import mongoose from mongoose import cors from cors import bodyParser from body parser import dotenv from dotenv import notifRoute from routes notif js dotenv config const app express app use bodyParser json app use bodyParser urlencoded limit mb extended true app use cors app use home notifRoute app listen function console log listening on app get req res gt res send Project running const CONNECTION URL process env CONNECTION URL const PORT process env PORT app use req res gt res send this is working mongoose connect CONNECTION URL useNewUrlParser true useUnifiedTopology true then gt app listen PORT gt console log server running on port PORT catch error gt console log error With these out of the way our backend is done and we can now move to the front end Coding up the front end In the front end we re gonna use the magical power of Web component It is a collection of three things NovuProvider PopoverNotificationCenter and NotificationBellThese are all combined into one simple component that we call Web Component Web component is what enables us to embed this notification center into just about any web app You can read more about it here Now in the front end we re gonna need four files index html This will contain the markup styles css This will contain the CSS styles app js This will contain all the logic to send notifications from front end to back end and fetch them all in the bell icon andthe env file This will contain our Novu API keyThe contents of each one of them are as follows starting with index html below lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt link rel stylesheet href styles css gt lt script src gt lt script gt lt title gt Notification Generator lt title gt lt head gt lt body gt lt div class header gt lt h gt Notifications Generator lt h gt lt notification center component style display inline flex application identifier SWMwecZNA subscriber id Sumit class bell gt lt notification center component gt lt div gt lt div class content gt lt img class img src notification bell png alt notification bell image srcset gt lt form id form action method post gt lt input class input type text placeholder Enter notification text and click the send button name description gt lt button id btn gt Send lt button gt lt form gt lt div gt lt footer gt lt p gt Proudly powered by lt a class link href gt Novu lt a gt lt p gt lt footer gt lt script src app js gt lt script gt lt body gt lt html gt Then the app js file is as follows const form document querySelector form extracting send buttonconst btn document querySelector btn const input document querySelector input btn onclick gt console log clicked form addEventListener submit async e gt e preventDefault console log button clicked await fetch method POST body JSON stringify description input value headers Content Type application json then response gt response json then data gt console log data catch error gt console error error input value extracting input value on button click here you can attach any callbacks interact with the web component APIlet nc document getElementsByTagName notification center component nc onLoad gt console log hello world Finally we ll have some CSS code for styling in the styles css file and the Novu API key in the env file If you ve done everything correctly you should have an app that looks something like this In this app we ve demonstrated how to use the Web component to add a notification center to any web app To keep things simple we ve just used the in app notification feature but you can use just about any notification medium you can imagine from chat to sms to emails and more Deploying our front end and our back end The last step remaining is to deploy our front end and our back end We re gonna use a service called Render to deploy our back end and the good old Netlify for our front end Both are very straight forward and the process is a simple plug and play kinda thing Just log in to both point to your GitHub repo and add the environment variables as defined in the env file of both That s it If you want to go over my code it is available here Front end andBack endLastly if you need help with anything and wanna reach out to me I m always available at the Novu discord Feel free to join in and say hi This entire project was made possible by the awesomeness of Novu and it takes me a lot of time and effort to come up with tutorials like this one so if you could spare a moment and give us a star on our GitHub repo it would mean a lot to me Thanks for all your support Don t forget to comment what you liked and didn t like about this tutorial Have a great one bye Sumit Saurabh 2023-05-09 14:20:49
海外TECH DEV Community 🔥Hot CSS Tools For Everyone https://dev.to/arafat4693/hot-css-tools-for-everyone-1b8o Hot CSS Tools For EveryoneAs a web developer keeping up with the latest tools and technologies can be challenging However with CSS being a fundamental part of front end web development having access to the right CSS tools can make a significant difference in the productivity and creativity of a developer Whether you are a beginner or an experienced developer there are always new and exciting CSS tools and libraries to explore that can help you streamline your workflow and create stunning designs In this article we will look at some of the hottest CSS tools available to developers today including frameworks libraries and utilities to help you stay ahead of the curve and take your CSS skills to the next level Table of contentsNeumorphismAnimistaAnimated BackgroundSpin KitFlexplorerGrid GeneratorLayout GeneratorShaddows BrummGlassmorphismCubic BezierHaikeiConclusion NeumorphismNeumorphism io is a website that showcases the neumorphism design trend also known as soft UI or neo skeuomorphism It generates soft UI CSS styles using shadows AnimistaAnimista is a website that provides a collection of CSS animations and animation presets that can be easily customized and applied to web elements Animated BackgroundWweb dev offers an Animated CSS Background Generator which allows users to create and customize animated backgrounds for their web projects Spin KitSpin Kit is a collection of CSS loading animations created by Tobias Ahlin It offers a range of simple lightweight and customizable spinners that can be easily integrated into web projects FlexplorerFlexplorer is an online tool by web developer Bennett Feely that helps developers learn and experiment with CSS flexbox layouts Flexbox lets you build flexible and responsive layouts quickly Grid GeneratorCSS Grid Generator is a web based tool that helps developers create complex grid layouts using CSS Grid Grid layouts are a powerful way to create flexible and responsive designs for web pages Layout GeneratorCSS Layout Generator is a web based tool that allows developers to create and experiment with CSS layout styles It provides a visual interface for designing and customizing layout components Shaddows BrummShadows Brumm is a web based tool for generating CSS box shadow effects It provides an easy to use interface that allows users to create complex and visually appealing box shadow effects using a variety of parameters and options GlassmorphismGlassmorphism is a design trend that uses transparent and blurred glass like backgrounds to create a modern sleek look for user interfaces The Glassmorphism Generator is a web based tool for creating Glassmorphism inspired designs and graphics Cubic BezierCubic Bezier is a web based tool that allows users to create custom easing curves animation and transition HaikeiHaikei is a web based tool for creating customizable and scalable vector graphics for use in web design illustrations and other graphic design projects The app allows users to create unique designs by combining and modifying various shapes colors and patterns ConclusionIn conclusion CSS tools are essential for developers who want to create visually stunning and responsive websites In addition the proper set of tools can significantly improve productivity allowing developers to save time and focus on more critical aspects of their projects I hope this article has provided valuable insights into some of the hottest CSS tools available today and will help you enhance your development skills and create exceptional user experiences for your audience Remember to experiment and find what works best for you as the right CSS tools can help you take your projects to the next level Visit ‍My Portfolio️My FiverrMy Github‍ ️My LinkedIn 2023-05-09 14:11:18
Apple AppleInsider - Frontpage News Switchers away from Android boosted Apple marketshare in still-collapsing smartphone market https://appleinsider.com/articles/23/05/09/switchers-away-from-android-boosted-apple-marketshare-in-still-collapsing-smartphone-market?utm_medium=rss Switchers away from Android boosted Apple marketshare in still collapsing smartphone marketThe US smartphone market remained tough for manufacturers in the first calendar quarter of but Apple s market share grew as Android users moved to iOS iPhone shipments fell but Apple s market share grew anywayOnce again Apple was the only company to see growth during a smartphone market contraction As a result it took the top place for global smartphone market share and it also grew in the US according to Counterpoint Research Read more 2023-05-09 14:21:35
Apple AppleInsider - Frontpage News Apple Cloud exec hits the road to lead GM's software department https://appleinsider.com/articles/23/05/09/apple-exec-hits-the-road-to-lead-gms-software-department?utm_medium=rss Apple Cloud exec hits the road to lead GM x s software departmentMike Abbott the former vice president of engineering for Apple Services has departed to head up General Motors newly created software department Abbott joining as a senior leadership team member will head up a newly integrated software department The department will focus on developing vehicle and enterprise software technologies and solutions The organization will deliver digital services and features to retail and commercial customers from start to finish Read more 2023-05-09 14:18:49
海外TECH Engadget LinkedIn is laying off 716 staff and closing its job search app in China https://www.engadget.com/linkedin-is-laying-off-716-staff-and-closing-its-job-search-app-in-china-141636741.html?src=rss LinkedIn is laying off staff and closing its job search app in ChinaLinkedIn is the latest notable tech company to announce a round of mass layoffs It s letting people go and shutting down its job search app in China LinkedIn CEO Ryan Roslansky said in a memo to employees that the cuts were part of a shift in strategy that was driven by changes in customer behavior and slower revenue growth That s despite the platform seeing record levels of engagement and quot making meaningful progress creating economic opportunities for our members and customers quot In LinkedIn shut down the seven year old Chinese version of its service citing the difficulties of operating in the country It rolled out a job board app for Chinese users called InCareer that did not have any social networking features Now Roslansky says the company will phase out that app by August th While InCareer found some success Roslansky wrote quot it also encountered fierce competition and a challenging macroeconomic climate quot LinkedIn is shifting its strategy in China toward helping companies based there recruit and train workers from other countries It will cut its product and engineering teams in China and reduce the headcount of its local corporate sales and marketing divisions As The New York Times notes LinkedIn did not say how many of the layoffs will be in China Around people work at LinkedIn so the layoffs account for around percent of the overall headcount However Roslansky said LinkedIn will open more than positions in other areas starting next week namely in the operations new business and account management divisions nbsp This is just the latest instance of widespread layoffs in the tech industry over the last several months LinkedIn parent Microsoft said in January it would cut workers Meta Alphabet and Amazon have all laid off tens of thousands of workers too This article originally appeared on Engadget at 2023-05-09 14:16:36
ニュース BBC News - Home Russia's future rests on Ukraine war, Putin tells Victory Day parade https://www.bbc.co.uk/news/world-europe-65532088?at_medium=RSS&at_campaign=KARANGA square 2023-05-09 14:38:37
ニュース BBC News - Home Nicola Bulley: Lancashire Police face no action over details disclosure https://www.bbc.co.uk/news/uk-england-65533455?at_medium=RSS&at_campaign=KARANGA information 2023-05-09 14:03:31
ニュース BBC News - Home Imran Khan: Dozens of police seize ex-PM outside court in Pakistan https://www.bbc.co.uk/news/world-asia-65531648?at_medium=RSS&at_campaign=KARANGA arrest 2023-05-09 14:40:12
ニュース BBC News - Home Tesco chairman denies inappropriate touching https://www.bbc.co.uk/news/business-65532230?at_medium=RSS&at_campaign=KARANGA allan 2023-05-09 14:10:14
ニュース BBC News - Home Dartford shooting: Woman held hostage dies in hospital https://www.bbc.co.uk/news/uk-england-kent-65534402?at_medium=RSS&at_campaign=KARANGA condition 2023-05-09 14:25:27
ニュース BBC News - Home GB News broke rules over Covid jab claims - Ofcom https://www.bbc.co.uk/news/entertainment-arts-65532879?at_medium=RSS&at_campaign=KARANGA content 2023-05-09 14:13:18
ニュース BBC News - Home Are there 2,000 more GPs than before the pandemic? https://www.bbc.co.uk/news/health-65531758?at_medium=RSS&at_campaign=KARANGA england 2023-05-09 14:12:08
ニュース BBC News - Home Adult female sperm whale found washed up on shore https://www.bbc.co.uk/news/uk-wales-65530854?at_medium=RSS&at_campaign=KARANGA adult 2023-05-09 14:30:25
ニュース BBC News - Home Liam Smith v Chris Eubank Jr: Rematch rescheduled for 1 July in Manchester https://www.bbc.co.uk/sport/boxing/65534136?at_medium=RSS&at_campaign=KARANGA liverpudlian 2023-05-09 14:12:06
仮想通貨 BITPRESS(ビットプレス) [日経] 仮想通貨「脱米国」加速も 米ビットトレックス破綻 https://bitpress.jp/count2/3_9_13614 米国 2023-05-09 23:21:33
仮想通貨 BITPRESS(ビットプレス) [cointelegraph] エストニアが仮想通貨規制を強化 約200社が自主廃業 189社は認可取り消し https://bitpress.jp/count2/3_9_13613 取り消し 2023-05-09 23:10:38

コメント

このブログの人気の投稿

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