自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

纵横南北的面试博客

Stay hungry, stay foolish

  • 博客(14)
  • 收藏
  • 关注

原创 JVM垃圾收集器-对比Serial、Parallel、CMS和G1

本文简单介绍了4种JVM GC方法,分析了各自的优缺点。作为后续文章的引入

2017-11-22 12:08:23 5269

原创 consistent hashing & Distributed Hash Table 的资料

一致性 hash 算法( consistent hashing )张亮consistent hashing 算法早在 1997 年就在论文 Consistent hashing and random trees 中被提出,目前在cache 系统中应用越来越广泛;1 基本场景比如你有 N 个 cache 服务器(后面简称 cache ),那么如何将一个对象 object 映射到 N 

2014-08-08 11:26:51 667

原创 OrzDBA用法

1.1 概述脚本主要用于观测系统和MySQL性能信息。参数包括主要参数和辅助参数。主要参数如下:l系统性能信息相关:n-l:查看系统平均负载。n-c:CPU不同状态的时间片分配信息。n-d:磁盘状态信息。要求必须输入磁盘名,如sda、sdb等。n-s: 交换空间信息。n-n:当前网络流量信息。要求必须输入接口名,如eth0、eth1等

2013-11-04 16:35:27 1182

转载 new/delete和malloc/free的区别

不同点:    1. new/delete是C++里才有的,而new/delete与malloc/free一个显著的区别在于,new是建造一个对象,并调用对象的构造函数来初始化对象,其实在所有的new操作过程中,总是分为两步的:第一步是申请内存,第二步则是调用构造函数初始化对象。同样,在调用delete的时候,需要先调用析构函数,然后在销毁堆内存。    2. new/delete通常来说

2013-09-08 10:10:19 417

原创 网易有道笔试题2

1.10个人分成4组 有几种分法? 2.如图:      7 8 9 10      6 1 2 11      5 4 3 12      16 15 14 13 设“1”的坐标为(0,0) “7”的坐标为(-1,-1) 编写一个小程序,使程 序做到输入坐标(X,Y)之后显示出相应的数字。 3.#include     //example input an

2013-09-07 23:28:03 2193

原创 网易有道面试题集锦

1、打印如下形式的矩阵;n=5:1       2       9       10      254       3       8       11      245       6       7       12      2316      15      14      13      2217      18      19      20      21

2013-09-07 16:57:04 1080

原创 Fortran内删除文件的方式

1.通过open文件时,用status=scratch,close完后自动删除此时不需要写文件名,这个文件close之后,将会自动删除open (29, form='unformatted', status='scratch')........close (29)自动删除,over2.利用 内置subroutine :system ,调用linux指令去删除文件ch

2013-03-25 14:54:50 7430

原创 删除.svn文件夹的方法

一.手动删除svn 略二.代码删除svn:1.在linux下 删除这些目录是很简单的,命令如下 find . -type d -name ".svn"|xargs rm -rf find . -type d -iname ".svn" -exec rm -rf {} \;  2.在windows下       a.在项目平级的目录,执行dos命令: xcop

2013-03-25 14:03:16 622

转载 使用PHP创建一个REST API(Create a REST API with PHP)节选6

You could also take it a step further than that, and abstract out your API controller and data models a bit more. Rather than explicitly creating a controller for every data model in your app, you c

2013-03-25 13:49:21 734

转载 使用PHP创建一个REST API(Create a REST API with PHP)节选5

Now that we can interpret the request, let’s move on to sending the response. We already know that all we really need to do is send the correct status code, and maybe some body (if this were a GET r

2013-03-25 13:47:31 677

转载 使用PHP创建一个REST API(Create a REST API with PHP) 节选4

There are a few ways we could go about doing this, but let’s just assume that we’ll always get a key/value pair in our request: ‘data’ => actual data. Let’s also assume that the actual data will be

2013-03-25 13:46:41 525

转载 使用PHP创建一个REST API(Create a REST API with PHP) 节选3

Getting Started with REST and PHP 开始使用PHP写RESTOne last disclaimer: the code we’re about to go over is in no way intended to be used as an example of a robust solution. My main goal here is to

2013-03-25 13:46:04 538

转载 使用PHP创建一个REST API(Create a REST API with PHP) 节选2

Responses 响应So, REST handles requests very easily, but it also makes generating responses easy. Similar to requests, there are two main components of a RESTful response: the response body, and a

2013-03-25 13:45:18 561

转载 使用PHP创建一个REST API(Create a REST API with PHP) 节选1

最近项目需要用到REST,故收集相关资料。        One of the latest (sort of) crazes sweeping the net is APIs, more specifically those that leverage REST. It’s really no surprise either, as consuming REST APIs is so i

2013-03-25 13:41:29 535

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除