Open Hyperlinks from Outlook in Chrome

When I click a link in Outlook, it opens in Edge even though Chrome is the default web application. I’ve verified that in Apps > Default Apps that Google Chrome is the default web browser. Here is the solution: Change the default browser for Outlook: Open Outlook File Options Advanced File and browser preferences Open hyperlinks from Outlook in: Choose Default Browser Restart Outlook Change the default browser for Windows 11: ...

Posted on 2023-12-07 ·  In Misc ·  1 min read  · <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>

ChatGPT写的北大口腔挂号程序

北大口腔挂号有多难大家都很清楚,今天就让ChatGPT写一个挂号程序,可惜挂号部分写得太潦草,跟没写一样: import datetime class PekingUniversityStomatologyHospital: def __init__(self): self.departments = ["口腔科", "牙周病科", "口腔颌面外科"] self.doctors = { "口腔科": ["张医生", "王医生"], "牙周病科": ["李医生", "赵医生"], "口腔颌面外科": ["陈医生", "刘医生"] } self.appointment_records = [] def get_departments(self): return self.departments def get_doctors(self, department): return self.doctors.get(department, []) def make_appointment(self, department, doctor, date, time): appointment_info = { "Department": department, "Doctor": doctor, "DateTime": datetime.datetime.strptime(f"{date} {time}", "%Y-%m-%d %H:%M"), "Status": "Scheduled" # 预约状态,可根据实际情况添加更多状态 } self.appointment_records.append(appointment_info) return appointment_info # 使用示例 hospital = PekingUniversityStomatologyHospital() # 获取科室列表 departments_list = hospital.get_departments() print("科室列表:", departments_list) # 获取口腔科医生列表 dentistry_doctors_list = hospital.get_doctors("口腔科") print("口腔科医生列表:", dentistry_doctors_list) # 挂号 appointment_info = hospital.make_appointment("口腔科", "张医生", "2023-01-01", "09:00") print("挂号成功:", appointment_info) # 查看挂号记录 print("挂号记录:", hospital.appointment_records)

Posted on 2023-12-06 ·  In Misc ·  1 min read  · <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>

检索增强生成(RAG)简介

检索增强生成(Retrieval-Augmented Generation,简称RAG)是一种新的自然语言处理(NLP)方法,它将预训练的参数化和非参数化记忆相结合,旨在提高知识密集型NLP任务的性能。本文将探讨RAG框架及其在NLP领域的潜在应用。 大型预训练语言模型(如BERT和GPT-3)在许多NLP任务上取得了令人瞩目的成果。然而,当涉及到访问和操作外部知识时,这些模型存在局限性。虽然它们可以编码和解码自然语言文本,但它们缺乏推理世界和利用外部知识源的能力。 这对于知识密集型NLP任务是一个重要的限制,例如问答和对话生成,这些任务需要访问大量的外部知识。这些任务的现有方法通常涉及基于检索的方法,这些方法依赖于外部知识源来检索相关信息,或者生成方法,这些方法使用预训练的语言模型来生成响应。 RAG框架将这两种方法结合起来,通过将预训练的seq2seq transformer模型与Wikipedia的密集向量索引相结合,使用预训练的神经检索器来访问外部知识源。检索器提供与输入条件相关的潜在文档,seq2seq模型则在这些潜在文档和输入的条件下生成输出。 RAG的关键创新在于预训练参数化和非参数化记忆的结合。参数化记忆是预训练的seq2seq模型,它提供了闭书方法的生成灵活性。非参数化记忆是Wikipedia的密集向量索引,它提供了开书检索方法的性能。 RAG模型可以在任何seq2seq任务上进行微调,生成器和检索器都可以同时学习。RAG模型可以训练生成答案,即使可以提取答案。包含有关答案线索但不包含答案的文档仍然可以对生成正确答案做出贡献,这是标准提取方法所不可能的。 RAG模型在NLP领域有重要的潜在应用。其中一个潜在应用是在聊天机器人和虚拟助手中,RAG模型可以用于提供更复杂和有效的人机交流。RAG模型还可以用于信息检索系统,可以用于提供更准确和相关的搜索结果。 RAG模型的另一个潜在应用是在教育领域。RAG模型可以用于提供个性化的学习体验,学生可以提出问题并获得适合其个人需求的答案。RAG模型还可以用于提供书面作业的自动反馈,为学生提供比目前可能的更详细和有用的反馈。 总之,检索增强生成是一种有前途的自然语言处理方法,它将闭书方法的生成灵活性与开书检索方法的性能相结合。RAG模型在许多领域具有重要的潜在应用,包括聊天机器人、虚拟助手、信息检索和教育。随着NLP领域的不断发展,RAG模型在实现人机交流方面将发挥越来越重要的作用。

Posted on 2023-12-06 ·  In NLP ·  1 min read  · <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>

每个人都有自己的时区

纽约时间比加州时间早三个小时, New York is 3 hours ahead of California, 但加州时间并没有变慢。 but it does not make California slow. 有人22岁就毕业了, Someone graduated at the age of 22, 但等了五年才找到好的工作! but waited 5 years before securing a good job! 有人25岁就当上CEO, Someone became a CEO at 25, 却在50岁去世。 and died at 50. 也有人迟到50岁才当上CEO, While another became a CEO at 50, 然后活到90岁。 and lived to 90 years. 有人依然单身, Someone is still single, 同时也有人已婚。 while someone else got married. ...

Posted on 2023-12-05 ·  In Insights ·  1 min read  · <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>

WordPress Permalinks 404 Issue Solution

The issue: Cannot change Permalink structure to any one except Plain. Otherwise, the post will return 404. Update any post will fail with message: “Updating Failed. The Response is Not a Valid JSON Response” The initial nginx config: server { server_name example.com; ... root /var/www/wordpress; index index.php index.html; location / { try_files $uri $uri/ $uri.html =404; } ... } Finally I found that the root cause is that nginx cannot redirect subpath to wordpress. ...

Posted on 2023-12-05 ·  In WordPress ·  1 min read  · <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>

《俞军产品方法论》书评

《俞军产品方法论》是一部深刻而实用的产品管理经典,作者俞军以其丰富的经验和独到的见解,系统总结了产品经理在推动产品发展过程中所需掌握的方法和技能。通过阅读这本书,读者不仅能够深感受益匪浅,而且能够对产品经理这个职业有更为清晰的认识,明白了他们在公司中的战略地位。 首先,书中强调了产品经理的核心职责和使命。俞军认为,产品经理应该是一位全面发展的专业经理人,而非只关注技术或市场的专家。他强调了产品经理在整个产品生命周期中的重要性,从产品的构思、规划、设计,到上线后的运营和改进,产品经理都需要有全局的视野和深入的理解。这一观点使读者对产品经理这个职业有了更为清晰的认识。 其次,俞军在书中提出了一系列实用的产品方法论。他系统地介绍了产品经理在不同阶段的工作重点和方法,涵盖了市场调研、用户需求分析、竞品分析、产品设计、团队协作等方面。特别是在产品设计和迭代的过程中,作者提出了“快速迭代”、“用户反馈迭代”等策略,强调了敏捷开发和用户导向的理念。这些方法论的提出,为产品经理提供了具体的工作指导,使其更好地应对复杂多变的市场环境。 在书中,俞军还分享了自己在创业和产品管理方面的心得体会,通过案例分析和个人经历,为读者提供了丰富的实战经验。他讲述了成功的产品背后的故事,以及在团队协作、决策制定等方面的经验教训。这些实例不仅生动有趣,而且极大地增强了读者对方法论的理解和信心,使之更具实际操作性。 总的来说,读完《俞军产品方法论》,启发良多。这本书不仅提供了系统全面的产品管理知识体系,而且结合作者丰富的实战经验,为产品经理提供了实用的方法论和策略。通过深入理解和应用这些理念,相信产品经理能够更好地在复杂多变的市场中推动产品的成功发展。这是一本值得反复阅读和深入思考的产品管理经典。

Posted on 2023-12-05 ·  In Insights ·  1 min read  · <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>