psb

每当看到通明的路灯没什么人,仍然开着的时候,就容易让我想起高中时候。总是能见到一些刻苦的同学。在熄灯之后,去走廊或者厕所的微黄的灯光下学习。那时候的光在我们心中是那么重的分量,而现在到处是通明的灯光,却鲜见学习的身影。

Linux虚拟主机UCenter Home伪静态.htaccess规则
UCHome支持通过添加.htaccess文件来实现UCHome程序的Rewrite伪静态功能

具体操作步骤如下:

1、新建立文本文档将以下规则添加到文本文档并另存为名为 .htaccess 的文件保存,将该文件上传至UCHome目录中即可。
# 将 RewriteEngine 模式打开
RewriteEngine On

# 修改以下语句中的 /uchome 为你的程序目录地址,如果程序放在根目录中,请将 /uchome 修改为 /
RewriteBase /uchome

# Rewrite 系统规则请勿修改
RewriteRule ^(space|network)\-(.+)\.html$ $1.php?rewrite=$2 [L]
RewriteRule ^(space|network)\.html$ $1.php [L]
RewriteRule ^([0-9]+)$ space.php?uid=$1 [L]
2、将您修改好的.htaccess文件上传覆盖即可,如果是在线直接修改的,则跳过此步;

3、进入UCenter Home站点设置,开启URL Rewrite功能,即可成功实现UCenter Home的伪静态功能。

© 原文地址: http://www.amznz.com/uchome-rewrite/

今天我们来讲一下,如何在ecshop商品的详情页里添加累计销售量。

对于累计销售量这一块,其实每时每刻都是在变化的,所以需要用 insert 函数来达到这样的效果。
第一,修改 includes/lib_insert.php 文件
在最下面增加一个函数

/**
* 调用某商品的累积售出
*/
function insert_goods_sells($arr)
{
$sql = ‘SELECT SUM(goods_number) AS number ‘ .
‘ FROM ‘ . $GLOBALS[‘ecs’]->table(‘order_goods’) .” AS og , ” . $GLOBALS[‘ecs’]->table(‘order_info’) .” AS  o “.
” WHERE og.order_id = o.order_id and og.goods_id=”.$arr[‘goods_id’];
$row = $GLOBALS[‘db’]->GetRow($sql);
if ($row)
{
$number = intval($row[‘number’]);
}
else
{
$number = 0;
}
return $number;
}

第二,修改 模板文件夹下 goods.dwt 文件


<strong>{$lang.goods_click_count}:</strong>{$goods.click_count}
下面增加一行代码
<strong>累计售出:</strong>{insert name=’goods_sells’ goods_id=$id}{$goods.measure_unit}

这样就可以了,其实ecshop的功能是很强大的,很多东西大家可以慢慢学习和摸索,也请大家多多关注我们。

转自:http://www.ecshop.name/article-318.html

部分网通的用户上传到我司的电信机房时,上传速度较慢,推荐用以下办法解决。(适合于网通用户购买我司的集群主机、港台主机等场合, 网通用户购买我司的电信虚拟主机也适用),本文主要介绍使用FlashFXP软件中的设置代理来连接FTP服务器。

  FlashFXP是一个优秀的FTP连接软件,速度快,支持断点续传,断线自动续传,操作简单等优点。点这里可下载中文版(本程序为绿色版,直接解压即可使用,首次运行可选择语言为中文,再点”输入代码”按钮可以自动注册成功。)

  • 1、首先来添加一个代理服务器,打开软件主界面,[选项]菜单下执行[参数设置]命令,或直接按F6键也可以弹出设置窗口。201212413451379001
  • 2、窗口左侧树型分类中找到[连接]-[代理],点击后右边显示了代理服务器列表,默认列表是空的。201212413451399322
  • 3、点击[新建项目]图片按钮,或按快捷键Ctrl+A,按如下配置参数设置,名称随便写,类型一定要选”USER [email protected] ftp-port”,主机填proxy.vhostgo.com ,端口填2121,用户名和密码保持为空。再确定就行了。备用代理服务器:proxy2.vhostgo.com 201212413451329023
  • 4、代理服务器添加好后,当我们在连接FTP服务器时,就可以选择是否使用以前添加的某个代理服务器来连接了。201212413451443739

