投稿時間:2023-01-17 00:20:35 RSSフィード2023-01-17 00:00 分まとめ(26件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS The Internet of Things Blog Generating insights from vehicle data with AWS IoT FleetWise: Introduction https://aws.amazon.com/blogs/iot/generating-insights-from-vehicle-data-with-aws-iot-fleetwise-part1/ Generating insights from vehicle data with AWS IoT FleetWise IntroductionThis blog post is written by Senior IoT Specialist Solutions Architect Andrei Svirida Automakers fleet operators and automotive suppliers are digitalizing their products and services and vehicle data is fueling this digitalization in several ways First access to vehicle data allows evolutionary improvement of existing business processes One example of this is faster detection of … 2023-01-16 14:30:23
python Pythonタグが付けられた新着投稿 - Qiita numpy を使わないで配列の中身を右にローテーションする方法 https://qiita.com/gungungult_6423/items/08d1a2adff283172f676 tebytimeslistnforainra 2023-01-16 23:19:01
AWS AWSタグが付けられた新着投稿 - Qiita 【12冠達成記念】SAP on AWS(PAS-C01) 認定試験合格レポート https://qiita.com/yosimitu/items/e5fd1f5501b422e645c9 saponawspasc 2023-01-16 23:45:52
Docker dockerタグが付けられた新着投稿 - Qiita 【お手軽】回線スピードテスト https://qiita.com/tamanobi/items/f248132c78e0236e3c67 頻度 2023-01-16 23:33:04
Docker dockerタグが付けられた新着投稿 - Qiita wslでDockerサービスの自動起動設定 https://qiita.com/khouki/items/35e81a0edf3de46cbf7d docker 2023-01-16 23:25:29
golang Goタグが付けられた新着投稿 - Qiita main.goを実行するたびにうるさいAvastを無効にする https://qiita.com/kiwsdiv/items/ccf9ff5602499c34b342 avast 2023-01-16 23:27:44
Git Gitタグが付けられた新着投稿 - Qiita git 操作でよく使うコマンド一覧(備忘録) https://qiita.com/fuku_rin/items/d41fe85a235b79b9b2fa stash 2023-01-16 23:58:17
技術ブログ Developers.IO AWSマネジメントコンソールのスイッチロール履歴を使いたくないので自動削除設定をしてみた https://dev.classmethod.jp/articles/aws-management-console-switch-role-history-auto-delete/ 設定 2023-01-16 14:54:58
技術ブログ Developers.IO I Tried Integrating AWS IAM Access Analyzer in A CI/CD pipeline https://dev.classmethod.jp/articles/i-tried-integrating-aws-iam-access-analyzer-in-a-ci-cd-pipeline/ I Tried Integrating AWS IAM Access Analyzer in A CI CD pipelineHello In a recent project I was tasked with deploying an IAM policy through CloudFormation As IAM policies 2023-01-16 14:26:27
海外TECH MakeUseOf How the Gentler Streak iOS App Helps Improve Fitness Without Overtraining https://www.makeuseof.com/gentler-streak-ios-app-help-improve-fitness/ How the Gentler Streak iOS App Helps Improve Fitness Without OvertrainingWhere the Apple Watch s activity rings push you to work out no matter what Gentler Streak lets you enjoy the recovery time you need 2023-01-16 14:30:16
海外TECH MakeUseOf How to Get Rid of Annoying TikTok Notifications https://www.makeuseof.com/how-to-get-rid-tiktok-notifications/ annoying 2023-01-16 14:15:16
海外TECH DEV Community Forcer la suppression de ressources Kubernetes https://dev.to/mxglt/forcer-la-suppression-de-ressources-kubernetes-51fm Forcer la suppression de ressources KubernetesDes fois quand on travaille avec des CR Custom Resources Ressources personnalisées elles peuvent être bloquées dans la phase Terminating Aujourd hui on va voir comment résoudre facilement ce soucis AvertissemeentAvant d aller plus loin je dois vous avertir de quelque chose Forcer la suppression d une ressource peut être risquéet peut générer d autres problèmes Par conséquent soyez sûr de ce que vous faites avant d effectuer cette manipulation Pour forcer la suppression d une ressource suivez les étapes suivantes Effectuez un edit de la ressource kubectl edit customresource nameEnlevez le paramètre finalizerSupprimez la ressource kubectl delete customresource nameEt c est tout J espère que ça vous aidera 2023-01-16 14:41:00
海外TECH DEV Community 11 Dynamic Programming Problems and Questions for Tech Interviews https://dev.to/javinpaul/11-dynamic-programming-problems-and-questions-for-tech-interviews-1180 Dynamic Programming Problems and Questions for Tech InterviewsDisclosure This post includes affiliate links I may receive compensation if you purchase products or services from the different links provided in this article image credit Grokking Dynamic Programming Patterns by educative ioHello there if you are preparing for tech interviews to get a job in big tech companies like Amazon Google and Microsoft then you must pay attention to two important topic Dynamic Programming and System Design These are two topics which often is the reason between success and try again Dynamic Programming is one of the toughest concepts to master for programmers but at the same time it s quite important to crack any programming job interviews Nowadays you will find at least one Dynamic programming coding problem on every coding interview and that s where most of the programmers get stuck They try to solve the problem using techniques like divided and conquer but ultimately fail because it s difficult to come to a solution to such problems unless you have solved a decent number of dynamic programming based coding questions This is very similar to system design questions which look easy but when you try to solve them you will often find yourself stuck and that s why I suggest you practice as much as possible For beginners earlier I have shared best Dynamic programming courses to learn dynamic programming basics and in order to help you with the practice today I am going to share some of the frequently asked Dynamic Programming problems from coding interviews You can use these DP problems to not only learn how to identify dynamic programming based coding problems but also how to approach and solve them in a given amount of time I have not posted the solution of these dynamic programming coding problems here because that would make this article really long it takes a lot of space to solve and explain the dynamic programming questions but don t worry I have linked to the appropriate solutions wherever I found I have also shared useful resources like online courses and tutorials to learn Dynamic programming and refresh your knowledge If there is a demand I may be able to post my solutions to these problems in separate articles as well but that s doesn t stop you from practicing You should start your practice now and try to solve as many Dynamic programming problems as possible for your coding interviews If you have any dynamic programming question which should be in this list feel free to suggest and I will add I like to keep this list updated so that we have a good number of Dynamic programming questions for practice with all difficulty levels like easy medium and hard By the way if you are a complete beginner to Dynamic programming then I suggest you first go through a DP course like Master the art of Dynamic Programming on Udemy to try a couple of guided problems to understand how things works otherwise you will stuck and don t enjoy solving these questions particularly if you have never solved a dynamic programming questions Top Dynamic Programming Problems for Coding interviewsWithout wasting any more of your time here is a list of the most popular and frequently asked Dynamic programming based coding problems from interviews They are not only great to practice this difficult technique but also gives you an opportunity to test your DP problem solving skills If you can solve out of these questions without any help you are in a good place to attempt coding interviews The Climbing Stairs problemThis is one of the most popular coding problems which can be solved using the Dynamic Programming technique In this problem you are climbing a staircase It takes n steps to reach the top Each time you can either climb or steps The question is in how many distinct ways can you climb to the top Note Given n will be a positive integer Example Input Output Explanation There are two ways to climb to the top step step stepsExample Input Output Explanation There are three ways to climb to the top step step step step steps steps step The Knapsack problemThis is another common Dynamic programming based coding problem and a pattern which can solve many such questions In this type of problem you will be given the weights and profits of N items put these items in a knapsack which has a capacity C Your goal get the maximum profit from the items in the knapsack Each item can only be selected once A common example of this optimization problem involves which fruits in the knapsack you d include getting maximum profit Here s the weight and profit of each fruit Items Apple Orange Banana Melon Weight Profit Knapsack capacity Let s try to put different combinations of fruits in the knapsack such that their total weight is not more than Apple Orange total weight gt profit Apple Banana total weight gt profit Orange Banana total weight gt profit Banana Melon total weight gt profitThis shows that Banana Melon is the best combination as it gives us the maximum profit and the total weight does not exceed the capacity You can also see this free lesson from the Dynamic Programming course on Educative for a detailed solution to this problem Edit Distance ProblemThis is one of the easier dynamic programming problems In this question you will be given two words word and word to find the minimum number of operations required to convert word to word You have the following operations permitted on a word Insert a character Delete a character Replace a character Example Input word horse word ros Output Explanation horse gt rorse replace h with r rorse gt rose remove r rose gt ros remove e Longest palindromic subsequence ProblemThis is another common Dynamic programming question and pattern In this type of DP question you will be given a sequence find the length of its Longest Palindromic Subsequence or LPS In a palindromic subsequence elements read the same backward and forward A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements Example Input bbbab Output Explanation LPS is bbbb Best Time to Buy and Sell Stock ProblemThis is one of the hard Dynamic programming problems which need some experience to solve In this question you will be given an array for which the ith element is the price of a given stock on day i If you were only permitted to complete at most one transaction i e buy one and sell one share of the stock design an algorithm to find the maximum profit Note that you cannot sell a stock before you buy one Example Input Output Explanation Buy on day price and sell on day price profit Not as the selling price needs to be larger than buying price You can try this problem on your own but if you stuck you can also see the solution here on Educative The Nth Fibonacci problemThis is one of the easiest dynamic programming questions and many of you have already solved it without even knowing that you are using Dynamic programming This is also the most common example of Dynamic Programming and many instructors use Fibonacci numbers to teach Dynamic programming In this question you will be asked to write a function to calculate the nth Fibonacci number Fibonacci numbers are a series of numbers in which each number is the sum of the two preceding numbers The first few Fibonacci numbers are and so on We can define the Fibonacci numbers as Fib n Fib n Fib n for n gt Given that Fib and Fib You can also see my solution of how to calculate the Nth Fibonacci number in Java to learn more about how to solve this problem The Coin Change ProblemYou are given coins of different denominations and a total amount of money amount Write a function to compute the fewest number of coins that you need to make up that amount If that amount of money cannot be made up of any combination of the coins return Example Input coins amount Output Explanation Longest common substringGiven two strings and s find the length of the longest substring common in both the strings Example Input s abdca s cbda Output Explanation The longest common substring is bd Longest common subsequence ProblemGiven two strings and s find the length of the longest subsequence which is common in both the strings Example Input s abdca s cbda Output Explanation The longest substring is bda  Equal Subset Sum Partition ProblemThis is another popular Dynamic Programming question that is very similar to the Knapsack problem If you know how to solve knapsack then you can solve this too In his problem you are given a set of positive numbers find if we can partition it into two subsets such that the sum of elements in both the subsets is equal Example Input Output TrueExplanation The given set can be partitioned into two subsets with equal sum amp Example Input Output TrueExplanation The given set can be partitioned into two subsets with equal sum amp Example Input Output FalseExplanation The given set cannot be partitioned into two subsets with an equal sum You can try solving the problem on your own but if you stuck then you can also see the solution here on Educative This free lesson is part of their Dynamic Programming course which explains this problem in detail and also shows you how to solve it in your browser Continuous Subarray Sum ProblemThis is another popular dynamic programming based coding problem from interviews In this problem you will be given a list of non negative numbers and a target integer k write a function to check if the array has a continuous subarray of size at least that sums up to a multiple of k that is sums up to n k where n is also an integer Example Input k Output True Explanation Because is a continuous subarray of size and sums up to Steps for Solving Dynamic Programming ProblemsSo far we have looked at common Dynamic programming problems which has been asked on interviews now its time to learn tips and tricks to solve them The key to solving Dynamic programming problems is first identifying them It s very similar to recursive problems like those binary tree problems and linked list based problems we have solved before You should first see if the whole problem can be broken down into smaller problems For example in the climbing stairs problem you can break down the n step problem into step or step problems Once you can do that you see if the complete solution can be obtained by combining the solution of subproblems that s the key If this holds true then its most likely Dynamic programming problems and you can use the divide and conquer Recursion and Memoization to solve the problems Here are the steps of solving dynamic programming DP problems Recognize a DP problem by breaking it down into subproblems Identify problem variables Clearly express the recurrence relation to applying recursion Identify the base cases Decide if you want to implement it iteratively or recursively Add memoization Determine time complexity You can also use the FAST method to solve dynamic programming problems which is an acronym for the steps you need to solve any dynamic programming problem Find the First Solution Analyze the First Solution Identify the Subproblems Turn around the solutionYou can use these techniques to identify and solve the Dynamic Programming problem I also highly recommend the Master the art of Dynamic Programming course on Udemy to try a couple of guided problems to understand how these steps fit together particularly if you have never solved a Dynamic Programming problem If you need a book I highly recommend Grokking Algorithms book by Aditya Bhargava which also explains Knapsack s problem in good detail and teaches you how to solve Dynamic programming problems That s all about common Dynamic Programming problems for tech Interviews Btw this is just a small sample of the dynamic programming concepts and problems you may encounter in a coding interview  Solving these coding problems will give you enough idea about how to identify Dynamic programming problems during coding interviews as well as how to solve them in a limited time These questions also cover all essential Dynamic programming patterns like the Knapsack problem which can be used to solve a host of DP problems Other Useful Resources for Programming Job Interviews Books to Prepare Technical Programming Coding Job Interviews Courses to Prepare for Programming Job Interviews Algorithm Books Every Programmer Should Read Top Data Structure and Algorithm Books for Java Developers Top Free Data Structure and Algorithm Courses String Algorithms Interview Questions Review these Java Interview Questions for Programmers array based Problems for interviews Algorithms Courses Junior Developer should join Best Courses to learn Data Structure and Algorithms Software Design Interview Questions for Programmers Top Object Oriented Programming Questions Top Courses to learn Dynamic Programming for Interviews Best Courses to learn System Design for InterviewsThanks for reading this article so far If you like these Dynamic Programming problems and interview questions then please share them with your friends and colleagues If you have any questions or feedback then please drop a note P S If you need more practice and need more Dynamic programming problems and solutions for each pattern check out Grokking Dynamic Programming Patterns for Coding Interviews on Educative It s an excellent text based interactive course to build your Dynamic programming skills 2023-01-16 14:29:50
海外TECH DEV Community Create a Paywall on a Next.js Blog Using FingerPrint and Sanity https://dev.to/hackmamba/create-a-paywall-on-a-nextjs-blog-using-fingerprint-and-sanity-4kf7 Create a Paywall on a Next js Blog Using FingerPrint and SanityThis article was originally posted on HackmambaA Paywall is a system that restricts user access to a particular web content till the user subscribes to it We can find paywalls on journals blogs and daily newspaper sites In this post we ll implement a paywall on a blog using Fingerprint js Sanity and Next js The paywall will block users from accessing the blog posts when the user has opened more than three posts Fingerprint is a browser fingerprinting software that accurately retrieves a user s browser information Then use the information to assign a unique identifier to this user even in a private incognito browsing mode We will fetch the blog page contents from Sanity however this post will not cover how to set up content in Sanity but we can quickly watch this video resource about getting started with Sanity Also we will use Firebase to store visitor activities while on the page learn how to get started with firebase quickly from this resource This is a live project Demo and the complete source code can be found in this GitHub Repository PrerequisitesThis post requires the following Experience with JavaScript and React jsInstallation of Node jsA Fingerprint account Signup is free Getting Started with Next jsNext js is a React based frontend development framework that supports server side rendering and static site generation Run the following command in the terminal to create a new Next js application npx create next app blog paywallThe above command creates a starter next js application in the blog paywall folder Next we ll navigate into the project directory and start the application with the following commands cd blog paywall to navigate into the project directorynpm run dev to run the dev serverNext js will start a live development server at http localhost Setting up Fingerprint jsLogin to fingerprint and click the “ NEW APPLICATION button choose the app name provide a domain and click the CREATE button On the next screen review the app details and proceed to create the app From the homepage click on the settings icon and select “ Account settings On the next screen scroll down and navigate to R eact copy the snippets and save them it will come in handy when building our application Building the Blog PaywallWe ll start by installing the following npm packages fingerprint js and firebase sanity image url and sanity block content to reactbootstrap and react bootstrap Install the above dependencies with the command below npm install fingerprintjs fingerprintjs pro react firebase sanity image url sanity block content to react bootstrap react bootstrap Next in the root directory of our project go to the pages folder and modify the app js file with the snippets we got from fingerprint like shown below pages app js import styles globals css import FpjsProvider from fingerprintjs fingerprintjs pro react function MyApp Component pageProps return lt FpjsProvider loadOptions apiKey lt Your API Key gt gt lt Component pageProps gt lt FpjsProvider gt export default MyApp Here we imported FpjsProvider used to wrap our topmost component and passed our API Key to it Fetching and Rendering Blog PostsLet s clean up the index js file and update it with the following snippets pages index js import styles from styles Home module css export const getStaticProps async pageContext gt const allPosts encodeURIComponent type post const url allPosts const getPosts await fetch url then res gt res json if getPosts result getPosts result length return posts else return props posts getPosts result export default function Home posts return lt div className styles main gt lt h gt Welcome to Blog Page lt h gt lt div gt In the snippets above we fetched our blog post contents from Sanity with the getStaticProps function and returned the response so that the Home component could access it Next let s read the post contents with the following snippets pages index js import styles from styles Home module css import useEffect useState from react import useRouter from next router import imageUrlBuilder from sanity image url export default function Home posts const receivedPosts setReceivedPosts useState const router useRouter useEffect gt if posts length const imgBuilder imageUrlBuilder projectId lt YOUR PROJECY ID gt dataset production setReceivedPosts posts map post gt return post mainImage imgBuilder image post mainImage else setReceivedPosts posts return function here In the snippets above we Imported useState useEffect useRouter and imageUrlBuilder used the useState and created receivedPosts state constant Created a constant router called the useRouter function on it looped through the posts data and updated the receivedPosts state Let s display the blog post on the front end Modify the index js file with the following snippets pages index js imports here export default function Home posts const receivedPosts setReceivedPosts useState const router useRouter useEffect function here return lt div className styles main gt lt h gt Welcome to Blog Page lt h gt lt div className styles feed gt receivedPosts length receivedPosts map post index gt lt div key index className styles post onClick gt router push post post slug current gt lt img className styles img src post mainImage alt post thumbnail gt lt h gt post title lt h gt lt div gt lt gt No Posts lt gt lt div gt lt div gt Here we used conditional rendering looped through the receivedPosts state and displayed the blog posts in return function In the browser we ll have the application like the below Adding Dynamic RouteWe want to open each post and view its content In the pages directory let s create a post folder and create a slug js file for dynamic routing with the following snippets pages post slug js const BlockContent require sanity block content to react import SyntaxHighlighter from react syntax highlighter import useEffect useState from react import useRouter from next router import imageUrlBuilder from sanity image url import styles from styles Home module css import useVisitorData from fingerprintjs fingerprintjs pro react import updateDoc doc arrayUnion setDoc getDocFromServer from firebase firestore import db from Utils export const getServerSideProps async pageContext gt const pageSlug pageContext query slug const particularPost encodeURIComponent type post amp amp slug current pageSlug const url https lt YOUR PROJECT ID gt api sanity io v data query production query particularPost const postData await fetch url then res gt res json const postItem postData result if postItem return props title postItem title image postItem mainImage body postItem body slug postItem slug current else return notFound true export default function Post title body image slug const modal setModal useState false const updated setUpdated useState false const visitTimes setVisitTimes useState const imageUrl setImageUrl useState const getData useVisitorData immediate true const router useRouter return lt gt lt h gt Hello from single post lt h gt lt gt In the snippets above BlockContent and SyntaxHighlighter to help us render the post contents and the code snippets useState and useEffect hooks from react and useRouter from next router We imported imageUrlBuilder to handle the blog post images and useVisitorData to track users information We imported different methods from firebase firestore and db from our firebase configuration in the Utils js file In the getServerSideProps function we fetched our blog content again from Sanity and returned the response We destructured the title body image and slug and created modal updated visitTimes and imageUrl constants with the useState hook in the Post component function Furthermore we destructured getData from useVisitorData created a constant router and called the useRouter function on it Next we ll use the properties we destructured from the Post component function and implement the single post page Update the slug js file with the following snippets pages post slug js const BlockContent require sanity block content to react imports here getServerSideProps function here function Post title body image slug constants here useEffect gt const imgBuilder imageUrlBuilder projectId lt your project id gt dataset production setImageUrl imgBuilder image image image const serializers types code props gt lt div className my gt lt SyntaxHighlighter language props node language gt props node code lt SyntaxHighlighter gt lt div gt return function here export default Post In the snippets above We used the imageUrlBuilder to quickly generate image URLs from Sanity image records and set our imageUrl to the generated image in the useEffect function Created serializer object inside it and used SyntaxHighlighter to highlight code snippets in the post content Now in the return function let s display the post contents and update the slug js file with the following snippets pages post slug js const BlockContent require sanity block content to react imports here getServerSideProps function here function Post title body image slug constants here useEffect function here serializer object here return lt gt lt div className styles postItem gt lt div className styles postNav onClick gt router push gt amp x lt div gt imageUrl amp amp lt img src imageUrl alt title gt lt div gt lt h gt lt strong gt title lt strong gt lt h gt lt div gt lt div className styles postBody gt lt BlockContent blocks body serializers serializers imageOptions w h fit max projectId Your project ID dataset production gt lt div gt lt div gt lt gt export default Post Here we displayed the blog post title and Image used BlockContent to show the post body and passed serializers to it Now a user can click on a particular post and view its contents in the browser Storing User Activity in FirebaseWe ll track the user information using fingerprint and save the user ID and posts visited on Firebase Learn how to store and retrieve data and configure Firebase in this resource When a user visits up to three posts a Paywall will block the user till the user subscribes Update the slug js file with the following snippets pages post slug js const BlockContent require sanity block content to react imports here getServerSideProps function here function Post title body image slug constants here useEffect gt visitedTimes const imgBuilder imageUrlBuilder projectId lt your project id gt dataset production setImageUrl imgBuilder image image image updated modal serializer object here const visitedTimes async gt await getData then async visitor gt const visited visitorId visitor visitorId visitedPostId slug const visitorId visitedPostId visited const visitorRef doc db visitors visitorId const documentSnap await getDocFromServer visitorRef if documentSnap exists await updateDoc visitorRef visitedPosts arrayUnion visitedPostId setUpdated true if documentSnap data visitedPosts length gt setModal true setVisitTimes documentSnap data visitedPosts length else setDoc visitorRef visitedPosts visitedPostId return function here export default Post Here we created the visitedTimes function that will get the user ID and posts visited and save them in firebase When the user reads up to three posts the function updates the modal state to true Adding a PaywallIn the return function let s conditionally render the paywall to block the user when more than three posts are visited pages post slug js Other imports here import Modal from react bootstrap Modal import Link from next link getSeverSideProps function here function Post title body image slug constants here visitedTimes function here useEffect function here serializers object here return lt gt visitTimes gt amp amp modal lt Modal centered show modal onHide gt window location href animation true gt lt Modal Header gt lt Modal Title gt Modal heading lt Modal Title gt lt Modal Header gt lt Modal Body gt Oops Seems you have exceeded your allocated free articles You can get back by subscribing lt Modal Body gt lt Modal Footer gt lt Link role button className btn btn secondary href gt Go Home lt Link gt lt Link className btn btn secondary href gt Pay Now lt Link gt lt Modal Footer gt lt Modal gt lt div className styles postItem gt single post here lt div gt lt gt export default Post In the snippets above we imported Link from next link and Modal from bootstrap Modal and conditionally rendered the Modal in the components return function Now the Paywall will block the user from reading the blog posts after the third one ConclusionThis post discussed adding a Paywall in a Next js blog with fingerprint and firebase ResourcesThe following resources might be helpful Introduction to fingerprint js Store and retrieve data in firebaseGetting started with Sanity 2023-01-16 14:10:30
海外TECH DEV Community Beginners guide on how not to abandon that one project https://dev.to/aneshodza/beginners-guide-on-how-not-to-abandon-that-one-project-53bb Beginners guide on how not to abandon that one project I know you are putting the project off because you re busy But now let s be honest with ourselves are we really that busy or is this the th project you started but aren t intending on finishing anymore With around years of coding experience I realized that it s more often the latter than anything else Recently I finished version of a touring machine I wrote in rust as a way of learning the language Something I realized after finishing the project was that I wanted to create a completely different app Did I start the project and create the repository Yes I even did my initial commit with some libraries I needed etc Will I ever finish it I have no idea Only time will tell In the meantime I decided to put that project off even further and write an article about why I am putting it off Quite paradoxical The science behind not finishing projectsLet s first find out why we even tend to put off projects From a psychological perspective there are multiple possible explanations or even a combination of some of those Self regulation theoryThe first explanation is something called self regulation failure which is part of the topic self regulation theory Wikipedia defines it as a system of conscious personal management that involves the process of guiding one s own thoughts behaviors and feelings to reach goals which means as much as how someone guides their own mood and thoughts to reach goals Roy Baumeister one of the leading psychologists on self regulation theory claims there are four essential components to self regulation standards of desirable behavior motivation to meet standards monitoring of situations and thoughts that precede breaking said standards and lastly willpower Some other psychologists gave a solution to aforementioned issue The patient being you monitors themselves and checks if desired behavior has been achieved If that is not the case the patient changes their behavior and starts monitoring themselves again The topic is not very researched but for us important is Procrastination has been described as the quintessence of self regulatory failure as said by pubmed gov The planning fallacyThe planning fallacy is a cognitive bias which says that humans tend to underestimate how much work there actually is when starting to work on a project Something I have definitely felt when working on private but also commercial projects Underestimating how much work there actually is can heavily impact ones motivation when the point of this is actually a lot more work than I thought has been reached entrepreneur com writes using already existing data so that your estimations are better should not be underestimated How do you make that data I track time on how long I need for certain features and then link the PR that was made in that time period to be able to look back and see how much I did in what time That helped me a lot in being able to decide how long I will need for something Novelty effectThe novelty effect describes the brains system of rewarding us when we begin learning something new but then lets that effect of gratification wear off Virginia Commonwealth University attributes the extend of that effect to short attention spans From what I have found there is no real solution to that feeling but rather ways for humans to get the new feeling when doing something You don t like your couch Put it somewhere else and see if your opinion on it has changed The same can go for software Have you been stuck on that one feature for the longest Commit and push it to a branch open up a draft PR and try working on another feature You can also have multiple projects running at the same time and swap which one you are working on so you always have something different to do Don t play against human nature but rather with it My personal experiencesWhile personal experiences may not work for everyone out there I think it is still important when talking about psychology Positive reinforcementI remember when I finished school and didn t have any exams It quickly struck me that the years and years of positive reinforcement by getting good grades was what kept me motivated Not having that anymore killed my will to code on my own stuff after I got home I solved that issue by writing articles about the stuff I am working on Seeing the likes and comments come in was sort of a motivation to finish another project AND also properly document it OrganizationA lot of projects didn t even go under because I didn t have any motivation to work on them but rather because I simply forgot about them forgot which scope they had to achieve As a solution to that I started a todo list where I would write down everything I needed to do The scope of that list would most of the times be the project but recently I also began with one for everything including buying a new mouse gifts for person x and so forth That may sound very dystopian but it has kept me organized Leading a well rounded lifeNow coding aside Keeping a healthy lifestyle and having hobbies outside of coding is important For me it has always been the gym and chess Both things that take a lot of patience to be really good at If you develop a healthy routine where coding plays an important part your motivation productivity and mental health will all start to improve ConclusionIn conclusion finishing that project or that book or going to the gym that day may be hard but sometimes stuff is hard It s not about constant comfort but rather the bigger picture Nonetheless it is important to take care of your mental health while achieving those goals I hope this article helps you and happy hacking 2023-01-16 14:04:16
Apple AppleInsider - Frontpage News Undiagnosed heart blockage detected thanks to Apple Watch https://appleinsider.com/articles/23/01/16/undiagnosed-heart-blockage-detected-thanks-to-apple-watch?utm_medium=rss Undiagnosed heart blockage detected thanks to Apple WatchA woman credits her Apple Watch with saving her life after the ECG app discovered an previously undiagnosed heart condition Apple Watch Series and later have an ECG appThe Apple Watch Series and later includes an app that can detect irregular heart rhythms and it also works as a health and fitness monitor in general Read more 2023-01-16 14:53:03
Apple AppleInsider - Frontpage News Roborock S8 Pro Ultra, CES wrap-up, HomeKit buttons, Hunter Douglas shades https://appleinsider.com/articles/23/01/16/roborock-s8-pro-ultra-ces-wrap-up-homekit-buttons-hunter-douglas-shades?utm_medium=rss Roborock S Pro Ultra CES wrap up HomeKit buttons Hunter Douglas shadesNow that CES has wrapped the Homekit Insider podcast covers a bit more news before reviewing the Yale Smart Safe and rounding up our favorite HomeKit buttons HomeKit InsiderWhen we recorded during CES more news was still trickling out We had more news also the following week that was worth covering Read more 2023-01-16 14:42:55
Apple AppleInsider - Frontpage News 'Pachinko' & 'Black Bird' win at Critics' Choice Awards https://appleinsider.com/articles/23/01/16/pachinko-black-bird-win-at-critics-choice-awards?utm_medium=rss x Pachinko x amp x Black Bird x win at Critics x Choice AwardsTwo of the most acclaimed Apple TV series were honored at the th Critics Awards for best foreign language series and best supporting actor Higher profile Apple TV shows Severance and Bad Sisters lost out at the Critics Choice ceremony but the streamer took home two wins from its eight nominations Pachinko beat series such as My Brilliant Friend and Apple TV show Tehran to win Best Foreign Language series Read more 2023-01-16 14:14:00
Apple AppleInsider - Frontpage News How to switch from a digital to analog stopwatch on iPhone https://appleinsider.com/articles/23/01/15/how-to-switch-from-a-digital-to-analog-stopwatch-on-iphone?utm_medium=rss How to switch from a digital to analog stopwatch on iPhoneYou don t have to stick to the default Stopwatch view Here s how to switch between a digital and analog appearance when using your iPhone to time something The analog face of the Clock s Stopwatch on iPhoneThe Clock app has been with iOS ever since the mobile operating system launched back in and is one of the apps that is timeless Since iOS the stopwatch inside the Clock app also has an analog face Read more 2023-01-16 14:13:34
海外TECH Engadget How to share your location using an iPhone https://www.engadget.com/how-to-share-location-iphone-143002231.html?src=rss How to share your location using an iPhoneSmartphones may mean never having to ask for directions but it can still be tricky to relay exactly where you are at any given moment to friends and family trying to find you iPhone users can share their current location using Messages Apple Maps Google Maps and Apple s Find My app While Apple makes it easiest to share locations with other iPhone users there are a number of ways to send your position to someone who uses an Android device as well We covered four different methods in the steps below along with a way to share from your Mac and how to stop sharing your location when you need to How to share your location using MessagesThis might be the easiest method as you re probably already texting the person with which you want to share your location To text someone exactly where you are follow these steps Open a conversation in Messages and tap the recipient s name image at the top of the screen Tap Send My Current Location A map thumbnail of your location will immediately appear in your conversation Amy Skorheim EngadgetIf your recipient has an iPhone and they tap the map an info screen will open with an option to get directions via Apple Maps If your recipient does not have an iPhone they will receive an Apple Maps link that will open in their browser If you want to share your location for a longer period of time Tap on your recipient s name image in your Messages conversation Tap on Share My Location Choose Share for One Hour Share Until End of Day or Share Indefinitely which remains active until you turn sharing off Amy Skorheim Engadget They will receive a notification that you are sharing your location with them and you will be added to their Find My app Just keep in mind that this only works with other iPhone users How to quickly share your home address in MessagesIf you have your address saved under your own contact you can send your home address via Messages by typing the words “my address is Messages will auto suggest your home address to fill in This also sends your address as a link your recipient can tap on to open their default map app How to share your location using the Find My appFind My lets you locate your Apple devices as well as other iPhone users The app is a combination of two former Apple offerings Find My iPhone and Find My Friends As you may expect this also only works with other iPhone users Tap on the Find My app from your home screen Tap on People on the bottom left Tap the symbol at the top of the list of contacts Select Share My Location from the pop up box Type the name of the person you want to share your location with Note that only your contacts with iPhones or email addresses will appear Amy Skorheim Engadget Tap the name of the contact and tap send Select whether you want to share for an hour the rest of the day or indefinitely until you turn location sharing off You ll receive a pop up box that says you ve started sharing your location and your recipient will receive a notification that you ve shared your location with them and your information will appear in their Find My app A note about satellite location sharingCurrently all iPhone models have the ability to both message with emergency services and share your location when you are outside of cellular coverage areas That means you can send your location via the Find My app even when you are off the grid You can read more about the limitations and other factors in Apple s press release How to Share your location using Family SharingFamily Sharing is an Apple service that allows you to share things like subscriptions media purchases and photo albums with up to five people in your family This is also another way to let your family know where you are Go to Settings then tap your Apple ID iCloud Media amp Purchases button at the top Tap on Family Sharing Choose the friends or family members you want to use Family Sharing with from the list note that Family sharing only works with other iPhones Tap the blue arrow to send Your recipients will receive a text invitation to join Family Sharing Amy Skorheim Engadget Once you are sharing with someone you can enable Location Sharing at the bottom of the Family Sharing menu Settings gt Apple ID gt Family Sharing Tap on Location Sharing at the bottom of the screen nbsp You ll see an information panel about Family Sharing and your location Tap Share Location nbsp The next time you tap Location Sharing from the Family Sharing menu you ll be directed to a screen that allows you to toggle location sharing on and off Amy Skorheim Engadget People who are connected with you through Family Sharing provided you have location sharing toggled on will be able to see you in the Find My app and in your profile panel in Messages How to share your location using Google MapsYou can also share your whereabouts directly from the apps that many people use for navigation To send a location via Google Maps you ll need to be logged in with your Google account within the Maps app Once you ve logged in follow these steps to start location sharing Open the Google Maps app on your iPhone Tap on your account image in the upper right corner Tap Location sharing You ll see a location sharing information panel Tap the Share Location button Amy Skorheim Engadget From here you can choose to share with your contacts from within Google by selecting a duration and the icon of the person you want to share with Your recipient will receive a Google Maps notification provided they have Google Maps installed and notifications turned on for that app They will also receive an email with a link to view your location on Google Maps Alternatively you can tap More Options below your contacts to share your location with a link You ll see a pop up window asking if you want to share with a link Tap Share nbsp Select from the suggested contacts the small icon at the lower right of each contact s image indicates which method will be used to send the link Or select an app such as Messages or Gmail to open those apps and enter your contact s information Your contact will receive a link via the method you chose When they tap the link it will take them to the Google Maps app if they have it installed or to Google Maps within the browser Amy Skorheim EngadgetHow to share your location using Apple MapsIf you prefer using Apple Maps for navigation here s how to use the app to send your location details Open Apple MapsTap the arrowhead icon to center the map on your current location Drag up on the panel at the lower half of the screen Scroll down to Share My Location and tap Choose the person you want to share your location with from the suggestions menu or choose an app such as Messages or Mail You can add a comment if you want and press the blue send arrow Amy Skorheim Engadget If you choose to send via Messages your recipient will receive a map thumbnail of your location If they tap that it will open their Apple Maps app If they don t have Apple Maps your location will open using Apple Maps in their browser How to share your location using a MacClick Launchpad from the Dock Open the Find My app Click on Share My Location in the lower left corner Type in the name of the person you want to share with Similarly to the Find My app on an iPhone the Find My app on a Mac can only share your location with other Apple devices Amy Skorheim Engadget Your recipient will receive a notification that you ve shared your location with them and your information will appear in their Find My app Troubleshooting location sharingIf you re having trouble sharing your location make sure Location Services is on for the app you want to use Go to Settings Tap on Privacy amp Security Tap on Location Services Make sure Location Services is toggled on Ensure the app you want to use is set to While Using Amy Skorheim EngadgetHow to stop sharing your locationIf you ve shared your location for a duration of time through Find My Family Sharing or Google Maps you can stop sharing at any point If you ve shared using a one time link to your location via Messages Apple Maps or the link option in Google Maps you can t undo that action just as you can t unsend a text or an email Via Find My Open the Find My app and tap the name of the person you want to stop sharing with Drag up on their info panel and tap Stop Sharing My Location Via Family Sharing Open Family Sharing by opening Settings and tapping your Apple ID panel at the top of the Settings menu Tap Family Sharing then Location Sharing and toggle off Automatically Share Location Via Google Maps Open the Google Maps app and tap on your profile image at the top right Tap Location sharing You ll see a list of people you ve shared with Tap the person you want to stop sharing with then tap the Stop button at the bottom of the screen 2023-01-16 14:30:02
Linux OMG! Ubuntu! Firefox 109 Adds Unified Extensions Button, Manifest V3 Support https://www.omgubuntu.co.uk/2023/01/firefox-109-released Firefox Adds Unified Extensions Button Manifest V SupportMozilla Firefox is the latest version of this open source cross platform web browser This update adds a new unified extensions button plus bug fixes This post Firefox Adds Unified Extensions Button Manifest V Support is from OMG Ubuntu Do not reproduce elsewhere without permission 2023-01-16 14:11:30
金融 RSS FILE - 日本証券業協会 株式投資型クラウドファンディングの統計情報・取扱状況 https://www.jsda.or.jp/shiryoshitsu/toukei/kabucrowdfunding/index.html 株式投資 2023-01-16 15:30:00
金融 RSS FILE - 日本証券業協会 J-IRISS https://www.jsda.or.jp/anshin/j-iriss/index.html iriss 2023-01-16 15:12:00
ニュース BBC News - Home Man, 22, arrested over drive-by shooting outside church https://www.bbc.co.uk/news/uk-64286160?at_medium=RSS&at_campaign=KARANGA churcha 2023-01-16 14:23:46
ニュース BBC News - Home Jeremy Clarkson says he apologised to Harry and Meghan over Sun column https://www.bbc.co.uk/news/entertainment-arts-64288418?at_medium=RSS&at_campaign=KARANGA column 2023-01-16 14:48:25
ニュース BBC News - Home Rishabh Pant: India wicketkeeper says 'road to recovery has begun' after car crash https://www.bbc.co.uk/sport/cricket/64294039?at_medium=RSS&at_campaign=KARANGA Rishabh Pant India wicketkeeper says x road to recovery has begun x after car crashIndia wicketkeeper Rishabh Pant says the road to recovery has begun after he was involved in a car crash last month 2023-01-16 14:16:42

コメント

このブログの人気の投稿

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