<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[胡伟明]]></title> 
<description><![CDATA[记录生活的点点滴滴]]></description>
<link>https://note.huweiming.cn/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>更新提示</title>
	<link>https://note.huweiming.cn/chengxusheji/195.html</link>
	<description><![CDATA[<p>
	之前小程序加入了更新提示，一直都没看到是什么效果，最近更新了一次后突然看到效果了，截个图记录一下。
</p>
<p align="center">
	<a id="ematt:601" href="https://note.huweiming.cn/content/uploadfile/202006/d6c41593495021.png" target="_blank"><img title="点击查看原图" border="0" alt="更新提示.png" src="https://note.huweiming.cn/content/uploadfile/202006/thum-d6c41593495021.png" width="260" height="460" /></a>
</p>
<p>
	&nbsp;
</p>]]></description>
	<pubDate>Tue, 30 Jun 2020 05:29:10 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/195.html</guid>

</item>
<item>
	<title>微信小程序总包大小上限提升</title>
	<link>https://note.huweiming.cn/chengxusheji/188.html</link>
	<description><![CDATA[<p>
	小程序代码总包大小上限提升至16M，以前是2M，确实有点小，但是大了的话也会造成臃肿，打开慢的问题。
</p>
<p>
	以下是官方原文：
</p>
<p>
	<span style="color:#e53333;">为满足小程序的业务发展需要，近期将调整小程序代码总包大小上限至16M并进行测试，邀请你进行体验。请开发者合理控制代码包大小、优化小程序性能，以提升用户体验。</span>
</p>]]></description>
	<pubDate>Thu, 04 Jun 2020 14:56:46 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/188.html</guid>

</item>
<item>
	<title>微信桌面版可以直接使用微信小程序了</title>
	<link>https://note.huweiming.cn/chengxusheji/162.html</link>
	<description><![CDATA[<p>
	今天更新到了2.9.0.112，已经支持直接使用小程序了，腾讯已经进一步扶持小程序，进一步扩展了使用范围。我之前还一直奇怪为什么桌面版的微信不能使用小程序呢，现在小程序就来到桌面版了。我之前编的计算类的小程序，我试了一下，可以使用，那以后计算就更方便了。
</p>
<p align="center">
	<a id="ematt:433" href="https://note.huweiming.cn/content/uploadfile/202005/fe361589806482.png" target="_blank"><img title="点击查看原图" border="0" alt="微信桌面版.png" src="https://note.huweiming.cn/content/uploadfile/202005/thum-fe361589806482.png" width="420" height="359" /></a> 
</p>
<p align="left">
	下面是打开时的样子，固定大小，不能缩放。
</p>
<p align="center">
	<a id="ematt:437" href="https://note.huweiming.cn/content/uploadfile/202005/05ba1589806809.png" target="_blank"><img title="点击查看原图" border="0" alt="微信小程序.png" src="https://note.huweiming.cn/content/uploadfile/202005/thum-05ba1589806809.png" width="281" height="460" /></a> 
</p>
<a id="ematt:435" href="https://note.huweiming.cn/content/uploadfile/202005/05ba1589806699.png" target="_blank"></a> 
<p align="center">
	&nbsp;
</p>
<p>
	&nbsp;
</p>]]></description>
	<pubDate>Mon, 18 May 2020 12:48:21 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/162.html</guid>

</item>
<item>
	<title>微信公众号被关注后自动回复---跳转小程序</title>
	<link>https://note.huweiming.cn/chengxusheji/145.html</link>
	<description><![CDATA[<p>公众号关注之后的自动回复消息，添加小程序链接，这样可以引导用户去使用小程序。</p>
<p>我也是在关注别人公众号的时候看到的，想着我自己也开发了一个小程序，需要添加一下，要不然很多人都不知道有这个小程序。酒香也怕巷子深，现在的人还是比较懒，多加一点引导信息，一键直达，效果可能要好一点。下面是代码，直接加到回复文本里，把aappid等信息改成自己的就好了。</p>
<pre class="brush:html; toolbar: true; auto-links: true;">&lt;a data-miniprogram-appid="小程序appid" data-miniprogram-path="小程序路径" data-miniprogram-nickname="小程序名称" href="" data-miniprogram-type="text" data-miniprogram-servicetype=""&gt;小程序名称&lt;/a&gt;</pre>
<p>
	<span style="font-size:14px;font-family:&quot;white-space:normal;word-spacing:0px;text-transform:none;float:none;font-weight:400;color:#58666e;font-style:normal;orphans:2;widows:2;display:inline !important;letter-spacing:normal;background-color:#ffffff;text-indent:0px;font-variant-ligatures:normal;font-variant-caps:normal;-webkit-text-stroke-width:0px;text-decoration-style:initial;text-decoration-color:initial;"></span>&nbsp;
</p>]]></description>
	<pubDate>Thu, 12 Mar 2020 09:55:01 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/145.html</guid>