The following list with common Magento seo issues is for all shop owners to prove there stores. If you launch a new store this checklist will help you to configure most basic SEO settings for Magento.

  1. These settings can be managed in your Magento administration panel.

    The Magento Homepage – Title „home“
    It happens very often that a new shop launches with a homepage title „Home“.
    To fix this issue please give your homepage title a better name.

    A good title should contain some of the main keywords, that are relevant for your business.
    Example: Keyword1 Keyword2 – Retail Store – your.storename.com

    This setting can be found at: System–>Configuration–>Design–>HTML Head–>Default Title

  2. The Default Description
    This field should be leaved blank, because it generates duplicate descriptions on every page where no meta description is written. For the products and categories „meta descriptions“ you can use our SERP editor to write clean and beautiful descriptions.

    Take a look at: SERP editor http://www.mgt-commerce.com/magento-serp-editor-extension.html

    The default description setting can be found at: System–>Configuration–>Design–>HTML Head–>Default description

  3. The Default Keywords
    Do not use these standard keywords „magento, magento commerce”. Leave this field blank if you didn’t setup meta keywords for every product, category and CMS page.
    In other case you get default keywords on each page where no meta keyword is set.

    The default keyword setting can be found at: System–>Configuration–>Design–>HTML Head–>Default Keywords

  4. Turn on „index, follow“
    This is a often seen issue and can happen when a shop is fresh released. In general we recommend to use a subdomain with a htaccess pass in development stage.

    You got two big benefits.
    a) You take no risk that a search engine will find your content before it is released.
    b) You can setup all settings like they should be when the shop will migrate to the productive system.

    This setting can be found at: System–>Configuration–>Design–>HTML Head–> Default robots “INDEX, FOLLOW”.

  5. The „Logo Title“ alt „Magento Commerce“
    Often the store owner forgets to setup a correct alt title and name for the „Logo“, so a lot of magento stores have a „Logo title“ = Magento Commerce.

    This setting can be found at: System–>Configuration–>Design–>Header–>Logo Image Alt

    You can leave the field „Welcome Text“ blank

  6. Turn on rel=canonical
    This setting can help you a lot to reduce a duplicate content issue.

    We recommend to turn the canonicals on for both: products and categories.

    This setting can be found at: System–>Configuration–>Catalog–>Search Engine Optimizations„Use Canonical Link Meta Tag For Categories“ and „Use Canonical Link Meta Tag For Products“

  7. Use Categories Path for Product URLs
    We recommend to set this feature on „No“, because if you change your category names, it can happen that a lot of pages, which where indexed by the search engine, are gone.

    Once you have set this on „Yes“, please do not touch it anymore!

    This setting can be found at: System–>Configuration–>Catalog–>Use Categories Path for Product URLs

  8. Create Permanent Redirect for old URLs if Url key changed
    This setting should be set on „Yes“, because if you change something on your Url keys the search engine should know, that the page has moved to a new Url.

    This setting can be found at: System–>Configuration–>Catalog–>Create Permanent Redirect for old URLs if Url key changed

  9. Use Web Server Rewrites and Domain Name www vs. no www

    At first, please decide what you like to use for your domain name.

    There are two options:

    Example with www : http://www.your-domain.com

    Example with no www: http://your-domain.com

    Both options have no effect on your SEO ranking at all, but having a shop which delivers the content for both at the same time means getting a duplicate content issue.

    Please setup your domain at: System–>Configuration–>Web–>Unsecure–>Base URL

    Now you need to make sure that you don´t generate duplicate content by delivering your shop pages with www and none www at the same time.

    For this please enable the option: System–>Configuration–>Web–>Search Engines Optimization–>Use Web Server Rewrites on „Yes“.

    Also you should check your .htaccess file for an automatic redirect.

    For this please open your .htaccess file with an editor and add this line if you’d prefer to use “www” in all of your URLs:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

    and for no www

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
  10. Create a sitemap.xml
    Sometimes it happens that a shop owner forgets to create a sitemap.xml or it is created with sample products and categories. A sitemap is important to submit new products to Google & Co.

    A sitemap can be created at: Catalog–>Google Sitemap

    Please double check what´s in your sitemap before you submit it to google webmaster tools!

  11. Multi-store setups
    Setup a multi-store and getting a good SEO result means hard work and checking every move twice!

    Often we see multi-stores which are using the same product descriptions, url names across multiple stores. The main problem is, that the search engine detects one server/ip and a lot duplicate content and in best case only one result would be indexed.

    Often this has an extreme negative effect on your seo.

    If you use a multi-store setup please make sure that every page, content, meta description and url on your store is individual.

