首页
精美壁纸
站点统计
友情链接
投稿
这样的我
更多
精美壁纸
站点统计
友情链接
投稿
这样的我
Search
1
钉钉破解版-钉钉破解版可以随意更改位置
1,676 阅读
2
《彩虹六号M》正式登陆,快来加入战斗!免费下载注册游完教程
1,366 阅读
3
【已解决】系统在此应用程序中检测到基于堆栈的缓冲区溢出
986 阅读
4
IDEA项目启动很慢的3种解决办法
945 阅读
5
appcrash事件怎么解决?三种方法教你
905 阅读
游戏资讯
等风也等你
生气日记
前端开发
css
JavaScript
html
jQuery
我爱学习
Ajax
Vue
Node
MongoDB
登录
/
注册
Search
标签搜索
说说
MongoDB
node
apache
麦肯锡
字符串
arcgis license server
stata
字母
变量
英文字母
分组
英语
网络适配器
图
网卡
No Feign Client for loadBalancing defined. Did you forget to include
Could
关于我
集成feign
再度Miren
累计发布
560
篇内容
累计收到
97
条评论
首页
栏目
游戏资讯
等风也等你
生气日记
前端开发
css
JavaScript
html
jQuery
我爱学习
Ajax
Vue
Node
MongoDB
页面
精美壁纸
站点统计
友情链接
投稿
这样的我
搜索到
4
篇与
的结果
2022-08-13
三种方法解决 IDEA乱码问题
第一种方法:?点开Run左边Edit Configurations…进入配置页面。?修改当前 Web 项目 Tomcat Server 的虚拟机,在VM options: 添加"-Dfile.encoding=UTF-8"修改完并重启Tomcat。以上方法不能解决乱码问题请往下继续阅读。第二种方法:打开File>Setting。打开Editor>File Encodings,将Global Encoding、Project Encoding、Default encodeing for properties files、Encoding 这四项都设置成UTF-8,点击OK或者Apply。??以上方法不能解决乱码问题请往下继续阅读。第三种方法:找到存放IDEA的本地安装目录,找到bin目录,找到idea.properties和idea64.exe.vmoptions两个文件。?用记事本打开这两个文件分别在这两个文件末尾加上"-Dfile.encoding=UTF-8"。?以上几种方法本人亲测有效,如有纰漏还望大家在评论区留言,还望大家多多支持!
2022年08月13日
447 阅读
0 评论
0 点赞
2022-05-14
完美解决IDEA控制台乱码问题
对于从事一门职业或者掌握一项技能来说,拥有一个好的工具可以事半功倍。在从事JAVA开发来说,现在大多数公司选择的集成开发工具一般应该是Intelli IDEA和Eclipse系列的集成开发工具。但当我们在使用Intelli IDEA进行开发时我们会发现控制台出现了一些关于中文乱码的问题,本篇文章希望能帮大家彻底解决这个问题。一、IDEA控制台乱码演示二、解决这个的问题以下列举文件编码错误问题许多博主推荐的办法来进行解决。(这是大家见到最多方案如果在这里没有解决请往下看)1、第一步:点击File,选择Settings进入第二步?2、第二步:选择Editor下的File Encoding将框内的全部换成UTF-8。注:打勾那里是为了解决非英文乱码问题这是大家可能在CSDN看到最多也是最基础(文件编码错误)的解决办法了,其他的(控制台编码错误、Tomcat Server编码错误和修改配置文件编码内容)有点繁琐也复杂对新手不容易上手。三、最简单也是最容易忽略的解决方法以上看完了,如果没有解决。那咱也不废话了。上面的办法(四个编码错误)都没有解决,我们就得考虑最简单也是容易被技术大牛忽略的点,那就是jdk版本问题。这个是我目前在CSDN没有发现的点。很多出现中文乱码的大多都是jdk版本是1.8而出现了乱码问题,那么请你把jdk1.8换成jdk1.7试试。//现在大一刚学习JAVA语言,经验有限,如果有错误望指正!
2022年05月14日
616 阅读
0 评论
0 点赞
2022-03-02
解决问题的方法及流程
产品人,就是去发现问题、定义问题及解决问题的人。甚至,我们所有的人,所有的生活就是在解决问题!这里将如何解决问题及解决问题的方法做一个梳理,参考了一个很多人未听说过的解决问题的系统化方法。发现问题,定义问题这里就不再表述了,这个是解决问题的前提。同样的,如何发现问题?如何定义问题?这两个问题的本身也牵涉者如何去解决发现问题、解决问题的自身问题本身。这里提到的一个观点是由波利亚提出的统化解题方法。乔治·波利亚(George Polya,1887—1985),美国数学家和数学教育家。生于匈牙利布达佩斯。1912年获布达佩斯大学博士学位。1914年至1940年在瑞士苏黎世工业大学任数学助理教授、副教授和教授,1928年后任数学系主任。1940年移居美国,历任布朗大学和斯坦福大学的教授。1976年当选美国科学院院士。还是匈牙利科学院、法兰西科学院、比利时布鲁塞尔哲学科学院和美国艺术和科学学院的院士。其数学研究涉及复变函数、概率论、数论、数学分析、组合数学等众多领域。1937年提出的波利亚计数定理是组合数学的重要工具。长期从事数学教学,对数学思维的一般规律有深入的研究,著有《怎样解题》《数学的发现》《数学与猜想》。他在《如何解题》的书中,详细地讲述了自己的系统化方法!大概分为了4个阶段:第一阶段:理解阶段;这里就是需要去探究问题的第一性原理,问题的本质。观察和发现问题的核心概念和性质是这个阶段的重点内容。一定要真正地理解问题:未知的问题是什么?变量是什么?你掌握了哪些事实?拥有哪些基本的数据?问题的场景是什么?条件是什么?条件有可能满足吗?条件是否足以确定未知量?或者它不够充分,或者多余?或者矛盾?将条件的不同的部分分开。你能把它们写出来吗?在这一阶段,必须要能够清晰的理解题目,必须清楚地看到所求的是什么。第二阶段:规划阶段;这个阶段人们需要规划出如何解决问题。发现已有的事实,已有的数据与未知问题、你的所求有什么样的关联。在知识的相互关联中,更加能够发现问题的本质。观察未知量!并尽量想出一道你所熟悉的具有相同或相似未知量的题目。从历史中去发现有没有类似的问题,从过往的经验中,能否找到相似的题目?这里最主要的就是建立起知识与未知之间的关联关系,通过这种关联关系,更能让我们发现问题的第一性原理,即问题的本质,从而提出相应的解决问题的规划和步骤。第三阶段:计划实施阶段;计划实施阶段是一个执行和验证的过程,也是验证你想法的过程。执行你的解题方案,检查每一个步骤。你能清楚地看出这个步骤是正确的吗?你能否证明它是正确的?也是一个去证明和证伪的一个过程。第四阶段:回顾阶段。回顾有很多名字,比如复盘,反思。其本质就是“从解决方案中学习"。通过观察解决问题的结果和解决问题的过程,人们可以夯实自己的知识,从而提高自己解决问题的能力。你能检验这个结果吗?你能检验这个论证吗?去证明或证伪你能以不同的方式推导这个结果吗?你能一眼就看出它来吗?你能在别的什么题目中利用这个结果或这种方法吗?从这四个阶段上看过去,第一感觉此方法并不高明,好像在哪里也听说过。这个与我们常用的项目管理、思考训练等等,好像都有类似的方式、方法。实例:以下面的减肥的例子为例,来分析一个具体的问题:第一阶段:理解问题的本质。1、目前体重:90KG。2、目标体重:75KG。3、目标差距:15KG。4、体重增加的原因:饮食不规律(早饭不吃、中午能活、晚上狂吃)5、作息不规律,夜间工作较多,吃的较多,特别是重口味的外卖等等。6、运动量不足,缺少时间运动或压根觉得运动就是一场修行啊!第二阶段:规划减肥的具体行动计划;1、更改作息时间,按标准作息时间休息,去除无效社交;2、更改饮食习惯,将重口味的外卖慢慢地转变为清淡为主,谷物等碳水食品的摄入量需要进行管控;3、适当加大运动量,慢慢提高运动次数,从尝试运动到每周2次,慢慢提升到每天运动;第三阶段:减肥计划实施阶段;1、每天按作息时间表和闹钟来矫正自己的习惯;2、拒绝外卖,尝试自己动手做清淡的饮食或自己带饭去公司;3、请朋友监督与处于自己这个阶段的人一起来分享经验、痛苦的过程等等,彼此监督、彼此鼓励;第四阶段:回顾减肥的行为、检查和讨论行动计划和实施的过程;1、反思自己每日坚持的效果与自己的目标进行对标;2、听从其他监督人的意见,是否做到了提醒自己的目的;3、自己的行为是否与自己的目标一致,中间过程有没有犯过错;4、同减肥人士们一起来分享这个过程、惊喜及所有的快乐!人们需要设定目标、制订计划,需要掌握背景知识,并把计划付诸于行动。还需要对不同方案进行压测,寻找问题的内在联系,进行实物的类比,采用不同的辅助工具,最终去勾勒出问题的典型形态以及背后的完整体系。而且,时常还需要回头看看,反思自己的计划、行为、方案,甚至重新思考一下当时提出的解决方案的合理性、可行性等,从而提高自己解决问题的能力。我们学习所有的知识,最终都是为了去解决一个个问题。总结:无论生活、工作、还是学习的本身,都是需要我们采用相应的方式、方法、原理、理论去指导我们的行为方式,朝向一个一个新的目标去迈进,一步一步去提升自己的能力。而且,时常需要静下来反思自己的行为,去看看自己之前走过的路。假如时间可以倒流,自己对当初的选择后悔过吗?现在看过去,是不是可以有更好的选择?通过假设来反思过去的种种行为,来纠偏目前自己的下一次启程的计划。通过对历史的类比、周期的类比,是否能够寻找到某种规律来遵循,从而指导自己的当前行为?历史不会重演,但却是惊人的相似。温故才能知新,这里的故,我认为就是过去的认知,新就是新的认知。
2022年03月02日
213 阅读
0 评论
0 点赞
2020-07-17
任何解决方案与最佳解决方案
by Sam Galizia由山姆·加利齐亚(Sam Galizia)任何解决方案与最佳解决方案 (Any Solution Versus the Best Solution)A couple of months ago, I was searching for resources to help me improve my coding skills. It didn’t take long before I stumbled upon Free Code Camp.几个月前,我正在寻找资源来帮助我提高编码技能。 不久,我偶然发现了Free Code Camp 。This open source community hosts a website dedicated to helping people learn how to code, with a focus on web development. Students can sign up for free and learn HTML, CSS, JavaScript, data visualization, and even back end technologies like Node.js.这个开源社区拥有一个致力于帮助人们学习编码的网站,重点是Web开发。 学生可以免费注册并学习HTML,CSS,JavaScript,数据可视化,甚至包括Node.js之类的后端技术。The ultimate goal is to give people coding practice by building projects, and ultimately get real world experience by working with nonprofit organizations.最终目标是通过构建项目为人们提供编码实践,并通过与非营利组织合作最终获得现实世界的经验。When I started their program, I flew through a lot of the HTML and CSS lessons, as I already had a little bit of experience with these technologies.当我开始他们的程序时,我经历了很多HTML和CSS课程,因为我已经对这些技术有了一点经验。Once I got to the sections on JavaScript, though, I slowed down and took my time. Then I hit the Basic Algorithm Scripting section.但是,一旦到达JavaScript的各个部分,我就会放慢脚步并花些时间。 然后点击“基本算法脚本”部分。Now, I’ve been programming for a number of years, using a couple different languages, and I honestly thought that this was going to be a breeze.现在,我已经使用多种不同的语言进行了多年编程,老实说,我认为这将是一件轻而易举的事情。I found out the hard way that these challenges are a little tougher than they appear on the surface. They not only tax your brain for the solutions, but also encourage you to use different features of the JavaScript language.我艰难地发现,这些挑战要比表面上的挑战要难一些。 它们不仅使您费解解决方案,而且还鼓励您使用JavaScript语言的不同功能。I spent some time working through a couple of the basic challenges, but inevitably, I got stuck.我花了一些时间解决一些基本挑战,但是不可避免地,我陷入了困境。黑暗中的光 (A Light in the Dark)When we get stuck on problems, usually our first thought is to look up some resources and try and figure out what we are doing wrong.当我们陷入问题中时,通常我们的首要想法是查找一些资源,并尝试找出我们在做错什么。Luckily, Free Code Camp has provided an amazing resource to help you out when you get stuck, like the Free Code Camp Wiki. I like to refer to this resource as a “light in the dark” because, just when you feel like giving up and throwing in the towel, this bright torch suddenly lights up the darkness around you!幸运的是,像Free Code Camp Wiki一样,Free Code Camp提供了一个了不起的资源来帮助您解决问题。 我喜欢将此资源称为“黑暗中的光”,因为当您想要放弃并扔进毛巾时,这盏明亮的手电筒突然照亮了您周围的黑暗!The Free Code Camp wiki is an invaluable resource as you work your way through the front end project challenges. Each wiki article contains an explanation of the challenge, and even hints and several possible solutions.当您处理前端项目挑战时,免费代码营Wiki是宝贵的资源。 每个Wiki文章都包含对挑战的解释,甚至包括提示和几种可能的解决方案。Many times when I found myself stuck, I would visit the wiki and just read a hint or two to make sure that I was on the right track. I never really looked at the solutions until after I had solved the problems. I wanted to conquer the challenges on my own!很多时候,当我发现自己陷入困境时,我会访问Wiki并阅读一两个提示,以确保自己处在正确的轨道上。 在解决问题之前,我从未真正研究过解决方案。 我想自己克服挑战!Along this path, I also discovered Free Code Camp’s large network of chat rooms where you can hang out with other campers (Free Code Camp students) and discuss what’s going wrong with your code.沿着这条路,我还发现了Free Code Camp的大型聊天室网络,您可以在其中与其他露营者(Free Code Camp的学生)闲逛,并讨论您的代码出了什么问题。Among the many people I encountered in the rooms, one person turned out to be an invaluable resource to me. Justin Richardsson helped me with one of the challenges I was struggling on and, unbeknownst to him, started me down the path to realizing the missing step in my learning process.我在房间里遇到的许多人中,有一个人原来对我来说是宝贵的资源。 贾斯汀·理查兹森(Justin Richardsson)帮助我解决了我所面临的挑战之一,而让他不为人所知的是,这使我开始了意识到学习过程中缺少的步骤。小心台阶! 缺了点什么! (Watch Your Step! Something is Missing!)Justin was explaining an error in my code, and he started talking about a better way to tackle the problem. He walked me through the process by asking me questions, guiding me toward discovering the steps for myself as we went along.贾斯汀(Justin)解释了我的代码中的错误,他开始谈论解决该问题的更好方法。 他通过问我问题来引导我完成整个过程,并指导我逐步了解自己的工作步骤。Eventually, I understood what he was talking about, and I had a realization. I had been solving the challenges and coming up with a solution, but was my solution the best solution?最终,我了解了他在说什么,并且我意识到了。 我一直在解决挑战并提出解决方案,但是我的解决方案是最好的解决方案吗?It turned out that I was not taking full advantage of best practices and core concepts. This discovery lead me to believe that my solutions were in fact not the best way to solve the challenges, and that somewhere along the way I had missed a step.原来,我没有充分利用最佳实践和核心概念。 这一发现使我相信,我的解决方案实际上并不是解决挑战的最佳方法,而且我一路走错了一步。The idea of this missing step boils down to doing one thing:缺少这一步的想法归结为要做一件事:Once you have found a working solution to the problem, you need to reevaluate your code and determine whether it can be improved.找到问题的可行解决方案后,您需要重新评估代码并确定是否可以对其进行改进。The improvement could be as simple as using fewer temporary variables, or fewer loops. JavaScript has many useful features that — when truly understood — can be powerful tools for more efficient problem solving. Let me give you an example of what I mean.改进可以像使用更少的临时变量或更少的循环一样简单。 JavaScript具有许多有用的功能-真正地理解后,它们可以成为有效解决问题的强大工具。 让我举一个例子说明我的意思。One challenge involves a function taking in a string, and you must reverse the string and return it.一个难题涉及到一个函数,它接收一个字符串,并且您必须反转该字符串并返回它。This first solution shows how many beginners attempt to solve this challenge. The first solution is not wrong, and it is okay to do this while you figure out the flow of what needs to happen. Let’s take a look at the first solution now:第一个解决方案显示了有多少初学者尝试解决此挑战。 第一个解决方案是没有错的,并且可以在确定需要发生的情况时进行此操作。 现在让我们看一下第一个解决方案:function reverseString(str) { var splitString = str.split(''); var reversedString = splitString.reverse(); var finalString = reversedString.join(''); return finalString;}Now looking at the above code, there is nothing inherently wrong with it. This solution to the challenge is technically valid, as it passes the required checks, but at this point we need to evaluate whether or not this is really the best way to solve this.现在看上面的代码,它本质上没有错。 这种挑战的解决方案在技术上是有效的,因为它通过了必需的检查,但是在这一点上,我们需要评估这是否真的是解决此问题的最佳方法。The first way I notice I can improve my code is by removing all of the unnecessary variables.我注意到可以改善代码的第一种方法是删除所有不必要的变量。One thing that I feel many students forget while learning JavaScript is that you don’t need to create a new variable for every modification to an existing variable.我感到许多学生在学习JavaScript时会忘记的一件事是,您无需为现有变量的每次修改都创建一个新变量。When you write an expression, the right side of the expressions is calculated before it executes. This is an important concept to understand, because it means that we can do this instead:当您编写表达式时,表达式的右侧会在执行之前计算出来。 这是一个重要的概念,因为它意味着我们可以改为:function reverseString(str) { str = str.split(''); str = str.reverse(); str = str.join(''); return str;}Look at that! By leveraging the built in language features, we have already improved the readability of our code and removed all the unnecessary variables.看那个! 通过利用内置的语言功能,我们已经提高了代码的可读性,并删除了所有不必要的变量。There is still more that we can do to improve this function though. We have utilized expressions and assignment, but lets take this one step further. I am going to make one more change to this function:但是,我们还有许多工作可以改进此功能。 我们已经利用了表达式和赋值,但让我们更进一步。 我将对该功能进行其他更改:function reverseString(str) { return str.split('').reverse().join('');}In this third solution, we have removed the multiple assignments to str and have used a very important feature,function chaining.在第三个解决方案中,我们删除了对str的多个分配,并使用了一个非常重要的功能, 函数链接 。It seems that many students while learning, forget some of these important features that honestly make our code so much more readable, and produce more correct solutions.似乎许多学生在学习时忘记了其中的一些重要功能,这些功能实际上使我们的代码更具可读性,并且产生了更正确的解决方案。All three of the above solutions are technically correct, but most developers would probably consider the third solution to be the best for this problem. This is because we aren’t using any more resources than are necessary. Therefore the function can be run quickly, and not waste CPU cycles or other resources. Granted, when we are talking about it being faster to execute, we are talking relative to other functions being processed.以上三种解决方案在技术上都是正确的,但是大多数开发人员可能会认为第三种解决方案是解决此问题的最佳方案。 这是因为我们没有使用超出必要数量的资源。 因此,该功能可以快速运行,而不会浪费CPU周期或其他资源。 当然,当我们谈论它的执行速度更快时,我们是在谈论其他正在处理的功能。Now I can already hear the critics saying that a best solution is subjective, and that other people might think another solution is the best. I am not claiming that there is only one way to solve these challenges.现在,我已经听到批评者说最佳解决方案是主观的,其他人可能会认为另一种解决方案是最佳的。 我并不是在说只有一种方法可以解决这些挑战。Clearly, there are many different ways to solve the challenges, but once we’ve come up with a solution, we need to make sure we are doing it efficiently. The difference between the first solution and the third solution is very clear. In terms of using this particular strategy to solve the challenge, the third solution is clearly better than the first.显然,有许多种解决挑战的方法,但是一旦我们提出了解决方案,就需要确保我们高效地进行了解决。 第一种解决方案与第三种解决方案之间的区别非常明显。 就使用这种特定策略来解决挑战而言,第三个解决方案明显优于第一个解决方案。什么是我们最好的解决方案? (What is Our Best Solution?)Justin recommended I help by contributing my new-found knowledge to the Free Code Camp wiki. I was very excited to help contribute, and that very night I worked on my first contribution.贾斯汀建议我通过将我的新发现知识贡献给Free Code Camp Wiki来提供帮助。 我很高兴能提供帮助,那天晚上我做了我的第一份贡献。I had realized that some of the articles in the wiki showed how to solve a challenge, but not necessarily the best way(s) to solve them. I made it my goal to try and contribute the best I could, so that I could help teach others this missing step when they looked for help. Somewhere along the line of our teaching process, we forgot that it is not just about solving a problem, but also teaching the best practices along the way.我已经意识到Wiki中的一些文章展示了如何解决挑战,但不一定是解决挑战的最佳方法。 我的目标是尽力而为,尽我所能,这样当别人寻求帮助时,我可以帮助他们教他们这失踪的步骤。 在教学过程中的某个地方,我们忘记了这不仅是解决问题,而且还沿途教授最佳实践。I sincerely feel that when we help people with challenges on FreeCodeCamp, we should not only focus on teaching the basic concepts. When people come to those of us with more experience, we should help guide them toward adopting best practices.我真诚地感到,当我们在FreeCodeCamp上帮助有挑战的人们时,我们不仅应该专注于教授基本概念。 当人们有更多经验来到我们中间时,我们应该帮助引导他们采用最佳实践。It’s important to teach concepts and not just code. By helping people to understand concepts, many times they will figure out on their own that there is a better way to solve a problem.教授概念而不只是代码很重要。 通过帮助人们理解概念,很多时候他们会自己想出一种解决问题的更好方法。One such experience I had involved a gentleman looking for help with a challenge. After examining his code, I could tell he knew what he wanted to do, but he was struggling to get there effectively.我曾经遇到过这样的经历,一位绅士在挑战中寻求帮助。 在检查了他的代码之后,我可以告诉他知道他想做什么,但是他正在努力有效地到达那里。Typically, the more code we have in a function, the more complicated it gets. Sometimes we end up making things way too complicated, like this camper had.通常,函数中包含的代码越多,它变得越复杂。 有时我们最终使事情变得过于复杂,就像这个露营者那样。I proceeded to offer some help in the form of two hints. I explained two concepts to him, that he most likely forgot about, using very small snippets of code that weren’t relevant to the actual solution.我开始以两个提示的形式提供一些帮助。 我用很少的与实际解决方案无关的代码片段向他解释了他最有可能忘记的两个概念。Upon reading the second hint I gave him, he excitedly asked me to hold on a minute as he thought he knew what to do. After a minute or two, he ecstatically posted that he had solved the challenge and posted his code!读完我给他的第二条提示后,他兴奋地要求我稍等一下,因为他认为自己知道该怎么做。 一两分钟后,他欣喜若狂地张贴自己已经解决了挑战并张贴了代码!This camper was so excited that he had finally figured it out, and I felt great knowing I had helped him solidify those core concepts. He then proceeded to tell me he wanted to go back and rework his other solutions before moving on, because he now knew a better way to solve them.这个露营者非常兴奋,以至于他终于想通了。我很高兴知道我已经帮助他巩固了这些核心概念。 然后,他继续告诉我,他想在继续之前重新尝试其他解决方案,因为他现在知道解决这些问题的更好方法。That right there shows exactly why it is so important to teach concepts and best practices. I am confident that the camper will remember those concepts and hopefully pass them on to someone else in need!那里的权利恰恰说明了为什么讲授概念和最佳实践如此重要。 我相信露营者会记住这些概念,并希望将其传递给需要帮助的其他人!So what is our best next step? To teach people learning to code how to do it correctly and efficiently using best practices and core concepts. Only when we can confidently say that we are teaching the best ways to code, and instilling the best practices in students, can we say that we have solved the issue of the missing step in the learning process.那么,我们最好的下一步是什么? 教人们学习如何使用最佳实践和核心概念来正确有效地编写代码。 只有当我们可以自信地说我们正在教最好的编码方法,并向学生灌输最佳实践时,才可以说我们已经解决了学习过程中缺少步骤的问题。翻译自: https://www.freecodecamp.org/news/the-difference-between-a-solution-and-the-best-solution-c5ff0cd573e3/
2020年07月17日
436 阅读
0 评论
0 点赞