</item>
<item>
	<title>完成中药提取浓缩工艺计算程序</title>
	<link>https://note.huweiming.cn/chengxusheji/107.html</link>
	<description><![CDATA[<p>
	经过两个星期的努力终于完成这个计算程序，界面还是略显简陋，好在集成了常用的一些计算工具，后面如果有需要计算的东西的话也可以编入这个程序，也有考虑把计算里面要用到的一些模块单独拿出来方便以后程序的调用，比如插值法计算等。界面方面，考虑以后用WPF重新改写本程序。
</p>
<p>
	可以计算提取罐，单双效，CIP，还有附带的一些其它常用计算工具，基本上把以前用EXCEL编写的计算程序全部重写了一遍。有EXCEL的计算公式在那里，只需要用变量替代表格中的相应的地方，当然中间还是出了一些状况，计算结果对不上，反正遇到计算结果不正确的话就调试程序，看看一个个值的情况，找到问题所在，直到与EXCEL相同，毕竟EXCEL计算表格已经经过验证了。
</p>
<a id="ematt:327" href="https://note.huweiming.cn/content/uploadfile/201808/b57b1533373133.png" target="_blank"></a> 
<p>
	计算过程中需要用到酒精水溶液性质，单独采用access数据库存储，编写计算程序连接读取然后采用插值法计算。
</p>
<p>
	提取罐，单双效的计算结果可以输出结果到EXCEL。后面考虑可以输出正规计算书的形式。
</p>
其它需要改进的地方还有，对数据输入的限制等。
<p>
	&nbsp;
</p>
<p align="center">
	<a id="ematt:327" href="https://note.huweiming.cn/content/uploadfile/201808/b57b1533373133.png" target="_blank"><img title="点击查看原图" border="0" alt="计算界面.png" src="https://note.huweiming.cn/content/uploadfile/201808/thum-b57b1533373133.png" width="420" height="339" /></a>
</p>
<p>
	<a id="ematt:327" href="https://note.huweiming.cn/content/uploadfile/201808/b57b1533373133.png" target="_blank"></a> 
</p>]]></description>
	<pubDate>Sat, 04 Aug 2018 08:52:29 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/107.html</guid>

</item>
<item>
	<title>这三天的收获</title>
	<link>https://note.huweiming.cn/chengxusheji/31.html</link>
	<description><![CDATA[<p>
	放假之前就定好的学习任务，基本上算完成了。单效双效的简化计算已经会了，正规的单效计算也已经弄明白了。只是正规的双效计算还没彻底搞明白。越学就越觉得自己还有很多东西还不会。
</p>
<p>
	VB的学习也停了有一段时间了。今天又下了好多资料，但是总感觉离自己想的还差好远，都是一些很基础的东西，自认为不需要花那么多时间去看那么多视频。还是在实例中学习吧，遇到有不明白的就查资料，现在搜索引擎那么方便，找个问题的答案还是很容易的。了解一个大概框架有可以实际去做了，况且之前封头计算程序已经做出来，已经有一个认识了。有什么实际要编写的计算程序，直接去做就好了，通过实例去学习比看一堆基础视频要有用，有效果的多。只有实际去做才能知道自己有哪些问题还没搞明白。
</p>
<p>
	今天安装了一堆软件，把要用到的软件基本装了一个遍，这些软件也需要学习，同样需要抱这个一个实际去用的心态去学习。基本操作实际看一下基本也就会了。
</p>
<p>
	单效计算的时候哪些数据查起来有点烦，如果可以把这些数据做成数据库的话，只要输入数据就可以自动得到的话，那就方便很多了。还有计算完成后能够导出计算结果，形成计算书的话那就更好了。现在可以开始研究这个怎么实现。
</p>
<p>
	学编程就要不断的实践，很多问题是在实际编程的时候发现的。
</p>
<a id="ematt:133" href="https://note.huweiming.cn/content/uploadfile/201604/2d651459777694.jpg" target="_blank"></a> 
<p align="center">
	<a id="ematt:133" href="https://note.huweiming.cn/content/uploadfile/201604/2d651459777694.jpg" target="_blank"><img title="点击查看原图" border="0" alt="u=2877807354,2080825902&amp;fm=21&amp;gp=0.jpg" src="https://note.huweiming.cn/content/uploadfile/201604/2d651459777694.jpg" width="220" height="220" /></a>
</p>]]></description>
	<pubDate>Mon, 04 Apr 2016 13:33:45 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/31.html</guid>

