ProdigYu's Blog

Web

网站广告投放策略研究 (一) 轮播以及效用最大化

by ProdigYu on Aug.11, 2011, under Web

首先科普一下目前互联网广告的类型,大体都有CPC,CPM,CPA,CPS,CPV这几种。

CPC就是按点击(Click)计算,CPM就是按弹窗(Mxxx?)计算,CPA/CPS一个是按注册一个是按销售计算,CPV则是按显示次数计算。于是CPC,CPA,CPS这种根据网站访客行为来获得收益的是一类,而CPM和CPV这种只和网站流量相关的则是另一类。 (continue reading…)

Leave a Comment :, , , , more...

Linux下MySQL开启远程访问

by ProdigYu on Jun.15, 2011, under MySQL

在默认情况下mysql是不允许远程访问的.

默认安装完的mysql root密码是空的,首先得设置一个密码:

mysqladmin -u root password ‘新密码’ (continue reading…)

Leave a Comment :, , more...

Squid清除缓存脚本

by ProdigYu on May.13, 2011, under CDN

转自张宴的《清除指定squid缓存文件的脚本》
脚本文件名:clear_squid_cache.sh

#!/bin/sh
squidcache_path="/cache"
squidclient_path="/usr/local/squid/bin/squidclient"
grep -a -r $1 $squidcache_path/* | strings | grep "http:" | awk -F'http:' '{print "http:"$2;}' > cache_list.txt
for url in `cat cache_list.txt`; do
$squidclient_path -m PURGE -p 80 $url
done

  注意:请赋予clear_squid_cache.sh可执行权限(命令:chmod +x ./clear_squid_cache.sh)。请确保脚本所在目录可写。

  设置:
  squidcache_path= 表示squid缓存目录的路径
  squidclient_path= 表示squidclient程序所在的路径,默认为squid安装目录下的bin/squidclient

  用法:
  1、清除所有Flash缓存(扩展名.swf):
  ./clear_squid_cache.sh swf

  2、清除URL中包含prodigyu.com的所有缓存:
  ./clear_squid_cache.sh prodigyu.com

  3、清除文件名为prodigyu.jpg的所有缓存:
  ./clear_squid_cache.sh prodigyu.jpg

65 Comments :, , , more...

安装MySQL,服务无法启动

by ProdigYu on Nov.27, 2010, under MySQL

今天碰到个怪事,全新的Win2003系统直接安装MySQL5.1,在安装完成运行配置向导最后一步的时候出现服务无法启动,也就导致配置无法成功完成. (continue reading…)

67 Comments :, , more...

通过ASP,PHP,JS,HTML实现301跳转

by ProdigYu on Oct.31, 2010, under Web

修改网站域名后通过301重定向将原来的地址跳转到新的地址 (continue reading…)

Leave a Comment :, , more...

将网页转换成移动版

by ProdigYu on Oct.21, 2010, under Web

http://www.google.com/gwt/n

通过GOOGLE的这个页面就可以实现.

Leave a Comment :, , more...

用Bind9架设自己的智能DNS

by ProdigYu on Oct.20, 2010, under CDN

中国的南北网络问题,是许多做网站的人的心病
除了使用双通或者多通机房以外,还可以通过多台镜像服务器的方法来提高用户的访问速度 (continue reading…)

Leave a Comment :, more...

使用Bind 9 的DNS-views实现IP地址分区域解析

by ProdigYu on Oct.20, 2010, under CDN

最近着手准备CDN节点了,得多看点资料. (continue reading…)

Leave a Comment :, , , more...

配置Nginx+uwsgi更方便地部署Python应用

by ProdigYu on Oct.18, 2010, under Nginx, Python

个人觉得php最方便的就是deployment了,只要把php文件丢到支持php的路径里面,然后访问那个路径就能使用了;无论给主机添加多少php应用,只要把目录改好就没你的事了,完全不用关心php-cgi运行得如何,deployment极为方便。 (continue reading…)

Leave a Comment :, , more...

Google可能取消PageRank,即PR?

by ProdigYu on Oct.12, 2010, under SEO

以下为Google网站管理员论坛上的官方回复贴: (continue reading…)

Leave a Comment :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...