Friday, December 23, 2011

xap文件使用

1.silverlight4:

[Silverlight4]-自制数字签名for XAP签名(Xap code signing)

 

2.phone 7.0

Windows Phone 7已成功破解 工具开放下载

从WP7破解(越狱)到XAP软件签名——全教程工具收集贴

彻底攻破!!xap包重新签名并部署教程!

3.phone 7.5

SignCode破解XAP签名教程

 

4.操作

2011-12-24:(记录)(silverlight,安全性问题,让我们团队延时很多天开发了,然后几乎很少相关silverlight产品,以后不玩microsoft产品了,vista,silverlight,win8全是因为安全性扼杀了开发者)

1.昨天没有签名前,localhost测试xap还可以连接Server,今天创建测试签名后,把所有的dll签名了,结果出现prism使用部份dll失败,和连接Server安全性错误的2个问题,这2个问题,一出现就一直重现,不要想被修复.

2.准备还原代码,不签名.

还是安全性错误,重删了所有临时文件,和重置了浏览器运行,也一样.

3.测试OutOfBrowser确可以,那为什么当时在公司使用web也可以呢?

 

5.Silverlight4安全概览

后来,找到 Silverlight 4 安全性概览

找到子项 How to: Enable Trusted Applications to Run Inside the Browser

Trusted Applications

How to: Access the Local File System in Trusted Applications

Silverlight Application Security Model

上次内容总结是,访问本地localhost或127.0.0.1时,即可不需签名,不需配置跨域脚本也可正常使用浏览器内的xap文件,可是好像不行.就是本地运行file:///都不行.

还有说需要添加信任应用程序什么的,暂不写进去.

 

附录

Visual studio 2010 中文SP1 无法安装Silverlight5 Beta Tools的解决办法 (好像失效)

项目记录 新浪财经Silverlight版

Wednesday, December 21, 2011

google api

Symbian平台GoogleReader客户端

源码:

greader2kindle - Google Reader To Kindle

RSS Bandit

windows云开发资料

使用 SkyDrive 将“Windows 8”应用程序扩展到云

Windows Live Messenger 2007 机器人大赛,最下方有开发机器的教程

使用DotMSN 2.0开发MSN机器人(强烈建议别再使用dotmsn,使用MSNPSharp来开发)

使用LumaQQ来开发QQ机器人

C#开发飞信机器人

QQRobot QQ机器人 0.1.3

QQRobot(version 0.1.3) 是一个由C语言开发的QQ机器人。
用途:QQRobot主要用于实现 网站 和 QQ 之间的互动。
用户通过自己的QQ 实时接收来自网站的消息/内容,并且通过QQ向网站发布自己的内容。
以此加强网站服务的实时性,和提高用户对网站的粘着度。
QQRobot 具备以下特点:

它是跨平台的,可以在 Linux/Windows 主机上运行;
可以和 PHP/ASP/.NET/JSP/... 等各种网站编程语言集成;
占用系统资源非常小,一个 QQRobot 仅占用 40KB内存;
它是以开源方式发布,你可以修改它,让它满足你的网站需要;

QQRobot 能做什么:

BBS/SNS:用户可以直接用QQ来订阅、发表、回复帖子。
资讯网站: 用户可以直接用QQ来订阅最新新闻、资讯。
IDC网站: QQ机器人可以通知你的用户他的域名空间何时到期、如何缴费等。
广告联盟: QQ机器人可以通知网站主的收益情况,发钱时间等。
可以监控网站的垃圾广告、实现QQ验证注册、甚至如果用户忘记了网站注册用户名或网站域名,给QQ机器人发条信息,机器人自动发用户名或网址给你

 

MSDN 中文网络广播,这里有非常多的视频教程及示例下载

Windows Live Photo Gallery SDKs — The Windows Live Photo Gallery SDK includes the following components:

Windows Live Writer SDK — Three sets of APIs are provided in this SDK:

  • Application API, for launching Writer to create new posts or "Blog This" items for links, snippets, images, and feed items.
  • Content Source Plugin API, for extending the capabilities of Writer to insert, edit, and publish new types of content.
  • Provider Customization API, for customizing both the capabilities of Writer as well as adding new capabilities to the Writer user interface.

