投稿時間:2023-06-07 22:20:09 RSSフィード2023-06-07 22:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia News] 新型「Mac Pro」、グラフィックスカードの増設に対応せず https://www.itmedia.co.jp/news/articles/2306/07/news207.html apple 2023-06-07 21:30:00
AWS AWS Government, Education, and Nonprofits Blog Deloitte’s Smart Factory Believers Program empowers next-generation STEM learning at District of Columbia Public Schools with support from AWS https://aws.amazon.com/blogs/publicsector/deloittes-smart-factory-believers-program-empowers-next-generation-stem-learning-district-columbia-public-schools-support-aws/ Deloitte s Smart Factory Believers Program empowers next generation STEM learning at District of Columbia Public Schools with support from AWSDeloitte s Smart Factory Believers program was established as The Smart Factory Wichita s purpose mission and is a collaborative initiative that brings together world leading organizations including AWS Elenco Electronics the National Math and Science Initiative NMSI and others to help foster new learning opportunities for middle school aged children in underserved communities Today Deloitte and AWS announced an expansion of the program to the District of Columbia Public Schools DCPS Within the next three years Smart Factory Believers aims to impact more than students in the DC metro area 2023-06-07 12:59:37
python Pythonタグが付けられた新着投稿 - Qiita Pythonのハマりやすいポイントを学ぶ問題集を作ってみた https://qiita.com/to-fmak/items/9d1be12713f38b8bd6fa 作ってみた 2023-06-07 21:58:28
python Pythonタグが付けられた新着投稿 - Qiita IT企業で働く高校生が本を出版してみた https://qiita.com/Raio14f/items/7eb06b51b49a332b085a 高校生 2023-06-07 21:09:48
技術ブログ Developers.IO 自走力のある組織 https://dev.classmethod.jp/articles/self-propelled-organization/ 重要 2023-06-07 12:56:42
海外TECH MakeUseOf Where to Buy Cool T-Shirts Online: The 10 Best Sites https://www.makeuseof.com/tag/where-to-get-cool-t-shirts-online/ awesome 2023-06-07 12:16:18
海外TECH DEV Community The Essential Checklist: Top 10 Things to Remember During Android App Development https://dev.to/dhruvjoshi9/the-essential-checklist-top-10-things-to-remember-during-android-app-development-4ib0 The Essential Checklist Top Things to Remember During Android App DevelopmentEmbarking on an Android app development journey is like setting sail on a thrilling adventure With so many opportunities and challenges along the way it s crucial to chart a course for success In this captivating blog post I will unlock the secrets of creating an Android app that users will fall head over heels for Get ready to dive into a treasure trove of knowledge as I present the top must have elements for an unforgettable app development voyage Define Your App s Purpose Discover Your App s Hidden Superpowers Just like superheroes your app needs a clear purpose and target audience Unleash its hidden superpowers by defining its goals and envisioning the impact it will have on users lives Marvel at the possibilities and design your app to deliver a mind blowing experience User Interface UI and User Experience UX The Spellbinding Magic of Design Enchant your users with a visually stunning UI that casts a spell of awe and wonder Bring Android Material Design to life with captivating animations intuitive navigation and a symphony of colors Let your users embark on a magical journey that leaves them spellbound Responsive Design Seamlessly Shape Shifting Across Devices Don t let your app be confined to a single formーset it free to adapt to any device from the smallest phone to the grandest tablet Embrace the power of responsive design and create an app that effortlessly shape shifts to deliver an unparalleled experience on every screen Performance Optimization Ignite the Nitro Boost Why settle for ordinary when your app can zoom ahead with the speed of a race car Ignite the nitro boost of performance optimization by fine tuning your app s engine Minimize resource consumption optimize algorithms and leave your users breathless with the sheer speed and efficiency of your creation Compatibility with Multiple Android Versions Conquer the Multiverse of Android In a world of countless Android versions be the hero who conquers the multiverse Ensure your app shines across a galaxy of devices by supporting multiple Android versions Harness the power of cutting edge features while keeping a lifeline for the loyal users of older versions Error Handling and Testing Banish Bugs and Claim Victory Every superhero faces obstacles but it s how they overcome them that defines their legacy Equip your app with the superpower of robust error handling and battle testing Crush bugs obliterate glitches and emerge victorious with an app that flawlessly executes its mission Security Measures Fortify Your App s Defense Shield In the ever evolving landscape of cyber threats your app must be an impenetrable fortress Fortify its defense shield by implementing ironclad security measures Encrypt sensitive data wield secure communication protocols and stand tall as the guardian of your users trust App Store Optimization ASO Ascend to the Mountaintop of App Stardom The Google Play Store is your gateway to app stardom but the path is treacherous and crowded Ascend to the mountaintop by mastering the art of App Store Optimization ASO Craft captivating descriptions choose keywords with surgical precision and entice users with eye catching screenshots Let your app shine like a beacon in the crowded app universe Analytics and User Feedback Harness the Power of User Insights To truly understand your users you must delve into the realm of analytics and user feedback Unleash the power of user insights to shape your app s destiny Discover hidden patterns uncover user desires and embark on a never ending journey of app enhancement based on real world data Continuous Updates and Maintenance The Quest for Everlasting Greatness The quest for app greatness is an ongoing adventure Embrace the call for continuous updates and maintenance to keep your app at the forefront of innovation Respond to user feedback introduce thrilling new features and let your app evolve and grow ensuring an everlasting bond with your users Final Lines Congratulations brave adventurer You have unlocked the secrets to creating a captivating Android app that users will adore Armed with these essential elements you re ready to embark on a journey of limitless possibilities Embrace the thrill unleash your creativity and let your Android app conquer hearts across the digital realm Remember the greatest reward lies in the love and appreciation your app receives from its devoted users May your app soar to unparalleled heights of success and become the stuff of legends Want to make your app even better and break all the records Reach out to me Happy Coding 2023-06-07 12:56:33
海外TECH DEV Community Secure Web Development: Best Practices for Fortifying Your Applications 🚀🔥 https://dev.to/arjuncodess/secure-web-development-best-practices-for-fortifying-your-applications-2gmm Secure Web Development Best Practices for Fortifying Your Applications Introduction In today s digital landscape where web applications play a pivotal role ensuring robust security measures is paramount Protecting sensitive data and maintaining user trust are crucial aspects of web development This article delves into the best practices for secure web development equipping developers with the knowledge and techniques to fortify their applications against potential threats Authentication and Authorization Strengthening User Authentication Implementing robust authentication mechanisms such as password hashing and salting enhances security and prevents unauthorized access Role Based Access Control Assigning appropriate privileges to users based on their roles reduces the risk of unauthorized actions Two Factor Authentication Adding an extra layer of security by requiring users to provide additional verification factors enhances the authentication process Input Validation and Sanitization Preventing Malicious Data Proper input validation and sanitization techniques ensure that user inputs are free from malicious content White Listing and Black Listing Implementing these techniques helps validate inputs and filter out potentially harmful data Protection Against Vulnerabilities Validating inputs and applying output encoding safeguards against common vulnerabilities like SQL injection and Cross Site Scripting XSS attacks Secure Communication Enforcing HTTPS Encrypting communication between users and web applications using Hypertext Transfer Protocol Secure HTTPS protects against interception and tampering Implementing SSL TLS Certificates Verifying the identity of the web server and establishing a secure channel for data transmission ensures confidentiality and integrity Session Management Secure Session Handling Implementing secure session management techniques including strong session identifiers and secure cookies prevents unauthorized access Session Expiration and Regeneration Enforcing session expiration and regeneration mitigates session based vulnerabilities such as session fixation and hijacking attacks Error Handling and Logging Effective Error Handling Configuring informative error messages for developers while avoiding sensitive information leakage protects against potential security breaches Logging Mechanisms Monitoring and logging security related events and exceptions aid in security monitoring incident response and forensic analysis Regular Updates and Patching Importance of Software Updates Keeping software and libraries up to date helps address known vulnerabilities and weaknesses Vulnerability Scanning Tools Utilizing automated vulnerability scanning tools assists in identifying potential security issues and areas requiring attention Implementing Security Headers Utilizing HTTP Security Headers Deploying appropriate security headers such as Content Security Policy CSP Strict Transport Security HSTS and X XSS Protection adds extra layers of protection against various attacks Security Testing and Code Reviews Conducting Security Testing Regular vulnerability assessments and penetration testing help identify security weaknesses and gaps Thorough Code Reviews Manual and automated code reviews uncover vulnerabilities and ensure adherence to secure coding practices Educating Developers and Users Promoting Security Awareness Training programs and workshops foster a culture of security within the development team emphasizing the importance of secure coding practices User Education Educating users on safe browsing habits recognizing phishing attempts and practicing good password hygiene contributes to a more secure online environment Conclusion In an era where web applications face constant threats secure web development is crucial for protecting sensitive data and maintaining user trust By implementing best practices for fortifying web applications developers can mitigate potential security risks and safeguard their users information Continuous improvement adaptation to emerging threats and a commitment to security are essential for building robust and secure web applications Embracing these best practices empowers developers to create a safer online environment ensuring the integrity and trust of their users I have always been deeply passionate about writing and nothing brings me more joy than offering assistance and inspiration to others If you have any inquiries or require any guidance please don t hesitate to contact me I am here to help My Instagram arjuncoderMy Github CoderPOOPMy Twitter arjuncodess 2023-06-07 12:41:15
海外TECH DEV Community 10 Sites to Level Up Your UI Skills https://dev.to/keracudmore/10-sites-to-level-up-your-ui-skills-3e9m Sites to Level Up Your UI SkillsUI or User Interface is anything that a user interacts with on your website application or any digital device Want to take your UI skills to the next level Try out the sites below that will help get you there uicoachImprove your design skills by creating a site based on a challenge brief Each challenge provides you with the project idea colour theme and fonts to be used but the UI is all you This site allows you to generate challenges view others submissions and also allows you to explore colour palettes and font pairings that may come in useful for future projects dailyuiDaily UI is a series of daily UI design challenges Sign up for free and receive a unique challenge for days Challenges are sent Monday Friday Share your work on dribbble or twitter using their hashtag and randomly earn rewards along the way Pixact lyHow confident are you with your pixels Find out in Pixact ly by drawing a box to match the dimensions given You ll then receive a score based on how close you were to the original kerntypeTest your letter spacing with KernType Once submitted you ll be given a score and are given the option to see the solution This game has multiple levels and uses a number of different fonts DesignercizeChallenge your UI skills with whiteboard challenges used in interviews Designercize allows you to select from difficulty levels and adjust the timer Can you create a user profile view for a price comparison site to help chefs in just minutes What The HexTest your hex colour skills with What the Hex and see if you can correctly guess the correct colour based on the hex code Want to increase the difficulty Choose from one of difficulty levels TypewarAvailable online and as an app Typewar tests your knowledge of Typefaces Earn Badges as you progress through the levels If you want to up the ante there are also quests for you to defeat Can t UnseeA game where you need to choose the correct design This game tests all your UI skills such as padding fonts image aspects icons shapes and contrasts to name just a few But be warned it can get addictive It s Centred ThatSee if you have the eyes of a designer by judging whether the dots are placed in the middle of the shapes There are shapes to choose from and you ll need to complete them all to win the game If you win and fancy some more why not give the Christmas challenge a try Hex InvadersPrevent the alien invasion with your superior knowledge of hex codes Another fun game that puts your colour knowledge to the test Let me know which site is your favourite or if you have a recommendation for an amazing UI site thats not here that you think should be 2023-06-07 12:31:02
海外TECH DEV Community Ensuring reliability: SLOs, on-call process, and postmortems https://dev.to/dodoengineering/ensuring-reliability-slos-on-call-process-and-postmortems-5a64 Ensuring reliability SLOs on call process and postmortemsHello there my name is Pavel Pritchin and I m CTO at Dodo Engineering part of Dodo Brands My previous role was Head of SRE and since then the reliability of our IT system Dodo IS has been one of my responsibilities Today I d like to share which practices help us to ensure the stability of our system and even share some templates that anyone can use at their company Dodo Brands is a franchise business and the IT system developed by Dodo Engineering team is provided as software as a service for partners The head company covers the cost of development and maintains the stability of the Dodo information system Dodo IS We introduced the Service Level concept to ensure system reliability and set Service Level Objectives SLOs There are also processes in place to maintain reliability Service Level ObjectivesOur SLOs SLOs for monitoring application errors success rate SLO for the number of bugs per product SLO for the crash free rate of mobile applications Different teams can add their custom stability goals For example someone may have a target value for release frequency It s not enough to set the objective it must also be maintained For example the SLO for errors has an overall target SLO for the entire system of Dodo IS services status dashboard The critical services have established SLOs typically Each service has an owner team whose task is to monitor and fix stability issues The screenshot shows a summary dashboard that allows the service owner team to write actions to fix the problem with their service Even fixing minor deviations from the target value helps maintain the overall stability of the Dodo IS To maintain service level it s not enough to analyze problems after the fact It s also necessary to respond quickly to service failures Here comes the on call process to deal with it The critical services have established SLOs typically Each service has an owner team whose task is to monitor and fix stability issues The screenshot shows a summary dashboard that allows the service owner team to write actions to fix the problem with their service Even fixing minor deviations from the target value helps maintain the overall stability of the Dodo IS To maintain service level it s not enough to analyze problems after the fact It s also necessary to respond quickly to service failures Here comes on call process to deal with it On callEvery development team is responsible for the services of its domain Duty rotations include separate shifts during work hours nonworking hours and on weekends or holidays For critical services we implemented duty shifts All system services are divided into three levels of criticality They are called pools A B and C We have an escalation system outside of business hours for services in pools A and B Pool C includes all other services regardless of their criticality A B and C pools have their target MTTA SLO and compensation coefficients We watch every service and are ready to fix any issue Each on call engineer undergoes workshops and other training and has a deep knowledge of the services they work with every day In case of a service failure the on call engineer should start to look into the problem within minutes and the incident management pipeline handles the situation For their work on incidents and being on call for critical services on call engineers receive various compensations Compensations and target metrics for on call engineers in different on call pools Let s see how it works at night or on weekends at the right part of the scheme The monitoring signal comes to the st support line st line decides whether the failure is critical or if these are minor fluctuations or flops alerts If the issue is severe st line escalates it to of on call engineers in pools A and B On call engineer can call those on duty at that moment or get to people in another pool if there are problems in related systems and services We developed an escalation system for cases where no one answers so we can still find engineers to fix the issue as quickly as possible Incident management with on call process But once again it s not enough to just find a capable engineer find the reason for the incident and fix the problem If we don t analyze it and won t create and follow some plan to get rid of the root cause it may happen again and again bringing new problems to our business That s why we use postmortems PostmortemAfter incidents a postmortem review always takes place The practice of postmortems is used to identify the root cause of the problem It s essential to identify systemic issues in the architecture and design of services and fix them Without this we cannot maintain the Service Level because the number of problems will increase over time One of the main difficulties in working with postmortems is conducting a qualitative analysis of what happened For this the structure of a template is essential The template should lead us from describing facts to solving concrete decisions Helping questions like What helped us during the incident What went wrong or What went like clockwork should push for deep insights You also need general information specific to all failures date downtime duration business loss in money and affected services General information allows you to do a meta analysis and look at trends and tendencies Here you can find the template of postmortem which we use at Dodo after every incident You can also learn best practices of postmortem review from the authors of the practice in the SRE book from Google just as we did ConclusionAs a result stability support works in conjunction with processes We are maintaining the Service Level of each service fixing minor service issues On call duty and incident management process during which we mitigate failures A high quality analysis of the causes of failures and their elimination Sometimes fixing problems requires a lot of time and significant system changes Thus we can guarantee the specified level of stability for the Dodo IS If you have any questions on how we work with SLO on call and postmortems feel free to contact me in comments or directly we at Dodo Engineering are always happy to share our experience To discover more about Dodo IS and top QSR innovations in Dodo Brands follow us on LinkedIn  dev to and Medium 2023-06-07 12:28:00
海外TECH DEV Community Driving the future of mobility with an AI Hackathon at FINN https://dev.to/finnauto/driving-the-future-of-mobility-with-an-ai-hackathon-at-finn-27e0 Driving the future of mobility with an AI Hackathon at FINNHow do you get a bunch of disruptive minds together in a virtual room to build innovative AI applications Organize a hackathon During the FINN feat AI Hackathon held on May participants embarked on a one day challenge to generate measurable business impact by leveraging AI to solve problems Solutions developed ranged from automated vehicle damage recognition and GPT powered dynamic car pricing to a bot to answer queries about vehicles directly from Slack In this article we ll showcase the two winning projects one winner from the teams competing at FINN s base in Germany and the other from the New York City headquarters Get ready for some inspiration on hacking your business with AI Winner Finding your dream car with the power of AIPicture discovering your perfect car with just a few clicks That s the remarkable power of personalization Did you know that of consumers state they would become repeat buyers if they get a personalized experience ProblemHow can we at FINN leverage personalization to bring the car dealership experience to our customers on the go That s the question our winning team in Germany asked themselves Sofiane Zeghoud Ishtiaque Zafar Sofya Durneva and Robert Ghazaryan were driven by a shared vision transforming the way our customers engage with car subscriptions From left to right Sofya Durneva Sofiane Zeghoud Ishtiaque Zafar and Robert Ghazaryan The team noticed that we currently offer a uniform product listing page PLP experience to everyone The problem Our customers are all unique and have distinct needs and preferences We want to meet them where they are SolutionIn just a few hours the team created a fully functional recommendation engine prototype for our website delivering personalized suggestions that instantly connect with each customer For a smooth customer experience the engine uses already available analytics data to display the most relevant vehicles on the PLP Imagine effortlessly navigating our website and being greeted by a vibrant display of vehicles that are exactly what you re looking for The “Help me pick a car chat box becomes your trusted advisor that can always find the perfect car for your taste Personalized car recommendations hand picked for the visitor s needs By offering a seamless personalized experience this solution drives higher clickthrough rates CTR drives higher conversion rates CVR to subscriptionreduces paid marketing costsThis is how the magic happens Sofiane leveraged the power of deep learning to anticipate the preferences of each visitor for our top car models and list the models accordingly The “Help me pick a car feature runs on GPT under the hood a powerful language model to seamlessly fuse AI and user centric design helping customers find their dream car with ease The winning team is already setting its sights on training the models on richer fleet data and fine tuning the engine on more matching parameters As we continue making mobility fun and sustainable we invite you to stay tuned for more exciting innovations from us But first let s explore the winning idea of our USA based team Winner Revolutionizing user acquisition calls with AIIn the hackathon held at FINN s NYC base the winner was Team User Acquisition UA consisting of Kevin Allen Bethany Looi Anna Kohlasch and Eric Van Thuyne Team UA pitched a project to revolutionize the processing of user acquisition call information with the use of artificial intelligence ProblemTeam UA addressed the issue that on the one hand calls with customers are a crucial part of the work for many people working in user acquisition at FINN while on the other hand call records can be quite cumbersome to extract actionable information from Yes calls are recorded but re listening those calls would take ages And yes call recordings are transcribed but again plowing through all those call transcriptions would be a huge effort As a result currently it is difficult to keep track of which topics came up in an individual call with a customer or whether there are any trends or common topics across multiple calls This means that a lot of valuable call data and information is currently left unused or takes significant effort to use hence restricting the UA department s overall efficiency SolutionTo solve this issue Team UA developed an AI powered automation to facilitate quick and easy call summaries The solution automatically summarizes individual calls identifies customer intent that is whether the customer is likely to want to get a subscription action items such as requesting a customer s confirmation as well as any keywords associated with the call With this in hand anyone can swiftly get the gist of what was covered in a call Note on Hubspot with estimated customer intent a call summary action items and keywordsIn addition the keywords extracted from a call can be used to automatically summarize the contents of multiple calls over a specific period A keyword cloud can give a visual summary of the common topics that user acquisition agents are dealing with A keyword cloud visually summarizes the topics of multiple callsHow does the solution work in practice The AI driven automation consists of the following steps A phone call between a sales agent and a customer is recorded and transcribed via CloudTalk Using the low code tool Make an automation scenario fetches the call transcript from CloudTalk matches the call to the customer contact details on Hubspot and sends the transcript to ChatGPT for parsing ChatGPT uses the call transcript to create a call summary and to extract inferred customer intent action items and keywords The Make scenario adds a note with the extracted information to the relevant customer record on Hubspot and saves the extracted keywords in a Google sheet Make scenario that summarizes calls and extracts customer intent action items and keywords Why it s so goodTeam UA s AI driven solution is expected to offer three core direct benefits to anyone working with call data in user acquisition Time management ーAutomated call summaries can reduce manual effort in figuring out what happened in a call or across multiple calls Increase sales ーThe summaries can capture valuable insights that can in turn be used to train agents and enhance scripts Collaboration ーThe call summaries can be useful in collaboration by allowing the easy sharing of keywords and learnings with other departments In addition in the longer term the automated call summaries and keyword clouds are also expected to offer the following advantages Sales training ーCall summaries can be used to create training exercises and prepare agents for specific sales scenarios Capacity planning ーHaving a good quick and easy overview of call topics will enable the department to scale anticipate resource needs and to allocate resources effectively Customer service and close rates ーCall information can ultimately be used to increase the number of subscriptions In fact Team UA s project was developed to such a high standard that within days of winning the US hackathon it has already been implemented What s next AI hackathons can be a powerful tool when you re seeking to drive innovation and generate tangible business outcomes At FINN we re definitely going to continue implementing some more of the solutions developed during the hackathon day ーand come up with new ones How about you have you used AI to build any business solutions What worked well what didn t Let us know in the comments 2023-06-07 12:12:53
海外TECH DEV Community 10 Django Packages to Every Developer Must Install https://dev.to/scofieldidehen/10-django-packages-to-every-developer-must-install-1opj Django Packages to Every Developer Must InstallWelcome to the world of Django where web development becomes an adventure This article will explore essential Django packages that empower developers like you to create powerful feature rich web applications We will dive deeper into each package explain its key functionalities and provide a step by step installation guide So grab your keyboard and sit tight as we uncover the secrets of these must have Django packages Django Debug ToolbarUncover hidden insights in your Django application with the indispensable Django Debug Toolbar This powerful package provides a visual interface for debugging offering detailed information about requests SQL queries and performance metrics With the Debug Toolbar you can optimize your code identify bottlenecks and gain valuable insights into your application s performance pip install django debug toolbarDjango Rest FrameworkThis comprehensive package simplifies the creation of RESTful APIs providing robust tools for serialization authentication and permissions Django Rest Framework allows you to build scalable and flexible APIs that follow industry best practices supporting various data formats and handling complex data relationships effortlessly pip install djangorestframeworkCeleryCelery is useful for asynchronous processing and background tasks This powerful distributed task queue enables you to delegate time consuming operations outside the typical request response flow ensuring a highly responsive Django application With Celery you can handle resource intensive tasks schedule periodic tasks and achieve parallel processing improving performance and scalability pip install celeryDjango Crispy FormsSimplify form building with the elegant Django Crispy Forms package This handy tool streamlines the process of rendering and styling forms offering customizable layouts and crisp form rendering Django Crispy Forms reduces the time and effort required to create visually appealing and user friendly forms enhancing the overall user experience of your application pip install django crispy formsDjango CacheBoost your Django application s performance with Django Cache a powerful caching framework This package allows you to store frequently accessed data in memory reducing the need for repetitive database queries Implementing caching can significantly improve response times and alleviate database load resulting in a more efficient and scalable application pip install django cacheDjango AllauthThis package offers comprehensive user registration login and account management features With Django Allauth you can seamlessly integrate social authentication email verification and multi factor authentication into your application providing a secure and user friendly authentication experience pip install django allauthDjango GuardianDjango Guardian enhances the fine grained authorization capabilities of Django applications This package allows you to manage object level permissions enabling you to define access control for individual model instances Django Guardian provides a flexible and easy to use API giving you granular control over who can access specific resources within your application pip install django guardianDjango StoragesSimplify file management and storage in your Django application with Django Storages This package integrates with popular cloud storage providers like Amazon S and Google Cloud Storage Django Storages allows you to store and retrieve files efficiently providing scalability and durability for your application s assets pip install django storagesDjango CompressorDjango Compressor improves the performance of Django applications by optimizing and bundling static files This package automatically combines and compresses CSS and JavaScript files reducing the number of HTTP requests and improving page load times Django Compressor makes managing static assets easy and delivers them efficiently to users pip install django compressorDjango HaystackLast is Haystack which provides powerful search functionality for Django applications This package integrates various search engines such as Elasticsearch and Solr allowing you to build robust search capabilities for your application Django Haystack provides an intuitive API for indexing and querying data enabling users to perform fast and accurate searches pip install django haystackIncorporating these essential Django packages into your web development toolbox will equip you with the necessary tools to build powerful secure and efficient web applications Let s see some code examples for utilizing these packages in your Django projects Django Debug ToolbarTo enable the Django Debug Toolbar in your project add the following code to your settings py file settings py Add the Debug Toolbar middlewareMIDDLEWARE debug toolbar middleware DebugToolbarMiddleware Configure the Debug ToolbarDEBUG TOOLBAR PANELS debug toolbar panels timer TimerPanel debug toolbar panels sql SQLPanel Add more panels as needed INTERNAL IPS Add your IP address es for accessing the toolbar Other settings Django Rest FrameworkTo create a simple API using Django Rest Framework follow these steps serializers pyfrom rest framework import serializersfrom models import YourModelclass YourModelSerializer serializers ModelSerializer class Meta model YourModel fields all views pyfrom rest framework import viewsetsfrom serializers import YourModelSerializerfrom models import YourModelclass YourModelViewSet viewsets ModelViewSet queryset YourModel objects all serializer class YourModelSerializer urls pyfrom django urls import include pathfrom rest framework import routersfrom views import YourModelViewSetrouter routers DefaultRouter router register r yourmodels YourModelViewSet urlpatterns path include router urls Other URL patterns CeleryTo use Celery for background tasks Install a message broker e g RabbitMQ or Redis settings pyCELERY BROKER URL your broker url CELERY RESULT BACKEND your backend url Other settings Create a Celery task tasks pyfrom celery import shared task shared taskdef your task Task logic goes here passUse the task in your Django views views pyfrom tasks import your taskdef your view request Trigger the task your task delay Other view logic These are just a few examples of how to use these Django packages in your projects Remember to refer to the official documentation for each package for more detailed information and advanced usage ConclusionDjango packages empower developers to enhance their web applications with features like debugging RESTful APIs background task handling user friendly forms caching authentication authorization file management static file optimization and powerful search functionality Developers can build powerful secure and efficient web applications using Django by incorporating these packages If you find this article thrilling discover extra thrilling posts like this on Learnhub Blog we write a lot of tech related topics from Cloud computing to Frontend Dev Cybersecurity AI and Blockchain Take a look at How to Build Offline Web Applications  Resources  Essential Python Extensions for Visual Studio Code Using Python for Web Scraping and Data Extraction Getting Started with Python 2023-06-07 12:09:18
海外TECH DEV Community Making Sense of Cross-Posting: Knowing Where And Why to Publish Your Content https://dev.to/aws-heroes/making-sense-of-cross-posting-knowing-where-and-why-to-publish-your-content-jb6 Making Sense of Cross Posting Knowing Where And Why to Publish Your ContentI ve been blogging since I started off intermittently posting articles maybe once a month as we all do As I got more and more comfortable with writing I started setting goals for myself I tried to write articles a month I mostly hit it but didn t quite reach it However I was bitten by the writing bug Before I knew it I was determined to write blog posts in a single year It was a daunting task but I did it I published an article every Wednesday for an entire year In fact I still have that streak alive This article marks my th week in a row to publish a new article on a Wednesday Every time I publish an article I also cross post it on other blogging websites As much as I d like not everybody discovers my content through my personal site My audience is dispersed across Medium dev to and Hashnode in addition to my site Whenever I d publish an article I would also publish it to each of these three sites As you can imagine that would take a decent amount of time every week So I automated it I built a solution that would take my articles transform them to the appropriate format for each platform then publish the content on the platform via an API call being sure to make my blog the canonical reference It didn t occur to me until recently that all these efforts might not be as fruitful as I originally thought Each blogging platform has its own set of readers with their own interests There s no consolidated place to see view count of my articles so unless I bounce between the platforms I don t know which type of content resonates where Hint I do not regularly look at view counts anywhere Getting this kind of information would allow me tailor my content appropriately and help me decide if it s still worth supporting a specific platform On top of that I also want to see if my blog posts are a flash in the pan meaning they get some buzz then die forever So I built it Let s take a look FeaturesGiven the requirements I mentioned above I wanted an automation that performed several tasks Gather total views for all my articles across all blogging platformsCalculate the number of views week over week for each article for each blogging platformIdentify the top most viewed articles for the week on each platform and overallSave weekly results for monthly and yearly trend analysisSend me an email with the resultsDo this all automatically without any manual triggersSounds like quite the feat At the time of writing I have published blog posts including this one Insights like this will allow me to make decisions on how to proceed and open up the door to future AI recommendations OverviewAs with most of the automations I build this project was built using AWS Step Functions There are many tasks that must occur in a specific order so using an orchestration service makes the most sense Let s take a look at the workflow As you can see in the diagram the workflow performs the following tasks Load all articles from the databaseFor each one Fetch the total view count from Medium dev to Hashnode and Google AnalyticsFetch last week s view count record from the databaseIf the record exists subtract the new total view count from last week s total view count for each platformIf the record does not exist it uses the total count as the week s total because it s a new article Saves the weekly and total counts to a new record in DynamoDBWaits seconds to prevent throttling errors in the blogging platform APIs Discards the iteration context to prevent maximum state transition size errors Get the most viewed articles from each platform and generate email htmlSend me an email with the resultsAs far as workflows go not too bad But let me tell you it was a labor of love to get there Pretty much everything that could go wrong went wrong The Plethora of ProblemsThis was probably the most challenging build I ve had in a while Thinking about it from a high level this sounds like an easy problem to solve Just hit a few APIs do some math and send an email right What could possibly go wrong Problem Getting View CountsWhen you think of article metadata what s one of the first things that comes to your mind It s total view count right Apparently not to Medium dev to or Hashnode There is no direct API call that gives you view count for a specific post for any of them I could get at the data in a roundabout way but of course it was wildly different for each platform Medium Their API is limited to POSTs You can only create a new article with it So naturally I went to the user interface to see how data is loaded there Turns out there s an undocumented internal GraphQL API that fetches data It doesn t use the API token the REST API uses but rather it uses a cookie for auth I intercepted the cookie put the request into Postman and tried it out It worked Turns out the cookie saved in a browser session doesn t expire so I threw it into Secrets Manager and use it in my Lambda function to authenticate my requests Dev to Again no documented API that gets you the total view count Instead they provide an API that gets you the view count broken down by day If you want the total number of views you have to go from the beginning of time which in the case of their API is April and add the results up programmatically Yes this is what their user interface does The hardest part about this was getting the article id the API requires I hadn t been tracking the id of my posts so I had to find them all I ended up building a screen scraper that correlates the article id to the post slug and used that mapping to get the data I then had to write a script to update ALL my previous article DDB records with the ids for all the platforms Hashnode There s not many good things to say about the Hashnode API It has two documented GraphQL operations and that s it Neither of which return view count for a post So I took to the UI again intercepted the calls made on their analytics page and made a plan Their analytics API returns a paged result set with total view counts and post slugs So for this I had to load the posts across all the pages then search the set for specific posts to get the view count Google Analytics By far the best API once you figure it out I felt like I got deep into the bowels of GCP setting up trust relationships between Google Analytics and my API key There s no way I could do it again This one was also tricky because the analytics npm package requires a local credentials file for initialization For obvious reasons I did not want to check that credential file into source control so I saved the encoded contents in AWS Secrets Manager When my Lambda function that fetches the data runs it decodes the value in the secret saves it to a local file in the tmp directory then uses that to initialize the client Problem ThrottlingStep Functions gives you a maximum concurrency of when you use a Map state and significantly more if you use distributed map I started off gung ho and ran all concurrently to load stats for my articles as quickly as possible It took about seconds for my hacky way of loading data to receive its first Too Many Requests status code So I had to bump down the concurrent executions Through trial and error I ended up with a concurrency of and still had problems This is when I introduced the wait state into the mix I was processing one article at a time and slept the state machine for seconds at the end of each one This slowed down processing enough to not get rate limited by the internal APIs I was using And of course the second wait wasn t good enough In the event that I did get a the workflow fell apart So I took advantage of the robust error handling and retry capabilities of Step Functions to handle these errors specifically ErrorEquals RateLimitExceeded BackoffRate IntervalSeconds MaxAttempts Once the backoff and retry was implemented I was good to go I haven t had issues with rate limits breaking the workflow execution Luckily this is a background process and was already set up as a standard workflow instead of express So the extended time it took to retrieve the data was not a problem Problem Max State Transition SizeEverything worked great processing the articles one at a time until the Map state completed in the workflow On complete all the data from the iterations is compiled together in an array and sent to the next state The problem here is that I have articles with that number growing every week So aggregating the data from iterations of a map state very quickly exceeded the max limit of KB To resolve this problem I did two things clear out the execution context at the end of each iteration and throw the map results away before transitioning to the next state I probably only needed one of these to work properly but none of the data was needed so throwing it away was a non issue How It WorksThere is a lot of data flying around in this workflow I need to aggregate and sort view counts based on blogging platform and it needs to work across Lambda execution environments Luckily for me I have an in at Momento and know that a sorted set does exactly what I need Storing data remotely in a centralized cache allows me to have as many execution environments as I need to process the data and not worry about losing any data A sorted set will automatically sort the posts by number of views so getting back the top most viewed articles is as simple as a single API call I don t have to build any sorting logic I just say I want the top values in descending order Since these items are cached they are deleted automatically when the time to live expires so I don t have to worry about cleaning up data between my weekly executions const getTopResults async cacheClient top sortedSetName displayName gt let topArticles const response await cacheClient sortedSetFetchByRank blog sortedSetName order SortedSetOrder Descending startRank endRank top if response instanceof CacheSortedSetFetch Hit topArticles response valueArray map item gt return slug item value views item score return source displayName topArticles This will return the top N results with N being the value provided in the top parameter to the function Once data is aggregated sorted and returned I generate a table in HTML with the values for each blogging platform and publish an EventBridge event that triggers the SendEmail function from my serverless toolbox After a few moments I receive an email that breaks down the overall and platform specific views for the week Disclaimer these are all time numbers It was the first email I received from this automation so it couldn t send me the weekly report Also all my personal blog stats were reset on April when I switched versions of Google Analytics This worked for all the existing articles that I screen scraped ids for But what about new articles I don t want to continue scraping dashboards to find ids Luckily the id is returned in the response for all the APIs I was using to cross post the content originally So it was a simple manner of grabbing the id from each platform and creating a new id object on my article record that stores the unique identifiers for each platform Now when this new state machine runs it has access to what it needs to fetch view counts Making Sense of the DataIt s still early in my exploration of these stats But seeing the data side by side in that email above makes it easy to draw some initial conclusions Medium and my personal site get significantly more views than dev and Hashnode It could be the publications I m posting to or it could simply be that what I write about isn t engaging to the audience on those platforms That said the conclusion I draw from this is that my time is best spent optimizing Medium and my site Also it doesn t appear that my articles are a flash in the pan There are a few that are relatively old but continue to get views over time I will keep tabs week over week to see the content that appears to be evergreen An interesting thing to note as well is that the articles that get the most views on each platform are different Of course the article I posted that week gets the most views but beyond that it appears that each platform has different interests that make the posts perform better than others What s Next After I get a few weeks of data I ll have enough to start drawing definitive conclusions That said I m not an analytics expert I wouldn t even consider myself an analytics beginner I know how to build software that gathers metrics but converting those to insights is not easy So I ll build another automation that takes the data feeds it to ChatGPT and ask for suggestions charts and inferences This will identify the topics that do particularly well on each platform find the cross overs and make recommendations to me that reflect the data My overall goal here is to provide you with more content you like I hadn t considered looking at the data across all my cross postings before In my head I assumed the more the merrier Turns out this might not be the case There s so much more involved with content creation than I ever imagined Knowing target audiences remembering which sites they visit and identifying topics that do well never crossed my radar early on Now it s all I think about I like being in a constant state of improvement I m at the point with my writing career where that means looking at data and insights to start zooming in or zooming out on certain niches Overall though this is fun The code I walked through today is not open source yet But if you ask me to see the code I ll be happy to do so Happy coding 2023-06-07 12:08:41
Apple AppleInsider - Frontpage News Even with so many demonstrated use cases, Apple Vision Pro might not yet have a purpose https://appleinsider.com/articles/23/06/06/even-with-so-many-demonstrated-use-cases-apple-vision-pro-might-not-yet-have-a-purpose?utm_medium=rss Even with so many demonstrated use cases Apple Vision Pro might not yet have a purposeIn the year it s hard to imagine there s still room for Apple to disrupt anything anymore but the company aimed high with its first augmented reality headset and managed to set a new standard for what this segment can achieve Of course Apple did it in a very Apple way This new product Vision Pro is not cheap is packed to the gills with features and there s still a lot of room to grow Apple s showcase of the new Vision Pro headset was also busy with the company trying to present just about every single way someone might use this expensive kit when it finally launches early next year Whether it s in the house or at the office Apple wants everyone to know they believe wearing a headset and making use of augmented reality is the future of spatial computing Read more 2023-06-07 12:43:10
海外TECH Engadget Wordpress' Jetpack AI will write your blog posts for you https://www.engadget.com/wordpress-jetpack-ai-will-write-your-blog-posts-for-you-121009297.html?src=rss Wordpress x Jetpack AI will write your blog posts for youWordpress is getting an AI writing assistant of its own called Jetpack AI and it s built into the content management system s editor For Wordpress blogs hosted elsewhere owners will still be able to access the tool through the Jetpack plugin Like any other generative AI tool Jetpack can spit out content based on the prompt users type in whether it s a traditional article a list or a table The assistant can also switch the tone of the post depending on what the user is going for It could sound informative optimistic humorous or even sarcastic nbsp If the user wants to write their own post they could still ask Jetpack for help They could either make the tool generate a headline based on what they d written or use it to automatically check their grammar or correct any spelling mistakes And if they want to include a translation of their article they can use Jetpack AI to quickly translate it into any of its available languages including Spanish French and Korean According to TechCrunch Jetpack is free to use for all WordPress com customers for the first requests as sort of a free trial period After that users will have to pay per month to be able to access the tool nbsp While Jetpack AI can be especially useful for people already using Wordpress it s just one of the AI powered writing tools that have recently popped up The Microsoft Copilot for instance can create a proposal on Word based on spreadsheet data or change a written report s tone Google also recently imbued its Workspace apps with AI capabilities and gave Docs the power to generate text based on the topic written on the page This article originally appeared on Engadget at 2023-06-07 12:10:09
ニュース BBC News - Home Heathrow security officers announce summer strikes https://www.bbc.co.uk/news/business-65831998?at_medium=RSS&at_campaign=KARANGA august 2023-06-07 12:33:58
ニュース BBC News - Home Julie Goodyear: Coronation Street's Bet Lynch actress reveals dementia diagnosis https://www.bbc.co.uk/news/entertainment-arts-65831828?at_medium=RSS&at_campaign=KARANGA husband 2023-06-07 12:31:52
ニュース BBC News - Home Sgt Matiu Ratana: Murder accused pointed gun at police officer, trial told https://www.bbc.co.uk/news/uk-england-london-65833109?at_medium=RSS&at_campaign=KARANGA hears 2023-06-07 12:37:21
ニュース BBC News - Home Canada wildfires: Tens of millions under air quality warnings as fires burn https://www.bbc.co.uk/news/world-us-canada-65828469?at_medium=RSS&at_campaign=KARANGA quality 2023-06-07 12:33:21
ニュース BBC News - Home World Test Championship final: Marnus Labuschagne bowled by Mohammed Shami for 26 after lunch https://www.bbc.co.uk/sport/av/cricket/65833194?at_medium=RSS&at_campaign=KARANGA World Test Championship final Marnus Labuschagne bowled by Mohammed Shami for after lunchWatch as India s Mohammed Shami bowls Australia s Marnus Labuschagne for in the second over after lunch on day one of the World Test Championship final at The Oval 2023-06-07 12:33:40
ニュース BBC News - Home The Ashes: Why Moeen Ali's return is England's best option https://www.bbc.co.uk/sport/cricket/65832846?at_medium=RSS&at_campaign=KARANGA The Ashes Why Moeen Ali x s return is England x s best optionCoaxing Moeen Ali out of retirement to solve an Ashes spin bowling problem was the best move England could make says chief cricket writer Stephan Shemilt 2023-06-07 12:49:22
ニュース BBC News - Home Thousands flee homes as towns and villages flooded https://www.bbc.co.uk/news/world-europe-65829614?at_medium=RSS&at_campaign=KARANGA disaster 2023-06-07 12:50:01

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)