Posts

Showing posts from November, 2012

html5 的manifest禁用

  当你启用了一个这样的html5的清单缓存文件后.它errro让我处理好久 <html manifest= "cache.manifest" > 所以你网站有使用cache.manifest这个同地址的的网页全会被这个所缓存. 如果你想禁用它,改成这样,没有用 <html> 唯一的办法是,在服务器上删除cache.manifest文件. 让它返回404

android develop error log

  error log: Falling back on PROMPT mode since _cordovaNative is missing. by: i only add cordova-2.2.0.js file to my project source. and need to add full cordova javascript framework. wait for me to found that.

android:debuggable字段说明

关于android develop开发说明的android:debuggable字段说明: android:debuggable字段说明这个字段,在高度时,编译器默认设置为true,当导出签名包时,默认设置为false. 如果判断: try { debugMode = ( this .getPackageManager().getPackageInfo( "pk17s.cn" , 0).applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; } catch (Exception e){ debugMode = false ; } this对象为界面类,Context的基类即可.

pkrss source 之 chrome.tts试用

今天我的pkrss看到有文章说chrome有chrome.tts的接口,所以我写下以下测试source: // http://developer.chrome.com/extensions/tts.html var speaktts_chrome = { 'tts' : null , 'support' :function(){ if (( typeof (chrome) != "undefined" ) && chrome && ( typeof (chrome.tts) != "undefined" ) && chrome.tts ) return true ; return false ; }, 'init' :function(){ if (! this .support()) return ; this .tts = chrome.tts; speaktts.tts = this ; }, 'ttsList' : null , 'getTTSList' :function(cb){ if (! this .ttsList){ this .ttsList = []; chrome.tts.getVoices(function(voices) { var tts,ttslist,ttsitem; for (var i = 0; i < voices.length; i++) { tts = voices[i...

iis server promot error 404.3 500.21

Image
问题描述: 最近今天我又出现错误了.无故出现下面这个错误: 应用程序“DEFAULT WEBSITE/TTSSERVICE”中的服务器错误 Internet Information Services 7.5 错误摘要 HTTP 错误 404.3 - Not Found 由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射。 详细错误信息 模块 StaticFileModule 通知 ExecuteRequestHandler 处理程序 StaticFile 错误代码 0x80070032 请求的 URL http: //localhost:80/ttsservice/ajax/tts.ashx?task=tofile2&id=17150&format=mp3 物理路径 D:\doc\webserver\wwwroot\csharp\ttsservice\ajax\tts.ashx 登录方法 匿名 登录用户 匿名 最可能的原因: 可能是缺少处理程序映射。默认情况下,静态文件处理程序将处理所有内容。 您要使用的功能可能尚未安装。 没有为网站或应用程序启用相应的 MIME 映射。(警告: 请不要为用户不应下载的 .ASPX 页或 .config 文件等内容创建 MIME 映射。) 如果未安装 ASP.NET。 可尝试的操作: 在 system.webServer/handlers 中: 确保映射了当前页所需的处理程序。 请特别注意前提(例如,runtimeVersion、pipelineMode、bitness)并将这些前提与应用程序池的设置进行比较。 请特别注意所需处理程序行中的书写错误。 请确认要使用的功能已经安装。 确认启用了 MIME 映射,或使用命令行工具 appcmd.exe 为网站添加 MIME 映射。 要设置 MIME 类型,请使用以下语法: %SystemRoot%\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension= 'string' ,mimeType= 'string' ] 变量 ...

iis7.5错误,出现打开网页错误,提示

刚才,打开网页时,IIS7.5突然出现zend framework模块下Access-Control-Allow-Origin重复添加的问题,作此记录. 应用程序“DEFAULT WEBSITE”中的服务器错误 Internet Information Services 7.5 错误摘要 HTTP 错误 500.19 - Internal Server Error 无法访问请求的页面,因为该页的相关配置数据无效。 详细错误信息 模块 ProtocolSupportModule 通知 SendResponse 处理程序 ZendPHPviaFastCGI 错误代码 0x800700b7 配置错误 在唯一密钥属性“name”设置为“Access-Control-Allow-Origin”时,无法添加类型为“add”的重复集合项 配置文件 \\?\D:\doc\webserver\wwwroot\discuz\web.config 请求的 URL http: //localhost:80/discuz/source/plugin/pk17s_cn/replynew.php?mod=replysend&iid=17360 物理路径 D:\doc\webserver\wwwroot\discuz\source\plugin\pk17s_cn\replynew.php 登录方法 匿名 登录用户 匿名 配置源 8: <customHeaders> 9: <add name= "Access-Control-Allow-Origin" value = "*" /> 10: <add name= "Access-Control-Allow-Headers" value = "X-Requested-With" /> 链接和更多信息 当读取 Web 服务器或 Web 应用程序的配置文件出现问题时,就会发生此错误。在某些情况下,事件日志会包含有关导致此错误的原因的更多信息。 查看更多信息 » ...

wordpress plugin–W3 TOTAL CACHE error

here, i will record some blog wordpress plugin w3 total cache error log:   error: It appears Minify URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration. fixed: in vim /etc/httpd/conf/httpd.conf <Directory "/var/www/html/wordpress" > Options Indexes FollowSymLinks IncludesNOEXEC AllowOverride All Order allow,deny Allow from all DirectoryIndex index.php index.htm index.html </Directory> error: Compatibility Test Compatibility Test Legend Installed: Functionality will work properly Not detected: May be installed, but cannot be automatically confirmed Ok: Current value is acceptable. Yes/No: The value was successful detected. Server Modules & Resources: Plugin Version: 0.9.2.4 PHP Version: 5.3.14 (PHP5 required for Minify, Rackspace CloudFiles, Microsoft Azure support) Web Server: Apache FTP functions: I...

amazon linux ami–apache2 bing mulit domian

1.amazon linux ami apache2 bing multi domain server. open conf file to write: vim /etc/httpd/conf/httpd.conf write file to it: <VirtualHost *:80> DocumentRoot "/var/www/html/wordpress" ServerName blog.pkrss.com </Virtualhost> restart apache /etc/init.d/httpd reload 2.setup ftp. yum install vsftpd –y create user:like this groupadd pkrss useradd -s /sbin/nologin -g pkrss -d /var/www/html pkrss passwd pkrss chown -R pkrss:pkrss /var/www/html chmod -R a+rwx /var/www/html vim vsftpd.conf after:anonymous_enable=YES add: anonymous_enable=NO pasv_enable=YES pasv_min_port=1024 pasv_max_port=1048 pasv_address=127.0.0.1 chroot_local_user=yes restart vsftpd: /etc/init.d/vsftpd reload

submit sitemap.xml.gz to yahoo and bing(2)-get free bing ad $50

Image
第一篇SEO, "linux apache2 sitemap.xml.gz error" 介绍了因为在linux下压缩sitemal.xml.gz文件错误两次的问题. 上一篇SEO, “submit sitemap.xml.gz to yahoo and bing”介绍如何手动添加站点地图到雅虎和微软的搜索引擎bing网站管理员后台工具. 这一篇SEO,将会向你介绍如何免费获取BING赠送的价值"$50"的广告费用. 做为SEO优化者,你需要随时明白了解SEO的各项工具.在进行此步前,需要明白,要想在11月31号前得到这笔钱,需要准备一张mastcard或visa信用卡.或者一个paypal账号. 按之前介绍的打开 Bing Webmaster Tools:http://www.bing.com/toolbox/webmaster 出现提示有信息如图: 在此处申请免费搜索广告的 $50 广告积分! 日期: 2012/11/23 优先级: 高 尊敬的网站管理员: 很高兴您开设了新帐户,为此我们向您提供 $50 的免费搜索广告!* 只需几个简单步骤,您就可以开始使用免费点击量。* 1. 访问 www.microsoftadvertising.com/WebmasterSite 2. 单击“启动广告”,然后单击“立即注册”。 3. 填写注册表并单击“提交”。 4. 在弹出的窗口中,单击“编辑您的帐户”。 5. 输入您的支付方式和促销代码: 如果需要帮助,请致电 866-344-7254 *美国和华盛顿特区的限时优惠 优惠详细信息 此优惠只能兑换一次。在我们的系统确认兑换后, 此优惠可能会在兑换之后继续显示最多 24 小时。 *此优惠只对在 January 31, 2013 (太平洋时间的午夜)之前在必应 Bing 广告界面和必应 Bing 广告上开立新帐户且其网站已经过网站管理员工具验证的广告商有效。此优惠的开销额度有限,即搜索广告点击的开销额度不得超过 $50。如果在优惠兑换的 90 天期限之后,这 $50 的广告额度中仍有未使用的部分,则将一律失效。如果广告商的开销额度超过 $50,不论是否在兑换后的首个 90 天之内,都需要支付相关费用。广告商独自负责监控自己的必应 Bing 广告帐户。如果 $50 的广告额度已...

submit sitemap.xml.gz to yahoo and bing

Image
上一篇, "linux apache2 sitemap.xml.gz error" 介绍了因为在linux下压缩sitemal.xml.gz文件错误两次的问题. 这一篇SEO篇,我将介绍如何手动添加站点地图到雅虎和微软的搜索引擎bing网站管理员后台工具. 做为SEO优化者,你需要随时明白了解SEO的各项工具. 打开 Bing Webmaster Tools:http://www.bing.com/toolbox/webmaster 如图: 使用微软的账号随便登陆,没有就先注册吧. 准备添加站点: 点击提交站点地图. URL: 我填我的网站 http://blog.pkrss.com 站点地图(可不填): http://blog.pkrss.com/sitemap.xml.gz 站点什么时候流量 最大:默认 点击"添加". 然后出现: 尚未验证网站所有权,点击"立即验证". 验证下列网站的所有权: blog.pkrss.com 选择 1: 在 Web 服务器上放置 XML 文件 下载 BingSiteAuth.xml 将文件上载到 http: //blog.pkrss.com/BingSiteAuth.xml 通过在浏览器中访问 http: //blog.pkrss.com/BingSiteAuth.xml 来确认成功上载 单击下面的验证按钮 选择 2: 将 <meta> 标记复制并粘贴到默认网页中 您可以在默认网页的 <head> 部分添加包含身份验证代码的 <meta> 标记。 <meta name= "msvalidate.01" content= "8F64FF1F513450612985E8DBB20D3966" /> 示例: <html> <head> <meta name= "msvalidate.01" content= "8F64FF1F513450612985E8DBB20D3966" /> <title>Your SEO opti...

linux apache2 sitemap.xml.gz error

i found that sitemap.xml.gz is compressed in twice. sitemap.xml.gz被压缩两次. from sitemap.xml 9816K –> sitemap.xml.gz 165k –> sitemap.xml.gz 9k. And i very like this comress effector, if they have no error. old code is: Header set Access-Control-Allow-Origin * Header set Access-Control-Allow-Headers X-Requested-With <ifmodule mod_deflate.c> AddOutputFilter DEFLATE html htm xml js css </ifmodule>   new code is: Header set Access-Control-Allow-Origin * Header set Access-Control-Allow-Headers X-Requested-With <ifmodule mod_deflate.c> SetEnvIfNoCase Request_URI ".xml.gz$" no-gzip dont-vary AddOutputFilter DEFLATE html htm xml js css </ifmodule> other problem is when i submit sitemap to seo, only yahoo said to me: The following errors were detected: limit exceeded yahoo said: http://developer.yahoo.com/search/rate.html The service limits are expressed in API calls per 24 hour period. You can think of this as a day, however the clock does not reset...

广告联盟介绍一 - Amazon Advertising API (2)

Image
网赚篇 一.请求URL签名 打开这个地址: http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html 它长这个样: 输入你的akey,skey. 在Unsigned URL输入框中输入: http: //ecs.amazonaws.com/onca/xml?Service=AWSECommerceService &Version=2011-08-01 &AssociateTag=PutYourAssociateTagHere &Operation=ItemSearch &SearchIndex=Books &Keywords=harry+potter 把AssoociateTag换成你要的标签,SearchIndex换成你要搜索的类别索引,Keywords换成你要搜索的关键字. 点击 Display Signed URL 按钮. 拷贝 Signed URL 中的签名后的网页地址文本,到浏览器中粘贴,打开该网页地址. 我的签名后网页地址文本如下: http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAIRU5IQAOIKN3DWRQ&AssociateTag=Best%20Selling&Keywords=harry%20potter&Operation=ItemSearch&SearchIndex=Books&Service=AWSECommerceService&Timestamp=2012-11-22T02%3A10%3A24.000Z&Version=2011-08-01&Signature=iS49MKbBKU1ZS4uWqqfC6z6UCdZa%2F1l%2FZgjaUmgBbhs%3D 打开后.像这样: <?xml version= "1.0" ?><ItemSearchResponse xmlns= "http://webservices.amazon.com/AWSECommerceService/2011-08-01" >...

广告联盟介绍 - Amazon Advertising API

Image
网赚篇 1.简单介绍 这个东西,是让你们这群网站主,可以在你们的网站上amazon亚马逊的产品的广告.它们产品有分好几个国家的.国家列表如下: private $possibleLocations = array( 'de' , 'com' , 'co.uk' , 'ca' , 'fr' , 'co.jp' , 'it' , 'cn' , 'es' ); 首先,你们要去注册一个amazon亚马逊的账号(不要注册易趣).然后amazon的账号有个特点,整个网站的所有产口都是同一个akey 和 skey.不像国内的新浪微博和腾讯微博,你捣一个应用申请,就给你一个AKEY,SKEY. 妈的.我就一个”语音新闻王”,结果还因为产品内容版权问题,都不让上.前后有十几个akey,skey. 这个akey和skey你可以去amazon用户中心去查看. 对了,整个过程不要求你小子的英文有过四级,看得懂或者会用google或bing翻译工具即可. 2.广告链接 建立广告链接页面 其中有产品链接: 我从里面选了几个120*240的产品广告链接.但因为一次才一个,我想实现窗口无限产品广告瀑布流的效果,所以不想一个一个再拷贝,准备找些别的接口的开发资料. 广告条链接: 我从里面选择了几个AMAZON自己的产品广告条. 它只有非常有限的固定的几个横竖幅可以使用.我全部用手把它们拷了出来. 站点横幅: 这个我不知道是什么,我不会使用它. 3.高级开发篇 帮助文档下载 代码示例下载