以下来源:Windows Live SDK 不完全汇总(更新中)

The Windows Live™ Platform puts a deeper level of control into developers' hands by offering access to the core services and data through open, easily accessible APIs. Now you can build applications and mashups (Web applications that combine multiple services into a single application to consolidate information with an easy-to-use interface) that combine your innovation with the power of Windows Live services and social relationships.
See the Windows Live SDK License Agreement for important details on the use of the software developer kit (SDK). Visit http://dev.live.com to learn more about other services and developer offerings from Windows Live.
Windows Live Services
The following SDKs and APIs are available to Windows Live developers.
[联系人地址簿]: Windows Live Contacts API - Beta 1.0 — The Windows Live Contacts API is an HTTP-based service that enables developers to programmatically submit queries to, and retrieve results from, the Windows Live Contacts Address Book database.
[照片]: Personal Data SDK — The Windows Live Spaces Photos API enables Web sites to programmatically exchange data with the Windows Live Spaces photo database, using the WebDAV protocol.
Windows Live Messenger Library — The Windows Live Messenger Library enables you to add instant messaging capabilities from inside your Web site.
Windows Live Messenger IM Control — The Windows Live Messenger IM Control enables Web sites to show the presence of Windows Live Messenger users, and enable site visitors to engage in instant messaging conversations with the Messenger users.
Windows Live Presence API — The Windows Live Presence API is an HTTP-based API that returns a Windows Live Messenger user's presence, using JavaScript Object Notation (JSON) or an image.
Virtual Earth Map Control SDK — Virtual Earth™ provides the power behind Live Search Maps, an online mapping service that enables users to search, discover, explore, plan, and share information about specific locations. By using traditional road maps, labeled aerial photo views, low-angle high-resolution aerial photos and proximity-searching capabilities, Virtual Earth provides varied opportunities for developers to incorporate both location and local search features into their Web applications. The Virtual Earth map control SDK consists of a complete set of reference topics of the Virtual Earth map control API. Virtual Earth Map Control SDK, , Virtual Earth Map Control SDK, , and Virtual Earth Map Control SDK, are provided to support developers using an earlier version of the map control who have not migrated to version 6.0.
Microsoft MapPoint Web Service — Microsoft MapPoint Web Service is a hosted, programmable Web service that enables you to integrate high-quality maps, driving directions, distance calculations, proximity searches, and other location intelligence into your applications, business processes, and Web sites.
Live Search API, Version 1.1 — The Live Search Web Service is an XML Web service with a SOAP API. The Search Web Service enables you to submit queries to, and return results from, the Live Search Engine. The Search section also features articles that cover a variety of technical topics and coding techniques for the Live Search developer.
Windows Live ID SDK — The Windows Live ID service (formerly known as the Passport Network) is the identity and authentication system provided by Windows Live. The Windows Live ID Client 1.0 SDK enables you to start developing identity-aware client applications that make use of this powerful technology and its enormous user base. With the Windows Live ID Delegated Authentication SDK for Application Providers, you can request users' permission to put their data to work for them in new ways. And the Windows Live ID Web Authentication SDK provides a platform-independent interface to the Windows Live ID service, so you can verify the identity of visitors to your Web site. Finally, for an introduction to Windows Live ID and more information about some of its features, see Windows Live ID Articles.
Silverlight Streaming SDK — Microsoft Silverlight™ Streaming service is a free online hosting service for Silverlight-based applications and media. The Microsoft Silverlight Streaming SDK provides documentation that enables you to create and optimize Silverlight-based applications for Silverlight Streaming, and package video files for upload to the service.
Microsoft adCenter API — The Microsoft adCenter API enables you to create applications that create and manage adCenter campaigns, orders, keywords, and ads. Using adCenter API, you also can obtain the status of orders, keywords and ads, pause and resume orders, generate keyword estimates and reports about campaign performance, and perform order targeting.
Windows Live Alerts SDK — The Windows Live Alerts SDK, version 2.5b, enables developers familiar with SOAP to programmatically integrate with the Alerts notification service and perform administrative tasks that are unavailable using the Windows Live Alerts Web site.
Windows Live Custom Domains SDK — The Windows Live Admin Center SDK, version 3.0, enables developers to programmatically manage their Windows Live Admin Center user base by means of a Web service. This SDK is intended for customers and partners who want to accomplish programmatically many of the administration tasks available on the Windows Live Admin Center Web site, as well as tasks that are unavailable on the site, such as importing and exporting user lists.
Windows Live Expo API — The Windows Live Expo API defines a set of Web services enabling customers to programmatically access the Expo classifieds listings database — a collection of location-tagged classifieds listings in categories such as merchandise, real estate, autos, jobs, and commercial services.
Windows Live Messenger Activity SDK — The Windows Live Messenger Activity SDK contains technical information about how to develop and test single-user and multi-user applications by using the Activity object model. The SDK also provides detailed information about development and testing requirements that your Activity must meet and how to increase the usage of your Messenger Activity application.
Introduction to Windows Live Spaces APIs and Feeds — The Windows Live Spaces APIs and Feeds documentation provides reference material for developers interested in integrating with Windows Live Spaces. This information provides guidance for consuming APIs and feeds within the Spaces development platform. Additional information about developing on the Windows Live Spaces platform can be found at http://dev.live.com/spaces/.
Windows Live Spaces MetaWeblog API — The MetaWeblog API programming interface enables external programs to get and set the text and attributes of weblog posts. The API uses the XML-RPC protocol for communication between client applications and the weblog server.
Windows Live Toolbar Custom Button SDK — The Windows Live Toolbar Custom Button SDK shows how you can extend Toolbar with custom buttons. This SDK provides an overview of how users can install publicly available buttons and create their own, simple buttons. Most of this SDK, however, shows how you can use XML to create more sophisticated custom buttons and how you can distribute them to users.
Windows Live Writer SDK — Two sets of APIs are provided in this beta version of the SDK. The Application API launches Writer to create new posts or Blog This items for links, snippets, images, and feed items. The Content Source Plugin API extends the capabilities of Writer to insert, edit, and publish new types of content. The SDK documentation contained in this version is preliminary. The documentation will be extended in a future release.

