投稿時間:2023-06-13 20:28:10 RSSフィード2023-06-13 20:00 分まとめ(34件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia News] Discord、ユーザー名の仕様変更はじまる ID再取得は“早いもの勝ち”に https://www.itmedia.co.jp/news/articles/2306/13/news174.html discord 2023-06-13 19:10:00
IT ITmedia 総合記事一覧 [ITmedia News] Google検索で「塊魂」と検索すると…… インターネットが壊れちゃった https://www.itmedia.co.jp/news/articles/2306/13/news178.html googlecojp 2023-06-13 19:01:00
TECH Techable(テッカブル) 夜間のコインランドリーを安心・安全に。IC会員カードを鍵として利用する入退室管理システム https://techable.jp/archives/211150 alligate 2023-06-13 10:00:18
python Pythonタグが付けられた新着投稿 - Qiita 【Paiza問題集】配列メニュー/【二次元配列の入出力】i番目の出力 Boss https://qiita.com/amron/items/0a41abd4afb8eb91107a bosspaiza 2023-06-13 19:16:09
Docker dockerタグが付けられた新着投稿 - Qiita 【Docker入門】Dockerチュートリアル(Hands-on) https://qiita.com/kouji0705/items/5481ce8dafef828a3f2b developdockercrontask 2023-06-13 19:08:58
Git Gitタグが付けられた新着投稿 - Qiita [Git] 動作を試す 実行例57:一度pushしたコミット履歴を他人が取得した後にコミット履歴を消した場合の挙動を見る https://qiita.com/dl_from_scratch/items/1a3300da8886c17d5405 記事 2023-06-13 19:58:54
Ruby Railsタグが付けられた新着投稿 - Qiita 7つのアクション https://qiita.com/sa109/items/fea67c4dcd671f664235 create 2023-06-13 19:01:39
海外TECH DEV Community 🔦 Community Spotlight - Building VogueEco, a Sustainable Fashion App🔦 https://dev.to/appwrite/community-spotlight-building-vogueeco-a-sustainable-fashion-app-7c8 Community Spotlight Building VogueEco a Sustainable Fashion AppHighlighting projects from the Appwrite community IntroductionWith Appwrite s developer community growing significantly we want to take the time to appreciate and showcase some amazing applications built by our community Maybe you ll be inspired by these projects to build something amazing with Appwrite too This month we d like to give the spotlight to Nishant amp team who built a successful app called VogueEco Let s get started by interviewing them to learn more about their project and journey Tell us more about who you areTeam Members Name Nishant Jain LinkedIn GitHub Twitter Instagram Dev to Description As a front end developer I have a strong skill set in using React HTML and CSS to create user facing interfaces for websites and applications I enjoy designing and have a passion for participating in hackathons and engaging with the communities I am likely creative tech savvy and driven to build and improve upon my skills in the field Name Sujal Samai LinkedIn GitHub Twitter Instagram Description I am a Frontend Developer who loves to design and build interfaces that are engaging for the users Currently my Tech stack includes React js amp TailwindCSS I have been interested in contributing to Open Source projects for the past years and have always believed in learning with communities Name Vanshika JunejaLinkedIn www linkedin com in vanshika juneja a GitHub Twitter Instagram I am an ambitious and driven engineering student in her pre final year I have a strong skill set in HTML CSS Javascript and Python and I have my sights set on front end development and design as a profession I am also a professional dancer and have strong leadership and management skills I currently hold a CGPA from Medicaps University and am the Operation Head at GDSC An impressive academic and creative individual I am sure to make a mark in the tech industry soon Name Suryangsu ChandraLinkedIn Github Twitter Description I have experience with C C and Python ML HTML CSS JS along with electronics and platforms such as Arduino What is the name of the project you built “VogueEco because we are here resembling fashion with nature Why did you decide to build this What inspired you Our project VogueEco aims to mitigate the environmental impacts of the textile industry through plantation and clothing donation Textile production has significant environmental consequences including the use of harmful chemicals and the production of synthetic fibres that contribute to pollution By promoting plantation and clothing donation we can work towards a more sustainable textile industry Plantation of natural fibres like cotton hemp and bamboo can reduce the demand for synthetic fibres which are harmful to the environment Clothing donation helps to reduce overproduction and keeps clothes out of landfills Through this project we also hope to raise awareness about the environmental impacts of the textile industry and encourage people to make more environmentally conscious clothing choices What is VogueEco Our project aims to encourage people to donate their clothes and promote sustainable practices such as textile recycling in order to reduce wastage and the environmental impact of the textile industry By donating clothes and increasing plantations we can help to reduce the environmental footprint of the textile industry What technologies did you use to create it and how did you use each technology We developed this website using a variety of technologies including HTML CSS Tailwind React Javascript Appwrite Docker headless UI DigitalOcean and Alan AI HTML provided the basic structure of the website while CSS and Tailwind were used to add styling and visual effects React and Javascript enabled us to create an interactive user experience and the application We used Appwrite to manage our databases and Alan AI allowed users to interact with the website using voice commands We also utilized Docker and DigitalOcean s Droplet feature to manage and configure Appwrite in the production environment Finally we conducted testing and deployment to ensure the website was functioning properly Who is your target audience and how will it help them to learn more about your project This project is for influencers fashion experts and designers who want to collaborate and be creative in an innovative space Our goal is to create awareness around the Fashion industry and provide them alternatives to reduce the Carbon Footprint produced By joining us you can help shape the future of fashion and target eco conscious individuals who appreciate natural elements in their clothing Our project aims to offer stylish sustainable clothing that showcases the beauty of nature while also protecting it What issues did you run into while building this project and how did you solve them During the development of the website we encountered a number of challenges such as creating a user friendly UI UX integrating JS React and the Appwrite API and implementing voice recognition features using Alan AI In order to reduce the environmental impact of the textile industry we had to devise a system for clothing donation and plantation promotion This required us to ensure compatibility with all major browsers and devices integrate the Appwrite API into our application design an easy to use user interface find a reliable voice recognition service provider and integrate their API and thoroughly test the application Despite these challenges the project is now running smoothly and we are making significant progress towards reducing clothing waste and helping the environment How did Appwrite help your project Appwrite was a key component in the development of our website It allowed us to easily manage and access our databases enabling us to store and retrieve data as needed The Appwrite API made it easy to integrate database functionality into our application allowing us to quickly and easily retrieve and update data In addition the Appwrite console provided a convenient interface for managing our databases and monitoring the performance of our application Overall Appwrite played a crucial role in the development and operation of our website and we are grateful for the tools and resources it provided What are a couple of things you wish you knew before starting the project There were several issues that we faced while building this project One of the main challenges was creating a user friendly UI UX that was easy for users to navigate and use Another challenge was integrating the various technologies we were employing which included React Javascript and the Appwrite API To overcome this challenge we made certain that the integration of each technology was thoroughly planned and tested before it was implemented in the application A further issue was using Alan AI to implement voice recognition features We had to find a reliable voice recognition service provider and integrate their API into our application to solve this Overall we were able to solve these issues and we are now able to deliver a high quality stable application to our users Anything else you d like to share VogueEco is just getting started We are working hard to expand our reach and find more ways to reduce waste and help the environment We are currently in the process of launching a donation program to collect used clothing and accessories and redistribute them to those in need We are also working to increase our presence in local communities by partnering with local organizations to host donation drives and clothing swaps Additionally we are exploring ways to expand our plantation initiatives to include more sustainable and eco friendly options We are dedicated to finding creative and innovative solutions to reduce the environmental impact Where can others find your app Link to the app Please share screenshots of your project 2023-06-13 10:35:13
海外TECH DEV Community Effortlessly Build a Captivating Website with AI: A Comprehensive Guide https://dev.to/unicornsblog/effortlessly-build-a-captivating-website-with-ai-a-comprehensive-guide-48jm Effortlessly Build a Captivating Website with AI A Comprehensive GuideLooking for an effortless coding free solution to create an eye catching website Your search ends here with the Unicorn Platform s AI driven website builder This innovative tool utilizes artificial intelligence to help you design professional looking websites without any technical know how Simply drag and drop elements while the integrated AI capabilities customize your site create personalized landing pages and develop tailored email campaigns for your specific clientele Constructing a fantastic website using Unicorn Platform s AI website builder is quick and straightforward Even beginners can easily navigate its user friendly interface and have their sites up in no time Don t wait any longer Experience our cutting edge AI website builder today and elevate your online presence An Overview of AI Website BuildersNeed an appealing landing page for your software product or service Dive into this comprehensive article about creating a site for your AI tool discussing everything from development costs to designing effective landing pages Additionally explore other articles on the Unicorn Platform blog that delve deeper into how artificial intelligence is revolutionizing web design Discover the advantages of conversational AI through this piece about the benefits of incorporating conversational bots on websites Learn how these tools enhance customer interaction by providing personalized conversations and superior support Gain insights into optimizing user experience with this post about the future of web development infused with artificial intelligence Understand how automation will lead to dynamic engaging experiences on the internet Explore various types of intelligent web development tools like those provided by Unicorn Platform in this guide on how to use state of the art technology to build breathtaking websites in minutes By leveraging the power of AI in web development you ll create smarter more efficient websites that cater to your users needs Advantages of Employing an AI Website BuilderAI driven website builders offer a plethora of features that make creating landing pages a breeze Their intelligent technology streamlines design and layout processes while ensuring stunning results each time Moreover these tools can optimize various aspects like SEO and responsiveness across different devices and platforms With an AI website builder at your disposal expect Customizable pre built templatesIntuitive drag and drop functionality for effortless designBuilt in SEO optimization for better visibilityAuto generated code snippets as alternatives to manual HTML codingIn depth analytics for monitoring page performance over timeUltimately artificial intelligence empowers you to craft effective landing pages without needing any technical expertise Top Ranking AI Website Builders for Landing PagesArtificial intelligence has significantly influenced web design recently Machine learning algorithms automate landing page creation with ease Here are some leading AI website builders Unicorn Platform Its intelligent landing page creator makes designing beautiful responsive sites optimized for conversions incredibly accessible Wix This popular platform offers Wix ADI an AI tool designed to build websites based on user preferences and requirements Bookmark Aimed at small businesses and entrepreneurs this builder uses machine learning to develop personalized sites from user input Firedrop Generate unique websites tailored to individual preferences using this real time machine learning based builder The Grid Delivering customized experiences through its smart algorithmic system is what sets this responsive site creator apart from others As advancements continue in the field of artificial intelligence we anticipate even more sophisticated site building options emerging soon v Maximize Your Site s Potential with AI Website Builder TipsUnicorn Platform s AI website builder makes crafting an outstanding site fast and simple To ensure you re getting the most from its features consider these tips Content Block PromptsUtilize AI to modify block content according to your landing page requirements This eliminates manual coding while maintaining seamless user experiences Incorporating CTAsEfficiently add CTAs to blocks where provided using AI technology grabbing attention and directing users towards actionable objectives Strategizing Form PlacementsCreate contact forms based on user prompts in blocks where available This facilitates customer feedback or inquiries for businesses to address accordingly Employing Unicorn Platform s intelligent features has never been easier when designing effective landing pages Assessing the Cost of AI Web Development amp Free Builder OptionsAI website development often comes with a hefty price tag due to its sophisticated nature requiring extensive resources However numerous cost effective builders help launch stunning sites within minutes For example Unicorn Platform offers a free plan alongside a competitively priced Pro plan at just month This Pro package includes unlimited pages hosting services SSL certificates boundless storage capacity and e commerce integration all without needing technical skills or coding expertise Closing ThoughtsHarness the power of Unicorn Platform s AI driven website builder and effortlessly create visually appealing sites that perform optimally in no time With zero coding knowledge required and budget friendly options available there is no better opportunity than now to elevate your online presence with this revolutionary tool Inspired by Made by AI 2023-06-13 10:30:22
海外TECH DEV Community PyScript vs JavaScript https://dev.to/kristiyan_velkov/pyscript-vs-javascript-1pph PyScript vs JavaScriptHello folks Please don t treat this article s as divine truth It s my personal view JSIf you have more than two years of experience developing front end applications you undoubtedly already know about some of the unsuccessful attempts to replace strange ugly JavaScript Although attempts have been made to replace or avoid using JavaScript JS is still in use A tough opponent JavaScript is everywhere on the web It is the most used programming language with of all websites using JavaScript as a client side programming language PyScriptThe use of Python has greatly increased in recent years It has many uses including its most well known use in artificial intelligence as well as data science robotics and scripting And this year during the PyCon conference Anaconda announced a framework named PyScript that allows you to use Python on the web using standard HTML Failed to attempt to replace JavaSciptJava JCLJCL is a powerful simple and lightweight transpiler from Java to Closure style JavaScript C BlazorUse the power of NET and C to build full stack web apps without writing a line of JavaScript Python PyScriptPyScript that allows you to use Python on the web using standard HTML And many more Conclusions JavaScript will be not replaced so don t spend some time on some compilers which execute JS bullshit Stick to JS of web is using it JavaScript is not perfect but nothing will replace it Versatility JavaScript is a versatile programming language that can be used for both front end and back end development It is the de facto language for web development and is supported by all major browsers Large and Active CommunityExtensive Ecosystem JavaScript has a vast ecosystem of frameworks libraries and tools that can greatly streamline development Popular front end frameworks like React Angular and Vue js Demand and Job Opportunities JavaScript is in high demand in the job market due to its widespread usage Future Compatibility JavaScript continues to evolve and adapt to new technologies and trends If you like my work and want to support me to work hard please donate via Revolut website payment or use the QR code above Thanks a bunch for supporting me It means a LOT 2023-06-13 10:24:45
海外TECH DEV Community A Deep Dive into EDB Postgres Advanced Server: Features and Benefits https://dev.to/nightbird07/a-deep-dive-into-edb-postgres-advanced-server-features-and-benefits-3ff A Deep Dive into EDB Postgres Advanced Server Features and BenefitsEnterpriseDB s Postgres Advanced Server EPAS is a powerful Oracle compatible database management system built on the robust foundation of PostgreSQL As organizations increasingly seek cost effective and open source alternatives to traditional proprietary databases EPAS has emerged as a popular choice In this article we ll take a deep dive into the features and benefits that set EPAS apart from its competitors Oracle CompatibilityOne of the most notable features of EPAS is its extensive Oracle compatibility This allows organizations to migrate from Oracle databases to EPAS with minimal disruption to their existing applications and processes Key Oracle compatibility features include PL SQL support EPAS includes a comprehensive implementation of PL SQL Oracle s procedural language for SQL This enables developers to use their existing PL SQL code with minimal changes when migrating to EPAS Oracle style packages Packages are a key feature of Oracle s PL SQL language allowing developers to group related procedures and functions into a single reusable module EPAS supports the use of Oracle style packages simplifying the migration process Oracle data types EPAS supports a range of Oracle specific data types such as NUMBER VARCHAR and DATE This reduces the need for code changes when migrating from Oracle databases EDB Migration Toolkit This toolkit simplifies the process of migrating Oracle databases to EPAS It automates the conversion of database schemas stored procedures and data significantly reducing the time and effort required for migration Advanced SecurityData security is a top priority for enterprises and EPAS offers a suite of advanced security features to help protect sensitive information and ensure compliance with regulatory requirements Key security features include Data encryption EPAS supports Transparent Data Encryption TDE which automatically encrypts data at rest ensuring that sensitive information remains secure Row level security This feature allows administrators to define security policies based on user roles and privileges ensuring that users can only access the data they are authorized to see Database auditing EPAS includes comprehensive auditing capabilities enabling organizations to track and monitor database activity for security compliance and performance analysis purposes Performance EnhancementsEPAS builds on PostgreSQL s performance capabilities with a range of enhancements designed to improve query execution times and overall system efficiency These enhancements include Index only scans EPAS supports index only scans a query optimization technique that allows the database engine to retrieve data directly from an index avoiding the need to access the underlying table This can significantly improve query performance in certain scenarios Parallel query execution EPAS can execute complex queries in parallel leveraging multiple CPU cores to process large volumes of data more quickly Advanced query optimization EPAS includes an enhanced query optimizer which uses sophisticated algorithms to determine the most efficient way to execute a given SQL query Scalability and High AvailabilityAs organizations grow and their data requirements expand the ability to scale databases efficiently becomes increasingly important EPAS offers several features designed to support scalability and high availability including EDB Postgres Replication Server This tool enables organizations to set up replication between EPAS instances providing both load balancing for read heavy workloads and failover capabilities for high availability Table partitioning EPAS supports table partitioning a technique that divides large tables into smaller more manageable pieces This can improve query performance and simplify data management tasks such as backups and indexing Connection pooling EPAS includes built in connection pooling which allows multiple client connections to share a limited number of database connections This can help improve system performance and resource utilization in high concurrency environments conclusionEDB Postgres Advanced Server offers a powerful and cost effective alternative to traditional proprietary databases With its Oracle compatibility advanced security features performance enhancements and scalability capabilities EPAS is an attractive option for organizations looking to modernize their database infrastructure and embrace the benefits of open source technology 2023-06-13 10:13:37
海外TECH DEV Community Building a customer support app with live chat and notifications using Next.js, Novu and Appwrite https://dev.to/arshadayvid/building-a-customer-support-app-with-live-chat-and-notifications-using-nextjs-novu-and-appwrite-2fn8 Building a customer support app with live chat and notifications using Next js Novu and AppwriteIn this article I ll walk you through how I built a customer support application with live chatting in app and email notification features using Next js Novu Appwrite and EmailJS Appwrite Cloud handles the authentication database and file storage aspects Novu handles in app notifications and EmailJS for email messaging Upon completion you ll be able to build advanced applications that require a chat feature with Appwrite and add email and in app notifications to your apps via EmailJS and Novu PS This tutorial assumes you have a basic knowledge of React or Next js Application WorkflowBefore we start coding let me summarise how the application works The application does the following allows customers to create support tickets authenticates staff and ensures that no one other than the staff can log in to the application notifies the staff when a customer creates a support ticket allows both the staff and customers to settle disputes via the live chatting feature powered by Appwrite Cloud andsends a confirmation email to the customers when they open a ticket and also when a staff sends them a message regarding the open ticket Brief Demo The UI Design ProcessHere I ll walk you through creating the required pages for the web application First you need to create a home page where customers can create support tickets and staff can also navigate to the login page via the page Next create the staff login page that authenticates visitors to ensure they are staff before allowing them access to the dashboard You also need a dashboard page that shows all the tickets based on their status Each support ticket must be clickable and redirects the staff to its details page Next create a page that displays all the data related to a particular ticket Staff can update the status of a support ticket and download its attachment if available Then create a chat page where a customer support staff and a customer can communicate in real time about an issue The page should not require authentication but an access code sent to the customer s email The chat URL will be similar to this ticket ID gt Finally you need an admin page that enables you to add or remove staff from the application With this you can have more than one user manage the support tickets or respond to customers queries Adding Appwrite to a Next js applicationAppwrite is a powerful open source backend platform that enables you to create secured and scalable web and mobile applications With Appwrite you don t need to worry about the backend resources of your application because with Appwrite you Build Fast Scale Big All in One Place Instead of setting up your backend server on your computer Appwrite Cloud enables you to focus on developing your applications while it manages crucial backend functionalities such as user authentication database management file storage and more Installation and configurationTo add Appwrite to a Next js app follow the steps below First of all create a Next js project by running the code below npx create next app customer support appVisit Appwrite s website and create a new account Create a new organisation and project Each project contains all the resources you need to build a fully functional application Next you need to choose where and how you want to use Appwrite either as a web or mobile SDK or you need to integrate it with your existing server Since we are building a Next js app with Appwrite Cloud select Web App from the SDK Platform menu and register a new app under the project From the image below I provided a name for the application and used an asterisk as the hostname After deploying the application on Vercel you can change the hostname to the URL provided by Vercel Install the Appwrite Node js SDK into your Next js project as done below npm install appwriteCreate a env local and appwrite js file at the root of your project touch appwrite js env localCopy the code below into the appwrite js file import Client Account Databases Storage from appwrite const client new Client client setEndpoint setProject process env NEXT PUBLIC PROJECT ID export const account new Account client export const db new Databases client export const storage new Storage client The code snippet above enables us to access and interact with the authentication database and file storage features provided by Appwrite Copy the code below into the env local file NEXT PUBLIC PROJECT ID lt your project id gt NEXT PUBLIC DB ID lt your database id gt NEXT PUBLIC TICKETS COLLECTION ID lt your collection id gt NEXT PUBLIC USERS COLLECTION ID lt your collection id gt NEXT PUBLIC BUCKET ID lt your bucket id gt The code snippet above contains environment variables containing all the private keys needed for interacting with Appwrite Cloud On your project dashboard click the Project ID button to copy your project s id and paste it into the env local variable Setting up Authentication with Appwrite CloudSince you are using the Email and Password authentication method you don t need to add any configurations on Appwrite Cloud before using the service because it has been configured by default However let s add an extra layer of security to the project by updating the default Session length Select Auth from the sidebar menu and switch to the Security tab Scroll down to the Session Length section and change it from days to hour Users will need to be re authenticated after an hour of using the application and in case a user doesn t log out of our application they are logged out automatically after an hour Click Update to add the new setting and you re ready to go Setting up the Appwrite DatabaseHere you ll learn how to set up the database on Appwrite Cloud Select Database from the sidebar menu to create a new database Next you need to create two database collections one for the support tickets and the other for the staff within the application You may be wondering why we need another collection for the users What about the users saved on the Appwrite Auth The reason is that you can not get all the users or delete a user using Appwrite Cloud It is only possible when you use the Node js SDK However since we need to view all the users staff and add or delete whenever necessary from the Admin page of the application therefore you need to create a users database containing similar information as the Auth section Create two database collections for the support tickets and users and copy their IDs into the env local file Select the users collection and create three required attributes as shown below Finally click on the Settings menu under the users and update the permission to allow only users to create read and delete users from the collection Setting up Appwrite StorageSelect Storage from the sidebar menu and create a new bucket for images attached to each support ticket Users will be able to upload screenshots of the issues they are facing when creating a support ticket Copy the bucket ID and paste it into the env local file Communicating with Appwrite Authenticating usersUnlike conventional applications this application does not have a sign up page because it is exclusive to staff Therefore you can create the initial account via your dashboard on Appwrite Cloud In this section you ll learn how to set up the authentication process for the application You can create a utils folder containing the functions and import them into the required components mkdir utilscd utilstouch functions jsAdd the following imports into the file to enable us to interact with the backend features We ll make use of them in the upcoming sections import account db storage from appwrite import ID from appwrite Logging into the applicationRemember we have Appwrite Auth and the users collection on the database storing users details Therefore to log users into the application you need to authenticate the user using Appwrite Auth then filter the users collection to verify if the user s details exist before granting access to the application filters the users listconst checkUserFromList async email router gt try const response await db listDocuments process env NEXT PUBLIC DB ID process env NEXT PUBLIC USERS COLLECTION ID const users response documents const result users filter user gt user email email USER OBJECT gt console log result if result length gt successMessage Welcome back router push staff dashboard else errorMessage Unauthorized Contact Management catch error errorMessage An error occurred console error error authenticates the userexport const logIn async email password router gt try Appwrite login method await account createEmailSession email password calls the filter function await checkUserFromList email router catch error console log error errorMessage Invalid credentials The code snippet above accepts the user s email and password from the form field authenticates the user using Appwrite Auth then checks if the user is on the staff list before granting permission to the application Logging outLogging users out still work the conventional way Appwrite also provides an account deleteSession method that enables users to log out of an ongoing session export const logOut async router gt try await account deleteSession current router push successMessage See ya later catch error console log error errorMessage Encountered an error Protecting pages from unauthenticated usersTo do this you can store the user s information object to a state after logging in or use Appwrite s account get method Using the account get method export const checkAuthStatus async setUser setLoading router gt try const response await account get setUser response setLoading false catch err router push console error err The code snippet above gets all the information related to the currently signed in users It checks if the user is active and returns the object containing all the user s details You can execute the function on page load for routes containing protected data such as the Dashboard Ticket Details and Admin routes Admin page adding and removing staffIn this section I ll guide you through how to add get and delete staff from the users collection We are technically building the backend functionality of the Admin page Adding new staffThe code snippet below accepts the user s name email and password when you submit the form create an account on Appwrite Auth and save the email and the name in the users database generates random string as IDconst generateID gt Math random toString substring export const addUser async name email password gt try create a new acct on Appwrite Auth await account create generateID email password name adds the user s details to the users database await db createDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC USERS COLLECTION ID ID unique user id generateID name email successMessage User added successfully catch error console log error Getting the staff listThe code snippet accesses the document on Appwrite Cloud and returns all the data in the users collection export const getUsers async setUsers gt try const response await db listDocuments process env NEXT PUBLIC DB ID process env NEXT PUBLIC USERS COLLECTION ID setUsers response documents catch error console log error Removing staffTo do this you need to pass the ID of the selected staff into the function when you click the Remove button export const deleteUser async id gt try await db deleteDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC USERS COLLECTION ID id successMessage User removed Success catch error console log error Failure errorMessage Encountered an error The user s credentials are still available in Appwrite Auth but since we verify users credentials against the users collection when they log in this method is still valid Support ticket data structure database and storageIn this section you ll learn how to create the backend database for the customer support application Creating a support ticketWhen a customer creates a support ticket you have to retrieve all the details from the form and save them to the database Therefore create a function that accepts all the ticket s details and ensures it works perfectly whether or not the customer uploads a screenshot of the problem they are facing export const sendTicket async name email subject message attachment gt if attachment null Customer attached an image console log name email subject message attachment else No attachment console log name email subject message To add the ticket s information to the tickets collection on Appwrite Cloud add the following attributes to the collection NameRequired Typenameyesstringemailyesstringsubjectyesstringstatusyesstringcontentyesstringaccess codeyesstringattachment urlnostringmessagesstring Switch to the Settings tab and update the permission on the tickets collection as shown below Finally update the sendTicket function to add the event details to Appwrite Cloud export const sendTicket async name email subject message attachment gt const createTicket async file url gt try const response await db createDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC TICKETS COLLECTION ID ID unique name email subject content message status open messages JSON stringify id generateID content message admin false name Customer attachment url file url access code generateID send notification to the customer console log RESPONSE gt gt gt response successMessage Ticket created catch error errorMessage Encountered saving ticket if attachment null try const response await storage createFile process env NEXT PUBLIC BUCKET ID ID unique attachment const file url process env NEXT PUBLIC BUCKET ID files response id view project process env NEXT PUBLIC PROJECT ID amp mode admin creates ticket with its image createTicket file url catch error errorMessage Error uploading the image else creates ticket even without an image screenshot await createTicket From the code snippet above The nested function createTicket accepts all the ticket s attributes and creates a new document on the Appwrite Cloud Since uploading an attachment is optional the flier url attribute has a default URL value The messages array attribute creates a new structure for the live chatting feature It converts the content and the customer information into a JSON string and adds it to the messages array The if and else code block checks if the customer uploaded an image If true the code uploads the image to the Cloud Storage retrieves its URL and passes it into the createTicket function Otherwise the createTicket function uses the default value as the attachment URL Getting the support tickets from Appwrite CloudOn the Dashboard page you need to retrieve all the support tickets The function below retrieves and group them based on their status export const getTickets async setOpenTickets setInProgressTickets setCompletedTickets gt try const response await db listDocuments process env NEXT PUBLIC DB ID process env NEXT PUBLIC TICKETS COLLECTION ID const tickets response documents const openTickets tickets filter ticket gt ticket status open const inProgressTickets tickets filter ticket gt ticket status in progress const completedTickets tickets filter ticket gt ticket status completed setCompletedTickets completedTickets setOpenTickets openTickets setInProgressTickets inProgressTickets catch error console log error Failure Getting the ticket detailsWhen you click on each support ticket on the Dashboard it needs to redirect you to another page containing all information related to the support ticket Therefore you need to create a ticket id js file that retrieves the ticket s details via server side rendering using the id from the page route as done below export async function getServerSideProps context let ticketObject try const response await db getDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC TICKETS COLLECTION ID context query id ticketObject response catch err ticketObject return props ticketObject Updating the ticket s statusOn the details page you can update the status of a support ticket using the HTML select tag and accept three types of values open in progress and completed You can update the status using the function below export const updateTicketStatus async id status gt try await db updateDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC TICKETS COLLECTION ID id status successMessage Status updated refresh page catch error console log error Failure errorMessage Encountered an error Live chatting feature with Next js and AppwriteIn this section I ll walk you through adding the chat feature to the application To do this create a chat page similar to the image below This page should require an access code on page load but doesn t require authentication to access the page Run the code snippet below when a user sends a message export const sendMessage async text docId gt get the ticket ID const doc await db getDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC TICKETS COLLECTION ID docId try gets the user s object admin const user await account get const result await db updateDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC TICKETS COLLECTION ID docId messages doc messages JSON stringify id generateID content text admin true name user name message was added successfully if result id successMessage Message Sent email the customer with access code and chat URL else errorMessage Error Try resending your message catch error means the user is a customer const result await db updateDocument process env NEXT PUBLIC DB ID process env NEXT PUBLIC TICKETS COLLECTION ID docId messages doc messages JSON stringify id generateID content text admin false name Customer if result id successMessage Message Sent notify staff via notifications else errorMessage Error Try resending your message The code snippet above checks if the user is a staff or a customer before adding the message to the messages array Real time messagingTo display the chat messages immediately you send them Create an event listener on the tickets collection and update the messages array with the changes as done below client is from your appwrite js fileuseEffect gt const unsubscribe client subscribe databases process env NEXT PUBLIC DB ID collections process env NEXT PUBLIC TICKETS COLLECTION ID documents data gt const messages data payload messages setMessages messages map parseJSON return gt unsubscribe You can learn more about real time listeners in Appwrite Auto scroll featureAdd an empty div below the chat messages element lt div className chat container gt chat messages element messages map message gt lt div gt message lt div gt lt div ref lastMessageRef gt lt div gt Create a reference to the div element and shift the mouse focus when there is a new message as done below const lastMessageRef useRef null useEffect gt ️scroll to bottom every time messages change lastMessageRef current scrollIntoView behavior smooth messages Adding in app and email notifications with Novu and EmailJSHere you ll learn how to add in app notifications with Novu and send emails using EmailJS Recall that we need the in app notification when a customer sends a message via the chat page and when they create a new ticket The email notification is needed when the customer support staff sends a message and when a customer creates a new ticket Setting up in app notifications with Novu in Next jsNovu is the first open source notification infrastructure that manages all forms of communications In this article we ll make use of its in app notification feature Install Novu Node js SDK and its Notification center by running the code below npm install novu node novu notification centerRun npx novu init to create and access your dashboard Add your Novu Subscriber ID App ID and API Key into the env local file NEXT PUBLIC NOVU SUBSCRIBER ID lt subscriber ID gt NEXT PUBLIC NOVU APP ID lt your app ID gt NEXT PUBLIC NOVU API KEY lt your api key gt Create two notification template on your Novu dashboard and edit its content for the two cases when a customer creates a ticket and sends a chat message Add the notification functions to your Next js app as shown below const Novu require novu node const novu new Novu process env NEXT PUBLIC NOVU API KEY export default async function handler req res const status title username req body const response await novu trigger lt template name gt to subscriberId process env NEXT PUBLIC NOVU SUBSCRIBER ID payload status title username catch err gt console error err res status json response data Finally create the notification bell to display the notifications within your application and add to the Nav component within your application import NovuProvider PopoverNotificationCenter NotificationBell from novu notification center function Novu function onNotificationClick message if message cta data url window location href message cta data url return lt NovuProvider subscriberId process env NEXT PUBLIC NOVU SUBSCRIBER ID applicationIdentifier process env NEXT PUBLIC NOVU APP ID gt lt PopoverNotificationCenter onNotificationClick onNotificationClick colorScheme light gt unseenCount gt lt NotificationBell unseenCount unseenCount gt lt PopoverNotificationCenter gt lt NovuProvider gt export default Novu Sending email notifications with EmailJSHere you need to send an email to the customer when they create a support ticket and when a staff sends them a message To do this follow the steps below Install EmailJS by running the code below npm install emailjs browserConfigure your EmailJS account and copy your credentials into the env local file NEXT PUBLIC EMAIL SERVICE ID lt your service id gt NEXT PUBLIC EMAIL API KEY lt your api key gt NEXT PUBLIC TICKET CREATION ID lt template id gt NEXT PUBLIC NEW MESSAGE ID lt template id gt Create the templates for both cases and send your customers the email notifications Check here for more guidance The Wrap UpThe source code for the application is available here Feel free to check it out Open to workDid you enjoy this article or need an experienced React Technical Writer amp Developer for a remote full time or contract based role Feel free to contact me GitHub LinkedIn Twitter 2023-06-13 10:06:07
Apple AppleInsider - Frontpage News Using macOS Disk Utility: How to repair Fusion Drives, and using command-line utilities https://appleinsider.com/inside/macos/tips/using-macos-disk-utility-how-to-repair-fusion-drives-and-using-command-line-utilities?utm_medium=rss Using macOS Disk Utility How to repair Fusion Drives and using command line utilitiesThere are a few final useful utilities in Apple s Disk Utility you may not be aware of Here s how to use them the continued exploration of the macOS tool In the previous three installments of this series we looked in depth at how to use the macOS Disk Utility app and how to use it to manage devices volumes RAID and images and how to repair disks In this final segment we take a look at a few of the lesser known Disk Utility capabilities how to repair hybrid Apple Fusion Drives and how to use macOS command line disk utilities in Terminal Read more 2023-06-13 10:40:09
海外TECH Engadget Toyota claims its future EVs will have a range over 600 miles https://www.engadget.com/toyota-claims-its-future-evs-will-have-a-range-over-600-miles-104555944.html?src=rss Toyota claims its future EVs will have a range over milesThe distance EVs can go on a single charge has steadily increased over the years with top options from the likes of Mercedes BMW and Tesla all touting an estimated range of over miles Now Toyota a long time hybrid maker who can forget when having a Prius was the marker of being environmentally conscious is among the car manufacturers pushing toward even longer lasting charges for EVs In an announcement of new technology Toyota very boldly claims quot will change the future of cars quot the Japanese company shared its plan for future cars to reach a range of km miles According to Toyota it will achieve this goal through the quot integration of next generation batteries and sonic technology quot and plans to launch a full EV lineup by It already offers the bZX all electric SUV which can go about miles on one charge and starts at Plus it plans to release a quot next generation quot EV for Lexus its luxury brand in the same timeframe The company first started quot actively investing in future oriented areas quot in and as of March had since shifted about half of its R amp D staff and expenses into its Advanced Development work In May Toyota launched BEV Factory a space designed specifically for innovating battery EV technology The company has adopted giga casting the use of high pressure aluminum die casting machines to create larger car parts first used by Tesla ーa move it says will lower manufacturing costs The car s body will be manufactured with only three pieces Toyota s other venture comes in the form of the Hydrogen Factory an organization it plans to open this July in hopes of streamlining decisions and offering more advanced cheaper fuel cells through alliances and its own innovation Hydrogen itself is not inexpensive or widely accessible creating additional barriers to adaptation It can cost about per mile though Toyota offers or three years for leasers and six years for buyers ーwhichever comes first ーin complimentary fuel as an incentivization Its hydrogen car the Toyota Mirai currently has a range of up to miles and takes about five minutes to fill up Toyota also recently unveiled a GR H Racing Concept for future entry into Le Mans Hours race s new hydrogen car category where quick fill up is vital This article originally appeared on Engadget at 2023-06-13 10:45:55
医療系 医療介護 CBnews 病院薬剤師の給与体系見直し促進へ、都道府県-厚労省、確保計画ガイドラインに施策例示 https://www.cbnews.jp/news/entry/20230613191748 医療計画 2023-06-13 19:45:00
金融 金融庁ホームページ 入札公告等を更新しました。 https://www.fsa.go.jp/choutatu/choutatu_j/nyusatu_menu.html 公告 2023-06-13 11:00:00
海外ニュース Japan Times latest articles Japan delays possible tax hike period for defense, draft documents show https://www.japantimes.co.jp/news/2023/06/13/national/politics-diplomacy/japan-tax-hike-defense-spending/ trillion 2023-06-13 19:15:12
ニュース BBC News - Home Police investigate 'horrific' attacks in city centre https://www.bbc.co.uk/news/uk-england-nottinghamshire-65887752?at_medium=RSS&at_campaign=KARANGA tragic 2023-06-13 10:55:24
ニュース BBC News - Home Pay rise surprise leads to forecasts of higher interest rates https://www.bbc.co.uk/news/business-65876822?at_medium=RSS&at_campaign=KARANGA interest 2023-06-13 10:38:54
ニュース BBC News - Home Marathon Eryri to drop Snowdonia from official name https://www.bbc.co.uk/news/uk-wales-65887990?at_medium=RSS&at_campaign=KARANGA snowdonia 2023-06-13 10:24:03
ニュース BBC News - Home Ofsted and Ruth Perry: MPs launch inquiry into school inspections https://www.bbc.co.uk/news/education-65881853?at_medium=RSS&at_campaign=KARANGA england 2023-06-13 10:55:00
ニュース Newsweek 【動画】退却しようとする味方に発砲するロシア軍──銃で戦闘続行を強いる「督戦隊」か(ウクライナ・メディア) https://www.newsweekjapan.jp/stories/world/2023/06/post-101887.php UNIANによれば、味方の兵士に向けて発砲しているのはロシア軍「督戦隊」の兵士たち。 2023-06-13 19:18:37
仮想通貨 BITPRESS(ビットプレス) [Forbes] 暗号資産業界と米SECの「全面戦争」はどこに向かう? https://bitpress.jp/count2/3_9_13647 forbes 2023-06-13 19:57:19
仮想通貨 BITPRESS(ビットプレス) [CoinDesk Japan] SECによる2大取引所提訴、上場暗号資産にも不透明感:法律専門家 https://bitpress.jp/count2/3_9_13646 coindeskjapansec 2023-06-13 19:52:30
仮想通貨 BITPRESS(ビットプレス) ビットバンク、2023/6/15付に取引所および販売所で「ザ・グラフ(GRT)」取扱開始 https://bitpress.jp/count2/3_10_13645 販売 2023-06-13 19:30:39
IT 週刊アスキー KONAMIの新作STG『CYGNI: All Guns Blazing』のストーリートレーラーが公開! https://weekly.ascii.jp/elem/000/004/140/4140798/ 発売予定 2023-06-13 19:25:00
IT 週刊アスキー 『アバター:フロンティア・オブ・パンドラ』の限定版や特典情報をチェック! https://weekly.ascii.jp/elem/000/004/140/4140788/ playstation 2023-06-13 19:10:00
IT 週刊アスキー 1位に輝いたのは? ソフマップ、6月6日~6月11日のゲーミングノート人気ランキングを発表 https://weekly.ascii.jp/elem/000/004/140/4140789/ 期間 2023-06-13 19:45:00
IT 週刊アスキー ノイズリダクションやオートゲインコントロール機能搭載のプロ仕様USBマイク オーディオテクニカ https://weekly.ascii.jp/elem/000/004/140/4140801/ atusbxp 2023-06-13 19:45:00
IT 週刊アスキー 店舗向けUSB Type-C充電ユニット&タブレット用ラックのセットを販売開始 https://weekly.ascii.jp/elem/000/004/140/4140776/ usbtypec 2023-06-13 19:30:00
IT 週刊アスキー 4つの動作モード最大44TB対応のHDDケース「裸族のテラスハウス RAID USB3.2 Gen2 Type-C」 センチュリー https://weekly.ascii.jp/elem/000/004/140/4140787/ raidusbgentypec 2023-06-13 19:30:00
IT 週刊アスキー ライブドア、ニュース記事の要約をAIが自動で生成する新機能のβ版をリリース https://weekly.ascii.jp/elem/000/004/140/4140775/ 運営 2023-06-13 19:15:00
IT 週刊アスキー LINE IDで使えるシェアサイクル「HELLO CYCLING for LINE」全国へ拡大 https://weekly.ascii.jp/elem/000/004/140/4140778/ hellocycling 2023-06-13 19:30:00
海外TECH reddit I'm so bored after work https://www.reddit.com/r/japanlife/comments/148btgb/im_so_bored_after_work/ I x m so bored after workTokyo here What do people do after they get off work during the rainy season that doesn t cost a ton of money The few friends I have here usually work late or go drinking I m pretty much solo on the weekdays I don t drink or club and usually get off around or but going straight home to my closet of a room is beyond depressing Reading a book at a cafe is cool and all but I m sitting on my ass all day Meetup app events are usually lukewarm at best Picked up skateboarding but with the rain and distance of indoor parks that s been a no go recently too Any suggestions submitted by u shusususu to r japanlife link comments 2023-06-13 10:07:30

コメント

このブログの人気の投稿

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