Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Cookie/Jar.php on line 63

Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Cookie/Jar.php on line 73

Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Cookie/Jar.php on line 89

Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Cookie/Jar.php on line 102

Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Cookie/Jar.php on line 111

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/dayanging/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
数字网络 | 远景管理咨询工作室 - Part 7

数据产品的设计误区

数据产品(data product)在大数据与人工智能智能时代有很多定义,比较倾向的是:通过使用数据方便最终目标实现的产品。在该定义中,避免了简单的将数据产品与解决问题的方案等同起来。如淘宝数据魔方、百度指数、站长统计平台等都是数据产品。由于数据产品的特殊性,在设计数据产品的时候通常有很多的误区,其中之一是过分依赖高深的算法和客观的机器纪录与机器学习等。

继续阅读“数据产品的设计误区”

美国总统就职演讲大数据分析

Python真是很奇妙的编程工具,在自然语言处理上,python也是很好的工具。现在想对美国总统历年来的就职演讲进行分析,看下美国总统就职演讲中,核心关键词的出现频率,是怎么样,也想从总体上了解下,python进行语义分析的基本做法。

继续阅读“美国总统就职演讲大数据分析”

wordrpess代码高亮插件使用

博主非码农,但是对专业与职业还是有相当的要求,在写网站代码的时候,适用了几个word press代码高亮插件,最终选定了SyntaxHighlighter Evolved插件。
插件介绍
插件名称:SyntaxHighlighter Evolved
插件作者:Viper007Bond, automattic
插件类型:代码高亮
中文支持:支持
安装环境:WordPress2.7或以上版本

继续阅读“wordrpess代码高亮插件使用”

微信聊天机器人自动应答