</item>
<item>
	<title>今天又用vb写了一个程序</title>
	<link>https://note.huweiming.cn/chengxusheji/27.html</link>
	<description><![CDATA[<p>
	上次的封头计算程序写了两天才完工。今天又把单效简化计算的VB给弄出来来了，这次没花多少时间。感觉根本不像在写程序，比用EXCEl编计算表格稍微高级点。可能自己只是把它当成纯粹的计算工具了吧，完全可以把它编写成能自动查询物性数据的程序。物料种类复杂，如果可以把这个物料数据库建立起来的话，则要好很多。可惜目前没有这个物料数据库。可以把这个作为自己进一步的目标，建立常用物料的物性数据库，然后供程序来调用，这就关系到VB操作数据库的问题，还有插值法的运用，可能输入的数据并不是数据库里已经有的，那就要取近似值。建立水与酒精的物性数据库。目前在制药行业这两种物料比较常见。
</p>
<p>
	如果可以把这些常见的工艺计算搞定的话，则在实际工作中要方便很多，对加深理解也有好处。
</p>
<a id="ematt:114" href="https://note.huweiming.cn/content/uploadfile/201603/a4d31458825457.png" target="_blank"></a> 
<p align="center">
	<a id="ematt:114" href="https://note.huweiming.cn/content/uploadfile/201603/a4d31458825457.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160324211726.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-a4d31458825457.png" width="420" height="396" /></a>
</p>]]></description>
	<pubDate>Thu, 24 Mar 2016 13:06:43 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/27.html</guid>

</item>
<item>
	<title>做C语言习题</title>
	<link>https://note.huweiming.cn/chengxusheji/26.html</link>
	<description><![CDATA[<p>
	学东西不仅要学还要做练习，这个练习就不同于那种为了考试而做的，真正的去思考，消化所学的东西。
</p>
<p>
	今天就做了一个打印乘法口诀表的C语言程序，看到这个题目，第一感觉是不难。两个for循环就可以了，但是实际做起来却并不是一帆风顺的。最开始写的程序是这样的：
</p>
<pre class="sh_c">#include&lt;stdio.h&gt;
int main()
{
	int a,b,sum;
	for(a=1;a&lt;10;a++)
		for(b=1;b&lt;10;b++)
		{	sum=a*b;
			printf("%d x%d=%d ",a,b,sum);		
		}
	printf("\n");
	return 0;
}</pre>
<p>
	&nbsp;
</p>
<a id="ematt:106" href="https://note.huweiming.cn/content/uploadfile/201603/403c1458747098.png" target="_blank"></a> 
<p align="center">
	<a id="ematt:106" href="https://note.huweiming.cn/content/uploadfile/201603/403c1458747098.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160323233121.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-403c1458747098.png" width="420" height="67" /></a> 
</p>
</a><a id="ematt:106" href="http://www.huweiming.com/content/uploadfile/201603/403c1458747098.png" target="_blank"></a> 
<p>
	<br />
</p>
<p>
	全在一行里显示了，如果加到for循环里面的话又全部在一列里显示了。需要加控制语句让程序换行。
</p>
<p>
<pre class="prettyprint lang-cpp linenums">#include&lt;stdio.h&gt;
int main()
{
	int a,b,sum;
	for(a=1;a&lt;10;a++)
		for(b=1;b&lt;10;b++)
		{	sum=a*b;
			if(a&lt;b)
			continue;
			printf("%dx%d=%d ",a,b,sum);
			if(a==b)
				printf("\n");
		
		}


	printf("\n");
	return 0;
}</pre>
	<p>
		<br />
	</p>
<a id="ematt:108" href="https://note.huweiming.cn/content/uploadfile/201603/941a1458747391.png" target="_blank"></a> 
	<p align="center">
		<a id="ematt:108" href="https://note.huweiming.cn/content/uploadfile/201603/941a1458747391.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160323233610.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-941a1458747391.png" width="420" height="127" /></a> 
	</p>
	<p>
		修改后是那么回事了，但是对齐还存在一点问题，有三个存在对齐问题，那就单独把这个控制一下。
	</p>
	<p>
<pre class="prettyprint lang-cpp linenums">#include&lt;stdio.h&gt;
int main()
{
	int a,b,sum;
	for(a=1;a&lt;10;a++)
		for(b=1;b&lt;10;b++)
		{	sum=a*b;
			if(a&lt;b)
			continue;
			printf("%dx%d=%d ",a,b,sum);
			if(a==b)
				printf("\n");
			if(a==3&amp;&amp;b==2)
				printf(" ");
			else if(a==4&amp;&amp;b==2)
				printf(" ");
			else ;
		}


	printf("\n");
	return 0;
}</pre>
		<p>
			&nbsp;
		</p>
		<p>
			显示结果如下：
		</p>
		<p align="center">
			<a id="ematt:110" href="https://note.huweiming.cn/content/uploadfile/201603/ac5f1458747867.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160323234401.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-ac5f1458747867.png" width="420" height="124" /></a> 
		</p>
		<p>
			达到了想要的效果。
		</p>
		<p>
			另外一种控制方法
		</p>
		<p>
<pre class="prettyprint lang-cpp linenums">#include&lt;stdio.h&gt;
int main()
{
	int a,b,sum;
	for(a=1;a&lt;10;a++)
		for(b=1;b&lt;10;b++)
		{	sum=a*b;
			if(a&lt;b)
			continue;
			printf("%2d x%2d=%2d ",a,b,sum);
			if(a==b)
				printf("\n");
		
		}


	printf("\n");
	return 0;

}</pre>
			<p>
				结果如下：
			</p>
			<p align="center">
				<a id="ematt:112" href="https://note.huweiming.cn/content/uploadfile/201603/bed91458747973.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160323232348.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-bed91458747973.png" width="420" height="89" /></a> 
			</p>
			<p>
				通用性应该更强，这个是保证每个输出的字符都是一样宽。
			</p>]]></description>
	<pubDate>Wed, 23 Mar 2016 15:25:16 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/26.html</guid>

