<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sheoh的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/sheoh</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; sheoh]]></copyright><item><title><![CDATA[anything llm无法上传文档解决办法]]></title><link>https://blog.csdn.net/sheoh/article/details/145523653</link><guid>https://blog.csdn.net/sheoh/article/details/145523653</guid><author>sheoh</author><pubDate>Sat, 08 Feb 2025 21:49:18 +0800</pubDate><description><![CDATA[没有的先安装模型（cmd）：ollama pull nomic-embed-text。anything上传文档失败，大多数应该是配置出了差错，没有配置向量文件。找到设置里的embedder preference 设置向量模型。第二，有可能文件太大处理不了。设置完应该就能正常上传了。需要把文件分成不同的段。]]></description><category></category></item><item><title><![CDATA[MFC 中静态编辑框（StaticEdit）、编辑框（Edit）和按钮（Button）的背景颜色、字颜色和字体]]></title><link>https://blog.csdn.net/sheoh/article/details/132282271</link><guid>https://blog.csdn.net/sheoh/article/details/132282271</guid><author>sheoh</author><pubDate>Mon, 14 Aug 2023 19:03:50 +0800</pubDate><description><![CDATA[最后，关于WM_MOUSELEAVE的用法请参考：http://www.cnblogs.com/Simon-Sun1988/articles/4209104.html。//把字体的背景变成透明的。else if(pWnd->GetDlgCtrlID()==IDC_STA)//如果是静态编辑框。if(pWnd->GetDlgCtrlID()==IDC_EDIT1)//如果是编辑框。// TODO: 在此添加消息处理程序代码和/或调用默认值。// TODO: 在此添加消息处理程序代码和/或调用默认值。]]></description><category></category></item><item><title><![CDATA[MFC静态文本框的背景色设置]]></title><link>https://blog.csdn.net/sheoh/article/details/132255118</link><guid>https://blog.csdn.net/sheoh/article/details/132255118</guid><author>sheoh</author><pubDate>Sat, 12 Aug 2023 23:11:17 +0800</pubDate><description><![CDATA[本文来自互联网用户投稿，该文观点仅代表作者本人，不代表本站立场。本站仅提供信息存储空间服务，不拥有所有权，不承担相关法律责任。如若内容造成侵权/违法违规/事实不符，请联系编程学习网邮箱：809451989@qq.com进行投诉反馈，一经查实，立即删除。2.进入类向导，先点击 “消息” 再双击 “WM_CTLCOLOR”3.这时会自动生成一个函数，把下面代码考进去即可。1.在dlg里面邮件选择 “类向导”]]></description><category></category></item><item><title><![CDATA[cmd xxx不是内部命令或。。。。]]></title><link>https://blog.csdn.net/sheoh/article/details/85145039</link><guid>https://blog.csdn.net/sheoh/article/details/85145039</guid><author>sheoh</author><pubDate>Thu, 20 Dec 2018 22:36:36 +0800</pubDate><description><![CDATA[在cmd中输入path=%path%;C:\Windows\system32。

或在环境变量中配置path，在path中添加C:\Windows\system32，并将其上移到最上面。]]></description><category></category></item><item><title><![CDATA[找不到或无法加载主类]]></title><link>https://blog.csdn.net/sheoh/article/details/83183888</link><guid>https://blog.csdn.net/sheoh/article/details/83183888</guid><author>sheoh</author><pubDate>Fri, 19 Oct 2018 16:03:18 +0800</pubDate><description><![CDATA[这边提供一个关于程序中含有package关键字，使用“终端”运行程序时出现“找不到或无法加载主类”，而使用Eclipse软件可以正常运行程序的可能解决办法。

例如程序名为HelloWorldTest.java，程序中含有package helloWorld语句，而该包位于javatest目录下，即javatest/helloWorld/HelloWorldTest.java。

应该在java文...]]></description><category></category></item><item><title><![CDATA[localhost，127.0.0.1 和 本机IP 三者的区别]]></title><link>https://blog.csdn.net/sheoh/article/details/83118087</link><guid>https://blog.csdn.net/sheoh/article/details/83118087</guid><author>sheoh</author><pubDate>Wed, 17 Oct 2018 21:31:07 +0800</pubDate><description><![CDATA[1、127.0.0.1是回送地址，指本地机，一般用来测试使用。回送地址是本机回送地址（Loopback Address），即主机IP堆栈内部的IP地址，主要用于网络软件测试以及本地机进程间通信，无论什么程序，一旦使用回送地址发送数据，协议软件立即返回，不进行任何网络传输。
2、localhost是本地DNS解析的127.0.0.1的域名，这个你打开本机的hosts文件就可以看到，一般位于c:\wi...]]></description><category></category></item><item><title><![CDATA[类型 List 不是通用的;不能使用参数 <String> 将它参数化]]></title><link>https://blog.csdn.net/sheoh/article/details/83096993</link><guid>https://blog.csdn.net/sheoh/article/details/83096993</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 20:33:17 +0800</pubDate><description><![CDATA[这个错误一般是import导入错了导致的。
        Java.awt.List 是一个界面控件，是重量级系统列表控件；
        Java.util.List 是一种数据容器，是列表模式的数据容器。

