navigate_before

涉水轻舟

點滴記錄生活,見証心路歷程 Sheshui.me

UX:启发式评估 Heuristic Evaluation

format_quote

Heuristic Evaluation 作为Usability Evaluation方式的一种,在usability test等其它测试方式的研究条件不具备的情况下经常被使用,同时也可作为设计师self review和peer review的一个有效方式。最初由Jakob Nielson提出的10条heuristics已经被扩展成了更多。

format_quote

TXP:article_custom

<txp:article />

The basic article tag can be used as either a single tag or container tag and used to output one or more articles depending on the attributes used.

Default attributes will be used when nothing specific is assigned.

It may be used as a container tag, in which case it must be specified as an opening and closing pair of tags, like this:

<txp:article>
...contained statements...
</txp:article>

This is equivalent to putting the contained statements into a form named “my_form” and using <txp:article form="my_form" /> .

TXP:article

目录


概述

<txp:article />

最基础的文章标签(article)即可充当单个标签,也可用于容器标签,可以根据设置属性用于输出一篇或多篇文章。

没有特别为标签指定属性时,将使用默认属性值。

此标签也可充当容器标签使用,须注意的是当作为容器标签打开的同时需要使用结尾关闭,如下所示:

<txp:article>
...contained statements...
</txp:article>

This is equivalent to putting the contained statements into a form named “my_form” and using <txp:article form="my_form" /> .

The tag is context-sensitive, which means it will grab articles from the currently viewed section/category/author, etc.

When used on the front page, article’s context will include articles from all Sections set to display “On front page”.

See this comparison of how article and article_custom differ.


标签属性

该标签允许使用以下属性 (区分大小写):