Sunday, December 18, 2011

pkrss web(php)

第一部份 使用zend studio


一. 安装zend studio 5.5,(听说是最好用的版本)


1.下载http://dx.cr173.com//soft2/ZendStudioEnterpriseEdition-v5.5.0.270.rar


2.安装(非win7可跳过)


装了windows 7,发现普通模式不兼容zendstudio,又装了zendstudio 7,发现那个难用啊,下面给大家介绍是Windows 7上安装zendstudio 5.5的步骤

01、下载并安装最新版本的 JRE for Windows: http://java.com/zh_CN/download/index.jsp

02、使用WINRAR解压 Zend Studio 5.5.1.exe

03、 进入解压后的文件夹 Zend Studio 5.5.1Windows(下面简称A文件夹) ,将resource目录下的jre文件夹重命名为jre.back(或其他名称都可)

04、复制 C:Program Files (x86)Javajre6到第三步中的目录,并将jre6重命名为jre

05、执行安装 A文件夹下的 Zend Studio 5.5.1.exe

06、安装完成后将 A文件夹 下 resource 目录中的jre.back文件夹复制到Zend Studio 的安装目录中,

07、重命名安装目录中的 jre 文件夹为 jre6

08、重命名安装目录中的 jre.back 文件夹为 jre

09、在ZendStudio图标上点击右键/属性/兼容性 设置兼容模式为 Vista

10、启动Zend Studio
本文章来自:Windows7下安装Zend Studio 5.5

3.修改(跳过)


一个屡获大奖的专业 PHP 集成开发环境,具备功能强大的专业编辑工具和调试工具,支持PHP语法加亮显示,支持语法自动填充功能,支持书签功能,支持语法自动缩排和代码复制功能,内置一个强大的PHP代码调试工具,支持本地和远程两种调试模式,支持多种高级调试功能。