转自https://blog.csdn.net/lwklhm/article/details/53613153...]]></description><category></category></item><item><title><![CDATA[JavaC002—应用程序界面外观UIManager类和LookAndFeel类]]></title><link>https://blog.csdn.net/sheoh/article/details/83044417</link><guid>https://blog.csdn.net/sheoh/article/details/83044417</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:25:19 +0800</pubDate><description><![CDATA[ /**
        * 设置图形界面外观
        * java的图形界面外观有3种,默认是java的金属外观,还有就是windows系统,motif系统外观.
        * 1、Metal风格 (默认) UIManager.setLookAndFeel(&quot;javax.swing.plaf.metal.MetalLookAndFeel&quot;); 
        * 2、Window...]]></description><category></category></item><item><title><![CDATA[JavaD000—托盘程序SystemTray实例]]></title><link>https://blog.csdn.net/sheoh/article/details/83044375</link><guid>https://blog.csdn.net/sheoh/article/details/83044375</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:25:11 +0800</pubDate><description><![CDATA[
&amp;lt;/pre&amp;gt;&amp;lt;p&amp;gt;因为工作需要，又拾起了很久不用swing，还好没忘干净，需要做一个一直在后台运行的托盘程序，经过一番努力终于成功了。&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;首先你要搞一个JFrame出来，如果你需要窗口，那就加上窗口，如果你只是需要后台运行，不设置窗口也可以，当然也可以选择设置了窗口大小，直接隐藏。将Resizable属性设置为false就可以了。废话不多...]]></description><category></category></item><item><title><![CDATA[JavaM001——class.getResource()另一种获取文件方法]]></title><link>https://blog.csdn.net/sheoh/article/details/83044400</link><guid>https://blog.csdn.net/sheoh/article/details/83044400</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:25:01 +0800</pubDate><description><![CDATA[class.getResource()的用法
用JAVA获取文件，听似简单，但对于很多像我这样的新人来说，还是掌握颇浅，用起来感觉颇深，大常最经常用的，就是用JAVA的File类，如要取得c:/test.txt文件，就会这样用File file = newFile(&quot;c:/test.txt&quot;);这样用有什么问题，相信大家都知道，就是路径硬编码，对于JAVA精神来说，应用应该一次成型，到处可用，并且...]]></description><category></category></item><item><title><![CDATA[JavaM000—indexof()字符串中字串查找方法]]></title><link>https://blog.csdn.net/sheoh/article/details/83043336</link><guid>https://blog.csdn.net/sheoh/article/details/83043336</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:24:54 +0800</pubDate><description><![CDATA[Java中字符串中子串的查找共有四种方法(indexof())
  
indexOf 方法返回一个整数值，指出 String 对象内子字符串的开始位置。如果没有找到子字符串，则返回-1。
如果 startindex 是负数，则 startindex 被当作零。如果它比最大的字符位置索引还大，则它被当作最大的可能索引。

 

Java中字符串中子串的查找共有四种方法，如下：
1、int index...]]></description><category></category></item><item><title><![CDATA[JavaC000—Preferences用户配置偏好的设置（1）]]></title><link>https://blog.csdn.net/sheoh/article/details/83043220</link><guid>https://blog.csdn.net/sheoh/article/details/83043220</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:24:47 +0800</pubDate><description><![CDATA[Properties提供的应用程序解决方案主要存在两个问题：

（1）配置文件不能放在主目录中，因为某些OS（如Win9X）没有主目录的概念；

（2）没有标准的文件命名规则，存在文件名冲突的可能性。

Java中的Preferences类可以解决这些问题。Preferences提供一个存储配置信息的中心知识库，与平台无关。在Windows系统中，它存储在注册表中，在Linux中存储在本地文件系统...]]></description><category></category></item><item><title><![CDATA[JavaC000—Preferences用户配置偏好的设置（2）]]></title><link>https://blog.csdn.net/sheoh/article/details/83044432</link><guid>https://blog.csdn.net/sheoh/article/details/83044432</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:24:43 +0800</pubDate><description><![CDATA[Java利用Preferences设置个人偏好

Preferences的中文意思即偏好或喜好的意思，也就是说同一个程序在每次运行完后，可以通过Preferences来记录用户的偏好，下次启动时，程序会利用这些信息来了解用户的喜好。而这些信息个人理解应该就是存储在系统的注册表中。

下面我们来学习一下Java中的Preferences的API; 概述:

