Blog

NaviOne 2016 Spring E-Business version C3261-C7M13-3921J0S(SP2) Lazier packing

【运行环境】:CE5/CE6 【☆分辨率】:800X480 【版本信息】:C3261-C7M13-3921J0S(SP2) 【是否测试】:已测试 【软件说明】:首次启动程序,如需激活,请输入激活码:3707 7938 0469 6233,端口、波特率COM2    4800,端口自适应,如端口适应不了请自行下载修改! 【安装方法】:将下载的C3261-C7M13-3921J0S(SP2)懒人包复制到导航仪卡根目录下的NaviOne文件夹里,然后运行NaviOne.exe文件! 特别提醒:安装前请先备份原导航,发生任何问题本人概不负责! 下载地址: 链接: http://pan.baidu.com/s/1gfk9RFX 密码: khrn From: http://bbs.gpsuu.com/read.php?tid-394115.html

Blog

WHM Script usage

Check if “ImageMagick” installed /scripts/checkimagemagick Install “imagemagick” /scripts/installimagemagick Update cpanel /scripts/upcp –force Check perl module /scripts/checkperlmodules Restart cpanel /etc/init.d/cpanel restart Check the position of php.ini php -i | grep php.ini Repair horde /scripts/fullhordereset or /usr/local/cpanel/bin/update-horde –force Repair roundcube /usr/local/cpanel/bin/update-roundcube –force Repair squirrelmail /usr/local/cpanel/bin/update-squirrelmail –force Install newest version of exim /scripts/betaexim Search the log which near 2GB /scripts/biglogcheck Rebuild exim.conf /scripts/buildeximconf View/usr/local/apache/conf/httpd.conf , check the bad user /scripts/checkbadconf Check if support GD /scripts/checkgd Install GD /scripts/installgd Check the max clients of Apache /scripts/checkmaxclients Check Perl version /scripts/checkoldperl Check rsync /scripts/checkrsync Check yum /scripts/checkyum Clear old bound log /scripts/cleanbw Clear old GD and install new version /scripts/cleangd Delete a mySQL database /scripts/dropmysqldb Upgrade Apache /scripts/easyapache Edit…

Blog

WordPress no-plugin show newest,hot,random post

Content  1. Show newest post 2. Show hot post 3. Show random post Show newest post: <ul><?php $post_query = new WP_Query(‘showposts=10′); while ($post_query->have_posts()) : $post_query->the_post(); $do_not_duplicate = $post->ID; ?> <li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li> <?php endwhile;?> </ul> Show hot post: <ul><?php $post_num = 10; // set post number $args = array( ‘post_password’ => ”, ‘post_status’ => ‘publish’, // just show published post. ‘post__not_in’ => array($post->ID),//exclude current post ‘caller_get_posts’ => 1, // exclude sticky post ‘orderby’ => ‘comment_count’, // post order by comment count ‘posts_per_page’ => $post_num ); $query_posts = new WP_Query(); $query_posts->query($args); while( $query_posts->have_posts() ) { $query_posts->the_post(); ?> <li><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title();…

Blog

WordPress random post 3 methods

 Contents 0. 随机文章的获取原理 1. 向主题模板中添加 2. 使用插件 3. 修改主题 functions.php 文件 Principle WordPress 的文章查询函数 get_posts() 有个参数 orderby 指明了获取文章时的排序方式。通常我们是按照文章发布日期排序,比如 WordPress 站点首页、分类页和标签页中的文章列表。orderby 还可以是 rand,它使用 MySQL 的 RAND() 函数来确定排序参数,也就是随机排序。 使用方法如下: $args = array( ‘numberposts’ => 5, ‘orderby’ => ‘rand’, ‘post_status’ => ‘publish’ ); $rand_posts = get_posts( $args ); 这样就能得到随机排序(第 2 个参数)的已发布(第 3 个参数)文章中的 5 篇(第 1 个参数)。 需要特别注意的是,如果没有第 3 个参数,它可能会将草稿之类的文章也显示出来。 Method 1 Modify theme template, put below codes to the position which you wanted. <ul> <?php $args = array( ‘numberposts’ => 5, ‘orderby’ => ‘rand’, ‘post_status’ => ‘publish’ ); $rand_posts = get_posts( $args ); foreach( $rand_posts as $post ) : ?> <li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>…

calf-blog-top