</item>
<item>
	<title>今天尝试用VB编写封头计算程序</title>
	<link>https://note.huweiming.cn/chengxusheji/25.html</link>
	<description><![CDATA[<p>
	从6点多钟一直研究到9点多，才终于把基本的框架弄出来了。最开始的时候一直出错，又不知道错在哪里，不停的搜索答案，不停的修改尝试，终于有点起色了。目前就差输入公式了，这个输公式要十分的小心，特别容易出错，这个语法是检查不出来的，只能靠输完后与标准的计算值来对照检验是否有输错的地方。目前我是大致构思了一下主体框架，然后就开始写了，遇到要解决的问题，需要实现什么功能，就网上搜索直到找出想要的答案，实现预想中的功能，变量的声明也是需要用到哪个就跑到前面去声明。添加注释很重要，今天写的一些东西，变量，构思什么的，可能明天自己也看不懂了。养成注释的好习惯。
</p>
<p>
	不能等到什么什么都准备好了才下锅，要马上去尝试，在尝试中不断的学习。
</p>
<p>
	今天写的头都快爆炸了，要赶紧休息了。
</p>
<a id="ematt:97" href="https://note.huweiming.cn/content/uploadfile/201603/e71f1458574784.png" target="_blank"></a> 
<p align="center">
	<a id="ematt:97" href="https://note.huweiming.cn/content/uploadfile/201603/e71f1458574784.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160321233928.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-e71f1458574784.png" width="420" height="394" /></a>
</p>
<p>
	安装vb后每次关闭的时候都出错，不知道什么原因。
</p>
<a id="ematt:99" href="https://note.huweiming.cn/content/uploadfile/201603/31721458574913.png" target="_blank"></a> 
<p align="center">
	<a id="ematt:99" href="https://note.huweiming.cn/content/uploadfile/201603/31721458574913.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160321234058.png" src="https://note.huweiming.cn/content/uploadfile/201603/31721458574913.png" width="419" height="224" /></a>
</p>
<p>
	不过还好，文件保存后再次打开东西都还在。
</p>
<p>
	2016年3月22号：已经基本设计完了，明天检查一下计算是否正确。
</p>
<a id="ematt:100" href="https://note.huweiming.cn/content/uploadfile/201603/4d2d1458727432.png" target="_blank"></a> 
<p align="center">
	<a id="ematt:100" href="https://note.huweiming.cn/content/uploadfile/201603/4d2d1458727432.png" target="_blank"><img title="点击查看原图" border="0" alt="QQ截图20160322224024.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-4d2d1458727432.png" width="420" height="408" /></a>
</p>
<p>
	在win10系统上也可以运行。
</p>
<a id="ematt:102" href="https://note.huweiming.cn/content/uploadfile/201603/c0ec1458727482.png" target="_blank"></a> 
<p align="center">
	<a id="ematt:102" href="https://note.huweiming.cn/content/uploadfile/201603/c0ec1458727482.png" target="_blank"><img title="点击查看原图" border="0" alt="win10运行效果.png" src="https://note.huweiming.cn/content/uploadfile/201603/thum-c0ec1458727482.png" width="420" height="407" /></a>
</p>
<p>
	界面稍微有点不同。
</p>
<p>
	2016年2月23号更新：今天试用了一下，碟形封头的计算不正确，同时还发现这个程序在任务栏没有显示，也不能最小化。
</p>]]></description>
	<pubDate>Mon, 21 Mar 2016 15:28:09 +0000</pubDate>
	<author>胡伟明</author>
	<guid>https://note.huweiming.cn/chengxusheji/25.html</guid>

</item></channel>
</rss>