Skip to Content

Amazon S3 REST API详解(转载)

本文转自残阳似血的博客

 

首先还是要先说一下Amazon S3,全称是Amazon Simple Storage Service。EC2和S3是Amazon最早推出的两项云服务。在传统的计算机领域,主要包括计算、存储、网络这几个方面, 在云计算时代,前两者分别对应虚拟化和cloud storage,由此可以显现出Amazon EC2和S3的重要性。如今随着云计算的大红大紫,也有很多使用Amazon S3的例子,典型的有Dropbox,还有之前被FB收购的Instagram,其照片存储就使用的S3。

关于REST,这也是比较火的一种Web服务架构。简单来说,资源是由URI指定,对[......]

Read more

滚动页面到顶部的动画

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>

<script>
$(document).ready(function(){

	// hide #back-top first
	$("#back-top").hide();
	
	// fade in #back-top
	$(function () {
		$(window).scroll(function () {
			if ([......]

Read more

js 正则替换一例

直接上例子

function marktext(text) {
    var re = new RegExp(key, "gi");
    return text.replace(re, "<mark>$&</mark>");
},

function marktext(text) {
    var re = new RegExp(key, "gi");
    return text.replace(re, function (word) { return "<mark>" + word + "</mark>" }[......]

Read more

判断网络是否连接(win8 app HTML&JS)


var networkInfo = Windows.Networking.Connectivity.NetworkInformation;

//Retrieve the ConnectionProfile
var internetConnectionProfile = networkInfo.getInternetConnectionProfile();

//Pass the returned object to a function that accesses the connection data  
var connectionProfileInfo = getConnectionPro[......]

Read more

JsonObject.Parse 接收json数组时的问题

访问twitter的信息,返回的结果是个数组:

[
{
...
},{
...
}
]
 

结果在windowsRT的JsonObject.Parse时发现程序报错。经测试发现该方法Parse根是数组的json对象确实会出现问题,而且Json.Net的组件同样会发生问题。

既然直接Parse数组不成,把它拼成个对象呗:

content = "{\"result\":"+ content+"}";
JsonObject jsonObject = JsonObject.Parse(content);

OK了

db_adb.exe,国内杀毒厂商制造的新病毒

db_adb.exe,国内杀毒厂商制造的新病毒[......]

Read more

js中2个等号与3个等号的区别

= 赋值运算符
== 等于
=== 严格等于 [......]

Read more

记录一个chrome的HTML5离线存储api地址

SyncFileSystem API[......]

Read more

[转载]收集到的国内部分分享api

function shareApi(target, img, content, url) {
                switch (target) {
                    case 0:
                        return "http://v.t.sina.com.cn/share/share.php?pic=" + img + "&title=" + content + "&url=" + url + "&rcontent=";[......]

Read more

发现几本win8的电子书,有兴趣的来下载吧

 

MetroStyleApp_設計開發入門指南.PDF,http://t.cn/zWEQHbm

Oreilly.Getting.Started.with.Metro.Style.Apps.Jul.2012.pdf,http://t.cn/zWEQHTo

Win8GuideAll_silverlightchina.pdf。 http://t.cn/zWEQQ5E 

Windows8ReleasePreviewProductGuideDeveloper.pdf。 http://t.cn/zWEQQO6

另有《Metro Revealed_ Building Windows[......]

Read more

第1页,共7页123456...尾页 »