General common SEO issues

These following tips are for beginners.

  1. Accessibility of the server
    If your Magento shop is offline several times, by hosting or server issues, you get a bad SEO ranking.

    Often this happens if you take a cheap shared hosting package.

  2. Slow page load times
    Only fast web pages get a high ranking in search engines. Magento needs a perfect setup and configured server to deliver all pages as fast as light (around 200 milliseconds). Thinking a page load time around 1 second is great might be a big mistake.

    Tip: Take a look at our post “Magento on Steroids – Best practice for highest performance

  3. Duplicate Content
    It´s not only a problem to deliver a shop page with www and without www at the same time. It´s also problematic if you copy content of other websites. Only unique content gets a good page rank in search engines.

  4. Quality of Content
    Make sure that your content is not just one big AD. Often additional information or a blog can give a big bonus in content quality. It´s also important for getting a better conversion rate.

Absolute SEO No Go! which are hard punished if they are detected

These tips are for users which have some experience in SEO. We know the situation well getting every day different offers for getting a higher search engine ranking. The following tips give you a good overview on what you never should do, if you love your shop!

  1. Spamlinks
    Too many low quality links in a short time: Often people think that spamming comment forms with links will help to get a better page rank. You can book this service at some SEO optimizing companies, but the effect is extreme negative, because nobody likes spam.

  2. Bought links
    We do not recommend to buy links. In the case a search engine detects that your links are bought to manipulate the search engine ranks, you get kicked out of search engine index. DO NOT BUY LINKS!

  3. Link exchange
    This is similar to 17. ( bought links ). Manipulate a search engine will never end in a good business. It costs time and money and the effect, if you get one, will only last for a short time. It´s just a question of time when you get kicked out.

  4. Hidden Links
    Hidden links mean hiding links by tricks in CSS and Java script. For this we have seen extensions, which we definitely not recommend to use.

  5. Too many links during a too short time
    Generating too many links in a too short time will be seen as unnatural link growing.

  6. Link origin
    Too many links from sites with a complete different language than yours.( Russia, China, India etc. )

  7. Links in a bad neighborhood
    These are links from spam sites or sites with bad content or sites with a complete different content to yours.

  8. Link networks
    Google isn´t stupid and it detects this kind of networks and the sites behind it in a very short time. This is similar to point 17.

  9. Broken Links
    Too many links which are not working. This goes to links on page and off page.Make sure that your shop works correctly.

  10. Over Linking
    Too many on-page links like Footer and Sidebar.

  11. SEO over optimizing
    This means a too strong optimize of all ( on-page ) ranking factors of your store.Anchor-Texts (A too big percentage on identical Anchor-Texts „Money-keywords“ )
    Keyword-stuffing ( A too high percentage on keywords on SEO relevant position like H1 )
    Element-stuffing ( A too high repetition of SEO relevant elements like H1 etc.)

  12. Content-spinning
    Too much built content on other pages only to generate back links.

  13. Cloaking
    Only for the search engine crawler built pages.

  14. Doorway pages
    These are high SEO optimized pages which are generated only to manipulate search engines results. Often companies book services which generate pages for their best selling keywords to generate more back links and clicks.

  15. Hidden text
    Embedding hidden text which is only seeable by the search engine.

  16. Click Fraud
    This happens if you order services which are clicking only on your search engine results to manipulate your CTR.