zend studio 5.5 改为简体中文版的办法

大家调试ZEND的时候应该会用到zend studio,不知道是不是中国购买zend产品的用户太少了还是我安装的问题,装好后桌面选项中竟然没有“简体中文”的语言选项了,到配置文件夹里看了一会,在{X}:Documents and Settings{User}ZDEconfig_5.{x}desktop_options.xml文件中<customized_property ID="desktop.language">
<locale language="en" country="" variant=""/>
</customized_property>

将en改为zh,重启zend后就可以了。

二、下载ttrss源码


参照 http://tt-rss.org/redmine/

1.从此处下载:http://tt-rss.org/download/tt-rss-1.5.7.tar.gz

2.解压,并拷贝ttrss解压目录config.php-dist,粘贴为config.php

3.浏览器打开phpmyadmin:http://localhost:801/phpmyadmin/,创建数据库pkrssserver(如果会,就选utf8格式,不会就默认)

4.进入pkrssserver数据库,导入,浏览ttrss解压目录schemattrss_schema_mysql.sql,点击执行

5.编辑ttrss解压目录config.php,修改开头

define('DB_TYPE', "pgsql"); // or mysql
define('DB_HOST', "localhost");
define('DB_USER', "fox");
define('DB_NAME', "fox");
define('DB_PASS', "XXXXXX
");
    //define('DB_PORT', '5432'); // when neeeded, PG-only

    define('SELF_URL_PATH', 'http://yourserver/tt-rss/');

 



define('DB_TYPE', "mysql"); // or mysql
define('DB_HOST', "localhost");
define('DB_USER', "root");
define('DB_NAME', "pkrssserver");
define('DB_PASS', "");

    //define('DB_PORT', '5432'); // when neeeded, PG-only

    define('SELF_URL_PATH', 'http://localhost:801/rssserver/');

define('PHP_EXECUTABLE', '/usr/bin/php');



 

define('PHP_EXECUTABLE', 'E:/develop/xampp/php');

define('ISCONFIGURED', true);



define('ISCONFIGURED', true);

 

 

三、配置Zend Studio 5.5


参考这里:ZendStudio5.5调式环境配置


1.下载xampp:http://www.apachefriends.org/download.php?xampp-win32-1.7.7-VC9-installer.exe

2.安装xampp后,修改安装目录xamppapacheconfhttp.conf

替换Listen 80Listen 801,这步因为win7不给用80端口

搜索LoadModule ssl_module modules/mod_ssl.so 前加#,这步因为win7不给用443端口

最后位置加上:(我的tt-rss解压在D:/work/svn/rssserver)

Alias /rssserver D:/work/svn/rssserver
<Directory "D:/work/svn/rssserver">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>


3.复制zend安装目录ZendZendStudio-5.5.0binphp5dummy.php到xampp安装目录xampphtdocs

4.修改安装目录xamppphpphp.ini,可以参考zend安装目录ZendZendStudio-5.5.0binphp5php.ini

确保,以下启用:

extension=php_curl.dll

mbstring.language = Chinese

mbstring.internal_encoding = UTF-8

 

mbstring.encoding_translation = On

最后位置加上:(我的zend安装在E:Program FilesZend)

[Zend]
zend_extension_ts=e:Program FilesZendZendStudio-5.5.0libphp5ZendDebuggerLocal.dll
zend_debugger.expose_remotely=allowed_hosts
zend_debugger.deny_hosts=
zend_debugger.allow_hosts=127.0.0.1/32
zend_debugger.expose_remotely=allowed_hosts


5.运行xampp目录xamppxampp-control.exe,apache和mysql点start

好了,zend可以调试了

四、运行网页


浏览器中打开: http://localhost:801/rssserver,成功

 

第二部份 使用php for VS2010


1.安装

通过在visual studio中工具->扩展管理器,查找联机库php,可找到vs.php,点下载,打开http://www.jcxsoftware.com/jcx/vsphp/downloads 链接,下载VS.Php 2.10 for Visual Studio 2010 (web installer)Download XDebug里的PHP 5.3 VC9 TS (32 bit).

网速太慢了,不好弄....

第三部份 转pkstock_yahoo


算了,老子还是重启09计本毕业论文作品吧.点击浏览.使用YUI2+YUI3.

这个东西当时辩论时,使用ie6还无法运行,老师大骂老子蠢货.果真我是用IE9开发,可以,Firefox出现部份错误,我们准备转YUI3吧.

 

附:


eclipse安装php: http://phpeclipse.sourceforge.net/update/stable/1.2.x/

Tuesday, December 13, 2011

翻墙

1.下载MyEnTunnel

2.安装Firefox及AutoProxy,也可以使用其它软件代理到MyEnTunnel上面的127.0.0.1的7070的端口

3.去给MyEnTunnel想办法申请一个免费或收费的SSH吧.

参考:

Firefox Myentunnel SSH代理设置教程:

http://wenku.baidu.com/view/98209308f78a6529647d53da.html

免费SSH帐号获取(翻墙用:http://www.kaixin001.com/repaste/9863004_2618192480.html

MyEnTunnel的使用方法http://blog.7xiaowu.cn/2010/05/15/1110.html

USAssh.com(SSH申请,免费测试):https://www.usassh.com/free.php

免费SSH申请(好像不能用):http://www.cjb.net/cgi-bin/shell.cgi?action=signup

 

4.参照这里

Step1:安装expect,方法就太简单了:

sudo apt-get install expect

Step2:新建一个文本,暂定名称就叫sshgfw。 打开终端(terminal)下输入:

sudo nano /etc/sshgfw

在/etc/sshgfw文件中粘贴上以下内容:

#!/usr/bin/expect
set timeout 60

spawn /usr/bin/ssh -D 192.168.100.250:7070 -p 22 -l user yourserverIP
expect {
"password:" {
send "passwordr" #这里的第二个password改为你自己的密码

}
}
interact {
timeout 60 { send " "}
}

Step3:给刚建立的文件加上可执行权限,终端(terminal)下执行:

chmod a+x /etc/sshgfw

Step4:现在开始第一次运行了。终端(terminal)下输入:

sudo /etc/sshgfw

然后仿照:ssh断线自动登录

Wednesday, December 7, 2011

急性肾功能不全

这个煎出的药,怎么没有加糖,这么苦哇+1+2+3..+100...

明天再记录这几天的见闻.

12月2日公司举行1KM*10(5男5女)接力,我第一棒,咬着牙顶到终点,倒数第二,受冻约0.5小时.

... 后补

12月7日 21:07 吃药,创此日志.

Saturday, December 3, 2011

项目经理继续教育

温馨提示:计算机系统集成的项目经理和高级项目经理要尽快完成,不要拖到最后 希望大家能重视.各位学员:
  为了满足大家继续教育考试的需要,本着为学员提供灵活、便捷服务的宗旨,我分会决定年底前增加计算机信息系统集成项目管理人员继续教育考试场次。
  2011年11月30日至2011年12月30日,每周三和每周五早8:00-晚8:00的任意时间都可以登录继续教育平台参加2010或2011的考试。请大家务必注意【正式考试】权限的使用,点击“参加”之前,确定已经准备好参加考试。每周二和每周四下午5:00之前发布考试成绩。
  2011年资质到期换证的学员,特别是一季度到期的学员,必须尽快完成第一轮继续教育,否则资质将完全失效。

附录:

关于领取软考继续教育证书的说明:http://www.csst.com.cn/News/NewsView.Aspx?ID=1047

软考通过后,如何规避继续教育:http://www.exam8.com/computer/spks/xinde/200609/40222.html

福建计算机信息系统集成项目经理资质认定:http://www.fujian.gov.cn/wsbs/bm/sxct/200707/t20070726_20184.htm

2011-12

3

In the morning, I join in the company’s sports competition, I will dead after running,and pain in the whole day.

In the afternoon,the last room was rent to one girl,who work at china mobile company.