本文将介绍自jdk1.4版本后可用的jav...]]></description><category></category></item><item><title><![CDATA[JavaC001—JProgressBar进度条类]]></title><link>https://blog.csdn.net/sheoh/article/details/83044440</link><guid>https://blog.csdn.net/sheoh/article/details/83044440</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:24:36 +0800</pubDate><description><![CDATA[本文链接: http://blog.csdn.net/xietansheng/article/details/74363751

Java Swing 图形界面开发（目录）

1. 概述
官方JavaDocsApi: javax.swing.JProgressBar

JProgressBar，进度条。

以可视化形式显示某些任务进度的组件。

进度条中心可显示进度百分比的文本表示形式。

当一个...]]></description><category></category></item><item><title><![CDATA[JavaM002——System.getProperty("user.dir")获得程序当前路径]]></title><link>https://blog.csdn.net/sheoh/article/details/83044614</link><guid>https://blog.csdn.net/sheoh/article/details/83044614</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:24:28 +0800</pubDate><description><![CDATA[因为所有在java.io中的类都是将相对路径名解释为起始于用户的当前工作目录，所以应该清楚当前的目录。

可以通过调用System.getProperty(&quot;user.dir&quot;) 来获得。


/**
获得当前类的完整路径。最后一句
*/
 
package org.outman.dms.server;
 
 
 
import java.net.MalformedURLException;
 
...]]></description><category></category></item><item><title><![CDATA[JavaM003—File.separator跨平台分隔符]]></title><link>https://blog.csdn.net/sheoh/article/details/83044645</link><guid>https://blog.csdn.net/sheoh/article/details/83044645</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:24:19 +0800</pubDate><description><![CDATA[在Windows下的路径分隔符和Linux下的路径分隔符是不一样的，当直接使用绝对路径时，跨平台会暴出“No such file or diretory”的异常。

 

比如说要在temp目录下建立一个test.txt文件，在Windows下应该这么写：
File file1 = new File (&quot;C:\tmp\test.txt&quot;);
在Linux下则是这样的：
File file2 = n...]]></description><category></category></item><item><title><![CDATA[JavaC003—List和ArrayList的区别]]></title><link>https://blog.csdn.net/sheoh/article/details/83047586</link><guid>https://blog.csdn.net/sheoh/article/details/83047586</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:24:05 +0800</pubDate><description><![CDATA[--恢复内容开始---

 转载自：http://www.cnblogs.com/aisiteru/articles/1151874.html

       第一次看这篇文章时，是在CSDN博客中看到的，作者写的初衷还是蛮好的，但是确实有错误的地方和不是很明

白的地方。于是就很想去看看原文，废了半天的功夫终于找到了，原文还是一样有出错和我不理解的地方，我也把原

文的地址贴在上面了。三月份学习...]]></description><category></category></item><item><title><![CDATA[JavaD001—Java 内嵌的Derby数据库基本使用]]></title><link>https://blog.csdn.net/sheoh/article/details/83047759</link><guid>https://blog.csdn.net/sheoh/article/details/83047759</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:23:52 +0800</pubDate><description><![CDATA[步骤 
1. 打开命令shell，并转到将来存有数据库文件的目录 
2. 定位derbyrun.jar。一般在jdk/db/lib目录中，我们使用derby来表示包含了lib/derbyrun.jar的目录 
3. 运行命令：java -jar derby/lib/derbyrun.jar server start 
4. 检查数据库是否工作了，然后创建一个名为 ij.properties 并包含...]]></description><category></category></item><item><title><![CDATA[JavaM004—Properties的load方法]]></title><link>https://blog.csdn.net/sheoh/article/details/83048710</link><guid>https://blog.csdn.net/sheoh/article/details/83048710</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:23:45 +0800</pubDate><description><![CDATA[Properties继承了HashTable，HashTable实现了Map

一、Properties继承的源码如下：


Properties extends Hashtable&amp;lt;Object,Object&amp;gt;
 public class Hashtable&amp;lt;K,V&amp;gt;
    extends Dictionary&amp;lt;K,V&amp;gt;
    implements Map...]]></description><category></category></item><item><title><![CDATA[什么是properties文件]]></title><link>https://blog.csdn.net/sheoh/article/details/83049060</link><guid>https://blog.csdn.net/sheoh/article/details/83049060</guid><author>sheoh</author><pubDate>Tue, 16 Oct 2018 17:23:35 +0800</pubDate><description><![CDATA[后缀properties是一种属性文件。
这种文件以key=value格式存储内容
Java中可以使用Properties类来读取这个文件
String value=p.getProperty(key);
就能得到对应的数据
一般这个文件作为一些参数的存储，代码就可以灵活一点
用于适应多语言环境，随着系统的语言环境的变化，读取不同的属性文件，显示对应语言的UI
当配置文件用，在里面读取一些关于路径...]]></description><category></category></item></channel></rss>