使用微信作为主要的社交媒体很久了,突然想到是否可以实现不在线的时候,有机器人可以对朋友的信息进行应答。于是,在网上搜索相关信息,运用最近刚开始接触的python编程,采用python基本的 NLP (自然语言处理)包,终于搞定了微信聊天的自动回复功能。首先,需要安配置好python环境。再次,在windows下安装ichat包和request包,最后在图灵网站(http://www.tuling123.com/)上注册key,将图灵机器人的KEY替代如下代码“KEY = ‘xxxxxxxxxxxxxx’中的xxxxxxxxx”这样准备工作就绪。运行如下代码,代码来源于网上,亲测有效,服务器太小,不便于挂图了。

继续阅读“微信聊天机器人自动应答”

Jabber 客户端使用体验

采用Jabber客户端可以整合所有的及时聊天工具,除目前使用的QQ外,QQ是个很封闭的系统。在网上可以找到很多jabber客户端软件,推荐使用的是psi,因为psi相对的稳定性。在jabber.org 上注册一个jabber 账户,可以在psi中使用。

继续阅读“Jabber 客户端使用体验”

How to Use Power Point Slides in Consulting Seminars

PPT slides is most wrongly used tool in public communication, speakers and trainer begin overly rely on PPT, without PTT slides, those professional even do not know how to face audiences and do not know how to communicate with audiences.
Business consulting industry, from proposal writing to seminar and reporting, relies heavily on PPT to communication, suggestion and proposing.

继续阅读“How to Use Power Point Slides in Consulting Seminars”

WP建站心得

去年开始使用WP建立自己的网站,有几点心得:

正确选择需要的WP主题

主题是博客网站的关键构架,不要看网上各种各样的WP主题,首先要分析自己网站的定位与目的,根据自己对网站的定位,再寻找适合这种定位的主题。对选定的主题一定要自己进行适当的修改,因为网站上已有的主题不可能完全满足你的需求,修改一定要放在本机上进行,修改调整测试完成后,在传到自己的空间上。博客网站主题一旦选定后,就不要经常调整,否则会影响搜索引擎的效果。顾问空间先后使用了多种主题,后来对网站的定位进行了重新分析设计,并找到了目前的这款主题,其原来的幅宽为870px,顾问空间对style CSS 进行了调整,同时对博客内容的字号也进行了调整,一般国外主题模板的字号都偏小,必须进行调整。

正确选择插件

WP插件十分丰富,但建站时必须考虑博客的功能,在最初定位设计时确定了功能,再根据需要的功能,设计插件,在顾问空间使用了大约20个插件,都是根据最初设计的功能,在WP官网上下载的,如本站使用的Mailchimp插件,就是为了方便与访客进行访问后续交流的,同样contact插件也是为了实现网站交流功能的。

注重内容设计与更新

在建立了博客网站后,更多的精力应当放在内容的更新上,毕竟网站是用来交流思想与情感的,内容贫乏则始终吸引不了读者,网站的访问量始终上不去。顾问空间的内容原来放在一个管理网站,后来下定决心自己建站,将管理网站上的内容全部搬到了空间上,在内容管理上,采用Google 分析与CNZZ分析跟踪网站浏览情况,并在内容更新上更加贴近读者。

最大的心得,WP站长始终做主题与插件的主人,否则就会成天的折腾主题与插件,反而放弃了对内容、功能与展示的研究,使网站更早的上台阶。

修改inove导航菜单同时显示页面和分类

前段时间使用inove主题,想给修改导航菜单同时显示页面和分类,在网上查了很多资料,在本机上实验终于实现了导航菜单里同时显示页面和分类,操作步骤为

第一步:给主题设置里添加一个选项:show all(意思就是同时显示页面和分类)

1,修改inove/functions.php在第220行找到:

<label>
<input type=”radio” value=”categories” <?php if($options[‘menu_type’] == ‘categories’) echo “checked=’checked'”; ?> />
<?php _e(‘Show categories as menu.’, ‘inove’); ?>
</label>

2,在下面添加:

<label>
<input value=”pages_and_categories” <?php if($options[‘menu_type’] ==       ‘pages_and_categories’) echo “checked=’checked'”; ?> />
<?php _e(‘Show All.’, ‘inove’); ?>

</label>

第二步:实现showall功能:

1,修改inove/templates/header.php在第30行找到:

<?php   if($options[‘menu_type’] == ‘categories’) {             wp_list_categories(‘title_li=0&orderby=name&show_count=0’);   }

else {                wp_list_pages(‘title_li=0&sort_column=menu_order’);        }

?>

2,将上面的代码替换为:

<?php
if($options[‘menu_type’] == ‘categories’ || $options[‘menu_type’] == ‘pages_and_categories’) {                  wp_list_categories(‘title_li=0&orderby=name&show_count=0’);           }
if($options[‘menu_type’] == ‘pages’ || $options[‘menu_type’] == ‘pages_and_categories’) {               wp_list_pages(‘title_li=0&sort_column=menu_order’);                }
?>

上面显示顺序是先分类再页面,如果你喜欢把页面放在分类前面那就把上面的代码换成:

<?php
if($options[‘menu_type’] == ‘pages’ || $options[‘menu_type’] == ‘pages_and_categories’) {               wp_list_pages(‘title_li=0&sort_column=menu_order’);                }

if($options[‘menu_type’] == ‘categories’ || $options[‘menu_type’] == ‘pages_and_categories’) {                  wp_list_categories(‘title_li=0&orderby=name&show_count=0’);           }
?>

只要在INOVE主题选项里勾选”show all”,你的导航菜单就变成了分类和页面同时显示了。

修改inove主题侧边栏

INOVE是WP下载最多的主题之一,其强大的功能不用说,但为了使空间更具有个性化,将INOVE的主题给修改了,去掉了东西sitebar,使其更具有个性些。

修改的方法是在网上查询到的,在本机实验成功后,再到空间上操作,其方法如下:

打开sidebar php,将以下代码完整删除

<!– meta –>

<div>

<h3>Meta</h3>

<ul>

<?php wp_register(); ?>

<li><?php wp_loginout(); ?></li>

</ul>

</div>

去掉meta功能

在sidebar.php,找到以下代码

<!– categories –>

<div>

<h3>Categories</h3>

<ul>

<?php wp_list_cats(‘sort_column=name&optioncount=0&depth=1’); ?>

</ul>

</div>

将其剪切到以下这些代码的上面

<!– tag cloud –>

<div id=”tag_cloud” class=”widget”>

<h3>Tag Cloud</h3>

<?php wp_tag_cloud(‘smallest=8&largest=16’); ?>

</div>

保存,OK