Author: mmpower

Software Architect & Soccer Fan 黑超白袜 = IT 民工 + 摇滚大叔

AI Generated Images Compared

AI image generators are everywhere now, more and more people are joining in the fun using them to generate creative images. Some of the popular sites that provide text to image generation services on the web pages are:

These AIGC (Artificial Intelligence…


Read More »

XXGE 自由泳技术问答集锦

XXGE是前游泳网站TopSwim(现已关站)论坛版主. 本文收集自2014年他在论坛的回复.

自由泳

问:六次腿的节奏?
答:手脚是没有固定配合方式的, 因为腰部的动作是最复杂的, 个体上的差异会导致打腿节奏完全不同, 配合游中打腿一定要下意识。 打腿训练能让你腰腿一体, 划水训练能让你腰手一体, 做到这个就行了。

问:手入水时为什么拍水不对?
答:拍的问题是你的手臂整个方向是向下的,而不是手入水的次序的小动作。移臂手要尽量往前扔出去, 充分伸展腰部, 不要去管水面,不要插水。决不能有插水的意识, 更不能用力, 用力插对游进速度有啥帮助?

问:肩部滚动的最大角度要出现在?
答:划水中, 而不是划水前。

问:前交叉是前手等后手吗?
答:这么说吧,如果你的前交叉是靠前手等出来的,那就是垃圾中的垃圾。如果是靠后手追出来的,那你是高手中的高手。

问:如何不伤肩?
Read More »

ChatGPT 与 text-davinci-003 模型

现在chatGPT还没有正式api, 访问chatGPT只能通过openai 的chatGPT网页进行。不通过网页的话openai当前也提供api支持访问GPT3的模型,其中与chatGPT最接近的是text-davinci-003。

因为chatGPT不对中国大陆用户开放,现在国内有不少号称可以代访问chatGPT的服务比如微信公众号或小程序。但我测试比较了一下,大多数实际连的是gpt3的模型比如text-davinci-003而不是真正的chatGPT.

text-davinci-003 是2022初openai推出的instructGPT(或者说GPT3.5)的一部分。chatGPT是在GPT3.5基础上对交互对话又有了进一步的优化。这两者的区别是什么呢?chatGPT自己的回答是这样的:

Openai的官方文档跟上面chatGPT说的略有不同。2022年 openai发表的论文“Training language…


Read More »

ChatGPT ‘s Answers to Questions About Itself

ChatGPT is so hot, and I, like may others, have many questions about the service itself. So I asked and unsurprisingly I got some good answers from chatGPT 🙂

What are the opportunities to create business values with chatGPT?

There are many opportunities to create business value with chatGPT and other advanced language models. Here are a few examples:

  1. Customer service: ChatGPT can be used to build advanced customer service chatbots that can handle a wide range of customer…

Read More »

Raspberry Pi as NAS + Media Server + VPN server

I have an old Raspberry Pi ( the first generation of Raspberry Pi model B), which has been used as my home media center for years. I installed and run libreelec which is a ” ‘Just enough OS’ Linux distribution for running the ultimate entertainment center application Kodi.” I also use Kodi remote control mobile app to control my TV. So far I have been very satisfied with this little single board computer 🙂

Comparing the sizes of my Pi Model B and a card deck

Kodi on…


Read More »

“Closeable Kiosk” (2) — with user scripts

In my last blog post (http://www.smartpeer.net/2013/10/closeable-kiosk-with-firefox-user-styles/) I used user styles to create a “closeable kiosk” with firefox. Google chrome also supports user styles so similar styles can be applied to Chrome too.

Both firefox and Chrome support another “user scripts”, which “Allows you to customize the way a web page displays or behaves, by using small bits of JavaScript.”. it can be applied to selected pages only, or to all the sites/pages. Here is a way…


Read More »

“Closeable Kiosk” with firefox user styles

Recently I got request to create a “closeable browser-based kiosk”– basically a browser in full screen mode, can’t be minimized/resized/moved or returned to non-full screen mode, no browser file menus, no address bar/navigation bar so user have to be stay on the same page, and can’t go to other urls. However user should be able to close it using mouse. This is to be deployed on some real kiosk booths like the ones often seen in a museum. There is no keyboard on the kiosk so short cut key…


Read More »

Digging into Windows Server AppFabric tracking event collection service

There is no enough documentation for configuration of AppFabric Event collection service. The best doc I can find is this MSDN page:
http://msdn.microsoft.com/en-us/library/hh334438

We would like to fine control when workflow tracking events are being persisted. how ever, the document does not provide details of how extactly events are schduled to be persisted to the monitor datastore. The main configurable settings are the “eventBufferSize” and “RewriteDelay” attributes in root web.xml:


Read More »

这些年我看过的网络小说

回首这几年从网络上看过的小说…

假如时间能够倒流, 假如我能够重来过 , 我也许不会浪费无数大好光阴在这上面, 从而避免了从一个愤怒青年进化成不良中年?

做梦吧傻叉.

现实总是: YY强身, 爽文V5 !

~~~~~~~~~~~~~~~~~~~~~
分界线…
~~~~~~~~~~~~~~~~~~~~~

太监的小说:

泥人的《江山如此多娇》
makelaugh的《武林旧事》
宁致远《楚氏春秋》
风月大陆
多一半《唐朝好男人》
我的超级异能
大宋时代周刊
长生

连载中或者宫中的小说:

孙晓《英雄志》
月下小羊《候补圣女》
愤怒的香蕉《赘婿》
随波逐流之神龙传奇
盛唐烟云 酒徒
妄语《凡人修仙传》
北唐
陌上行

印象最深的完本小说:

罗森的《风姿物语》。
《悟空传》今何在
墨武《江山美色》
烟雨江南《亵渎》
老猪的《紫川》
烽火戏诸侯《陈二狗的妖孽人生》
随波逐流《随波逐流之一代军师》
.凤歌《昆仑》
《沧海》
猫腻《庆余年》
月关 《回到明朝当王爷》,
大爆炸《窃明》
邪气凛然
知秋《历史的尘埃》
Read More »

use openssl commandline as symmetric cryptography tool

to encrypt a string using 3des algorithm:

echo 'somecleartext'|openssl enc -e -des3 -K 'some_key_in_hex' -iv 'some_iv_in_hex' |base64

to decrypt a 3des encrypted string:

echo 'somecipher'|base64 -d|openssl enc -d -des3 -K 'some_key_in_hex'  -iv  'some_iv_in_hex'

a bunch of symmetric encryption alorithms are supported, like AES, DES, blowfish etc:

Cipher Types
-aes-128-cbc -aes-128-cfb -aes-128-cfb1
-aes-128-cfb8 -aes-128-ecb -aes-128-ofb
-aes-192-cbc -aes-192-cfb -aes-192-cfb1
-aes-192-cfb8…

Read More »