属性描述
customfieldnamevalueRestrict to articles with specified value for specified custom field name. Replace “customfieldname” with the name of the custom field.
keywordskeyword(s)Restrict to articles with specified keyword(s).
statusstatusRestrict to articles with the specified status.
Values: live or sticky
Default: live.
timetimeRestrict to articles posted within specified timeframe.
Values: past, future, or any (both past and future).
Default: past.
sortsort value(s)How to sort resulting list.
Values: ID (article id#)、AuthorID (author name)、LastMod (date last modified)、LastModID (author name of last modification)、Posted (date posted)、Expires (expiry date)、Title、Category1、Category2、comments_count、Status、Section、Keywords、Image (article image id#)、url_title、custom_1 through custom_10(From 4.2.0 on: custom_n)、rand() (random).
Each field in the textpattern database table can be used as a sort key.
When viewing a search results list,score (how well the search terms match the article)is available as an additional value.
Default: Posted desc (score desc for search results)
offsetintegerThe number of articles to skip.
Default: 0.
limitintegerThe number of articles to display.
Default: 10.
pagebyintegerThe number of articles to jump forward or back when an older or newer link is clicked. Allows you to call the article tag several times on a page without messing up older/newer links.
Default: value matches the value assigned to limit.
pgonlybooleanDo the article count, but do no display anything. Used when you want to show a search result count, or article navigation tags before the list of articles. Just Make sure that, other than pgonly, both article tags are identical (form-related attributes are the exception, they do not need to be assigned).
Default: 0 (no).
allowoverridebooleanWhether to use override forms for the generated article list.
Default: 1 (yes).
searchstickybooleanWhen outputting search results, include articles with status “sticky”.
Default: 0 (no).
formform nameUse specified form.
Default: default.
listformform nameUse specified form when page is displaying an article list.
searchformform nameThe form to be used for your customized search results output.
Default: search_results.

样式属性

These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.

label=“text”

Label prepended to item.
Default: unset (but see label cross-reference for exceptions).

labeltag=“tag”

(X)HTML tag (without brackets) to wrap around label.
Default: unset.

break=“tag text”

(X)HTML tag (without brackets) or string to separate list items.
Default: br (but see break cross-reference for exceptions).

wraptag=“tag”

(X)HTML tag (without brackets) to wrap around the list.
Default: unset (but see wraptag cross-reference for exceptions).

class=“class name”

(X)HTML class attribute to apply to the wraptag.
Default: tag name or unset (see class cross-reference)

Textpattern插件:hak_tinymce

此插件用于在Textpattern后台实现TinyMCE 可视化编辑器。

安装

  • 上传TinyMCE分发文件包到你的网站根目录。默认位置应该是 /textpattern/
  • 安装 hak_tinymce.txt ( 下载文件 ) 并激活插件;查看官方 插件安装方法
  • 前往后台管理>扩展>插件> hak_tinyme 运行安装;
  • 安装插件后,如果你的TinyMCE放在网站目录的其他地方而不在 /textpattern/ 目录下,那么此时你可以通过配置插件中的TinyMCE保证能正确读取到相应的文件。

hak_tinymce 插件下载地址: www.hakjoon.com/file_download/11/

运行

The editor will not come on by default on blank articles if “Use Textile” is selected in the Preferences. If you want to use the editor all the time change the default to “Leave text untouched”
If textile is turned on it will be disabled if you toggle the editor on. Conversely if you turn Textile back on it will turn off the editor.
Known issues

This plugin requires version 4.2.0 or higher.

Safari and Opera support is only experimental.

贡献

This is an update of mic_tinymce, originally developed by Michele Campeotto.

A lot of the admin code was made possible by examining Mary’s plugins.

via: textpattern.org/plugins/505/hak_tinymce

iOS开发工具之Charles抓包

1、下载Charles 工具

2、配置Charles HTTP 代理 (路径:设置>Proxy Setting 选择Tab Proxies)
配置端口号:8888,并勾选Enable transparent HTTP proxying

3、配置iPhone手机网络,设置HTTP代理
服务器:电脑IP
端口号:8888

4、配置iPhone 网络问题

问题描述:iOS7的http代理(http proxy)配置不生效问题
解决方法:将些wifi忽略, 重新连接, 再配置代理。

Textpattern系列 个人相册页面优化

SSH 连接遇 Host key verification failed 的解决方案

使用ssh链接linux主机时,可能出现“Host key verification failed.“的提示,ssh连接不成功。
可能的提示信息如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
23:00:20:83:de:02:95:f1:e3:34:be:57:3f:cf:2c:e7.
Please contact your system administrator.
Add correct host key in /home/usrname/.ssh/known_hosts to get rid of this message.
Offending key in /home/usrname/.ssh/known_hosts:8
RSA host key for localhost has changed and you have requested strict checking.
Host key verification failed.

网上很多的解决方案是:

vi ~/.ssh/known_hosts 

删除与想要连接的主机相关的行;或者直接删除known_hosts这个文件。 当然这个方案也是可行的,但并非解决问题的根本办法,因为继续使用,今后还会出现这样的情况,还得再删除。
下面简单讲一下这个问题的原理和比较长久的解决方案。

用OpenSSH的人都知ssh会把你每个你访问过计算机的公钥(public key)都记录在~/.ssh/known_hosts。当下次访问相同计算机时,OpenSSH会核对公钥。如果公钥不同,OpenSSH会发出警告,避免你受到DNS Hijack之类的攻击。
SSH对主机的public_key的检查等级是根据StrictHostKeyChecking变量来配置的。默认情况下,StrictHostKeyChecking=ask。简单所下它的三种配置值:

1.StrictHostKeyChecking=no
#最不安全的级别,当然也没有那么多烦人的提示了,相对安全的内网测试时建议使用。如果连接server的key在本地不存在,那么就自动添加到文件中(默认是known_hosts),并且给出一个警告。
2.StrictHostKeyChecking=ask #默认的级别,就是出现刚才的提示了。如果连接和key不匹配,给出提示,并拒绝登录。
3.StrictHostKeyChecking=yes #最安全的级别,如果连接与key不匹配,就拒绝连接,不会提示详细信息。

对于我来说,在内网的进行的一些测试,为了方便,选择最低的安全级别。在.ssh/config(或者/etc/ssh/ssh_config)中配置:

StrictHostKeyChecking no
UserKnownHostsFile /dev/null 

注:这里为了简便,将knownhostfile设为/dev/null,就不保存在known_hosts中了