给DIY爱好者的一封信

我们都有着共同的梦想,那就是亲手创造自己的生活。

小时候,每次见到电动玩具我都十分好奇,好奇它为什么会动,总想把它拆开看个究竟。很多时候拆开了就装不上了,就会很紧张,害怕爸妈指责;小时候,每当看到别人修理一些机器,我总是很好奇的围在附近看得很久,总想看出机器运动的原理;初中的时候有点电学知识了,我就开始制作自己的电动机,每天放学我就开始研制我的电动机,用了几周的时间,我的电动机终于转动了,那种兴奋记忆犹新。

随着知识的提升,我就在想为什么不可以有永动机呢,假如一个电动机带动水泵抽水,抽出的水又通过涡轮带动另一个发电机发电,发出的电再供给水泵抽水,这不就实现永动机了么。直到高中,学习了能量守恒定律,才让我永动机梦想破灭了。

随着知识的一天天的增加,业余时间的一次又一次的实践,我的物理电学知识获得了较大的提升,我的兴趣开始不仅只限于玩具,收音机,电脑,手机等。长期的实践,让我的知识和动手能力不断增强,不仅仅可以拆开,我还可以装好,还能维修,到今天,我开始创造一些产品。

在这个时代,电子工业的快速发展,互联网技术的深入渗透,我们想去学习一个知识,制作一个玩具,开发一个产品,都变得十分容易。

Arduino嵌入性单片机的出现,更加推动了科技进步的速度,尤其是智能科技。有了这些,非专业人士也可以轻松打造自己的机器人,我们正进入了一个全民创业万众创新的创客时代。把握住了时机我们就可以有所作为。

 

在我追逐探索的过程中,我想通过我的这个事业,把这些知识传播给那些有我一样梦想的小朋友和大朋友们。

还不错科技,立志打造中国最大的DIY配件仓库,给广大DIY爱好者创造一站式,低成本采购的机会。

我们不仅仅在销售产品,我们更在不断学习,并将学到的知识传播出去,这就是我们的梦想。

 

鲁宁

2015.08.16

转载自:http://www.haibucuo.com/article-22.html

阿里云万网免费虚拟主机shopex开启伪静态

阿里云服务器开启伪静态
万网轻云服务器开启伪静态
万网M3开启伪静态

我用的shopex程序,万网M3以上的空间都是支持伪静态的,更不用说阿里云轻云服务器系列。在网上查了好久,所有的东西都试过就是不能解决问题。shopex老大暗香的帖子页反复查看就是不行。经过千百遍的研究和实验原来如此简单。

在php高级函数里面要将  PHP函数fsockopen设置设置为开启即可。

AutoCAD2014注册机使用说明:

1.安装Autodesk AutoCAD 2014简体中文版
2.使用这些系列号666-69696969、667-98989898、400-45454545、066-66666666等等以及其它你能找到的能用的系列号。
3.产品密码为001F1
4.安装完成后,重启Autodesk产品
5.在激活前,需要这样做:(二选一)
-断开网络(可以拔出网线或用防火墙断开),这一步只是为了避免在线检查。这时会告诉你需要联网,点击关闭并重新点击激活。
-点击激活,此时会在线检查,立即点击关闭,并重新点击激活。
6.选择“我已经从Autodesk取得激活码”。
7.在激活的界面上,启动XFORCE Keygen 32bits 或 64bits 版本。
8.点击注册机界面上的Patch(即破解),此时会看到successfully patched(成功破解)。
9.复制请求码(request code)到注册机并点击generate(生成)。
10.现在就可以复制激活码到AutoCAD的激活界面,并点击下一步。 这样就完成了Autodesk产品的注册了。
注意:在使用Windows7或Windows8时,必须确认你是以管理员身份运行注册机,同时关闭UAC(用户账号控制)。

经本人win8测试成功

下载地址:http://pan.baidu.com/s/1i3pgwEL